00001
00002
00003
00004 #include "koprefs_base.h"
00005
00006 #include <klocale.h>
00007
00008 KOPrefsBase::KOPrefsBase( )
00009 : KPimPrefs( QString::fromLatin1( "korganizerrc" ) )
00010 {
00011 setCurrentGroup( QString::fromLatin1( "General" ) );
00012
00013 mAutoSaveItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Auto Save" ), mAutoSave, true );
00014 mAutoSaveItem->setLabel( i18n("Enable automatic saving of calendar") );
00015 mAutoSaveItem->setWhatsThis( i18n("WhatsThis text for AutoSave option") );
00016 addItem( mAutoSaveItem, QString::fromLatin1( "AutoSave" ) );
00017 mAutoSaveIntervalItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "Auto Save Interval" ), mAutoSaveInterval, 10 );
00018 mAutoSaveIntervalItem->setLabel( i18n("Auto Save Interval") );
00019 addItem( mAutoSaveIntervalItem, QString::fromLatin1( "AutoSaveInterval" ) );
00020 mConfirmItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Confirm Deletes" ), mConfirm, true );
00021 mConfirmItem->setLabel( i18n("Confirm deletes") );
00022 mConfirmItem->setWhatsThis( i18n("Check this option when you want a confirmation when deleting items.") );
00023 addItem( mConfirmItem, QString::fromLatin1( "Confirm" ) );
00024 mAutoArchiveItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Auto Archive" ), mAutoArchive, false );
00025 mAutoArchiveItem->setLabel( i18n("Regularly archive events") );
00026 addItem( mAutoArchiveItem, QString::fromLatin1( "AutoArchive" ) );
00027 QValueList<KConfigSkeleton::ItemEnum::Choice> valuesArchiveAction;
00028 {
00029 KConfigSkeleton::ItemEnum::Choice choice;
00030 choice.name = QString::fromLatin1( "actionDelete" );
00031 choice.label = i18n("Delete old events");
00032 valuesArchiveAction.append( choice );
00033 }
00034 {
00035 KConfigSkeleton::ItemEnum::Choice choice;
00036 choice.name = QString::fromLatin1( "actionArchive" );
00037 choice.label = i18n("Archive old events to a separate file");
00038 valuesArchiveAction.append( choice );
00039 }
00040 mArchiveActionItem = new KConfigSkeleton::ItemEnum( currentGroup(), QString::fromLatin1( "Archive Action" ), mArchiveAction, valuesArchiveAction, actionArchive );
00041 mArchiveActionItem->setLabel( i18n("What to do when archiving") );
00042 addItem( mArchiveActionItem, QString::fromLatin1( "ArchiveAction" ) );
00043 mExpiryTimeItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "Expiry Time" ), mExpiryTime, 1 );
00044 mExpiryTimeItem->setLabel( i18n("If auto-archiving is enabled, events older than this amount will be archived. The unit of this value is specified in another field.") );
00045 addItem( mExpiryTimeItem, QString::fromLatin1( "ExpiryTime" ) );
00046 QValueList<KConfigSkeleton::ItemEnum::Choice> valuesExpiryUnit;
00047 {
00048 KConfigSkeleton::ItemEnum::Choice choice;
00049 choice.name = QString::fromLatin1( "UnitDays" );
00050 choice.label = i18n("In days");
00051 valuesExpiryUnit.append( choice );
00052 }
00053 {
00054 KConfigSkeleton::ItemEnum::Choice choice;
00055 choice.name = QString::fromLatin1( "UnitWeeks" );
00056 choice.label = i18n("In weeks");
00057 valuesExpiryUnit.append( choice );
00058 }
00059 {
00060 KConfigSkeleton::ItemEnum::Choice choice;
00061 choice.name = QString::fromLatin1( "UnitMonths" );
00062 choice.label = i18n("In months");
00063 valuesExpiryUnit.append( choice );
00064 }
00065 mExpiryUnitItem = new KConfigSkeleton::ItemEnum( currentGroup(), QString::fromLatin1( "Expiry Unit" ), mExpiryUnit, valuesExpiryUnit, UnitMonths );
00066 mExpiryUnitItem->setLabel( i18n("The unit in which the expiry time is expressed.") );
00067 addItem( mExpiryUnitItem, QString::fromLatin1( "ExpiryUnit" ) );
00068 mArchiveFileItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "Archive File" ), mArchiveFile );
00069 mArchiveFileItem->setLabel( i18n("URL of the file where old events should be archived") );
00070 addItem( mArchiveFileItem, QString::fromLatin1( "ArchiveFile" ) );
00071 mHtmlWithSaveItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Html With Save" ), mHtmlWithSave, false );
00072 mHtmlWithSaveItem->setLabel( i18n("Export to HTML with every save") );
00073 mHtmlWithSaveItem->setWhatsThis( i18n("The calendar will be exported to a HTML-file every time you save if you select this option.") );
00074 addItem( mHtmlWithSaveItem, QString::fromLatin1( "HtmlWithSave" ) );
00075 QValueList<KConfigSkeleton::ItemEnum::Choice> valuesDestination;
00076 {
00077 KConfigSkeleton::ItemEnum::Choice choice;
00078 choice.name = QString::fromLatin1( "standardDestination" );
00079 choice.label = i18n("Be added to the standard resource");
00080 valuesDestination.append( choice );
00081 }
00082 {
00083 KConfigSkeleton::ItemEnum::Choice choice;
00084 choice.name = QString::fromLatin1( "askDestination" );
00085 choice.label = i18n("Be asked which resource to use");
00086 valuesDestination.append( choice );
00087 }
00088 mDestinationItem = new KConfigSkeleton::ItemEnum( currentGroup(), QString::fromLatin1( "Destination" ), mDestination, valuesDestination, askDestination );
00089 mDestinationItem->setLabel( i18n("New Events/Todos Should") );
00090 addItem( mDestinationItem, QString::fromLatin1( "Destination" ) );
00091
00092 setCurrentGroup( QString::fromLatin1( "Personal Settings" ) );
00093
00094 mBccItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Bcc" ), mBcc, false );
00095 mBccItem->setLabel( i18n("Send copy to owner when mailing events") );
00096 addItem( mBccItem, QString::fromLatin1( "Bcc" ) );
00097 mEmailControlCenterItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Use Control Center Email" ), mEmailControlCenter, false );
00098 mEmailControlCenterItem->setLabel( i18n("Use email settings from Control Center") );
00099 addItem( mEmailControlCenterItem, QString::fromLatin1( "EmailControlCenter" ) );
00100 QValueList<KConfigSkeleton::ItemEnum::Choice> valuesMailClient;
00101 {
00102 KConfigSkeleton::ItemEnum::Choice choice;
00103 choice.name = QString::fromLatin1( "MailClientKMail" );
00104 choice.label = i18n("KMail");
00105 choice.whatsThis = i18n("This is a radio button whatsthis text");
00106 valuesMailClient.append( choice );
00107 }
00108 {
00109 KConfigSkeleton::ItemEnum::Choice choice;
00110 choice.name = QString::fromLatin1( "MailClientSendmail" );
00111 choice.label = i18n("Sendmail");
00112 valuesMailClient.append( choice );
00113 }
00114 mMailClientItem = new KConfigSkeleton::ItemEnum( currentGroup(), QString::fromLatin1( "Mail Client" ), mMailClient, valuesMailClient, MailClientKMail );
00115 mMailClientItem->setLabel( i18n("Mail Client") );
00116 addItem( mMailClientItem, QString::fromLatin1( "MailClient" ) );
00117
00118 setCurrentGroup( QString::fromLatin1( "Time & Date" ) );
00119
00120 mTimeZoneIdItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "TimeZoneId" ), mTimeZoneId );
00121 mTimeZoneIdItem->setLabel( i18n("TimeZoneId") );
00122 addItem( mTimeZoneIdItem, QString::fromLatin1( "TimeZoneId" ) );
00123 mStartTimeItem = new KConfigSkeleton::ItemDateTime( currentGroup(), QString::fromLatin1( "StartTime" ), mStartTime, QDateTime(QDate(), QTime(10,0)) );
00124 mStartTimeItem->setLabel( i18n("Default appointment time") );
00125 mStartTimeItem->setWhatsThis( i18n("Here you can enter the event's default time, used if you do not supply a start time.") );
00126 addItem( mStartTimeItem, QString::fromLatin1( "StartTime" ) );
00127 mDefaultDurationItem = new KConfigSkeleton::ItemDateTime( currentGroup(), QString::fromLatin1( "DefaultDuration" ), mDefaultDuration, QDateTime(QDate(), QTime(2,0)) );
00128 mDefaultDurationItem->setLabel( i18n("Default duration of new appointment") );
00129 mDefaultDurationItem->setWhatsThis( i18n("Here you can enter the event's default duration, used if you do not supply an end time.") );
00130 addItem( mDefaultDurationItem, QString::fromLatin1( "DefaultDuration" ) );
00131 mAlarmTimeItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "Default Alarm Time" ), mAlarmTime, 0 );
00132 mAlarmTimeItem->setLabel( i18n("Default Alarm Time") );
00133 mAlarmTimeItem->setWhatsThis( i18n("Here you can enter an incidence's default alarmtime.") );
00134 addItem( mAlarmTimeItem, QString::fromLatin1( "AlarmTime" ) );
00135
00136 setCurrentGroup( QString::fromLatin1( "Views" ) );
00137
00138 mHourSizeItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "Hour Size" ), mHourSize, 10 );
00139 mHourSizeItem->setMinValue(4);
00140 mHourSizeItem->setMaxValue(30);
00141 mHourSizeItem->setLabel( i18n("Hour size") );
00142 addItem( mHourSizeItem, QString::fromLatin1( "HourSize" ) );
00143 mDailyRecurItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Show Daily Recurrences" ), mDailyRecur, true );
00144 mDailyRecurItem->setLabel( i18n("Show events that recur daily in date navigator") );
00145 addItem( mDailyRecurItem, QString::fromLatin1( "DailyRecur" ) );
00146 mWeeklyRecurItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Show Weekly Recurrences" ), mWeeklyRecur, true );
00147 mWeeklyRecurItem->setLabel( i18n("Show events that recur weekly in date navigator") );
00148 addItem( mWeeklyRecurItem, QString::fromLatin1( "WeeklyRecur" ) );
00149 mEnableToolTipsItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Enable ToolTips" ), mEnableToolTips, true );
00150 mEnableToolTipsItem->setLabel( i18n("Enable tooltips displaying summary of events") );
00151 mEnableToolTipsItem->setWhatsThis( i18n("Enable this when you want a tooltip appearing when hovering the mouse above an event.") );
00152 addItem( mEnableToolTipsItem, QString::fromLatin1( "EnableToolTips" ) );
00153 mShowAllDayTodoItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "ShowAllDayTodo" ), mShowAllDayTodo, true );
00154 mShowAllDayTodoItem->setLabel( i18n("Display todos in day, week and month views") );
00155 mShowAllDayTodoItem->setWhatsThis( i18n("This option toggles the display of todos in the day, week, and month view. This comes in handy when you have a lot of (recurring) todos.") );
00156 addItem( mShowAllDayTodoItem, QString::fromLatin1( "ShowAllDayTodo" ) );
00157 mEnableMonthScrollItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Enable Month-View Scrollbars" ), mEnableMonthScroll, false );
00158 mEnableMonthScrollItem->setLabel( i18n("Enable scrollbars in month view cells") );
00159 mEnableMonthScrollItem->setWhatsThis( i18n("By checking this option, scrollbars will appear when clicking on a cell in the month view; they will only appear when needed though.") );
00160 addItem( mEnableMonthScrollItem, QString::fromLatin1( "EnableMonthScroll" ) );
00161 mSelectionStartsEditorItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "SelectionStartsEditor" ), mSelectionStartsEditor, false );
00162 mSelectionStartsEditorItem->setLabel( i18n("Time range selection in agenda view starts event editor") );
00163 mSelectionStartsEditorItem->setWhatsThis( i18n("If you check this option, you can drag the mouse from the start time to the end time of the event you are about to plan. An editor will open to an event with the selected time range. This works only in the daily and weekly view.") );
00164 addItem( mSelectionStartsEditorItem, QString::fromLatin1( "SelectionStartsEditor" ) );
00165 mMarcusBainsShowSecondsItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Marcus Bains shows seconds" ), mMarcusBainsShowSeconds, false );
00166 mMarcusBainsShowSecondsItem->setLabel( i18n("Show seconds on Marcus Bains line") );
00167 mMarcusBainsShowSecondsItem->setWhatsThis( i18n("Check this option if you want seconds in the Marcus Bains line.") );
00168 addItem( mMarcusBainsShowSecondsItem, QString::fromLatin1( "MarcusBainsShowSeconds" ) );
00169 mMarcusBainsEnabledItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Show Marcus Bains" ), mMarcusBainsEnabled, false );
00170 mMarcusBainsEnabledItem->setLabel( i18n("Show current time (Marcus Bains line)") );
00171 mMarcusBainsEnabledItem->setWhatsThis( i18n("If selected, a red line will appear in the day or week view indicating the current time.") );
00172 addItem( mMarcusBainsEnabledItem, QString::fromLatin1( "MarcusBainsEnabled" ) );
00173 mDayBeginsItem = new KConfigSkeleton::ItemDateTime( currentGroup(), QString::fromLatin1( "DayBegins" ), mDayBegins, QDateTime(QDate(), QTime(7,0)) );
00174 mDayBeginsItem->setLabel( i18n("Day begins at") );
00175 addItem( mDayBeginsItem, QString::fromLatin1( "DayBegins" ) );
00176 mWorkingHoursStartItem = new KConfigSkeleton::ItemDateTime( currentGroup(), QString::fromLatin1( "WorkingHoursStart" ), mWorkingHoursStart, QDateTime(QDate(), QTime(8,0)) );
00177 mWorkingHoursStartItem->setLabel( i18n("Daily starting hour") );
00178 addItem( mWorkingHoursStartItem, QString::fromLatin1( "WorkingHoursStart" ) );
00179 mWorkingHoursEndItem = new KConfigSkeleton::ItemDateTime( currentGroup(), QString::fromLatin1( "WorkingHoursEnd" ), mWorkingHoursEnd, QDateTime(QDate(), QTime(17,0)) );
00180 mWorkingHoursEndItem->setLabel( i18n("Daily ending hour") );
00181 addItem( mWorkingHoursEndItem, QString::fromLatin1( "WorkingHoursEnd" ) );
00182 mWorkWeekMaskItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "Work Week Mask" ), mWorkWeekMask, 31 );
00183 mWorkWeekMaskItem->setLabel( i18n("Work Week Mask") );
00184 addItem( mWorkWeekMaskItem, QString::fromLatin1( "WorkWeekMask" ) );
00185 mExcludeHolidaysItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Exclude Holidays" ), mExcludeHolidays, true );
00186 mExcludeHolidaysItem->setLabel( i18n("Exclude holidays") );
00187 addItem( mExcludeHolidaysItem, QString::fromLatin1( "ExcludeHolidays" ) );
00188 mMonthViewUsesCategoryColorItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Month View Uses Category Color" ), mMonthViewUsesCategoryColor, false );
00189 mMonthViewUsesCategoryColorItem->setLabel( i18n("Month view uses category colors") );
00190 mMonthViewUsesCategoryColorItem->setWhatsThis( i18n("Check this option to make the month view use the category colors of an incidence.") );
00191 addItem( mMonthViewUsesCategoryColorItem, QString::fromLatin1( "MonthViewUsesCategoryColor" ) );
00192 mFullViewMonthItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Full View Month" ), mFullViewMonth, false );
00193 mFullViewMonthItem->setLabel( i18n("Month view uses full window") );
00194 addItem( mFullViewMonthItem, QString::fromLatin1( "FullViewMonth" ) );
00195 mFullViewTodoItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Full View Todo" ), mFullViewTodo, true );
00196 mFullViewTodoItem->setLabel( i18n("To-do view uses full window") );
00197 addItem( mFullViewTodoItem, QString::fromLatin1( "FullViewTodo" ) );
00198 mEnableQuickTodoItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Quick Todo" ), mEnableQuickTodo, true );
00199 mEnableQuickTodoItem->setLabel( i18n("Quick Todo") );
00200 addItem( mEnableQuickTodoItem, QString::fromLatin1( "EnableQuickTodo" ) );
00201 mNextXDaysItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "Next X Days" ), mNextXDays, 3 );
00202 mNextXDaysItem->setLabel( i18n("Next x days") );
00203 addItem( mNextXDaysItem, QString::fromLatin1( "NextXDays" ) );
00204
00205 setCurrentGroup( QString::fromLatin1( "Layout" ) );
00206
00207 mCompactDialogsItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "CompactDialogs" ), mCompactDialogs, false );
00208 mCompactDialogsItem->setLabel( i18n("CompactDialogs") );
00209 addItem( mCompactDialogsItem, QString::fromLatin1( "CompactDialogs" ) );
00210 mVerticalScreenItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "VerticalScreen" ), mVerticalScreen, false );
00211 mVerticalScreenItem->setLabel( i18n("VerticalScreen") );
00212 addItem( mVerticalScreenItem, QString::fromLatin1( "VerticalScreen" ) );
00213
00214 setCurrentGroup( QString::fromLatin1( "KOrganizer Plugins" ) );
00215
00216 QStringList defaultSelectedPlugins;
00217 defaultSelectedPlugins.append( QString::fromUtf8( "holidays" ) );
00218 defaultSelectedPlugins.append( QString::fromUtf8( "webexport" ) );
00219
00220 mSelectedPluginsItem = new KConfigSkeleton::ItemStringList( currentGroup(), QString::fromLatin1( "SelectedPlugins" ), mSelectedPlugins, defaultSelectedPlugins );
00221 mSelectedPluginsItem->setLabel( i18n("SelectedPlugins") );
00222 addItem( mSelectedPluginsItem, QString::fromLatin1( "SelectedPlugins" ) );
00223
00224 setCurrentGroup( QString::fromLatin1( "Editors" ) );
00225
00226 mEventTemplatesItem = new KConfigSkeleton::ItemStringList( currentGroup(), QString::fromLatin1( "EventTemplates" ), mEventTemplates );
00227 mEventTemplatesItem->setLabel( i18n("EventTemplates") );
00228 addItem( mEventTemplatesItem, QString::fromLatin1( "EventTemplates" ) );
00229 mTodoTemplatesItem = new KConfigSkeleton::ItemStringList( currentGroup(), QString::fromLatin1( "TodoTemplates" ), mTodoTemplates );
00230 mTodoTemplatesItem->setLabel( i18n("TodoTemplates") );
00231 addItem( mTodoTemplatesItem, QString::fromLatin1( "TodoTemplates" ) );
00232 mJournalTemplatesItem = new KConfigSkeleton::ItemStringList( currentGroup(), QString::fromLatin1( "JournalTemplates" ), mJournalTemplates );
00233 mJournalTemplatesItem->setLabel( i18n("JournalTemplates") );
00234 addItem( mJournalTemplatesItem, QString::fromLatin1( "JournalTemplates" ) );
00235
00236 setCurrentGroup( QString::fromLatin1( "Group Scheduling" ) );
00237
00238 QValueList<KConfigSkeleton::ItemEnum::Choice> valuesIMIPScheduler;
00239 {
00240 KConfigSkeleton::ItemEnum::Choice choice;
00241 choice.name = QString::fromLatin1( "IMIPDummy" );
00242 valuesIMIPScheduler.append( choice );
00243 }
00244 {
00245 KConfigSkeleton::ItemEnum::Choice choice;
00246 choice.name = QString::fromLatin1( "IMIPKMail" );
00247 valuesIMIPScheduler.append( choice );
00248 }
00249 mIMIPSchedulerItem = new KConfigSkeleton::ItemEnum( currentGroup(), QString::fromLatin1( "IMIPScheduler" ), mIMIPScheduler, valuesIMIPScheduler, IMIPKMail );
00250 mIMIPSchedulerItem->setLabel( i18n("IMIPScheduler") );
00251 addItem( mIMIPSchedulerItem, QString::fromLatin1( "IMIPScheduler" ) );
00252 mUseGroupwareCommunicationItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Use Groupware Communication" ), mUseGroupwareCommunication, false );
00253 mUseGroupwareCommunicationItem->setLabel( i18n("Use Groupware communication") );
00254 addItem( mUseGroupwareCommunicationItem, QString::fromLatin1( "UseGroupwareCommunication" ) );
00255 mAdditionalMailsItem = new KConfigSkeleton::ItemStringList( currentGroup(), QString::fromLatin1( "AdditionalMails" ), mAdditionalMails );
00256 mAdditionalMailsItem->setLabel( i18n("AdditionalMails") );
00257 addItem( mAdditionalMailsItem, QString::fromLatin1( "AdditionalMails" ) );
00258 QValueList<KConfigSkeleton::ItemEnum::Choice> valuesIMIPSend;
00259 {
00260 KConfigSkeleton::ItemEnum::Choice choice;
00261 choice.name = QString::fromLatin1( "IMIPOutbox" );
00262 choice.label = i18n("Send to outbox");
00263 valuesIMIPSend.append( choice );
00264 }
00265 {
00266 KConfigSkeleton::ItemEnum::Choice choice;
00267 choice.name = QString::fromLatin1( "IMIPdirectsend" );
00268 choice.label = i18n("Send directly");
00269 valuesIMIPSend.append( choice );
00270 }
00271 mIMIPSendItem = new KConfigSkeleton::ItemEnum( currentGroup(), QString::fromLatin1( "IMIPSend" ), mIMIPSend, valuesIMIPSend, IMIPdirectsend );
00272 mIMIPSendItem->setLabel( i18n("Scheduler Mails Should Be") );
00273 addItem( mIMIPSendItem, QString::fromLatin1( "IMIPSend" ) );
00274 QValueList<KConfigSkeleton::ItemEnum::Choice> valuesIMIPAutoRefresh;
00275 {
00276 KConfigSkeleton::ItemEnum::Choice choice;
00277 choice.name = QString::fromLatin1( "neverAuto" );
00278 choice.label = i18n("Never");
00279 valuesIMIPAutoRefresh.append( choice );
00280 }
00281 {
00282 KConfigSkeleton::ItemEnum::Choice choice;
00283 choice.name = QString::fromLatin1( "addressbookAuto" );
00284 choice.label = i18n("If attendee is in addressbook");
00285 valuesIMIPAutoRefresh.append( choice );
00286 }
00287 {
00288 KConfigSkeleton::ItemEnum::Choice choice;
00289 choice.name = QString::fromLatin1( "selectedAuto" );
00290 choice.label = i18n("Selected emails");
00291 valuesIMIPAutoRefresh.append( choice );
00292 }
00293 mIMIPAutoRefreshItem = new KConfigSkeleton::ItemEnum( currentGroup(), QString::fromLatin1( "IMIP auto refresh" ), mIMIPAutoRefresh, valuesIMIPAutoRefresh, neverAuto );
00294 mIMIPAutoRefreshItem->setLabel( i18n("Auto Send Refresh") );
00295 addItem( mIMIPAutoRefreshItem, QString::fromLatin1( "IMIPAutoRefresh" ) );
00296 QValueList<KConfigSkeleton::ItemEnum::Choice> valuesIMIPAutoInsertRequest;
00297 mIMIPAutoInsertRequestItem = new KConfigSkeleton::ItemEnum( currentGroup(), QString::fromLatin1( "IMIP auto insert request" ), mIMIPAutoInsertRequest, valuesIMIPAutoInsertRequest, neverAuto );
00298 mIMIPAutoInsertRequestItem->setLabel( i18n("Auto Insert IMIP Requests") );
00299 addItem( mIMIPAutoInsertRequestItem, QString::fromLatin1( "IMIPAutoInsertRequest" ) );
00300 QValueList<KConfigSkeleton::ItemEnum::Choice> valuesIMIPAutoInsertReply;
00301 mIMIPAutoInsertReplyItem = new KConfigSkeleton::ItemEnum( currentGroup(), QString::fromLatin1( "IMIP auto insert reply" ), mIMIPAutoInsertReply, valuesIMIPAutoInsertReply, neverAuto );
00302 mIMIPAutoInsertReplyItem->setLabel( i18n("Auto Insert IMIP Replies") );
00303 addItem( mIMIPAutoInsertReplyItem, QString::fromLatin1( "IMIPAutoInsertReply" ) );
00304 QValueList<KConfigSkeleton::ItemEnum::Choice> valuesIMIPAutoFreeBusy;
00305 mIMIPAutoFreeBusyItem = new KConfigSkeleton::ItemEnum( currentGroup(), QString::fromLatin1( "IMIP auto FreeBusy" ), mIMIPAutoFreeBusy, valuesIMIPAutoFreeBusy, neverAuto );
00306 mIMIPAutoFreeBusyItem->setLabel( i18n("Auto Send FreeBusy Information") );
00307 addItem( mIMIPAutoFreeBusyItem, QString::fromLatin1( "IMIPAutoFreeBusy" ) );
00308 QValueList<KConfigSkeleton::ItemEnum::Choice> valuesIMIPAutoFreeBusyReply;
00309 mIMIPAutoFreeBusyReplyItem = new KConfigSkeleton::ItemEnum( currentGroup(), QString::fromLatin1( "IMIP auto save FreeBusy" ), mIMIPAutoFreeBusyReply, valuesIMIPAutoFreeBusyReply, neverAuto );
00310 mIMIPAutoFreeBusyReplyItem->setLabel( i18n("Auto Save FreeBusy Replies") );
00311 addItem( mIMIPAutoFreeBusyReplyItem, QString::fromLatin1( "IMIPAutoFreeBusyReply" ) );
00312
00313 setCurrentGroup( QString::fromLatin1( "Colors" ) );
00314
00315 mHolidayColorItem = new KConfigSkeleton::ItemColor( currentGroup(), QString::fromLatin1( "Holiday Color" ), mHolidayColor, QColor( 255, 100, 100 ) );
00316 mHolidayColorItem->setLabel( i18n("Holiday color") );
00317 addItem( mHolidayColorItem, QString::fromLatin1( "HolidayColor" ) );
00318 mHighlightColorItem = new KConfigSkeleton::ItemColor( currentGroup(), QString::fromLatin1( "Highlight Color" ), mHighlightColor, QColor( 100, 100, 255 ) );
00319 mHighlightColorItem->setLabel( i18n("Highlight color") );
00320 addItem( mHighlightColorItem, QString::fromLatin1( "HighlightColor" ) );
00321 mAgendaBgColorItem = new KConfigSkeleton::ItemColor( currentGroup(), QString::fromLatin1( "AgendaBackgroundColor" ), mAgendaBgColor, QColor( 255, 255, 255 ) );
00322 mAgendaBgColorItem->setLabel( i18n("Agenda view background color") );
00323 addItem( mAgendaBgColorItem, QString::fromLatin1( "AgendaBgColor" ) );
00324 mWorkingHoursColorItem = new KConfigSkeleton::ItemColor( currentGroup(), QString::fromLatin1( "WorkingHoursColor" ), mWorkingHoursColor, QColor( 225, 225, 255 ) );
00325 mWorkingHoursColorItem->setLabel( i18n("Working hours color") );
00326 addItem( mWorkingHoursColorItem, QString::fromLatin1( "WorkingHoursColor" ) );
00327 mTodoDueTodayColorItem = new KConfigSkeleton::ItemColor( currentGroup(), QString::fromLatin1( "Todo due today Color" ), mTodoDueTodayColor, QColor( 255, 200, 50 ) );
00328 mTodoDueTodayColorItem->setLabel( i18n("Todo due today color") );
00329 addItem( mTodoDueTodayColorItem, QString::fromLatin1( "TodoDueTodayColor" ) );
00330 mTodoOverdueColorItem = new KConfigSkeleton::ItemColor( currentGroup(), QString::fromLatin1( "Todo overdue Color" ), mTodoOverdueColor, QColor( 255, 100, 100 ) );
00331 mTodoOverdueColorItem->setLabel( i18n("Todo overdue color") );
00332 addItem( mTodoOverdueColorItem, QString::fromLatin1( "TodoOverdueColor" ) );
00333 mEventColorItem = new KConfigSkeleton::ItemColor( currentGroup(), QString::fromLatin1( "EventColor" ), mEventColor, QColor( 151, 235, 121 ) );
00334 mEventColorItem->setLabel( i18n("Default event color") );
00335 addItem( mEventColorItem, QString::fromLatin1( "EventColor" ) );
00336
00337 setCurrentGroup( QString::fromLatin1( "Fonts" ) );
00338
00339 mTimeBarFontItem = new KConfigSkeleton::ItemFont( currentGroup(), QString::fromLatin1( "TimeBar Font" ), mTimeBarFont );
00340 mTimeBarFontItem->setLabel( i18n("Time bar") );
00341 addItem( mTimeBarFontItem, QString::fromLatin1( "TimeBarFont" ) );
00342 mAgendaViewFontItem = new KConfigSkeleton::ItemFont( currentGroup(), QString::fromLatin1( "AgendaView Font" ), mAgendaViewFont );
00343 mAgendaViewFontItem->setLabel( i18n("Agenda view") );
00344 addItem( mAgendaViewFontItem, QString::fromLatin1( "AgendaViewFont" ) );
00345 mMarcusBainsFontItem = new KConfigSkeleton::ItemFont( currentGroup(), QString::fromLatin1( "MarcusBains Font" ), mMarcusBainsFont );
00346 mMarcusBainsFontItem->setLabel( i18n("Marcus Bains line") );
00347 addItem( mMarcusBainsFontItem, QString::fromLatin1( "MarcusBainsFont" ) );
00348 mMonthViewFontItem = new KConfigSkeleton::ItemFont( currentGroup(), QString::fromLatin1( "MonthView Font" ), mMonthViewFont );
00349 mMonthViewFontItem->setLabel( i18n("Month view") );
00350 addItem( mMonthViewFontItem, QString::fromLatin1( "MonthViewFont" ) );
00351
00352 setCurrentGroup( QString::fromLatin1( "FreeBusy" ) );
00353
00354 mFreeBusyPublishAutoItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "FreeBusyPublishAuto" ), mFreeBusyPublishAuto, false );
00355 mFreeBusyPublishAutoItem->setLabel( i18n("FreeBusyPublishAuto") );
00356 addItem( mFreeBusyPublishAutoItem, QString::fromLatin1( "FreeBusyPublishAuto" ) );
00357 mFreeBusyPublishDelayItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "FreeBusyPublishDelay" ), mFreeBusyPublishDelay, 5 );
00358 mFreeBusyPublishDelayItem->setLabel( i18n("FreeBusyPublishDelay") );
00359 addItem( mFreeBusyPublishDelayItem, QString::fromLatin1( "FreeBusyPublishDelay" ) );
00360 mFreeBusyPublishDaysItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "FreeBusyPublishDays" ), mFreeBusyPublishDays, 60 );
00361 mFreeBusyPublishDaysItem->setLabel( i18n("FreeBusyPublishDays") );
00362 addItem( mFreeBusyPublishDaysItem, QString::fromLatin1( "FreeBusyPublishDays" ) );
00363 mFreeBusyPublishUrlItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "FreeBusyPublishUrl" ), mFreeBusyPublishUrl );
00364 mFreeBusyPublishUrlItem->setLabel( i18n("Free/Busy Publish URL") );
00365 mFreeBusyPublishUrlItem->setWhatsThis( i18n("URL for publishing free/busy information") );
00366 addItem( mFreeBusyPublishUrlItem, QString::fromLatin1( "FreeBusyPublishUrl" ) );
00367 mFreeBusyPublishUserItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "FreeBusyPublishUser" ), mFreeBusyPublishUser );
00368 mFreeBusyPublishUserItem->setLabel( i18n("Free/Busy Publish User Name") );
00369 mFreeBusyPublishUserItem->setWhatsThis( i18n("User name for publishing free/busy information") );
00370 addItem( mFreeBusyPublishUserItem, QString::fromLatin1( "FreeBusyPublishUser" ) );
00371 mFreeBusyPublishPasswordItem = new KConfigSkeleton::ItemPassword( currentGroup(), QString::fromLatin1( "FreeBusyPublishPassword" ), mFreeBusyPublishPassword );
00372 mFreeBusyPublishPasswordItem->setLabel( i18n("Free/Busy Publish Password") );
00373 mFreeBusyPublishPasswordItem->setWhatsThis( i18n("Password for publishing free/busy information") );
00374 addItem( mFreeBusyPublishPasswordItem, QString::fromLatin1( "FreeBusyPublishPassword" ) );
00375 mFreeBusyPublishSavePasswordItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "FreeBusyPublishSavePassword" ), mFreeBusyPublishSavePassword, false );
00376 mFreeBusyPublishSavePasswordItem->setLabel( i18n("FreeBusyPublishSavePassword") );
00377 addItem( mFreeBusyPublishSavePasswordItem, QString::fromLatin1( "FreeBusyPublishSavePassword" ) );
00378 mFreeBusyRetrieveAutoItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "FreeBusyRetrieveAuto" ), mFreeBusyRetrieveAuto, false );
00379 mFreeBusyRetrieveAutoItem->setLabel( i18n("Enable Automatic Free/Busy Retrieval") );
00380 addItem( mFreeBusyRetrieveAutoItem, QString::fromLatin1( "FreeBusyRetrieveAuto" ) );
00381 mFreeBusyFullDomainRetrievalItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "FreeBusyFullDomainRetrieval" ), mFreeBusyFullDomainRetrieval, false );
00382 mFreeBusyFullDomainRetrievalItem->setLabel( i18n("Use full email address for retrieval") );
00383 mFreeBusyFullDomainRetrievalItem->setWhatsThis( i18n("With this setting, you can change the filename that will be fetched from the server. With this checked, it will download a free/busy file called user@domain.ifb, for example nn@kde.org.ifb. Without this set, it will download user.ifb, for example nn.ifb.") );
00384 addItem( mFreeBusyFullDomainRetrievalItem, QString::fromLatin1( "FreeBusyFullDomainRetrieval" ) );
00385 mFreeBusyRetrieveUrlItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "FreeBusyRetrieveUrl" ), mFreeBusyRetrieveUrl );
00386 mFreeBusyRetrieveUrlItem->setLabel( i18n("Free/Busy Retrieval URL") );
00387 addItem( mFreeBusyRetrieveUrlItem, QString::fromLatin1( "FreeBusyRetrieveUrl" ) );
00388 mFreeBusyRetrieveUserItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "FreeBusyRetrieveUser" ), mFreeBusyRetrieveUser );
00389 mFreeBusyRetrieveUserItem->setLabel( i18n("Free/Busy Retrieval User Name") );
00390 addItem( mFreeBusyRetrieveUserItem, QString::fromLatin1( "FreeBusyRetrieveUser" ) );
00391 mFreeBusyRetrievePasswordItem = new KConfigSkeleton::ItemPassword( currentGroup(), QString::fromLatin1( "FreeBusyRetrievePassword" ), mFreeBusyRetrievePassword );
00392 mFreeBusyRetrievePasswordItem->setLabel( i18n("Free/Busy Retrieval Password") );
00393 mFreeBusyRetrievePasswordItem->setWhatsThis( i18n("Password for retrieving free/busy information") );
00394 addItem( mFreeBusyRetrievePasswordItem, QString::fromLatin1( "FreeBusyRetrievePassword" ) );
00395 mFreeBusyRetrieveSavePasswordItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "FreeBusyRetrieveSavePassword" ), mFreeBusyRetrieveSavePassword, false );
00396 mFreeBusyRetrieveSavePasswordItem->setLabel( i18n("FreeBusyRetrieveSavePassword") );
00397 addItem( mFreeBusyRetrieveSavePasswordItem, QString::fromLatin1( "FreeBusyRetrieveSavePassword" ) );
00398 }
00399
00400 KOPrefsBase::~KOPrefsBase()
00401 {
00402 }
00403