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   mArchiveOwnFoldersOnlyItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "ArchiveOwnFoldersOnly" ), mArchiveOwnFoldersOnly, true );
00080   mArchiveOwnFoldersOnlyItem->setLabel( i18n("ArchiveOwnFoldersOnly") );
00081   addItem( mArchiveOwnFoldersOnlyItem, QString::fromLatin1( "ArchiveOwnFoldersOnly" ) );
00082   mHtmlWithSaveItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Html With Save" ), mHtmlWithSave, false );
00083   mHtmlWithSaveItem->setLabel( i18n("Export to HTML with every save") );
00084   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.") );
00085   addItem( mHtmlWithSaveItem, QString::fromLatin1( "HtmlWithSave" ) );
00086   QValueList<KConfigSkeleton::ItemEnum::Choice> valuesDestination;
00087   {
00088     KConfigSkeleton::ItemEnum::Choice choice;
00089     choice.name = QString::fromLatin1( "standardDestination" );
00090     choice.label = i18n("Be added to the standard resource");
00091     choice.whatsThis = i18n("Select this option to always record new events, to-dos and journal entries using the standard resource.");
00092     valuesDestination.append( choice );
00093   }
00094   {
00095     KConfigSkeleton::ItemEnum::Choice choice;
00096     choice.name = QString::fromLatin1( "askDestination" );
00097     choice.label = i18n("Be asked which resource to use");
00098     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. ");
00099     valuesDestination.append( choice );
00100   }
00101   mDestinationItem = new KConfigSkeleton::ItemEnum( currentGroup(), QString::fromLatin1( "Destination" ), mDestination, valuesDestination, askDestination );
00102   mDestinationItem->setLabel( i18n("New Events, To-dos and Journal Entries Should") );
00103   addItem( mDestinationItem, QString::fromLatin1( "Destination" ) );
00104 
00105   setCurrentGroup( QString::fromLatin1( "Personal Settings" ) );
00106 
00107   mBccItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Bcc" ), mBcc, false );
00108   mBccItem->setLabel( i18n("Send copy to owner when mailing events") );
00109   mBccItem->setWhatsThis( i18n("Check this box to get a copy of all e-mail messages that KOrganizer sends at your request to event attendees.") );
00110   addItem( mBccItem, QString::fromLatin1( "Bcc" ) );
00111   mEmailControlCenterItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Use Control Center Email" ), mEmailControlCenter, true );
00112   mEmailControlCenterItem->setLabel( i18n("Use email settings from Control Center") );
00113   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.") );
00114   addItem( mEmailControlCenterItem, QString::fromLatin1( "EmailControlCenter" ) );
00115   mUserNameItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "user_name" ), mUserName, i18n("Anonymous") );
00116   mUserNameItem->setLabel( i18n("Full &name") );
00117   mUserNameItem->setWhatsThis( i18n("Enter your full name here. This name will be displayed as \"Organizer\" in to-dos and events you create.") );
00118   addItem( mUserNameItem, QString::fromLatin1( "UserName" ) );
00119   mUserEmailItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "user_email" ), mUserEmail, i18n("nobody@nowhere") );
00120   mUserEmailItem->setLabel( i18n("E&mail address") );
00121   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.") );
00122   addItem( mUserEmailItem, QString::fromLatin1( "UserEmail" ) );
00123   QValueList<KConfigSkeleton::ItemEnum::Choice> valuesMailClient;
00124   {
00125     KConfigSkeleton::ItemEnum::Choice choice;
00126     choice.name = QString::fromLatin1( "MailClientKMail" );
00127     choice.label = i18n("KMail");
00128     choice.whatsThis = i18n("Select this option to use KMail as the mail transport. The mail transport is used for groupware functionality.");
00129     valuesMailClient.append( choice );
00130   }
00131   {
00132     KConfigSkeleton::ItemEnum::Choice choice;
00133     choice.name = QString::fromLatin1( "MailClientSendmail" );
00134     choice.label = i18n("Sendmail");
00135     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.");
00136     valuesMailClient.append( choice );
00137   }
00138   mMailClientItem = new KConfigSkeleton::ItemEnum( currentGroup(), QString::fromLatin1( "Mail Client" ), mMailClient, valuesMailClient, MailClientKMail );
00139   mMailClientItem->setLabel( i18n("Mail Client") );
00140   addItem( mMailClientItem, QString::fromLatin1( "MailClient" ) );
00141 
00142   setCurrentGroup( QString::fromLatin1( "Time & Date" ) );
00143 
00144   mTimeZoneIdItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "TimeZoneId" ), mTimeZoneId );
00145   mTimeZoneIdItem->setLabel( i18n("TimeZoneId") );
00146   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.") );
00147   addItem( mTimeZoneIdItem, QString::fromLatin1( "TimeZoneId" ) );
00148   mHolidaysItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "Holidays" ), mHolidays );
00149   mHolidaysItem->setLabel( i18n("Use holiday region:") );
00150   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.") );
00151   addItem( mHolidaysItem, QString::fromLatin1( "Holidays" ) );
00152   mStartTimeItem = new KConfigSkeleton::ItemDateTime( currentGroup(), QString::fromLatin1( "StartTime" ), mStartTime, QDateTime(QDate(), QTime(10,0)) );
00153   mStartTimeItem->setLabel( i18n("Default appointment time") );
00154   mStartTimeItem->setWhatsThis( i18n("Enter the default time for events here. The default is used if you do not supply a start time.") );
00155   addItem( mStartTimeItem, QString::fromLatin1( "StartTime" ) );
00156   mDefaultDurationItem = new KConfigSkeleton::ItemDateTime( currentGroup(), QString::fromLatin1( "DefaultDuration" ), mDefaultDuration, QDateTime(QDate(), QTime(2,0)) );
00157   mDefaultDurationItem->setLabel( i18n("Default duration of new appointment (HH:MM)") );
00158   mDefaultDurationItem->setWhatsThis( i18n("Enter default duration for events here. The default is used if you do not supply an end time.") );
00159   addItem( mDefaultDurationItem, QString::fromLatin1( "DefaultDuration" ) );
00160   mReminderTimeItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "Default Reminder Time" ), mReminderTime, 15 );
00161   mReminderTimeItem->setLabel( i18n("Default reminder time") );
00162   mReminderTimeItem->setWhatsThis( i18n("Enter the default reminder time for all newly created items. The time unit is specified in the adjacent combobox.") );
00163   addItem( mReminderTimeItem, QString::fromLatin1( "ReminderTime" ) );
00164   mReminderTimeUnitsItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "Default Reminder Time Units" ), mReminderTimeUnits, 0 );
00165   mReminderTimeUnitsItem->setLabel( i18n("Default Reminder Time Units") );
00166   mReminderTimeUnitsItem->setWhatsThis( i18n("Enter the default reminder time units for all newly created items. The time is specified in the adjacent spinbox.") );
00167   addItem( mReminderTimeUnitsItem, QString::fromLatin1( "ReminderTimeUnits" ) );
00168   mDefaultAudioFileRemindersItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Enable Default Audio File" ), mDefaultAudioFileReminders, false );
00169   mDefaultAudioFileRemindersItem->setLabel( i18n("Enable a default sound file for audio reminders") );
00170   mDefaultAudioFileRemindersItem->setWhatsThis( i18n("Check this box if you want to enable the specified file to be used as the default sound file for new reminders. You can always specify another file in the Advanced Reminder accessible from the Event or To-do editors.") );
00171   addItem( mDefaultAudioFileRemindersItem, QString::fromLatin1( "defaultAudioFileReminders" ) );
00172   mAudioFilePathItem = new KConfigSkeleton::ItemPath( currentGroup(), QString::fromLatin1( "Reminder Audio File" ), mAudioFilePath );
00173   mAudioFilePathItem->setLabel( i18n("Default audio file") );
00174   mAudioFilePathItem->setWhatsThis( i18n("Set a file to be used as the default sound file for new reminders. You can always specify another file in the Advanced Reminder accessible from the Event or To-do editors.") );
00175   addItem( mAudioFilePathItem, QString::fromLatin1( "audioFilePath" ) );
00176   mDefaultEventRemindersItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Enable Event Reminders" ), mDefaultEventReminders, false );
00177   mDefaultEventRemindersItem->setLabel( i18n("Enable reminders for new Events") );
00178   mDefaultEventRemindersItem->setWhatsThis( i18n("Check this box if you want to enable reminders for all newly created Events. You can always turn-off the reminders in the Event editor dialog.") );
00179   addItem( mDefaultEventRemindersItem, QString::fromLatin1( "defaultEventReminders" ) );
00180   mDefaultTodoRemindersItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Enable To-do Reminders" ), mDefaultTodoReminders, false );
00181   mDefaultTodoRemindersItem->setLabel( i18n("Enable reminders for new To-dos") );
00182   mDefaultTodoRemindersItem->setWhatsThis( i18n("Check this box if you want to enable reminders for all newly created To-dos. You can always turn-off the reminders in the To-do editor dialog.") );
00183   addItem( mDefaultTodoRemindersItem, QString::fromLatin1( "defaultTodoReminders" ) );
00184 
00185   setCurrentGroup( QString::fromLatin1( "Views" ) );
00186 
00187   mHourSizeItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "Hour Size" ), mHourSize, 10 );
00188   mHourSizeItem->setMinValue(4);
00189   mHourSizeItem->setMaxValue(30);
00190   mHourSizeItem->setLabel( i18n("Hour size") );
00191   mHourSizeItem->setWhatsThis( i18n("Select on this spin box the height of the hour rows in the schedule view.") );
00192   addItem( mHourSizeItem, QString::fromLatin1( "HourSize" ) );
00193   mDailyRecurItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Show Daily Recurrences" ), mDailyRecur, true );
00194   mDailyRecurItem->setLabel( i18n("Show events that recur daily in date navigator") );
00195   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.") );
00196   addItem( mDailyRecurItem, QString::fromLatin1( "DailyRecur" ) );
00197   mWeeklyRecurItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Show Weekly Recurrences" ), mWeeklyRecur, true );
00198   mWeeklyRecurItem->setLabel( i18n("Show events that recur weekly in date navigator") );
00199   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.") );
00200   addItem( mWeeklyRecurItem, QString::fromLatin1( "WeeklyRecur" ) );
00201   mWeekNumbersShowWorkItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Week Numbers Show Work Week" ), mWeekNumbersShowWork, false );
00202   mWeekNumbersShowWorkItem->setLabel( i18n("Week numbers select a work week when in work week view") );
00203   mWeekNumbersShowWorkItem->setWhatsThis( i18n("Check this box to select a work week when clicking on date navigator's week numbers or uncheck it to chose the whole week.") );
00204   addItem( mWeekNumbersShowWorkItem, QString::fromLatin1( "weekNumbersShowWork" ) );
00205   mEnableToolTipsItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Enable ToolTips" ), mEnableToolTips, true );
00206   mEnableToolTipsItem->setLabel( i18n("Enable tooltips displaying summary of events") );
00207   mEnableToolTipsItem->setWhatsThis( i18n("Check this box to display an event summary tooltip when hovering the mouse over an event.") );
00208   addItem( mEnableToolTipsItem, QString::fromLatin1( "EnableToolTips" ) );
00209   mShowAllDayTodoItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "ShowAllDayTodo" ), mShowAllDayTodo, true );
00210   mShowAllDayTodoItem->setLabel( i18n("Show to-dos in day, week and month views") );
00211   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.") );
00212   addItem( mShowAllDayTodoItem, QString::fromLatin1( "ShowAllDayTodo" ) );
00213   mEnableMonthScrollItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Enable Month-View Scrollbars" ), mEnableMonthScroll, false );
00214   mEnableMonthScrollItem->setLabel( i18n("Enable scrollbars in month view cells") );
00215   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.") );
00216   addItem( mEnableMonthScrollItem, QString::fromLatin1( "EnableMonthScroll" ) );
00217   mSelectionStartsEditorItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "SelectionStartsEditor" ), mSelectionStartsEditor, false );
00218   mSelectionStartsEditorItem->setLabel( i18n("Time range selection in agenda view starts event editor") );
00219   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.") );
00220   addItem( mSelectionStartsEditorItem, QString::fromLatin1( "SelectionStartsEditor" ) );
00221   mMarcusBainsEnabledItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Show current-time line" ), mMarcusBainsEnabled, true );
00222   mMarcusBainsEnabledItem->setLabel( i18n("Show current-time (Marcus Bains) line") );
00223   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).") );
00224   addItem( mMarcusBainsEnabledItem, QString::fromLatin1( "MarcusBainsEnabled" ) );
00225   mMarcusBainsShowSecondsItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Current-time line shows seconds" ), mMarcusBainsShowSeconds, true );
00226   mMarcusBainsShowSecondsItem->setLabel( i18n("Show seconds on current-time line") );
00227   mMarcusBainsShowSecondsItem->setWhatsThis( i18n("Check this box if you want to show seconds on the current-time line.") );
00228   addItem( mMarcusBainsShowSecondsItem, QString::fromLatin1( "MarcusBainsShowSeconds" ) );
00229   QValueList<KConfigSkeleton::ItemEnum::Choice> valuesAgendaViewColors;
00230   {
00231     KConfigSkeleton::ItemEnum::Choice choice;
00232     choice.name = QString::fromLatin1( "CategoryInsideResourceOutside" );
00233     choice.label = i18n("Category inside, calendar outside");
00234     valuesAgendaViewColors.append( choice );
00235   }
00236   {
00237     KConfigSkeleton::ItemEnum::Choice choice;
00238     choice.name = QString::fromLatin1( "ResourceInsideCategoryOutside" );
00239     choice.label = i18n("Calendar inside, category outside");
00240     valuesAgendaViewColors.append( choice );
00241   }
00242   {
00243     KConfigSkeleton::ItemEnum::Choice choice;
00244     choice.name = QString::fromLatin1( "CategoryOnly" );
00245     choice.label = i18n("Only category");
00246     valuesAgendaViewColors.append( choice );
00247   }
00248   {
00249     KConfigSkeleton::ItemEnum::Choice choice;
00250     choice.name = QString::fromLatin1( "ResourceOnly" );
00251     choice.label = i18n("Only calendar");
00252     valuesAgendaViewColors.append( choice );
00253   }
00254   mAgendaViewColorsItem = new KConfigSkeleton::ItemEnum( currentGroup(), QString::fromLatin1( "AgendaViewColors" ), mAgendaViewColors, valuesAgendaViewColors, ResourceInsideCategoryOutside );
00255   mAgendaViewColorsItem->setLabel( i18n("Colors used in agenda view") );
00256   mAgendaViewColorsItem->setWhatsThis( i18n("Choose the colors of the agenda view items.") );
00257   addItem( mAgendaViewColorsItem, QString::fromLatin1( "AgendaViewColors" ) );
00258   QValueList<KConfigSkeleton::ItemEnum::Choice> valuesAgendaViewCalendarDisplay;
00259   {
00260     KConfigSkeleton::ItemEnum::Choice choice;
00261     choice.name = QString::fromLatin1( "CalendarsMerged" );
00262     choice.label = i18n("Merge all calendars into one view");
00263     valuesAgendaViewCalendarDisplay.append( choice );
00264   }
00265   {
00266     KConfigSkeleton::ItemEnum::Choice choice;
00267     choice.name = QString::fromLatin1( "CalendarsSideBySide" );
00268     choice.label = i18n("Show calendars side by side");
00269     valuesAgendaViewCalendarDisplay.append( choice );
00270   }
00271   {
00272     KConfigSkeleton::ItemEnum::Choice choice;
00273     choice.name = QString::fromLatin1( "AllCalendarViews" );
00274     choice.label = i18n("Switch between views with tabs");
00275     valuesAgendaViewCalendarDisplay.append( choice );
00276   }
00277   mAgendaViewCalendarDisplayItem = new KConfigSkeleton::ItemEnum( currentGroup(), QString::fromLatin1( "Agenda View Calendar Display" ), mAgendaViewCalendarDisplay, valuesAgendaViewCalendarDisplay, CalendarsMerged );
00278   mAgendaViewCalendarDisplayItem->setLabel( i18n("Agenda View Calendar Display") );
00279   addItem( mAgendaViewCalendarDisplayItem, QString::fromLatin1( "AgendaViewCalendarDisplay" ) );
00280   mColorBusyDaysEnabledItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "ColorBusyDaysEnabled" ), mColorBusyDaysEnabled, false );
00281   mColorBusyDaysEnabledItem->setLabel( i18n("Color busy days with a different background color") );
00282   mColorBusyDaysEnabledItem->setWhatsThis( i18n("Check this box if you want agenda's background to be filled with a different color on days which have at least one all day event marked as busy. Also, you can change the background color used for this option on the Colors configuration page. Look for the \"Agenda/Month view background busy color\" setting.") );
00283   addItem( mColorBusyDaysEnabledItem, QString::fromLatin1( "ColorBusyDaysEnabled" ) );
00284   mDayBeginsItem = new KConfigSkeleton::ItemDateTime( currentGroup(), QString::fromLatin1( "DayBegins" ), mDayBegins, QDateTime(QDate(), QTime(7,0)) );
00285   mDayBeginsItem->setLabel( i18n("Day begins at") );
00286   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.") );
00287   addItem( mDayBeginsItem, QString::fromLatin1( "DayBegins" ) );
00288   mWorkingHoursStartItem = new KConfigSkeleton::ItemDateTime( currentGroup(), QString::fromLatin1( "WorkingHoursStart" ), mWorkingHoursStart, QDateTime(QDate(), QTime(8,0)) );
00289   mWorkingHoursStartItem->setLabel( i18n("Daily starting hour") );
00290   mWorkingHoursStartItem->setWhatsThis( i18n("Enter the start time for the working hours here. The working hours will be marked with color by KOrganizer.") );
00291   addItem( mWorkingHoursStartItem, QString::fromLatin1( "WorkingHoursStart" ) );
00292   mWorkingHoursEndItem = new KConfigSkeleton::ItemDateTime( currentGroup(), QString::fromLatin1( "WorkingHoursEnd" ), mWorkingHoursEnd, QDateTime(QDate(), QTime(17,0)) );
00293   mWorkingHoursEndItem->setLabel( i18n("Daily ending hour") );
00294   mWorkingHoursEndItem->setWhatsThis( i18n("Enter the ending time for the working hours here. The working hours will be marked with color by KOrganizer.") );
00295   addItem( mWorkingHoursEndItem, QString::fromLatin1( "WorkingHoursEnd" ) );
00296   mWorkWeekMaskItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "Work Week Mask" ), mWorkWeekMask, 31 );
00297   mWorkWeekMaskItem->setLabel( i18n("Work Week Mask") );
00298   addItem( mWorkWeekMaskItem, QString::fromLatin1( "WorkWeekMask" ) );
00299   mExcludeHolidaysItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Exclude Holidays" ), mExcludeHolidays, true );
00300   mExcludeHolidaysItem->setLabel( i18n("Exclude holidays") );
00301   mExcludeHolidaysItem->setWhatsThis( i18n("Check this box to prevent KOrganizer from marking the working hours on holidays.") );
00302   addItem( mExcludeHolidaysItem, QString::fromLatin1( "ExcludeHolidays" ) );
00303   mColorMonthBusyDaysEnabledItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "ColorMonthBusyDaysEnabled" ), mColorMonthBusyDaysEnabled, false );
00304   mColorMonthBusyDaysEnabledItem->setLabel( i18n("Color busy days with a different background color") );
00305   mColorMonthBusyDaysEnabledItem->setWhatsThis( i18n("Check this box if you want month view's background to be filled with a different color on days which have at least one all day event marked as busy. Also, you can change the background color used for this option on the Colors configuration page. Look for the \"Agenda/Month view background busy color\" setting.") );
00306   addItem( mColorMonthBusyDaysEnabledItem, QString::fromLatin1( "ColorMonthBusyDaysEnabled" ) );
00307   QValueList<KConfigSkeleton::ItemEnum::Choice> valuesMonthItemColors;
00308   {
00309     KConfigSkeleton::ItemEnum::Choice choice;
00310     choice.name = QString::fromLatin1( "MonthItemCategoryInsideResourceOutside" );
00311     choice.label = i18n("Category inside, calendar outside");
00312     valuesMonthItemColors.append( choice );
00313   }
00314   {
00315     KConfigSkeleton::ItemEnum::Choice choice;
00316     choice.name = QString::fromLatin1( "MonthItemResourceInsideCategoryOutside" );
00317     choice.label = i18n("Calendar inside, category outside");
00318     valuesMonthItemColors.append( choice );
00319   }
00320   {
00321     KConfigSkeleton::ItemEnum::Choice choice;
00322     choice.name = QString::fromLatin1( "MonthItemCategoryOnly" );
00323     choice.label = i18n("Only category");
00324     valuesMonthItemColors.append( choice );
00325   }
00326   {
00327     KConfigSkeleton::ItemEnum::Choice choice;
00328     choice.name = QString::fromLatin1( "MonthItemResourceOnly" );
00329     choice.label = i18n("Only calendar");
00330     valuesMonthItemColors.append( choice );
00331   }
00332   mMonthItemColorsItem = new KConfigSkeleton::ItemEnum( currentGroup(), QString::fromLatin1( "MonthItemColors" ), mMonthItemColors, valuesMonthItemColors, MonthItemResourceInsideCategoryOutside );
00333   mMonthItemColorsItem->setLabel( i18n("Colors used in month view") );
00334   mMonthItemColorsItem->setWhatsThis( i18n("Choose the colors of the month view items.") );
00335   addItem( mMonthItemColorsItem, QString::fromLatin1( "MonthItemColors" ) );
00336   mFullViewMonthItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Full View Month" ), mFullViewMonth, false );
00337   mFullViewMonthItem->setLabel( i18n("Month view uses full window") );
00338   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.") );
00339   addItem( mFullViewMonthItem, QString::fromLatin1( "FullViewMonth" ) );
00340   mFullViewTodoItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Full View Todo" ), mFullViewTodo, true );
00341   mFullViewTodoItem->setLabel( i18n("To-do list view uses full window") );
00342   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.") );
00343   addItem( mFullViewTodoItem, QString::fromLatin1( "FullViewTodo" ) );
00344   mRecordTodosInJournalsItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Record Todos In Journals" ), mRecordTodosInJournals, false );
00345   mRecordTodosInJournalsItem->setLabel( i18n("Record completed to-dos in journal entries") );
00346   mRecordTodosInJournalsItem->setWhatsThis( i18n("Check this box to record the completion of a to-do in a new entry of your journal automatically.") );
00347   addItem( mRecordTodosInJournalsItem, QString::fromLatin1( "RecordTodosInJournals" ) );
00348   mEnableQuickTodoItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Quick Todo" ), mEnableQuickTodo, true );
00349   mEnableQuickTodoItem->setLabel( i18n("Quick Todo") );
00350   addItem( mEnableQuickTodoItem, QString::fromLatin1( "EnableQuickTodo" ) );
00351   mNextXDaysItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "Next X Days" ), mNextXDays, 3 );
00352   mNextXDaysItem->setLabel( i18n("Next x days") );
00353   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.") );
00354   addItem( mNextXDaysItem, QString::fromLatin1( "NextXDays" ) );
00355 
00356   setCurrentGroup( QString::fromLatin1( "Layout" ) );
00357 
00358   mCompactDialogsItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "CompactDialogs" ), mCompactDialogs, false );
00359   mCompactDialogsItem->setLabel( i18n("CompactDialogs") );
00360   addItem( mCompactDialogsItem, QString::fromLatin1( "CompactDialogs" ) );
00361   mVerticalScreenItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "VerticalScreen" ), mVerticalScreen, false );
00362   mVerticalScreenItem->setLabel( i18n("VerticalScreen") );
00363   addItem( mVerticalScreenItem, QString::fromLatin1( "VerticalScreen" ) );
00364 
00365   setCurrentGroup( QString::fromLatin1( "KOrganizer Plugins" ) );
00366 
00367   QStringList defaultSelectedPlugins;
00368   defaultSelectedPlugins.append( QString::fromUtf8( "holidays" ) );
00369   defaultSelectedPlugins.append( QString::fromUtf8( "webexport" ) );
00370 
00371   mSelectedPluginsItem = new KConfigSkeleton::ItemStringList( currentGroup(), QString::fromLatin1( "SelectedPlugins" ), mSelectedPlugins, defaultSelectedPlugins );
00372   mSelectedPluginsItem->setLabel( i18n("SelectedPlugins") );
00373   addItem( mSelectedPluginsItem, QString::fromLatin1( "SelectedPlugins" ) );
00374 
00375   setCurrentGroup( QString::fromLatin1( "Editors" ) );
00376 
00377   mEventTemplatesItem = new KConfigSkeleton::ItemStringList( currentGroup(), QString::fromLatin1( "EventTemplates" ), mEventTemplates );
00378   mEventTemplatesItem->setLabel( i18n("EventTemplates") );
00379   addItem( mEventTemplatesItem, QString::fromLatin1( "EventTemplates" ) );
00380   mTodoTemplatesItem = new KConfigSkeleton::ItemStringList( currentGroup(), QString::fromLatin1( "TodoTemplates" ), mTodoTemplates );
00381   mTodoTemplatesItem->setLabel( i18n("TodoTemplates") );
00382   addItem( mTodoTemplatesItem, QString::fromLatin1( "TodoTemplates" ) );
00383   mJournalTemplatesItem = new KConfigSkeleton::ItemStringList( currentGroup(), QString::fromLatin1( "JournalTemplates" ), mJournalTemplates );
00384   mJournalTemplatesItem->setLabel( i18n("JournalTemplates") );
00385   addItem( mJournalTemplatesItem, QString::fromLatin1( "JournalTemplates" ) );
00386   mActiveDesignerFieldsItem = new KConfigSkeleton::ItemStringList( currentGroup(), QString::fromLatin1( "ActiveDesignerFields" ), mActiveDesignerFields );
00387   mActiveDesignerFieldsItem->setLabel( i18n("ActiveDesignerFields") );
00388   addItem( mActiveDesignerFieldsItem, QString::fromLatin1( "ActiveDesignerFields" ) );
00389 
00390   setCurrentGroup( QString::fromLatin1( "Group Scheduling" ) );
00391 
00392   QValueList<KConfigSkeleton::ItemEnum::Choice> valuesIMIPScheduler;
00393   {
00394     KConfigSkeleton::ItemEnum::Choice choice;
00395     choice.name = QString::fromLatin1( "IMIPDummy" );
00396     valuesIMIPScheduler.append( choice );
00397   }
00398   {
00399     KConfigSkeleton::ItemEnum::Choice choice;
00400     choice.name = QString::fromLatin1( "IMIPKMail" );
00401     valuesIMIPScheduler.append( choice );
00402   }
00403   mIMIPSchedulerItem = new KConfigSkeleton::ItemEnum( currentGroup(), QString::fromLatin1( "IMIPScheduler" ), mIMIPScheduler, valuesIMIPScheduler, IMIPKMail );
00404   mIMIPSchedulerItem->setLabel( i18n("IMIPScheduler") );
00405   addItem( mIMIPSchedulerItem, QString::fromLatin1( "IMIPScheduler" ) );
00406   mUseGroupwareCommunicationItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "Use Groupware Communication" ), mUseGroupwareCommunication, true );
00407   mUseGroupwareCommunicationItem->setLabel( i18n("Use Groupware communication") );
00408   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).") );
00409   addItem( mUseGroupwareCommunicationItem, QString::fromLatin1( "UseGroupwareCommunication" ) );
00410   mAdditionalMailsItem = new KConfigSkeleton::ItemStringList( currentGroup(), QString::fromLatin1( "AdditionalMails" ), mAdditionalMails );
00411   mAdditionalMailsItem->setLabel( i18n("AdditionalMails") );
00412   addItem( mAdditionalMailsItem, QString::fromLatin1( "AdditionalMails" ) );
00413   mOutlookCompatCounterProposalsItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "OutlookCompatCounterProposals" ), mOutlookCompatCounterProposals, false );
00414   mOutlookCompatCounterProposalsItem->setLabel( i18n("Send Outlook-like pseudo counter proposals") );
00415   addItem( mOutlookCompatCounterProposalsItem, QString::fromLatin1( "OutlookCompatCounterProposals" ) );
00416 
00417   setCurrentGroup( QString::fromLatin1( "Colors" ) );
00418 
00419   mHolidayColorItem = new KConfigSkeleton::ItemColor( currentGroup(), QString::fromLatin1( "Holiday Color" ), mHolidayColor, QColor( 255, 100, 100 ) );
00420   mHolidayColorItem->setLabel( i18n("Holiday color") );
00421   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.") );
00422   addItem( mHolidayColorItem, QString::fromLatin1( "HolidayColor" ) );
00423   mHighlightColorItem = new KConfigSkeleton::ItemColor( currentGroup(), QString::fromLatin1( "Highlight Color" ), mHighlightColor, QColor( 100, 100, 255 ) );
00424   mHighlightColorItem->setLabel( i18n("Highlight color") );
00425   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.") );
00426   addItem( mHighlightColorItem, QString::fromLatin1( "HighlightColor" ) );
00427   mAgendaBgColorItem = new KConfigSkeleton::ItemColor( currentGroup(), QString::fromLatin1( "AgendaBackgroundColor" ), mAgendaBgColor, QColor( 255, 255, 255 ) );
00428   mAgendaBgColorItem->setLabel( i18n("Agenda view background color") );
00429   mAgendaBgColorItem->setWhatsThis( i18n("Select the agenda view background color here.") );
00430   addItem( mAgendaBgColorItem, QString::fromLatin1( "AgendaBgColor" ) );
00431   mAgendaMonthBgBusyColorItem = new KConfigSkeleton::ItemColor( currentGroup(), QString::fromLatin1( "AgendaMonthBackgroundBusyColor" ), mAgendaMonthBgBusyColor, QColor( 136, 255, 219 ) );
00432   mAgendaMonthBgBusyColorItem->setLabel( i18n("Agenda/Month view background busy color") );
00433   mAgendaMonthBgBusyColorItem->setWhatsThis( i18n("When you have an all day event marked as busy, you can have a different view background color for that day. Select the color here.") );
00434   addItem( mAgendaMonthBgBusyColorItem, QString::fromLatin1( "AgendaMonthBgBusyColor" ) );
00435   mWorkingHoursColorItem = new KConfigSkeleton::ItemColor( currentGroup(), QString::fromLatin1( "WorkingHoursColor" ), mWorkingHoursColor, QColor( 255, 235, 154 ) );
00436   mWorkingHoursColorItem->setLabel( i18n("Working hours color") );
00437   mWorkingHoursColorItem->setWhatsThis( i18n("Select the working hours color for the agenda view here.") );
00438   addItem( mWorkingHoursColorItem, QString::fromLatin1( "WorkingHoursColor" ) );
00439   mTodoDueTodayColorItem = new KConfigSkeleton::ItemColor( currentGroup(), QString::fromLatin1( "Todo due today Color" ), mTodoDueTodayColor, QColor( 255, 200, 50 ) );
00440   mTodoDueTodayColorItem->setLabel( i18n("To-do due today color") );
00441   mTodoDueTodayColorItem->setWhatsThis( i18n("Select the to-do due today color here.") );
00442   addItem( mTodoDueTodayColorItem, QString::fromLatin1( "TodoDueTodayColor" ) );
00443   mTodoOverdueColorItem = new KConfigSkeleton::ItemColor( currentGroup(), QString::fromLatin1( "Todo overdue Color" ), mTodoOverdueColor, QColor( 255, 100, 100 ) );
00444   mTodoOverdueColorItem->setLabel( i18n("To-do overdue color") );
00445   mTodoOverdueColorItem->setWhatsThis( i18n("Select the to-do overdue color here.") );
00446   addItem( mTodoOverdueColorItem, QString::fromLatin1( "TodoOverdueColor" ) );
00447   mUnsetCategoryColorItem = new KConfigSkeleton::ItemColor( currentGroup(), QString::fromLatin1( "Unset Category Color" ), mUnsetCategoryColor, QColor( 151, 235, 121 ) );
00448   mUnsetCategoryColorItem->setLabel( i18n("\"No category\" color (for \"Only category\" drawing schemes)") );
00449   mUnsetCategoryColorItem->setWhatsThis( i18n("Select a color to use for the \"no category\" or \"unset category\" situation, when an item does not belong to any category. This color is used when drawing items in the agenda or month views using the \"Only category\" scheme.") );
00450   addItem( mUnsetCategoryColorItem, QString::fromLatin1( "UnsetCategoryColor" ) );
00451   mAssignDefaultResourceColorsItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "AssignDefaultResourceColors" ), mAssignDefaultResourceColors, true );
00452   mAssignDefaultResourceColorsItem->setLabel( i18n("AssignDefaultResourceColors") );
00453   addItem( mAssignDefaultResourceColorsItem, QString::fromLatin1( "AssignDefaultResourceColors" ) );
00454   mDefaultResourceColorSeedItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "DefaultResourceColorSeed" ), mDefaultResourceColorSeed, 0 );
00455   mDefaultResourceColorSeedItem->setLabel( i18n("DefaultResourceColorSeed") );
00456   addItem( mDefaultResourceColorSeedItem, QString::fromLatin1( "DefaultResourceColorSeed" ) );
00457   QStringList defaultDefaultResourceColors;
00458   defaultDefaultResourceColors.append( QString::fromUtf8( "#c1d4e7" ) );
00459   defaultDefaultResourceColors.append( QString::fromUtf8( "#d0e7c1" ) );
00460   defaultDefaultResourceColors.append( QString::fromUtf8( "#e3e7c1" ) );
00461   defaultDefaultResourceColors.append( QString::fromUtf8( "#e7c1e6" ) );
00462   defaultDefaultResourceColors.append( QString::fromUtf8( "#a1b1c1" ) );
00463 
00464   mDefaultResourceColorsItem = new KConfigSkeleton::ItemStringList( currentGroup(), QString::fromLatin1( "DefaultResourceColors" ), mDefaultResourceColors, defaultDefaultResourceColors );
00465   mDefaultResourceColorsItem->setLabel( i18n("DefaultResourceColors") );
00466   addItem( mDefaultResourceColorsItem, QString::fromLatin1( "DefaultResourceColors" ) );
00467 
00468   setCurrentGroup( QString::fromLatin1( "Fonts" ) );
00469 
00470   mTimeBarFontItem = new KConfigSkeleton::ItemFont( currentGroup(), QString::fromLatin1( "TimeBar Font" ), mTimeBarFont );
00471   mTimeBarFontItem->setLabel( i18n("Time bar") );
00472   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.") );
00473   addItem( mTimeBarFontItem, QString::fromLatin1( "TimeBarFont" ) );
00474   mAgendaViewFontItem = new KConfigSkeleton::ItemFont( currentGroup(), QString::fromLatin1( "AgendaView Font" ), mAgendaViewFont );
00475   mAgendaViewFontItem->setLabel( i18n("Agenda view") );
00476   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.") );
00477   addItem( mAgendaViewFontItem, QString::fromLatin1( "AgendaViewFont" ) );
00478   mMarcusBainsFontItem = new KConfigSkeleton::ItemFont( currentGroup(), QString::fromLatin1( "MarcusBains Font" ), mMarcusBainsFont );
00479   mMarcusBainsFontItem->setLabel( i18n("Current-time line") );
00480   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.") );
00481   addItem( mMarcusBainsFontItem, QString::fromLatin1( "MarcusBainsFont" ) );
00482   mMonthViewFontItem = new KConfigSkeleton::ItemFont( currentGroup(), QString::fromLatin1( "MonthView Font" ), mMonthViewFont );
00483   mMonthViewFontItem->setLabel( i18n("Month view") );
00484   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.") );
00485   addItem( mMonthViewFontItem, QString::fromLatin1( "MonthViewFont" ) );
00486 
00487   setCurrentGroup( QString::fromLatin1( "FreeBusy" ) );
00488 
00489   mFreeBusyPublishAutoItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "FreeBusyPublishAuto" ), mFreeBusyPublishAuto, false );
00490   mFreeBusyPublishAutoItem->setLabel( i18n("FreeBusyPublishAuto") );
00491   addItem( mFreeBusyPublishAutoItem, QString::fromLatin1( "FreeBusyPublishAuto" ) );
00492   mFreeBusyPublishDelayItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "FreeBusyPublishDelay" ), mFreeBusyPublishDelay, 5 );
00493   mFreeBusyPublishDelayItem->setLabel( i18n("FreeBusyPublishDelay") );
00494   addItem( mFreeBusyPublishDelayItem, QString::fromLatin1( "FreeBusyPublishDelay" ) );
00495   mFreeBusyPublishDaysItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "FreeBusyPublishDays" ), mFreeBusyPublishDays, 60 );
00496   mFreeBusyPublishDaysItem->setLabel( i18n("FreeBusyPublishDays") );
00497   addItem( mFreeBusyPublishDaysItem, QString::fromLatin1( "FreeBusyPublishDays" ) );
00498   mFreeBusyPublishUrlItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "FreeBusyPublishUrl" ), mFreeBusyPublishUrl );
00499   mFreeBusyPublishUrlItem->setLabel( i18n("Free/Busy Publish URL") );
00500   mFreeBusyPublishUrlItem->setWhatsThis( i18n("URL for publishing free/busy information") );
00501   addItem( mFreeBusyPublishUrlItem, QString::fromLatin1( "FreeBusyPublishUrl" ) );
00502   mFreeBusyPublishUserItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "FreeBusyPublishUser" ), mFreeBusyPublishUser );
00503   mFreeBusyPublishUserItem->setLabel( i18n("Free/Busy Publish Username") );
00504   mFreeBusyPublishUserItem->setWhatsThis( i18n("Username for publishing free/busy information") );
00505   addItem( mFreeBusyPublishUserItem, QString::fromLatin1( "FreeBusyPublishUser" ) );
00506   mFreeBusyPublishPasswordItem = new KConfigSkeleton::ItemPassword( currentGroup(), QString::fromLatin1( "FreeBusyPublishPassword" ), mFreeBusyPublishPassword );
00507   mFreeBusyPublishPasswordItem->setLabel( i18n("Free/Busy Publish Password") );
00508   mFreeBusyPublishPasswordItem->setWhatsThis( i18n("Password for publishing free/busy information") );
00509   addItem( mFreeBusyPublishPasswordItem, QString::fromLatin1( "FreeBusyPublishPassword" ) );
00510   mFreeBusyPublishSavePasswordItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "FreeBusyPublishSavePassword" ), mFreeBusyPublishSavePassword, false );
00511   mFreeBusyPublishSavePasswordItem->setLabel( i18n("FreeBusyPublishSavePassword") );
00512   addItem( mFreeBusyPublishSavePasswordItem, QString::fromLatin1( "FreeBusyPublishSavePassword" ) );
00513   mFreeBusyRetrieveAutoItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "FreeBusyRetrieveAuto" ), mFreeBusyRetrieveAuto, false );
00514   mFreeBusyRetrieveAutoItem->setLabel( i18n("Enable Automatic Free/Busy Retrieval") );
00515   addItem( mFreeBusyRetrieveAutoItem, QString::fromLatin1( "FreeBusyRetrieveAuto" ) );
00516   mFreeBusyCheckHostnameItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "FreeBusyCheckHostname" ), mFreeBusyCheckHostname, false );
00517   mFreeBusyCheckHostnameItem->setLabel( i18n("Check whether hostname and retrieval email address match") );
00518   mFreeBusyCheckHostnameItem->setWhatsThis( i18n("With this setting you can configure whether the domain part of the free/busy url has to match the domain part of the user id you are looking for. For example if this option is 'true' then looking for the free/busy data of joe@mydomain.com on the server www.yourdomain.com won't work.") );
00519   addItem( mFreeBusyCheckHostnameItem, QString::fromLatin1( "FreeBusyCheckHostname" ) );
00520   mFreeBusyFullDomainRetrievalItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "FreeBusyFullDomainRetrieval" ), mFreeBusyFullDomainRetrieval, false );
00521   mFreeBusyFullDomainRetrievalItem->setLabel( i18n("Use full email address for retrieval") );
00522   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.") );
00523   addItem( mFreeBusyFullDomainRetrievalItem, QString::fromLatin1( "FreeBusyFullDomainRetrieval" ) );
00524   mFreeBusyRetrieveUrlItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "FreeBusyRetrieveUrl" ), mFreeBusyRetrieveUrl );
00525   mFreeBusyRetrieveUrlItem->setLabel( i18n("Free/Busy Retrieval URL") );
00526   addItem( mFreeBusyRetrieveUrlItem, QString::fromLatin1( "FreeBusyRetrieveUrl" ) );
00527   mFreeBusyRetrieveUserItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "FreeBusyRetrieveUser" ), mFreeBusyRetrieveUser );
00528   mFreeBusyRetrieveUserItem->setLabel( i18n("Free/Busy Retrieval Username") );
00529   addItem( mFreeBusyRetrieveUserItem, QString::fromLatin1( "FreeBusyRetrieveUser" ) );
00530   mFreeBusyRetrievePasswordItem = new KConfigSkeleton::ItemPassword( currentGroup(), QString::fromLatin1( "FreeBusyRetrievePassword" ), mFreeBusyRetrievePassword );
00531   mFreeBusyRetrievePasswordItem->setLabel( i18n("Free/Busy Retrieval Password") );
00532   mFreeBusyRetrievePasswordItem->setWhatsThis( i18n("Password for retrieving free/busy information") );
00533   addItem( mFreeBusyRetrievePasswordItem, QString::fromLatin1( "FreeBusyRetrievePassword" ) );
00534   mFreeBusyRetrieveSavePasswordItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "FreeBusyRetrieveSavePassword" ), mFreeBusyRetrieveSavePassword, false );
00535   mFreeBusyRetrieveSavePasswordItem->setLabel( i18n("FreeBusyRetrieveSavePassword") );
00536   addItem( mFreeBusyRetrieveSavePasswordItem, QString::fromLatin1( "FreeBusyRetrieveSavePassword" ) );
00537 
00538   setCurrentGroup( QString::fromLatin1( "Kontact" ) );
00539 
00540   QValueList<KConfigSkeleton::ItemEnum::Choice> valuesDefaultEmailAttachMethod;
00541   {
00542     KConfigSkeleton::ItemEnum::Choice choice;
00543     choice.name = QString::fromLatin1( "Ask" );
00544     choice.label = i18n("Always ask");
00545     valuesDefaultEmailAttachMethod.append( choice );
00546   }
00547   {
00548     KConfigSkeleton::ItemEnum::Choice choice;
00549     choice.name = QString::fromLatin1( "Link" );
00550     choice.label = i18n("Only attach link to message");
00551     valuesDefaultEmailAttachMethod.append( choice );
00552   }
00553   {
00554     KConfigSkeleton::ItemEnum::Choice choice;
00555     choice.name = QString::fromLatin1( "InlineFull" );
00556     choice.label = i18n("Attach complete message");
00557     valuesDefaultEmailAttachMethod.append( choice );
00558   }
00559   {
00560     KConfigSkeleton::ItemEnum::Choice choice;
00561     choice.name = QString::fromLatin1( "InlineBody" );
00562     choice.label = i18n("Attach message without attachments");
00563     valuesDefaultEmailAttachMethod.append( choice );
00564   }
00565   mDefaultEmailAttachMethodItem = new KConfigSkeleton::ItemEnum( currentGroup(), QString::fromLatin1( "DefaultEmailAttachMethod" ), mDefaultEmailAttachMethod, valuesDefaultEmailAttachMethod, Ask );
00566   mDefaultEmailAttachMethodItem->setLabel( i18n("Default email attachment method") );
00567   mDefaultEmailAttachMethodItem->setWhatsThis( i18n("The default way of attaching dropped emails to an event") );
00568   addItem( mDefaultEmailAttachMethodItem, QString::fromLatin1( "DefaultEmailAttachMethod" ) );
00569   QValueList<KConfigSkeleton::ItemEnum::Choice> valuesDefaultTodoAttachMethod;
00570   {
00571     KConfigSkeleton::ItemEnum::Choice choice;
00572     choice.name = QString::fromLatin1( "TodoAttachAsk" );
00573     choice.label = i18n("Always ask");
00574     valuesDefaultTodoAttachMethod.append( choice );
00575   }
00576   {
00577     KConfigSkeleton::ItemEnum::Choice choice;
00578     choice.name = QString::fromLatin1( "TodoAttachLink" );
00579     choice.label = i18n("Only attach link to message");
00580     valuesDefaultTodoAttachMethod.append( choice );
00581   }
00582   {
00583     KConfigSkeleton::ItemEnum::Choice choice;
00584     choice.name = QString::fromLatin1( "TodoAttachInlineFull" );
00585     choice.label = i18n("Attach complete message");
00586     valuesDefaultTodoAttachMethod.append( choice );
00587   }
00588   mDefaultTodoAttachMethodItem = new KConfigSkeleton::ItemEnum( currentGroup(), QString::fromLatin1( "DefaultTodoAttachMethod" ), mDefaultTodoAttachMethod, valuesDefaultTodoAttachMethod, TodoAttachInlineFull );
00589   mDefaultTodoAttachMethodItem->setLabel( i18n("Default todo attachment method") );
00590   mDefaultTodoAttachMethodItem->setWhatsThis( i18n("The default way of attaching dropped emails to a task") );
00591   addItem( mDefaultTodoAttachMethodItem, QString::fromLatin1( "DefaultTodoAttachMethod" ) );
00592 }
00593 
00594 KOPrefsBase::~KOPrefsBase()
00595 {
00596 }
00597 
KDE Home | KDE Accessibility Home | Description of Access Keys