korganizer

koprefs_base.cpp

00001 // This file is generated by kconfig_compiler from korganizer.kcfg.
00002 // All changes you do to this file will be lost.
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 manually opened calendar files") );
00015   mAutoSaveItem->setWhatsThis( i18n("Check this box to save your calendar file automatically when you exit KOrganizer without asking and periodically, as you work. This setting does not affect the automatic saving of the standard calendar, which is automatically saved after each change.") );
00016   addItem( mAutoSaveItem, QString::fromLatin1( "AutoSave" ) );
00017   mAutoSaveIntervalItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "Auto Save Interval" ), mAutoSaveInterval, 10 );
00018   mAutoSaveIntervalItem->setMinValue(1);
00019   mAutoSaveIntervalItem->setLabel( i18n("Save &interval in minutes") );
00020   mAutoSaveIntervalItem->setWhatsThis( i18n("Set the interval between automatic saving of calendar events in minutes here. This setting only applies to files that are opened manually. The standard KDE-wide calendar is automatically saved after each change.") );
00021   addItem( mAutoSaveIntervalItem, QString::fromLatin1( "AutoSaveInterval" ) );
00022   mConfirmItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Confirm Deletes" ), mConfirm, true );
00023   mConfirmItem->setLabel( i18n("Confirm deletes") );
00024   mConfirmItem->setWhatsThis( i18n("Check this box to display a confirmation dialog when deleting items.") );
00025   addItem( mConfirmItem, QString::fromLatin1( "Confirm" ) );
00026   mArchiveEventsItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Archive Events" ), mArchiveEvents, true );
00027   mArchiveEventsItem->setLabel( i18n("Archive events") );
00028   addItem( mArchiveEventsItem, QString::fromLatin1( "ArchiveEvents" ) );
00029   mArchiveTodosItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Archive Todos" ), mArchiveTodos, true );
00030   mArchiveTodosItem->setLabel( i18n("Archive to-dos") );
00031   addItem( mArchiveTodosItem, QString::fromLatin1( "ArchiveTodos" ) );
00032   mAutoArchiveItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Auto Archive" ), mAutoArchive, false );
00033   mAutoArchiveItem->setLabel( i18n("Regularly archive events") );
00034   addItem( mAutoArchiveItem, QString::fromLatin1( "AutoArchive" ) );
00035   QValueList<KConfigSkeleton::ItemEnum::Choice> valuesArchiveAction;
00036   {
00037     KConfigSkeleton::ItemEnum::Choice choice;
00038     choice.name = QString::fromLatin1( "actionDelete" );
00039     choice.label = i18n("Delete old events");
00040     valuesArchiveAction.append( choice );
00041   }
00042   {
00043     KConfigSkeleton::ItemEnum::Choice choice;
00044     choice.name = QString::fromLatin1( "actionArchive" );
00045     choice.label = i18n("Archive old events to a separate file");
00046     valuesArchiveAction.append( choice );
00047   }
00048   mArchiveActionItem = new KConfigSkeleton::ItemEnum( currentGroup(), QString::fromLatin1( "Archive Action" ), mArchiveAction, valuesArchiveAction, actionArchive );
00049   mArchiveActionItem->setLabel( i18n("What to do when archiving") );
00050   addItem( mArchiveActionItem, QString::fromLatin1( "ArchiveAction" ) );
00051   mExpiryTimeItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "Expiry Time" ), mExpiryTime, 1 );
00052   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.") );
00053   addItem( mExpiryTimeItem, QString::fromLatin1( "ExpiryTime" ) );
00054   QValueList<KConfigSkeleton::ItemEnum::Choice> valuesExpiryUnit;
00055   {
00056     KConfigSkeleton::ItemEnum::Choice choice;
00057     choice.name = QString::fromLatin1( "UnitDays" );
00058     choice.label = i18n("In days");
00059     valuesExpiryUnit.append( choice );
00060   }
00061   {
00062     KConfigSkeleton::ItemEnum::Choice choice;
00063     choice.name = QString::fromLatin1( "UnitWeeks" );
00064     choice.label = i18n("In weeks");
00065     valuesExpiryUnit.append( choice );
00066   }
00067   {
00068     KConfigSkeleton::ItemEnum::Choice choice;
00069     choice.name = QString::fromLatin1( "UnitMonths" );
00070     choice.label = i18n("In months");
00071     valuesExpiryUnit.append( choice );
00072   }
00073   mExpiryUnitItem = new KConfigSkeleton::ItemEnum( currentGroup(), QString::fromLatin1( "Expiry Unit" ), mExpiryUnit, valuesExpiryUnit, UnitMonths );
00074   mExpiryUnitItem->setLabel( i18n("The unit in which the expiry time is expressed.") );
00075   addItem( mExpiryUnitItem, QString::fromLatin1( "ExpiryUnit" ) );
00076   mArchiveFileItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "Archive File" ), mArchiveFile );
00077   mArchiveFileItem->setLabel( i18n("URL of the file where old events should be archived") );
00078   addItem( mArchiveFileItem, QString::fromLatin1( "ArchiveFile" ) );
00079   mHtmlWithSaveItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Html With Save" ), mHtmlWithSave, false );
00080   mHtmlWithSaveItem->setLabel( i18n("Export to HTML with every save") );
00081   mHtmlWithSaveItem->setWhatsThis( i18n("Check this box to export the calendar to an HTML-file every time you save it. By default, this file will be called calendar.html and placed in the user home folder.") );
00082   addItem( mHtmlWithSaveItem, QString::fromLatin1( "HtmlWithSave" ) );
00083   QValueList<KConfigSkeleton::ItemEnum::Choice> valuesDestination;
00084   {
00085     KConfigSkeleton::ItemEnum::Choice choice;
00086     choice.name = QString::fromLatin1( "standardDestination" );
00087     choice.label = i18n("Be added to the standard resource");
00088     choice.whatsThis = i18n("Select this option to always record new events, to-dos and journal entries using the standard resource.");
00089     valuesDestination.append( choice );
00090   }
00091   {
00092     KConfigSkeleton::ItemEnum::Choice choice;
00093     choice.name = QString::fromLatin1( "askDestination" );
00094     choice.label = i18n("Be asked which resource to use");
00095     choice.whatsThis = i18n("Select this option to choose the resource to be used to record the item each time you create a new event, to-do or journal entry. This choice is recommended if you intend to use the shared folders functionality of the Kolab server or have to manage multiple accounts using Kontact as a KDE Kolab client. ");
00096     valuesDestination.append( choice );
00097   }
00098   mDestinationItem = new KConfigSkeleton::ItemEnum( currentGroup(), QString::fromLatin1( "Destination" ), mDestination, valuesDestination, askDestination );
00099   mDestinationItem->setLabel( i18n("New Events, To-dos and Journal Entries Should") );
00100   addItem( mDestinationItem, QString::fromLatin1( "Destination" ) );
00101 
00102   setCurrentGroup( QString::fromLatin1( "Personal Settings" ) );
00103 
00104   mBccItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Bcc" ), mBcc, false );
00105   mBccItem->setLabel( i18n("Send copy to owner when mailing events") );
00106   mBccItem->setWhatsThis( i18n("Check this box to get a copy of all e-mail messages that KOrganizer sends at your request to event attendees.") );
00107   addItem( mBccItem, QString::fromLatin1( "Bcc" ) );
00108   mEmailControlCenterItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Use Control Center Email" ), mEmailControlCenter, true );
00109   mEmailControlCenterItem->setLabel( i18n("Use email settings from Control Center") );
00110   mEmailControlCenterItem->setWhatsThis( i18n("Check this box to use the KDE-wide e-mail settings, which are defined using the KDE Control Center \"Password & User Account\" Module. Uncheck this box to be able to specify your full name and e-mail.") );
00111   addItem( mEmailControlCenterItem, QString::fromLatin1( "EmailControlCenter" ) );
00112   mUserNameItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "user_name" ), mUserName, i18n("Anonymous") );
00113   mUserNameItem->setLabel( i18n("Full &name") );
00114   mUserNameItem->setWhatsThis( i18n("Enter your full name here. This name will be displayed as \"Organizer\" in to-dos and events you create.") );
00115   addItem( mUserNameItem, QString::fromLatin1( "UserName" ) );
00116   mUserEmailItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "user_email" ), mUserEmail, i18n("nobody@nowhere") );
00117   mUserEmailItem->setLabel( i18n("E&mail address") );
00118   mUserEmailItem->setWhatsThis( i18n("Enter here your e-mail address. This e-mail address will be used to identify the owner of the calendar, and displayed in events and to-dos you create.") );
00119   addItem( mUserEmailItem, QString::fromLatin1( "UserEmail" ) );
00120   QValueList<KConfigSkeleton::ItemEnum::Choice> valuesMailClient;
00121   {
00122     KConfigSkeleton::ItemEnum::Choice choice;
00123     choice.name = QString::fromLatin1( "MailClientKMail" );
00124     choice.label = i18n("KMail");
00125     choice.whatsThis = i18n("Select this option to use KMail as the mail transport. The mail transport is used for groupware functionality.");
00126     valuesMailClient.append( choice );
00127   }
00128   {
00129     KConfigSkeleton::ItemEnum::Choice choice;
00130     choice.name = QString::fromLatin1( "MailClientSendmail" );
00131     choice.label = i18n("Sendmail");
00132     choice.whatsThis = i18n("Select this option to use sendmail as the mail transport. The mail transport is used for groupware functionality. Please check if you have sendmail installed before selecting this option.");
00133     valuesMailClient.append( choice );
00134   }
00135   mMailClientItem = new KConfigSkeleton::ItemEnum( currentGroup(), QString::fromLatin1( "Mail Client" ), mMailClient, valuesMailClient, MailClientKMail );
00136   mMailClientItem->setLabel( i18n("Mail Client") );
00137   addItem( mMailClientItem, QString::fromLatin1( "MailClient" ) );
00138 
00139   setCurrentGroup( QString::fromLatin1( "Time & Date" ) );
00140 
00141   mTimeZoneIdItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "TimeZoneId" ), mTimeZoneId );
00142   mTimeZoneIdItem->setLabel( i18n("TimeZoneId") );
00143   mTimeZoneIdItem->setWhatsThis( i18n("Select your timezone from the list of locations on this drop down box. If your city is not listed, select one which shares the same timezone. KOrganizer will automatically adjust for daylight savings.") );
00144   addItem( mTimeZoneIdItem, QString::fromLatin1( "TimeZoneId" ) );
00145   mHolidaysItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "Holidays" ), mHolidays );
00146   mHolidaysItem->setLabel( i18n("Use holiday region:") );
00147   mHolidaysItem->setWhatsThis( i18n("Select from which region you want to use the holidays here. Defined holidays are shown as non-working days in the date navigator, the agenda view, etc.") );
00148   addItem( mHolidaysItem, QString::fromLatin1( "Holidays" ) );
00149   mStartTimeItem = new KConfigSkeleton::ItemDateTime( currentGroup(), QString::fromLatin1( "StartTime" ), mStartTime, QDateTime(QDate(), QTime(10,0)) );
00150   mStartTimeItem->setLabel( i18n("Default appointment time") );
00151   mStartTimeItem->setWhatsThis( i18n("Enter the default time for events here. The default is used if you do not supply a start time.") );
00152   addItem( mStartTimeItem, QString::fromLatin1( "StartTime" ) );
00153   mDefaultDurationItem = new KConfigSkeleton::ItemDateTime( currentGroup(), QString::fromLatin1( "DefaultDuration" ), mDefaultDuration, QDateTime(QDate(), QTime(2,0)) );
00154   mDefaultDurationItem->setLabel( i18n("Default duration of new appointment (HH:MM)") );
00155   mDefaultDurationItem->setWhatsThis( i18n("Enter default duration for events here. The default is used if you do not supply an end time.") );
00156   addItem( mDefaultDurationItem, QString::fromLatin1( "DefaultDuration" ) );
00157   mAlarmTimeItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "Default Alarm Time" ), mAlarmTime, 3 );
00158   mAlarmTimeItem->setLabel( i18n("Default Reminder Time") );
00159   mAlarmTimeItem->setWhatsThis( i18n("Enter the reminder time here.") );
00160   addItem( mAlarmTimeItem, QString::fromLatin1( "AlarmTime" ) );
00161 
00162   setCurrentGroup( QString::fromLatin1( "Views" ) );
00163 
00164   mHourSizeItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "Hour Size" ), mHourSize, 10 );
00165   mHourSizeItem->setMinValue(4);
00166   mHourSizeItem->setMaxValue(30);
00167   mHourSizeItem->setLabel( i18n("Hour size") );
00168   mHourSizeItem->setWhatsThis( i18n("Select on this spin box the height of the hour rows in the schedule view.") );
00169   addItem( mHourSizeItem, QString::fromLatin1( "HourSize" ) );
00170   mDailyRecurItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Show Daily Recurrences" ), mDailyRecur, true );
00171   mDailyRecurItem->setLabel( i18n("Show events that recur daily in date navigator") );
00172   mDailyRecurItem->setWhatsThis( i18n("Check this box to show the days containing daily recurring events in bold typeface in the Date Navigator, or uncheck it to give more prominence to other (non daily recurring) events.") );
00173   addItem( mDailyRecurItem, QString::fromLatin1( "DailyRecur" ) );
00174   mWeeklyRecurItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Show Weekly Recurrences" ), mWeeklyRecur, true );
00175   mWeeklyRecurItem->setLabel( i18n("Show events that recur weekly in date navigator") );
00176   mWeeklyRecurItem->setWhatsThis( i18n("Check this box to show the days containing weekly recurring events in bold typeface in the Date Navigator, or uncheck it to give more prominence to other (non weekly recurring) events.") );
00177   addItem( mWeeklyRecurItem, QString::fromLatin1( "WeeklyRecur" ) );
00178   mEnableToolTipsItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Enable ToolTips" ), mEnableToolTips, true );
00179   mEnableToolTipsItem->setLabel( i18n("Enable tooltips displaying summary of events") );
00180   mEnableToolTipsItem->setWhatsThis( i18n("Check this box to display an event summary tooltip when hovering the mouse over an event.") );
00181   addItem( mEnableToolTipsItem, QString::fromLatin1( "EnableToolTips" ) );
00182   mShowAllDayTodoItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "ShowAllDayTodo" ), mShowAllDayTodo, true );
00183   mShowAllDayTodoItem->setLabel( i18n("Show to-dos in day, week and month views") );
00184   mShowAllDayTodoItem->setWhatsThis( i18n("Check this box to display to-dos in the day, week, and month view. This is helpful when you have a lot of (recurring) to-dos.") );
00185   addItem( mShowAllDayTodoItem, QString::fromLatin1( "ShowAllDayTodo" ) );
00186   mEnableMonthScrollItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Enable Month-View Scrollbars" ), mEnableMonthScroll, false );
00187   mEnableMonthScrollItem->setLabel( i18n("Enable scrollbars in month view cells") );
00188   mEnableMonthScrollItem->setWhatsThis( i18n("Check this box to display scrollbars when clicking on a cell in the month view; they will only appear when needed though.") );
00189   addItem( mEnableMonthScrollItem, QString::fromLatin1( "EnableMonthScroll" ) );
00190   mSelectionStartsEditorItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "SelectionStartsEditor" ), mSelectionStartsEditor, false );
00191   mSelectionStartsEditorItem->setLabel( i18n("Time range selection in agenda view starts event editor") );
00192   mSelectionStartsEditorItem->setWhatsThis( i18n("Check this box to start the event editor automatically when you select a time range in the daily and weekly view. To select a time range, drag the mouse from the start time to the end time of the event you are about to plan.") );
00193   addItem( mSelectionStartsEditorItem, QString::fromLatin1( "SelectionStartsEditor" ) );
00194   mMarcusBainsEnabledItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Show current-time line" ), mMarcusBainsEnabled, true );
00195   mMarcusBainsEnabledItem->setLabel( i18n("Show current-time (Marcus Bains) line") );
00196   mMarcusBainsEnabledItem->setWhatsThis( i18n("Check this box to display a red line in the day or week view indicating the current-time line (Marcus Bains line).") );
00197   addItem( mMarcusBainsEnabledItem, QString::fromLatin1( "MarcusBainsEnabled" ) );
00198   mMarcusBainsShowSecondsItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Current-time line shows seconds" ), mMarcusBainsShowSeconds, true );
00199   mMarcusBainsShowSecondsItem->setLabel( i18n("Show seconds on current-time line") );
00200   mMarcusBainsShowSecondsItem->setWhatsThis( i18n("Check this box if you want to show seconds on the current-time line.") );
00201   addItem( mMarcusBainsShowSecondsItem, QString::fromLatin1( "MarcusBainsShowSeconds" ) );
00202   mAgendaViewUsesResourceColorItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Agenda View Uses Resource Color" ), mAgendaViewUsesResourceColor, true );
00203   mAgendaViewUsesResourceColorItem->setLabel( i18n("Agenda view uses resource colors") );
00204   mAgendaViewUsesResourceColorItem->setWhatsThis( i18n("Check this box to make the agenda view use the resource colors of an item.") );
00205   addItem( mAgendaViewUsesResourceColorItem, QString::fromLatin1( "AgendaViewUsesResourceColor" ) );
00206   mDayBeginsItem = new KConfigSkeleton::ItemDateTime( currentGroup(), QString::fromLatin1( "DayBegins" ), mDayBegins, QDateTime(QDate(), QTime(7,0)) );
00207   mDayBeginsItem->setLabel( i18n("Day begins at") );
00208   mDayBeginsItem->setWhatsThis( i18n("Enter the start time for events here. This time should be the earliest time that you use for events, as it will be displayed at the top.") );
00209   addItem( mDayBeginsItem, QString::fromLatin1( "DayBegins" ) );
00210   mWorkingHoursStartItem = new KConfigSkeleton::ItemDateTime( currentGroup(), QString::fromLatin1( "WorkingHoursStart" ), mWorkingHoursStart, QDateTime(QDate(), QTime(8,0)) );
00211   mWorkingHoursStartItem->setLabel( i18n("Daily starting hour") );
00212   mWorkingHoursStartItem->setWhatsThis( i18n("Enter the start time for the working hours here. The working hours will be marked with color by KOrganizer.") );
00213   addItem( mWorkingHoursStartItem, QString::fromLatin1( "WorkingHoursStart" ) );
00214   mWorkingHoursEndItem = new KConfigSkeleton::ItemDateTime( currentGroup(), QString::fromLatin1( "WorkingHoursEnd" ), mWorkingHoursEnd, QDateTime(QDate(), QTime(17,0)) );
00215   mWorkingHoursEndItem->setLabel( i18n("Daily ending hour") );
00216   mWorkingHoursEndItem->setWhatsThis( i18n("Enter the ending time for the working hours here. The working hours will be marked with color by KOrganizer.") );
00217   addItem( mWorkingHoursEndItem, QString::fromLatin1( "WorkingHoursEnd" ) );
00218   mWorkWeekMaskItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "Work Week Mask" ), mWorkWeekMask, 31 );
00219   mWorkWeekMaskItem->setLabel( i18n("Work Week Mask") );
00220   addItem( mWorkWeekMaskItem, QString::fromLatin1( "WorkWeekMask" ) );
00221   mExcludeHolidaysItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Exclude Holidays" ), mExcludeHolidays, true );
00222   mExcludeHolidaysItem->setLabel( i18n("Exclude holidays") );
00223   mExcludeHolidaysItem->setWhatsThis( i18n("Check this box to prevent KOrganizer from marking the working hours on holidays.") );
00224   addItem( mExcludeHolidaysItem, QString::fromLatin1( "ExcludeHolidays" ) );
00225   mMonthViewUsesCategoryColorItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Month View Uses Category Color" ), mMonthViewUsesCategoryColor, true );
00226   mMonthViewUsesCategoryColorItem->setLabel( i18n("Month view uses category colors") );
00227   mMonthViewUsesCategoryColorItem->setWhatsThis( i18n("Check this box to make the month view use the category colors of an item.") );
00228   addItem( mMonthViewUsesCategoryColorItem, QString::fromLatin1( "MonthViewUsesCategoryColor" ) );
00229   mMonthViewUsesResourceColorItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Month View Uses Resource Color" ), mMonthViewUsesResourceColor, true );
00230   mMonthViewUsesResourceColorItem->setLabel( i18n("Month view uses resource colors") );
00231   mMonthViewUsesResourceColorItem->setWhatsThis( i18n("Check this box to make the month view use the resource colors of an item.") );
00232   addItem( mMonthViewUsesResourceColorItem, QString::fromLatin1( "MonthViewUsesResourceColor" ) );
00233   mFullViewMonthItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Full View Month" ), mFullViewMonth, false );
00234   mFullViewMonthItem->setLabel( i18n("Month view uses full window") );
00235   mFullViewMonthItem->setWhatsThis( i18n("Check this box to use the full KOrganizer window when displaying the month view. If this box is checked, you will gain some space for the monthly view, but other widgets, such as the date navigator, the item details and the resources list, will not be displayed.") );
00236   addItem( mFullViewMonthItem, QString::fromLatin1( "FullViewMonth" ) );
00237   mFullViewTodoItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Full View Todo" ), mFullViewTodo, true );
00238   mFullViewTodoItem->setLabel( i18n("To-do list view uses full window") );
00239   mFullViewTodoItem->setWhatsThis( i18n("Check this box to use the full KOrganizer window when displaying the to-do list view. If this box is checked, you will gain some space for the to-do list view, but other widgets, such as the date navigator, the to-do details and the resources list, will not be displayed.") );
00240   addItem( mFullViewTodoItem, QString::fromLatin1( "FullViewTodo" ) );
00241   mRecordTodosInJournalsItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Record Todos In Journals" ), mRecordTodosInJournals, false );
00242   mRecordTodosInJournalsItem->setLabel( i18n("Record completed to-dos in journal entries") );
00243   mRecordTodosInJournalsItem->setWhatsThis( i18n("Check this box to record the completion of a to-do in a new entry of your journal automatically.") );
00244   addItem( mRecordTodosInJournalsItem, QString::fromLatin1( "RecordTodosInJournals" ) );
00245   mEnableQuickTodoItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Quick Todo" ), mEnableQuickTodo, true );
00246   mEnableQuickTodoItem->setLabel( i18n("Quick Todo") );
00247   addItem( mEnableQuickTodoItem, QString::fromLatin1( "EnableQuickTodo" ) );
00248   mNextXDaysItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "Next X Days" ), mNextXDays, 3 );
00249   mNextXDaysItem->setLabel( i18n("Next x days") );
00250   mNextXDaysItem->setWhatsThis( i18n("Select on this spin box the number of \"x\" days to be displayed in the next days view. To access the  the next \"x\" days view, choose the \"Next X Days\" menu item from the \"View\" menu.") );
00251   addItem( mNextXDaysItem, QString::fromLatin1( "NextXDays" ) );
00252 
00253   setCurrentGroup( QString::fromLatin1( "Layout" ) );
00254 
00255   mCompactDialogsItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "CompactDialogs" ), mCompactDialogs, false );
00256   mCompactDialogsItem->setLabel( i18n("CompactDialogs") );
00257   addItem( mCompactDialogsItem, QString::fromLatin1( "CompactDialogs" ) );
00258   mVerticalScreenItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "VerticalScreen" ), mVerticalScreen, false );
00259   mVerticalScreenItem->setLabel( i18n("VerticalScreen") );
00260   addItem( mVerticalScreenItem, QString::fromLatin1( "VerticalScreen" ) );
00261 
00262   setCurrentGroup( QString::fromLatin1( "KOrganizer Plugins" ) );
00263 
00264   QStringList defaultSelectedPlugins;
00265   defaultSelectedPlugins.append( QString::fromUtf8( "holidays" ) );
00266   defaultSelectedPlugins.append( QString::fromUtf8( "webexport" ) );
00267 
00268   mSelectedPluginsItem = new KConfigSkeleton::ItemStringList( currentGroup(), QString::fromLatin1( "SelectedPlugins" ), mSelectedPlugins, defaultSelectedPlugins );
00269   mSelectedPluginsItem->setLabel( i18n("SelectedPlugins") );
00270   addItem( mSelectedPluginsItem, QString::fromLatin1( "SelectedPlugins" ) );
00271 
00272   setCurrentGroup( QString::fromLatin1( "Editors" ) );
00273 
00274   mEventTemplatesItem = new KConfigSkeleton::ItemStringList( currentGroup(), QString::fromLatin1( "EventTemplates" ), mEventTemplates );
00275   mEventTemplatesItem->setLabel( i18n("EventTemplates") );
00276   addItem( mEventTemplatesItem, QString::fromLatin1( "EventTemplates" ) );
00277   mTodoTemplatesItem = new KConfigSkeleton::ItemStringList( currentGroup(), QString::fromLatin1( "TodoTemplates" ), mTodoTemplates );
00278   mTodoTemplatesItem->setLabel( i18n("TodoTemplates") );
00279   addItem( mTodoTemplatesItem, QString::fromLatin1( "TodoTemplates" ) );
00280   mJournalTemplatesItem = new KConfigSkeleton::ItemStringList( currentGroup(), QString::fromLatin1( "JournalTemplates" ), mJournalTemplates );
00281   mJournalTemplatesItem->setLabel( i18n("JournalTemplates") );
00282   addItem( mJournalTemplatesItem, QString::fromLatin1( "JournalTemplates" ) );
00283   mActiveDesignerFieldsItem = new KConfigSkeleton::ItemStringList( currentGroup(), QString::fromLatin1( "ActiveDesignerFields" ), mActiveDesignerFields );
00284   mActiveDesignerFieldsItem->setLabel( i18n("ActiveDesignerFields") );
00285   addItem( mActiveDesignerFieldsItem, QString::fromLatin1( "ActiveDesignerFields" ) );
00286 
00287   setCurrentGroup( QString::fromLatin1( "Group Scheduling" ) );
00288 
00289   QValueList<KConfigSkeleton::ItemEnum::Choice> valuesIMIPScheduler;
00290   {
00291     KConfigSkeleton::ItemEnum::Choice choice;
00292     choice.name = QString::fromLatin1( "IMIPDummy" );
00293     valuesIMIPScheduler.append( choice );
00294   }
00295   {
00296     KConfigSkeleton::ItemEnum::Choice choice;
00297     choice.name = QString::fromLatin1( "IMIPKMail" );
00298     valuesIMIPScheduler.append( choice );
00299   }
00300   mIMIPSchedulerItem = new KConfigSkeleton::ItemEnum( currentGroup(), QString::fromLatin1( "IMIPScheduler" ), mIMIPScheduler, valuesIMIPScheduler, IMIPKMail );
00301   mIMIPSchedulerItem->setLabel( i18n("IMIPScheduler") );
00302   addItem( mIMIPSchedulerItem, QString::fromLatin1( "IMIPScheduler" ) );
00303   mUseGroupwareCommunicationItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Use Groupware Communication" ), mUseGroupwareCommunication, true );
00304   mUseGroupwareCommunicationItem->setLabel( i18n("Use Groupware communication") );
00305   mUseGroupwareCommunicationItem->setWhatsThis( i18n("Check this box to enable automatic generation of mails when creating, updating or deleting events (or to-dos) involving other attendees. You should check this box if you want to use the groupware functionality (e.g. Configuring Kontact as a KDE Kolab client).") );
00306   addItem( mUseGroupwareCommunicationItem, QString::fromLatin1( "UseGroupwareCommunication" ) );
00307   mAdditionalMailsItem = new KConfigSkeleton::ItemStringList( currentGroup(), QString::fromLatin1( "AdditionalMails" ), mAdditionalMails );
00308   mAdditionalMailsItem->setLabel( i18n("AdditionalMails") );
00309   addItem( mAdditionalMailsItem, QString::fromLatin1( "AdditionalMails" ) );
00310 
00311   setCurrentGroup( QString::fromLatin1( "Colors" ) );
00312 
00313   mHolidayColorItem = new KConfigSkeleton::ItemColor( currentGroup(), QString::fromLatin1( "Holiday Color" ), mHolidayColor, QColor( 255, 100, 100 ) );
00314   mHolidayColorItem->setLabel( i18n("Holiday color") );
00315   mHolidayColorItem->setWhatsThis( i18n("Select the holiday color here. The holiday color will be used for the holiday name in the month view and the holiday number in the date navigator.") );
00316   addItem( mHolidayColorItem, QString::fromLatin1( "HolidayColor" ) );
00317   mHighlightColorItem = new KConfigSkeleton::ItemColor( currentGroup(), QString::fromLatin1( "Highlight Color" ), mHighlightColor, QColor( 100, 100, 255 ) );
00318   mHighlightColorItem->setLabel( i18n("Highlight color") );
00319   mHighlightColorItem->setWhatsThis( i18n("Select the highlight color here. The highlight color will be used for marking the currently selected area in your agenda and in the date navigator.") );
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   mAgendaBgColorItem->setWhatsThis( i18n("Select the agenda view background color here.") );
00324   addItem( mAgendaBgColorItem, QString::fromLatin1( "AgendaBgColor" ) );
00325   mWorkingHoursColorItem = new KConfigSkeleton::ItemColor( currentGroup(), QString::fromLatin1( "WorkingHoursColor" ), mWorkingHoursColor, QColor( 225, 225, 255 ) );
00326   mWorkingHoursColorItem->setLabel( i18n("Working hours color") );
00327   mWorkingHoursColorItem->setWhatsThis( i18n("Select the working hours color for the agenda view here.") );
00328   addItem( mWorkingHoursColorItem, QString::fromLatin1( "WorkingHoursColor" ) );
00329   mTodoDueTodayColorItem = new KConfigSkeleton::ItemColor( currentGroup(), QString::fromLatin1( "Todo due today Color" ), mTodoDueTodayColor, QColor( 255, 200, 50 ) );
00330   mTodoDueTodayColorItem->setLabel( i18n("To-do due today color") );
00331   mTodoDueTodayColorItem->setWhatsThis( i18n("Select the to-do due today color here.") );
00332   addItem( mTodoDueTodayColorItem, QString::fromLatin1( "TodoDueTodayColor" ) );
00333   mTodoOverdueColorItem = new KConfigSkeleton::ItemColor( currentGroup(), QString::fromLatin1( "Todo overdue Color" ), mTodoOverdueColor, QColor( 255, 100, 100 ) );
00334   mTodoOverdueColorItem->setLabel( i18n("To-do overdue color") );
00335   mTodoOverdueColorItem->setWhatsThis( i18n("Select the to-do overdue color here.") );
00336   addItem( mTodoOverdueColorItem, QString::fromLatin1( "TodoOverdueColor" ) );
00337   mEventColorItem = new KConfigSkeleton::ItemColor( currentGroup(), QString::fromLatin1( "EventColor" ), mEventColor, QColor( 151, 235, 121 ) );
00338   mEventColorItem->setLabel( i18n("Default event color") );
00339   mEventColorItem->setWhatsThis( i18n("Select the default event color here. The default event color will be used for events categories in your agenda. Note that you can specify a separate color for each event category below.") );
00340   addItem( mEventColorItem, QString::fromLatin1( "EventColor" ) );
00341 
00342   setCurrentGroup( QString::fromLatin1( "Fonts" ) );
00343 
00344   mTimeBarFontItem = new KConfigSkeleton::ItemFont( currentGroup(), QString::fromLatin1( "TimeBar Font" ), mTimeBarFont );
00345   mTimeBarFontItem->setLabel( i18n("Time bar") );
00346   mTimeBarFontItem->setWhatsThis( i18n("Press this button to configure the time bar font. The time bar is the widget that shows the hours in the agenda view. This button will open the \"Select Font\" dialog, allowing you to choose the hour font for the time bar.") );
00347   addItem( mTimeBarFontItem, QString::fromLatin1( "TimeBarFont" ) );
00348   mAgendaViewFontItem = new KConfigSkeleton::ItemFont( currentGroup(), QString::fromLatin1( "AgendaView Font" ), mAgendaViewFont );
00349   mAgendaViewFontItem->setLabel( i18n("Agenda view") );
00350   mAgendaViewFontItem->setWhatsThis( i18n("Press this button to configure the agenda view font. This button will open the \"Select Font\" dialog, allowing you to choose the font for the events in the agenda view.") );
00351   addItem( mAgendaViewFontItem, QString::fromLatin1( "AgendaViewFont" ) );
00352   mMarcusBainsFontItem = new KConfigSkeleton::ItemFont( currentGroup(), QString::fromLatin1( "MarcusBains Font" ), mMarcusBainsFont );
00353   mMarcusBainsFontItem->setLabel( i18n("Current-time line") );
00354   mMarcusBainsFontItem->setWhatsThis( i18n("Press this button to configure the current-time line font. This button will open the \"Select Font\" dialog, allowing you to choose the font for the current-time line in the agenda view.") );
00355   addItem( mMarcusBainsFontItem, QString::fromLatin1( "MarcusBainsFont" ) );
00356   mMonthViewFontItem = new KConfigSkeleton::ItemFont( currentGroup(), QString::fromLatin1( "MonthView Font" ), mMonthViewFont );
00357   mMonthViewFontItem->setLabel( i18n("Month view") );
00358   mMonthViewFontItem->setWhatsThis( i18n("Press this button to configure the month view font. This button will open the \"Select Font\" dialog, allowing you to choose the font for the items in the month view.") );
00359   addItem( mMonthViewFontItem, QString::fromLatin1( "MonthViewFont" ) );
00360 
00361   setCurrentGroup( QString::fromLatin1( "FreeBusy" ) );
00362 
00363   mFreeBusyPublishAutoItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "FreeBusyPublishAuto" ), mFreeBusyPublishAuto, false );
00364   mFreeBusyPublishAutoItem->setLabel( i18n("FreeBusyPublishAuto") );
00365   addItem( mFreeBusyPublishAutoItem, QString::fromLatin1( "FreeBusyPublishAuto" ) );
00366   mFreeBusyPublishDelayItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "FreeBusyPublishDelay" ), mFreeBusyPublishDelay, 5 );
00367   mFreeBusyPublishDelayItem->setLabel( i18n("FreeBusyPublishDelay") );
00368   addItem( mFreeBusyPublishDelayItem, QString::fromLatin1( "FreeBusyPublishDelay" ) );
00369   mFreeBusyPublishDaysItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "FreeBusyPublishDays" ), mFreeBusyPublishDays, 60 );
00370   mFreeBusyPublishDaysItem->setLabel( i18n("FreeBusyPublishDays") );
00371   addItem( mFreeBusyPublishDaysItem, QString::fromLatin1( "FreeBusyPublishDays" ) );
00372   mFreeBusyPublishUrlItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "FreeBusyPublishUrl" ), mFreeBusyPublishUrl );
00373   mFreeBusyPublishUrlItem->setLabel( i18n("Free/Busy Publish URL") );
00374   mFreeBusyPublishUrlItem->setWhatsThis( i18n("URL for publishing free/busy information") );
00375   addItem( mFreeBusyPublishUrlItem, QString::fromLatin1( "FreeBusyPublishUrl" ) );
00376   mFreeBusyPublishUserItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "FreeBusyPublishUser" ), mFreeBusyPublishUser );
00377   mFreeBusyPublishUserItem->setLabel( i18n("Free/Busy Publish Username") );
00378   mFreeBusyPublishUserItem->setWhatsThis( i18n("Username for publishing free/busy information") );
00379   addItem( mFreeBusyPublishUserItem, QString::fromLatin1( "FreeBusyPublishUser" ) );
00380   mFreeBusyPublishPasswordItem = new KConfigSkeleton::ItemPassword( currentGroup(), QString::fromLatin1( "FreeBusyPublishPassword" ), mFreeBusyPublishPassword );
00381   mFreeBusyPublishPasswordItem->setLabel( i18n("Free/Busy Publish Password") );
00382   mFreeBusyPublishPasswordItem->setWhatsThis( i18n("Password for publishing free/busy information") );
00383   addItem( mFreeBusyPublishPasswordItem, QString::fromLatin1( "FreeBusyPublishPassword" ) );
00384   mFreeBusyPublishSavePasswordItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "FreeBusyPublishSavePassword" ), mFreeBusyPublishSavePassword, false );
00385   mFreeBusyPublishSavePasswordItem->setLabel( i18n("FreeBusyPublishSavePassword") );
00386   addItem( mFreeBusyPublishSavePasswordItem, QString::fromLatin1( "FreeBusyPublishSavePassword" ) );
00387   mFreeBusyRetrieveAutoItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "FreeBusyRetrieveAuto" ), mFreeBusyRetrieveAuto, false );
00388   mFreeBusyRetrieveAutoItem->setLabel( i18n("Enable Automatic Free/Busy Retrieval") );
00389   addItem( mFreeBusyRetrieveAutoItem, QString::fromLatin1( "FreeBusyRetrieveAuto" ) );
00390   mFreeBusyFullDomainRetrievalItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "FreeBusyFullDomainRetrieval" ), mFreeBusyFullDomainRetrieval, false );
00391   mFreeBusyFullDomainRetrievalItem->setLabel( i18n("Use full email address for retrieval") );
00392   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.") );
00393   addItem( mFreeBusyFullDomainRetrievalItem, QString::fromLatin1( "FreeBusyFullDomainRetrieval" ) );
00394   mFreeBusyRetrieveUrlItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "FreeBusyRetrieveUrl" ), mFreeBusyRetrieveUrl );
00395   mFreeBusyRetrieveUrlItem->setLabel( i18n("Free/Busy Retrieval URL") );
00396   addItem( mFreeBusyRetrieveUrlItem, QString::fromLatin1( "FreeBusyRetrieveUrl" ) );
00397   mFreeBusyRetrieveUserItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "FreeBusyRetrieveUser" ), mFreeBusyRetrieveUser );
00398   mFreeBusyRetrieveUserItem->setLabel( i18n("Free/Busy Retrieval Username") );
00399   addItem( mFreeBusyRetrieveUserItem, QString::fromLatin1( "FreeBusyRetrieveUser" ) );
00400   mFreeBusyRetrievePasswordItem = new KConfigSkeleton::ItemPassword( currentGroup(), QString::fromLatin1( "FreeBusyRetrievePassword" ), mFreeBusyRetrievePassword );
00401   mFreeBusyRetrievePasswordItem->setLabel( i18n("Free/Busy Retrieval Password") );
00402   mFreeBusyRetrievePasswordItem->setWhatsThis( i18n("Password for retrieving free/busy information") );
00403   addItem( mFreeBusyRetrievePasswordItem, QString::fromLatin1( "FreeBusyRetrievePassword" ) );
00404   mFreeBusyRetrieveSavePasswordItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "FreeBusyRetrieveSavePassword" ), mFreeBusyRetrieveSavePassword, false );
00405   mFreeBusyRetrieveSavePasswordItem->setLabel( i18n("FreeBusyRetrieveSavePassword") );
00406   addItem( mFreeBusyRetrieveSavePasswordItem, QString::fromLatin1( "FreeBusyRetrieveSavePassword" ) );
00407 }
00408 
00409 KOPrefsBase::~KOPrefsBase()
00410 {
00411 }
00412 
KDE Home | KDE Accessibility Home | Description of Access Keys