kmail

globalsettings_base.cpp

00001 // This file is generated by kconfig_compiler from kmail.kcfg.
00002 // All changes you do to this file will be lost.
00003 
00004 #include "globalsettings_base.h"
00005 
00006 #include <klocale.h>
00007 
00008 #include <kstaticdeleter.h>
00009 
00010 GlobalSettingsBase *GlobalSettingsBase::mSelf = 0;
00011 static KStaticDeleter<GlobalSettingsBase> staticGlobalSettingsBaseDeleter;
00012 
00013 GlobalSettingsBase *GlobalSettingsBase::self()
00014 {
00015   if ( !mSelf ) {
00016     staticGlobalSettingsBaseDeleter.setObject( mSelf, new GlobalSettingsBase() );
00017     mSelf->readConfig();
00018   }
00019 
00020   return mSelf;
00021 }
00022 
00023 GlobalSettingsBase::GlobalSettingsBase(  )
00024   : KConfigSkeleton( QString::fromLatin1( "kmailrc" ) )
00025 {
00026   mSelf = this;
00027   setCurrentGroup( QString::fromLatin1( "Behaviour" ) );
00028 
00029   mDelayedMarkAsReadItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "DelayedMarkAsRead" ), mDelayedMarkAsRead, true );
00030   mDelayedMarkAsReadItem->setLabel( i18n("DelayedMarkAsRead") );
00031   addItem( mDelayedMarkAsReadItem, QString::fromLatin1( "DelayedMarkAsRead" ) );
00032   mDelayedMarkTimeItem = new KConfigSkeleton::ItemUInt( currentGroup(), QString::fromLatin1( "DelayedMarkTime" ), mDelayedMarkTime, 0 );
00033   mDelayedMarkTimeItem->setLabel( i18n("DelayedMarkTime") );
00034   addItem( mDelayedMarkTimeItem, QString::fromLatin1( "DelayedMarkTime" ) );
00035   QValueList<KConfigSkeleton::ItemEnum::Choice> valuesActionEnterFolder;
00036   {
00037     KConfigSkeleton::ItemEnum::Choice choice;
00038     choice.name = QString::fromLatin1( "SelectFirstNew" );
00039     valuesActionEnterFolder.append( choice );
00040   }
00041   {
00042     KConfigSkeleton::ItemEnum::Choice choice;
00043     choice.name = QString::fromLatin1( "SelectFirstUnreadNew" );
00044     valuesActionEnterFolder.append( choice );
00045   }
00046   {
00047     KConfigSkeleton::ItemEnum::Choice choice;
00048     choice.name = QString::fromLatin1( "SelectLastSelected" );
00049     valuesActionEnterFolder.append( choice );
00050   }
00051   mActionEnterFolderItem = new KConfigSkeleton::ItemEnum( currentGroup(), QString::fromLatin1( "ActionEnterFolder" ), mActionEnterFolder, valuesActionEnterFolder, EnumActionEnterFolder::SelectLastSelected );
00052   mActionEnterFolderItem->setLabel( i18n("ActionEnterFolder") );
00053   addItem( mActionEnterFolderItem, QString::fromLatin1( "ActionEnterFolder" ) );
00054   QValueList<KConfigSkeleton::ItemEnum::Choice> valuesNetworkState;
00055   {
00056     KConfigSkeleton::ItemEnum::Choice choice;
00057     choice.name = QString::fromLatin1( "Online" );
00058     valuesNetworkState.append( choice );
00059   }
00060   {
00061     KConfigSkeleton::ItemEnum::Choice choice;
00062     choice.name = QString::fromLatin1( "Offline" );
00063     valuesNetworkState.append( choice );
00064   }
00065   mNetworkStateItem = new KConfigSkeleton::ItemEnum( currentGroup(), QString::fromLatin1( "NetworkState" ), mNetworkState, valuesNetworkState, EnumNetworkState::Online );
00066   mNetworkStateItem->setLabel( i18n("NetworkState") );
00067   addItem( mNetworkStateItem, QString::fromLatin1( "NetworkState" ) );
00068   QValueList<KConfigSkeleton::ItemEnum::Choice> valuesLoopOnGotoUnread;
00069   {
00070     KConfigSkeleton::ItemEnum::Choice choice;
00071     choice.name = QString::fromLatin1( "DontLoop" );
00072     valuesLoopOnGotoUnread.append( choice );
00073   }
00074   {
00075     KConfigSkeleton::ItemEnum::Choice choice;
00076     choice.name = QString::fromLatin1( "LoopInCurrentFolder" );
00077     valuesLoopOnGotoUnread.append( choice );
00078   }
00079   {
00080     KConfigSkeleton::ItemEnum::Choice choice;
00081     choice.name = QString::fromLatin1( "LoopInAllFolders" );
00082     valuesLoopOnGotoUnread.append( choice );
00083   }
00084   mLoopOnGotoUnreadItem = new KConfigSkeleton::ItemEnum( currentGroup(), QString::fromLatin1( "LoopOnGotoUnread" ), mLoopOnGotoUnread, valuesLoopOnGotoUnread, EnumLoopOnGotoUnread::DontLoop );
00085   mLoopOnGotoUnreadItem->setLabel( i18n("LoopOnGotoUnread") );
00086   addItem( mLoopOnGotoUnreadItem, QString::fromLatin1( "LoopOnGotoUnread" ) );
00087   mShowPopupAfterDnDItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "ShowPopupAfterDnD" ), mShowPopupAfterDnD, true );
00088   mShowPopupAfterDnDItem->setLabel( i18n("ShowPopupAfterDnD") );
00089   addItem( mShowPopupAfterDnDItem, QString::fromLatin1( "ShowPopupAfterDnD" ) );
00090   mExcludeImportantMailFromExpiryItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "ExcludeImportantMailFromExpiry" ), mExcludeImportantMailFromExpiry, true );
00091   mExcludeImportantMailFromExpiryItem->setLabel( i18n("ExcludeImportantMailFromExpiry") );
00092   addItem( mExcludeImportantMailFromExpiryItem, QString::fromLatin1( "ExcludeImportantMailFromExpiry" ) );
00093   QValueList<KConfigSkeleton::ItemEnum::Choice> valuesSendOnCheck;
00094   {
00095     KConfigSkeleton::ItemEnum::Choice choice;
00096     choice.name = QString::fromLatin1( "DontSendOnCheck" );
00097     valuesSendOnCheck.append( choice );
00098   }
00099   {
00100     KConfigSkeleton::ItemEnum::Choice choice;
00101     choice.name = QString::fromLatin1( "SendOnManualChecks" );
00102     valuesSendOnCheck.append( choice );
00103   }
00104   {
00105     KConfigSkeleton::ItemEnum::Choice choice;
00106     choice.name = QString::fromLatin1( "SendOnAllChecks" );
00107     valuesSendOnCheck.append( choice );
00108   }
00109   mSendOnCheckItem = new KConfigSkeleton::ItemEnum( currentGroup(), QString::fromLatin1( "SendOnCheck" ), mSendOnCheck, valuesSendOnCheck, EnumSendOnCheck::DontSendOnCheck );
00110   mSendOnCheckItem->setLabel( i18n("Send queued mail on mail check") );
00111   mSendOnCheckItem->setWhatsThis( i18n("<qt><p>Select whether you want KMail to send all messages in the outbox on manual or all mail checks, or whether you do not want messages to be sent automatically at all. </p></qt>") );
00112   addItem( mSendOnCheckItem, QString::fromLatin1( "SendOnCheck" ) );
00113   mAutoLostFoundMoveItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "AutoLostFoundMove" ), mAutoLostFoundMove, true );
00114   mAutoLostFoundMoveItem->setLabel( i18n("Automatically move non-synced mails from folders with insufficient access rights") );
00115   mAutoLostFoundMoveItem->setWhatsThis( i18n("If there are new messages in a folder, which have not been uploaded to the server yet, but you do not have sufficient access rights on the folder now to upload them, these messages will automatically be moved into a lost and found folder.") );
00116   addItem( mAutoLostFoundMoveItem, QString::fromLatin1( "AutoLostFoundMove" ) );
00117   mAllowLocalFlagsItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "AllowLocalFlags" ), mAllowLocalFlags, false );
00118   mAllowLocalFlagsItem->setLabel( i18n("Allow local flags in read-only folders") );
00119   addItem( mAllowLocalFlagsItem, QString::fromLatin1( "AllowLocalFlags" ) );
00120 
00121   setCurrentGroup( QString::fromLatin1( "ConfigurationDialogRestrictions" ) );
00122 
00123   mMinimumCheckIntervalItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "MinimumCheckInterval" ), mMinimumCheckInterval, 1 );
00124   mMinimumCheckIntervalItem->setLabel( i18n("MinimumCheckInterval") );
00125   mMinimumCheckIntervalItem->setWhatsThis( i18n("This setting allows administrators to set a minimum delay between two mail checks.\"\n"
00126 "           \"The user will not be able to choose a value smaller than the value set here.") );
00127   addItem( mMinimumCheckIntervalItem, QString::fromLatin1( "MinimumCheckInterval" ) );
00128 
00129   setCurrentGroup( QString::fromLatin1( "FolderSelectionDialog" ) );
00130 
00131   mLastSelectedFolderItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "LastSelectedFolder" ), mLastSelectedFolder, QString::fromLatin1( "inbox" ) );
00132   mLastSelectedFolderItem->setLabel( i18n("LastSelectedFolder") );
00133   mLastSelectedFolderItem->setWhatsThis( i18n("The most recently selected folder in the folder selection dialog.") );
00134   addItem( mLastSelectedFolderItem, QString::fromLatin1( "LastSelectedFolder" ) );
00135 
00136   setCurrentGroup( QString::fromLatin1( "General" ) );
00137 
00138   mDisregardUmaskItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "disregardUmask" ), mDisregardUmask, false );
00139   mDisregardUmaskItem->setLabel( i18n("Disregard the users umask setting and use \"read-write for the user only\" instead") );
00140   addItem( mDisregardUmaskItem, QString::fromLatin1( "disregardUmask" ) );
00141   mSystemTrayEnabledItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "SystemTrayEnabled" ), mSystemTrayEnabled, false );
00142   mSystemTrayEnabledItem->setLabel( i18n("Enable system tray icon") );
00143   addItem( mSystemTrayEnabledItem, QString::fromLatin1( "SystemTrayEnabled" ) );
00144   QValueList<KConfigSkeleton::ItemEnum::Choice> valuesSystemTrayPolicy;
00145   {
00146     KConfigSkeleton::ItemEnum::Choice choice;
00147     choice.name = QString::fromLatin1( "ShowAlways" );
00148     valuesSystemTrayPolicy.append( choice );
00149   }
00150   {
00151     KConfigSkeleton::ItemEnum::Choice choice;
00152     choice.name = QString::fromLatin1( "ShowOnUnread" );
00153     valuesSystemTrayPolicy.append( choice );
00154   }
00155   mSystemTrayPolicyItem = new KConfigSkeleton::ItemEnum( currentGroup(), QString::fromLatin1( "SystemTrayPolicy" ), mSystemTrayPolicy, valuesSystemTrayPolicy, EnumSystemTrayPolicy::ShowOnUnread );
00156   mSystemTrayPolicyItem->setLabel( i18n("Policy for showing the system tray icon") );
00157   addItem( mSystemTrayPolicyItem, QString::fromLatin1( "SystemTrayPolicy" ) );
00158   mCloseDespiteSystemTrayItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "CloseDespiteSystemTray" ), mCloseDespiteSystemTray, false );
00159   mCloseDespiteSystemTrayItem->setLabel( i18n("Close the application when the mainwindow is closed, even if there is a system tray icon active.") );
00160   addItem( mCloseDespiteSystemTrayItem, QString::fromLatin1( "CloseDespiteSystemTray" ) );
00161   mVerboseNewMailNotificationItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "VerboseNewMailNotification" ), mVerboseNewMailNotification, true );
00162   mVerboseNewMailNotificationItem->setLabel( i18n("Verbose new mail notification") );
00163   mVerboseNewMailNotificationItem->setWhatsThis( i18n("If this option is enabled then for each folder the number of newly arrived messages is shown in the new mail notification; otherwise, you will only get a simple 'New mail arrived' message.") );
00164   addItem( mVerboseNewMailNotificationItem, QString::fromLatin1( "VerboseNewMailNotification" ) );
00165   mExternalEditorItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "external-editor" ), mExternalEditor, QString::fromLatin1( "kate %f" ) );
00166   mExternalEditorItem->setLabel( i18n("Specify e&ditor:") );
00167   addItem( mExternalEditorItem, QString::fromLatin1( "ExternalEditor" ) );
00168   mUseExternalEditorItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "use-external-editor" ), mUseExternalEditor, false );
00169   mUseExternalEditorItem->setLabel( i18n("Use e&xternal editor instead of composer") );
00170   addItem( mUseExternalEditorItem, QString::fromLatin1( "UseExternalEditor" ) );
00171   mCustHeaderCountItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "mime-header-count" ), mCustHeaderCount );
00172   mCustHeaderCountItem->setLabel( i18n("mime-header-count") );
00173   addItem( mCustHeaderCountItem, QString::fromLatin1( "CustHeaderCount" ) );
00174   mReplyCurrentLanguageItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "reply-current-language" ), mReplyCurrentLanguage, 0 );
00175   mReplyCurrentLanguageItem->setLabel( i18n("reply-current-language") );
00176   addItem( mReplyCurrentLanguageItem, QString::fromLatin1( "ReplyCurrentLanguage" ) );
00177   mReplyLanguagesCountItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "reply-languages" ), mReplyLanguagesCount, 0 );
00178   mReplyLanguagesCountItem->setMinValue(0);
00179   mReplyLanguagesCountItem->setLabel( i18n("reply-languages") );
00180   addItem( mReplyLanguagesCountItem, QString::fromLatin1( "ReplyLanguagesCount" ) );
00181   mFolderLoadingTimeoutItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "FolderLoadingTimeout" ), mFolderLoadingTimeout, 1000 );
00182   mFolderLoadingTimeoutItem->setLabel( i18n("FolderLoadingTimeout") );
00183   addItem( mFolderLoadingTimeoutItem, QString::fromLatin1( "FolderLoadingTimeout" ) );
00184   QValueList<KConfigSkeleton::ItemEnum::Choice> valuesQuotaUnit;
00185   {
00186     KConfigSkeleton::ItemEnum::Choice choice;
00187     choice.name = QString::fromLatin1( "KB" );
00188     valuesQuotaUnit.append( choice );
00189   }
00190   {
00191     KConfigSkeleton::ItemEnum::Choice choice;
00192     choice.name = QString::fromLatin1( "MB" );
00193     valuesQuotaUnit.append( choice );
00194   }
00195   {
00196     KConfigSkeleton::ItemEnum::Choice choice;
00197     choice.name = QString::fromLatin1( "GB" );
00198     valuesQuotaUnit.append( choice );
00199   }
00200   mQuotaUnitItem = new KConfigSkeleton::ItemEnum( currentGroup(), QString::fromLatin1( "QuotaUnit" ), mQuotaUnit, valuesQuotaUnit, EnumQuotaUnit::MB );
00201   mQuotaUnitItem->setLabel( i18n("QuotaUnit") );
00202   addItem( mQuotaUnitItem, QString::fromLatin1( "QuotaUnit" ) );
00203   mCloseToQuotaThresholdItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "CloseToQuotaThreshold" ), mCloseToQuotaThreshold, 85 );
00204   mCloseToQuotaThresholdItem->setLabel( i18n("The threshold for when to warn the user that a folder is nearing its quota limit.") );
00205   addItem( mCloseToQuotaThresholdItem, QString::fromLatin1( "CloseToQuotaThreshold" ) );
00206 
00207   setCurrentGroup( QString::fromLatin1( "Groupware" ) );
00208 
00209   mGroupwareEnabledItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "GroupwareEnabled" ), mGroupwareEnabled, true );
00210   mGroupwareEnabledItem->setLabel( i18n("Enable groupware functionality") );
00211   addItem( mGroupwareEnabledItem, QString::fromLatin1( "GroupwareEnabled" ) );
00212   mLegacyMangleFromToHeadersItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "LegacyMangleFromToHeaders" ), mLegacyMangleFromToHeaders, false );
00213   mLegacyMangleFromToHeadersItem->setLabel( i18n("Mangle From:/To: headers in replies to replies") );
00214   mLegacyMangleFromToHeadersItem->setWhatsThis( i18n("Microsoft Outlook has a number of shortcomings in its implementation of the iCalendar standard; this option works around one of them. If you have problems with Outlook users not being able to get your replies, try setting this option.") );
00215   addItem( mLegacyMangleFromToHeadersItem, QString::fromLatin1( "LegacyMangleFromToHeaders" ) );
00216   mLegacyBodyInvitesItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "LegacyBodyInvites" ), mLegacyBodyInvites, false );
00217   mLegacyBodyInvitesItem->setLabel( i18n("Send groupware invitations in the mail body") );
00218   mLegacyBodyInvitesItem->setWhatsThis( i18n("Microsoft Outlook has a number of shortcomings  in its implementation of the iCalendar standard; this option works around one of them. If you have problems with Outlook users not being able to get your invitations, try setting this option.") );
00219   addItem( mLegacyBodyInvitesItem, QString::fromLatin1( "LegacyBodyInvites" ) );
00220   mExchangeCompatibleInvitationsItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "ExchangeCompatibleInvitations" ), mExchangeCompatibleInvitations, false );
00221   mExchangeCompatibleInvitationsItem->setLabel( i18n("Exchange compatible invitations naming") );
00222   mExchangeCompatibleInvitationsItem->setWhatsThis( i18n("Microsoft Outlook, when used in combination with a Microsoft Exchange server, has a problem understanding standards-compliant groupware e-mail. Turn this option on to send groupware invitations in a way that Microsoft Exchange understands.") );
00223   addItem( mExchangeCompatibleInvitationsItem, QString::fromLatin1( "ExchangeCompatibleInvitations" ) );
00224   mOutlookCompatibleInvitationReplyCommentsItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "OutlookCompatibleInvitationReplyComments" ), mOutlookCompatibleInvitationReplyComments, false );
00225   mOutlookCompatibleInvitationReplyCommentsItem->setLabel( i18n("Outlook compatible invitation reply comments") );
00226   mOutlookCompatibleInvitationReplyCommentsItem->setWhatsThis( i18n("When replying to invitations, send the reply comment in way that Microsoft Outlook understands.") );
00227   addItem( mOutlookCompatibleInvitationReplyCommentsItem, QString::fromLatin1( "OutlookCompatibleInvitationReplyComments" ) );
00228   mAutomaticSendingItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "AutomaticSending" ), mAutomaticSending, true );
00229   mAutomaticSendingItem->setLabel( i18n("Automatic invitation sending") );
00230   mAutomaticSendingItem->setWhatsThis( i18n("When this is checked, you will not see the mail composer window. Instead, all invitation mails are sent automatically. If you want to see the mail before sending it, you can uncheck this option. However, be aware that the text in the composer window is in iCalendar syntax, and you should not try modifying it by hand.") );
00231   addItem( mAutomaticSendingItem, QString::fromLatin1( "AutomaticSending" ) );
00232   QValueList<KConfigSkeleton::ItemEnum::Choice> valuesAskForCommentWhenReactingToInvitation;
00233   {
00234     KConfigSkeleton::ItemEnum::Choice choice;
00235     choice.name = QString::fromLatin1( "NeverAsk" );
00236     valuesAskForCommentWhenReactingToInvitation.append( choice );
00237   }
00238   {
00239     KConfigSkeleton::ItemEnum::Choice choice;
00240     choice.name = QString::fromLatin1( "AskForAllButAcceptance" );
00241     valuesAskForCommentWhenReactingToInvitation.append( choice );
00242   }
00243   {
00244     KConfigSkeleton::ItemEnum::Choice choice;
00245     choice.name = QString::fromLatin1( "AlwaysAsk" );
00246     valuesAskForCommentWhenReactingToInvitation.append( choice );
00247   }
00248   mAskForCommentWhenReactingToInvitationItem = new KConfigSkeleton::ItemEnum( currentGroup(), QString::fromLatin1( "AskForCommentWhenReactingToInvitation" ), mAskForCommentWhenReactingToInvitation, valuesAskForCommentWhenReactingToInvitation, EnumAskForCommentWhenReactingToInvitation::AskForAllButAcceptance );
00249   mAskForCommentWhenReactingToInvitationItem->setLabel( i18n("AskForCommentWhenReactingToInvitation") );
00250   addItem( mAskForCommentWhenReactingToInvitationItem, QString::fromLatin1( "AskForCommentWhenReactingToInvitation" ) );
00251   mDeleteInvitationEmailsAfterSendingReplyItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "DeleteInvitationEmailsAfterSendingReply" ), mDeleteInvitationEmailsAfterSendingReply, true );
00252   mDeleteInvitationEmailsAfterSendingReplyItem->setLabel( i18n("Delete invitation emails after the reply to them has been sent") );
00253   mDeleteInvitationEmailsAfterSendingReplyItem->setWhatsThis( i18n("When this is checked, received invitation emails that have been replied to will be moved to the Trash folder, once the reply has been successfully sent.") );
00254   addItem( mDeleteInvitationEmailsAfterSendingReplyItem, QString::fromLatin1( "DeleteInvitationEmailsAfterSendingReply" ) );
00255 
00256   setCurrentGroup( QString::fromLatin1( "IMAP Resource" ) );
00257 
00258   mTheIMAPResourceEnabledItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "TheIMAPResourceEnabled" ), mTheIMAPResourceEnabled, false );
00259   mTheIMAPResourceEnabledItem->setLabel( i18n("TheIMAPResourceEnabled") );
00260   mTheIMAPResourceEnabledItem->setWhatsThis( i18n("<p>Enabling this makes it possible to store the entries from the Kontact applications (KOrganizer, KAddressBook, and KNotes.)</p><p>If you want to set this option you must also set the applications to use the IMAP resource; this is done in the KDE Control Center.</p>") );
00261   addItem( mTheIMAPResourceEnabledItem, QString::fromLatin1( "TheIMAPResourceEnabled" ) );
00262   mHideGroupwareFoldersItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "HideGroupwareFolders" ), mHideGroupwareFolders, true );
00263   mHideGroupwareFoldersItem->setLabel( i18n("HideGroupwareFolders") );
00264   mHideGroupwareFoldersItem->setWhatsThis( i18n("<p>Usually you will not have any reason to see the folders that hold the IMAP resources. But if you need to see them, you can set that here.</p>") );
00265   addItem( mHideGroupwareFoldersItem, QString::fromLatin1( "HideGroupwareFolders" ) );
00266   mShowOnlyGroupwareFoldersForGroupwareAccountItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "ShowOnlyGroupwareFoldersForGroupwareAccount" ), mShowOnlyGroupwareFoldersForGroupwareAccount, false );
00267   mShowOnlyGroupwareFoldersForGroupwareAccountItem->setLabel( i18n("ShowOnlyGroupwareFoldersForGroupwareAccount") );
00268   mShowOnlyGroupwareFoldersForGroupwareAccountItem->setWhatsThis( i18n("<p>If the account used for storing groupware information \"\n"
00269 "          \"is not used to manage normal mail, set this option to make KMail only \"\n"
00270 "          \"show groupware folders in it. This is useful if you are handling regular \"\n"
00271 "          \"mail via an additional online IMAP account.</p>") );
00272   addItem( mShowOnlyGroupwareFoldersForGroupwareAccountItem, QString::fromLatin1( "ShowOnlyGroupwareFoldersForGroupwareAccount" ) );
00273   QValueList<KConfigSkeleton::ItemEnum::Choice> valuesTheIMAPResourceStorageFormat;
00274   {
00275     KConfigSkeleton::ItemEnum::Choice choice;
00276     choice.name = QString::fromLatin1( "IcalVcard" );
00277     valuesTheIMAPResourceStorageFormat.append( choice );
00278   }
00279   {
00280     KConfigSkeleton::ItemEnum::Choice choice;
00281     choice.name = QString::fromLatin1( "XML" );
00282     valuesTheIMAPResourceStorageFormat.append( choice );
00283   }
00284   mTheIMAPResourceStorageFormatItem = new KConfigSkeleton::ItemEnum( currentGroup(), QString::fromLatin1( "TheIMAPResourceStorageFormat" ), mTheIMAPResourceStorageFormat, valuesTheIMAPResourceStorageFormat, EnumTheIMAPResourceStorageFormat::IcalVcard );
00285   mTheIMAPResourceStorageFormatItem->setLabel( i18n("TheIMAPResourceStorageFormat") );
00286   mTheIMAPResourceStorageFormatItem->setWhatsThis( i18n("<p>Choose the storage format of the groupware folders. <ul><li>The default format is to use the ical (for calendar folders) and vcard (for addressbook folders) standards. This format makes all Kontact features available.</li><li>The Kolab XML format uses a custom model that matches more closely the one used in Outlook. This format gives better Outlook compatibility, when using a Kolab server or a compatible solution.</li></ul></p>") );
00287   addItem( mTheIMAPResourceStorageFormatItem, QString::fromLatin1( "TheIMAPResourceStorageFormat" ) );
00288   mTheIMAPResourceFolderParentItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "TheIMAPResourceFolderParent" ), mTheIMAPResourceFolderParent, QString::fromLatin1( "inbox" ) );
00289   mTheIMAPResourceFolderParentItem->setLabel( i18n("TheIMAPResourceFolderParent") );
00290   mTheIMAPResourceFolderParentItem->setWhatsThis( i18n("<p>This chooses the parent of the IMAP resource folders.</p><p>By default, the Kolab server sets the IMAP inbox to be the parent.</p>") );
00291   addItem( mTheIMAPResourceFolderParentItem, QString::fromLatin1( "TheIMAPResourceFolderParent" ) );
00292   mTheIMAPResourceAccountItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "TheIMAPResourceAccount" ), mTheIMAPResourceAccount );
00293   mTheIMAPResourceAccountItem->setLabel( i18n("TheIMAPResourceAccount") );
00294   mTheIMAPResourceAccountItem->setWhatsThis( i18n("<p>This is the ID of the account holding the IMAP resource folders.</p>") );
00295   addItem( mTheIMAPResourceAccountItem, QString::fromLatin1( "TheIMAPResourceAccount" ) );
00296   mTheIMAPResourceFolderLanguageItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "TheIMAPResourceFolderLanguage" ), mTheIMAPResourceFolderLanguage, 0 );
00297   mTheIMAPResourceFolderLanguageItem->setLabel( i18n("TheIMAPResourceFolderLanguage") );
00298   mTheIMAPResourceFolderLanguageItem->setWhatsThis( i18n("<p>If you want to set the folder names of the IMAP storage to your local language, you can choose between these available languages.</p><p> Please note, that the only reason to do so is for compatibility with Microsoft Outlook. It is considered a bad idea to set this, since it makes changing languages impossible. </p><p>So do not set this unless you have to.</p>") );
00299   addItem( mTheIMAPResourceFolderLanguageItem, QString::fromLatin1( "TheIMAPResourceFolderLanguage" ) );
00300   mFilterGroupwareFoldersItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "FilterGroupwareFolders" ), mFilterGroupwareFolders, false );
00301   mFilterGroupwareFoldersItem->setLabel( i18n("Also filter new mails received in groupware folders.") );
00302   addItem( mFilterGroupwareFoldersItem, QString::fromLatin1( "FilterGroupwareFolders" ) );
00303   QValueList<int> defaultFilterSourceFolders;
00304 
00305   mFilterSourceFoldersItem = new KConfigSkeleton::ItemIntList( currentGroup(), QString::fromLatin1( "FilterSourceFolders" ), mFilterSourceFolders, defaultFilterSourceFolders );
00306   mFilterSourceFoldersItem->setLabel( i18n("FilterSourceFolders") );
00307   addItem( mFilterSourceFoldersItem, QString::fromLatin1( "FilterSourceFolders" ) );
00308   mImmediatlySyncDIMAPOnGroupwareChangesItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "ImmediatlySyncDIMAPOnGroupwareChanges" ), mImmediatlySyncDIMAPOnGroupwareChanges, true );
00309   mImmediatlySyncDIMAPOnGroupwareChangesItem->setLabel( i18n("Synchronize groupware changes in DIMAP folders immediately when being online.") );
00310   addItem( mImmediatlySyncDIMAPOnGroupwareChangesItem, QString::fromLatin1( "ImmediatlySyncDIMAPOnGroupwareChanges" ) );
00311 
00312   setCurrentGroup( QString::fromLatin1( "Internal" ) );
00313 
00314   mMsgDictSizeHintItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "MsgDictSizeHint" ), mMsgDictSizeHint, 9973 );
00315   mMsgDictSizeHintItem->setLabel( i18n("MsgDictSizeHint") );
00316   addItem( mMsgDictSizeHintItem, QString::fromLatin1( "MsgDictSizeHint" ) );
00317   mPreviousNewFeaturesMD5Item = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "PreviousNewFeaturesMD5" ), mPreviousNewFeaturesMD5 );
00318   mPreviousNewFeaturesMD5Item->setLabel( i18n("PreviousNewFeaturesMD5") );
00319   mPreviousNewFeaturesMD5Item->setWhatsThis( i18n("This value is used to decide whether the KMail Introduction should be displayed.") );
00320   addItem( mPreviousNewFeaturesMD5Item, QString::fromLatin1( "PreviousNewFeaturesMD5" ) );
00321 
00322   setCurrentGroup( QString::fromLatin1( "Network" ) );
00323 
00324   mMaxConnectionsPerHostItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "MaxConnectionsPerHost" ), mMaxConnectionsPerHost, 0 );
00325   mMaxConnectionsPerHostItem->setMinValue(0);
00326   mMaxConnectionsPerHostItem->setLabel( i18n("Maximal number of connections per host") );
00327   mMaxConnectionsPerHostItem->setWhatsThis( i18n("This can be used to restrict the number of connections per host while checking for new mail. By default the number of connections is unlimited (0).") );
00328   addItem( mMaxConnectionsPerHostItem, QString::fromLatin1( "MaxConnectionsPerHost" ) );
00329 
00330   setCurrentGroup( QString::fromLatin1( "UserInterface" ) );
00331 
00332   mQuickSearchActiveItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "QuickSearchActive" ), mQuickSearchActive, true );
00333   mQuickSearchActiveItem->setLabel( i18n("Show quick search line edit") );
00334   mQuickSearchActiveItem->setWhatsThis( i18n("This option enables or disables the search line edit above the message list which can be used to quickly search the information shown in the message list.") );
00335   addItem( mQuickSearchActiveItem, QString::fromLatin1( "QuickSearchActive" ) );
00336   mHideLocalInboxItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "HideLocalInbox" ), mHideLocalInbox, true );
00337   mHideLocalInboxItem->setLabel( i18n("Hide local inbox if unused") );
00338   addItem( mHideLocalInboxItem, QString::fromLatin1( "HideLocalInbox" ) );
00339 
00340   setCurrentGroup( QString::fromLatin1( "Composer" ) );
00341 
00342   mForwardingInlineByDefaultItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "ForwardingInlineByDefault" ), mForwardingInlineByDefault, false );
00343   mForwardingInlineByDefaultItem->setLabel( i18n("Forward Inline As Default.") );
00344   addItem( mForwardingInlineByDefaultItem, QString::fromLatin1( "ForwardingInlineByDefault" ) );
00345   mAllowSemicolonAsAddressSeparatorItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "AllowSemicolonAsAddressSeparator" ), mAllowSemicolonAsAddressSeparator, true );
00346   mAllowSemicolonAsAddressSeparatorItem->setLabel( i18n("Allow the semicolon charactor (';') to be used as separator in the message composer.") );
00347   addItem( mAllowSemicolonAsAddressSeparatorItem, QString::fromLatin1( "AllowSemicolonAsAddressSeparator" ) );
00348   mForceReplyCharsetItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "force-reply-charset" ), mForceReplyCharset, false );
00349   mForceReplyCharsetItem->setLabel( i18n("Keep original charset when replying or forwarding if possible") );
00350   addItem( mForceReplyCharsetItem, QString::fromLatin1( "ForceReplyCharset" ) );
00351   mAutoTextSignatureItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "signature" ), mAutoTextSignature, QString::fromLatin1( "auto" ) );
00352   mAutoTextSignatureItem->setLabel( i18n("A&utomatically insert signature") );
00353   addItem( mAutoTextSignatureItem, QString::fromLatin1( "AutoTextSignature" ) );
00354   mStickyIdentityItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "sticky-identity" ), mStickyIdentity, false );
00355   mStickyIdentityItem->setLabel( i18n("sticky-identity") );
00356   mStickyIdentityItem->setWhatsThis( i18n("Remember this identity, so that it will be used in future composer windows as well.\n"
00357 "        ") );
00358   addItem( mStickyIdentityItem, QString::fromLatin1( "StickyIdentity" ) );
00359   mStickyFccItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "sticky-fcc" ), mStickyFcc, false );
00360   mStickyFccItem->setLabel( i18n("sticky-fcc") );
00361   mStickyFccItem->setWhatsThis( i18n("Remember this folder for sent items, so that it will be used in future composer windows as well.") );
00362   addItem( mStickyFccItem, QString::fromLatin1( "StickyFcc" ) );
00363   mStickyTransportItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "sticky-transport" ), mStickyTransport, false );
00364   mStickyTransportItem->setLabel( i18n("sticky-transport") );
00365   mStickyTransportItem->setWhatsThis( i18n("Remember this mail transport, so that it will be used in future composer windows as well.") );
00366   addItem( mStickyTransportItem, QString::fromLatin1( "StickyTransport" ) );
00367   mWordWrapItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "word-wrap" ), mWordWrap, true );
00368   mWordWrapItem->setLabel( i18n("Word &wrap at column:") );
00369   addItem( mWordWrapItem, QString::fromLatin1( "WordWrap" ) );
00370   mUseFixedFontItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "use-fixed-font" ), mUseFixedFont, false );
00371   mUseFixedFontItem->setLabel( i18n("Use Fi&xed Font") );
00372   addItem( mUseFixedFontItem, QString::fromLatin1( "UseFixedFont" ) );
00373   mLineWrapWidthItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "break-at" ), mLineWrapWidth, 78 );
00374   mLineWrapWidthItem->setMinValue(30);
00375   mLineWrapWidthItem->setMaxValue(255);
00376   mLineWrapWidthItem->setLabel( i18n("break-at") );
00377   addItem( mLineWrapWidthItem, QString::fromLatin1( "LineWrapWidth" ) );
00378   mTooManyRecipientsItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "too-many-recipients" ), mTooManyRecipients, true );
00379   mTooManyRecipientsItem->setLabel( i18n("Warn if the number of recipients is larger than") );
00380   mTooManyRecipientsItem->setWhatsThis( i18n("If the number of recipients is larger than this value, KMail will warn and ask for a confirmation before sending the mail. The warning can be turned off.") );
00381   addItem( mTooManyRecipientsItem, QString::fromLatin1( "TooManyRecipients" ) );
00382   mRecipientThresholdItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "recipient-threshold" ), mRecipientThreshold, 5 );
00383   mRecipientThresholdItem->setMinValue(1);
00384   mRecipientThresholdItem->setMaxValue(100);
00385   mRecipientThresholdItem->setLabel( i18n("recipient-threshold") );
00386   mRecipientThresholdItem->setWhatsThis( i18n("If the number of recipients is larger than this value, KMail will warn and ask for a confirmation before sending the mail. The warning can be turned off.") );
00387   addItem( mRecipientThresholdItem, QString::fromLatin1( "RecipientThreshold" ) );
00388   mPreviousIdentityItem = new KConfigSkeleton::ItemUInt( currentGroup(), QString::fromLatin1( "previous-identity" ), mPreviousIdentity );
00389   mPreviousIdentityItem->setLabel( i18n("previous-identity") );
00390   addItem( mPreviousIdentityItem, QString::fromLatin1( "PreviousIdentity" ) );
00391   mPreviousFccItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "previous-fcc" ), mPreviousFcc );
00392   mPreviousFccItem->setLabel( i18n("previous-fcc") );
00393   addItem( mPreviousFccItem, QString::fromLatin1( "PreviousFcc" ) );
00394   mTransportHistoryItem = new KConfigSkeleton::ItemStringList( currentGroup(), QString::fromLatin1( "transport-history" ), mTransportHistory );
00395   mTransportHistoryItem->setLabel( i18n("transport-history") );
00396   addItem( mTransportHistoryItem, QString::fromLatin1( "TransportHistory" ) );
00397   mCurrentTransportItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "current-transport" ), mCurrentTransport );
00398   mCurrentTransportItem->setLabel( i18n("current-transport") );
00399   addItem( mCurrentTransportItem, QString::fromLatin1( "CurrentTransport" ) );
00400   mDefaultTransportItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "default-transport" ), mDefaultTransport );
00401   mDefaultTransportItem->setLabel( i18n("default-transport") );
00402   addItem( mDefaultTransportItem, QString::fromLatin1( "DefaultTransport" ) );
00403   mMaxTransportEntriesItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "max-transport-items" ), mMaxTransportEntries, 10 );
00404   mMaxTransportEntriesItem->setLabel( i18n("max-transport-items") );
00405   addItem( mMaxTransportEntriesItem, QString::fromLatin1( "MaxTransportEntries" ) );
00406   mOutlookCompatibleAttachmentsItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "outlook-compatible-attachments" ), mOutlookCompatibleAttachments, false );
00407   mOutlookCompatibleAttachmentsItem->setLabel( i18n("Outlook-compatible attachment naming") );
00408   mOutlookCompatibleAttachmentsItem->setWhatsThis( i18n("Turn this option on to make Outlook ? understand attachment names containing non-English characters") );
00409   addItem( mOutlookCompatibleAttachmentsItem, QString::fromLatin1( "OutlookCompatibleAttachments" ) );
00410   mUseHtmlMarkupItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "html-markup" ), mUseHtmlMarkup, false );
00411   mUseHtmlMarkupItem->setLabel( i18n("html-markup") );
00412   addItem( mUseHtmlMarkupItem, QString::fromLatin1( "UseHtmlMarkup" ) );
00413   mPgpAutoSignItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "pgp-auto-sign" ), mPgpAutoSign, false );
00414   mPgpAutoSignItem->setLabel( i18n("pgp-auto-sign") );
00415   addItem( mPgpAutoSignItem, QString::fromLatin1( "PgpAutoSign" ) );
00416   mPgpAutoEncryptItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "pgp-auto-encrypt" ), mPgpAutoEncrypt, false );
00417   mPgpAutoEncryptItem->setLabel( i18n("pgp-auto-encrypt") );
00418   addItem( mPgpAutoEncryptItem, QString::fromLatin1( "PgpAutoEncrypt" ) );
00419   mNeverEncryptDraftsItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "never-encrypt-drafts" ), mNeverEncryptDrafts, true );
00420   mNeverEncryptDraftsItem->setLabel( i18n("never-encrypt-drafts") );
00421   addItem( mNeverEncryptDraftsItem, QString::fromLatin1( "NeverEncryptDrafts" ) );
00422   mChiasmusKeyItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "chiasmus-key" ), mChiasmusKey );
00423   mChiasmusKeyItem->setLabel( i18n("chiasmus-key") );
00424   addItem( mChiasmusKeyItem, QString::fromLatin1( "ChiasmusKey" ) );
00425   mChiasmusOptionsItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "chiasmus-options" ), mChiasmusOptions );
00426   mChiasmusOptionsItem->setLabel( i18n("chiasmus-options") );
00427   addItem( mChiasmusOptionsItem, QString::fromLatin1( "ChiasmusOptions" ) );
00428   mConfirmBeforeSendItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "confirm-before-send" ), mConfirmBeforeSend, false );
00429   mConfirmBeforeSendItem->setLabel( i18n("Confirm &before send") );
00430   addItem( mConfirmBeforeSendItem, QString::fromLatin1( "ConfirmBeforeSend" ) );
00431   mRequestMDNItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "request-mdn" ), mRequestMDN, false );
00432   mRequestMDNItem->setLabel( i18n("Automatically request &message disposition notifications") );
00433   mRequestMDNItem->setWhatsThis( i18n("<qt><p>Enable this option if you want KMail to request Message Disposition Notifications (MDNs) for each of your outgoing messages.</p><p>This option only affects the default; you can still enable or disable MDN requesting on a per-message basis in the composer, menu item <em>Options</em>-><em>Request Disposition Notification</em>.</p></qt>") );
00434   addItem( mRequestMDNItem, QString::fromLatin1( "RequestMDN" ) );
00435   mShowRecentAddressesInComposerItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "showRecentAddressesInComposer" ), mShowRecentAddressesInComposer, true );
00436   mShowRecentAddressesInComposerItem->setLabel( i18n("Use recent addresses for autocompletion") );
00437   mShowRecentAddressesInComposerItem->setWhatsThis( i18n("Disable this option if you do not want recently used addresses to appear in the autocompletion list in the composer's address fields.") );
00438   addItem( mShowRecentAddressesInComposerItem, QString::fromLatin1( "ShowRecentAddressesInComposer" ) );
00439   mHeadersItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "headers" ), mHeaders, HDR_STANDARD );
00440   mHeadersItem->setLabel( i18n("headers") );
00441   addItem( mHeadersItem, QString::fromLatin1( "Headers" ) );
00442   mCompletionModeItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "Completion Mode" ), mCompletionMode, KGlobalSettings::completionMode() );
00443   mCompletionModeItem->setLabel( i18n("Completion Mode") );
00444   addItem( mCompletionModeItem, QString::fromLatin1( "CompletionMode" ) );
00445   mAutoSpellCheckingItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "autoSpellChecking" ), mAutoSpellChecking, true );
00446   mAutoSpellCheckingItem->setLabel( i18n("autoSpellChecking") );
00447   addItem( mAutoSpellCheckingItem, QString::fromLatin1( "AutoSpellChecking" ) );
00448   mShowForgottenAttachmentWarningItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "showForgottenAttachmentWarning" ), mShowForgottenAttachmentWarning, true );
00449   mShowForgottenAttachmentWarningItem->setLabel( i18n("showForgottenAttachmentWarning") );
00450   addItem( mShowForgottenAttachmentWarningItem, QString::fromLatin1( "ShowForgottenAttachmentWarning" ) );
00451   mAttachmentKeywordsItem = new KConfigSkeleton::ItemStringList( currentGroup(), QString::fromLatin1( "attachment-keywords" ), mAttachmentKeywords );
00452   mAttachmentKeywordsItem->setLabel( i18n("attachment-keywords") );
00453   addItem( mAttachmentKeywordsItem, QString::fromLatin1( "AttachmentKeywords" ) );
00454   mShowMessagePartDialogOnAttachItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "showMessagePartDialogOnAttach" ), mShowMessagePartDialogOnAttach, false );
00455   mShowMessagePartDialogOnAttachItem->setLabel( i18n("showMessagePartDialogOnAttach") );
00456   addItem( mShowMessagePartDialogOnAttachItem, QString::fromLatin1( "ShowMessagePartDialogOnAttach" ) );
00457   mAutosaveIntervalItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "autosave" ), mAutosaveInterval, 2 );
00458   mAutosaveIntervalItem->setLabel( i18n("Autosave interval:") );
00459   mAutosaveIntervalItem->setWhatsThis( i18n("A backup copy of the text in the composer window can be created regularly. The interval used to create the backups is set here. You can disable autosaving by setting it to the value 0.") );
00460   addItem( mAutosaveIntervalItem, QString::fromLatin1( "AutosaveInterval" ) );
00461   mPrependSignatureItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "prepend-signature" ), mPrependSignature, false );
00462   mPrependSignatureItem->setLabel( i18n("Insert signatures above quoted text") );
00463   addItem( mPrependSignatureItem, QString::fromLatin1( "PrependSignature" ) );
00464   QStringList defaultReplyPrefixes;
00465   defaultReplyPrefixes.append( QString::fromUtf8( "Re\\s*:" ) );
00466   defaultReplyPrefixes.append( QString::fromUtf8( "Re\\[\\d+\\]:" ) );
00467   defaultReplyPrefixes.append( QString::fromUtf8( "Re\\d+:" ) );
00468 
00469   mReplyPrefixesItem = new KConfigSkeleton::ItemStringList( currentGroup(), QString::fromLatin1( "reply-prefixes" ), mReplyPrefixes, defaultReplyPrefixes );
00470   mReplyPrefixesItem->setLabel( i18n("reply-prefixes") );
00471   addItem( mReplyPrefixesItem, QString::fromLatin1( "ReplyPrefixes" ) );
00472   mReplaceReplyPrefixItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "replace-reply-prefix" ), mReplaceReplyPrefix, true );
00473   mReplaceReplyPrefixItem->setLabel( i18n("Replace recognized prefi&x with \"Re:\"") );
00474   addItem( mReplaceReplyPrefixItem, QString::fromLatin1( "ReplaceReplyPrefix" ) );
00475   QStringList defaultForwardPrefixes;
00476   defaultForwardPrefixes.append( QString::fromUtf8( "Fwd:" ) );
00477   defaultForwardPrefixes.append( QString::fromUtf8( "FW:" ) );
00478 
00479   mForwardPrefixesItem = new KConfigSkeleton::ItemStringList( currentGroup(), QString::fromLatin1( "forward-prefixes" ), mForwardPrefixes, defaultForwardPrefixes );
00480   mForwardPrefixesItem->setLabel( i18n("forward-prefixes") );
00481   addItem( mForwardPrefixesItem, QString::fromLatin1( "ForwardPrefixes" ) );
00482   mReplaceForwardPrefixItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "replace-forward-prefix" ), mReplaceForwardPrefix, true );
00483   mReplaceForwardPrefixItem->setLabel( i18n("Replace recognized prefix with \"&Fwd:\"") );
00484   addItem( mReplaceForwardPrefixItem, QString::fromLatin1( "ReplaceForwardPrefix" ) );
00485   mSmartQuoteItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "smart-quote" ), mSmartQuote, true );
00486   mSmartQuoteItem->setLabel( i18n("Use smart &quoting") );
00487   addItem( mSmartQuoteItem, QString::fromLatin1( "SmartQuote" ) );
00488   QValueList<KConfigSkeleton::ItemEnum::Choice> valuesAddresseeSelectorType;
00489   {
00490     KConfigSkeleton::ItemEnum::Choice choice;
00491     choice.name = QString::fromLatin1( "New" );
00492     valuesAddresseeSelectorType.append( choice );
00493   }
00494   {
00495     KConfigSkeleton::ItemEnum::Choice choice;
00496     choice.name = QString::fromLatin1( "Old" );
00497     valuesAddresseeSelectorType.append( choice );
00498   }
00499   mAddresseeSelectorTypeItem = new KConfigSkeleton::ItemEnum( currentGroup(), QString::fromLatin1( "AddresseeSelectorType" ), mAddresseeSelectorType, valuesAddresseeSelectorType, EnumAddresseeSelectorType::Old );
00500   mAddresseeSelectorTypeItem->setLabel( i18n("Type of addressee selector") );
00501   mAddresseeSelectorTypeItem->setWhatsThis( i18n("Sets the type of the dialog for selecting recipients for To,\n"
00502 "        CC and BCC.") );
00503   addItem( mAddresseeSelectorTypeItem, QString::fromLatin1( "AddresseeSelectorType" ) );
00504   QValueList<KConfigSkeleton::ItemEnum::Choice> valuesRecipientsEditorType;
00505   {
00506     KConfigSkeleton::ItemEnum::Choice choice;
00507     choice.name = QString::fromLatin1( "Classic" );
00508     valuesRecipientsEditorType.append( choice );
00509   }
00510   {
00511     KConfigSkeleton::ItemEnum::Choice choice;
00512     choice.name = QString::fromLatin1( "MultiLine" );
00513     valuesRecipientsEditorType.append( choice );
00514   }
00515   mRecipientsEditorTypeItem = new KConfigSkeleton::ItemEnum( currentGroup(), QString::fromLatin1( "RecipientsEditorType" ), mRecipientsEditorType, valuesRecipientsEditorType, EnumRecipientsEditorType::MultiLine );
00516   mRecipientsEditorTypeItem->setLabel( i18n("Type of recipients editor") );
00517   mRecipientsEditorTypeItem->setWhatsThis( i18n("Sets the type of the recipients editor for editing To,\n"
00518 "        CC and BCC.") );
00519   addItem( mRecipientsEditorTypeItem, QString::fromLatin1( "RecipientsEditorType" ) );
00520   QValueList<KConfigSkeleton::ItemEnum::Choice> valuesSecondRecipientTypeDefault;
00521   {
00522     KConfigSkeleton::ItemEnum::Choice choice;
00523     choice.name = QString::fromLatin1( "To" );
00524     valuesSecondRecipientTypeDefault.append( choice );
00525   }
00526   {
00527     KConfigSkeleton::ItemEnum::Choice choice;
00528     choice.name = QString::fromLatin1( "Cc" );
00529     valuesSecondRecipientTypeDefault.append( choice );
00530   }
00531   mSecondRecipientTypeDefaultItem = new KConfigSkeleton::ItemEnum( currentGroup(), QString::fromLatin1( "SecondRecipientTypeDefault" ), mSecondRecipientTypeDefault, valuesSecondRecipientTypeDefault, EnumSecondRecipientTypeDefault::To );
00532   mSecondRecipientTypeDefaultItem->setLabel( i18n("SecondRecipientTypeDefault") );
00533   addItem( mSecondRecipientTypeDefaultItem, QString::fromLatin1( "SecondRecipientTypeDefault" ) );
00534   mMaximumRecipientsItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "MaximumRecipients" ), mMaximumRecipients, 200 );
00535   mMaximumRecipientsItem->setLabel( i18n("Maximum number of recipient editor lines.") );
00536   addItem( mMaximumRecipientsItem, QString::fromLatin1( "MaximumRecipients" ) );
00537   mCustomTemplatesItem = new KConfigSkeleton::ItemStringList( currentGroup(), QString::fromLatin1( "CustomTemplates" ), mCustomTemplates );
00538   mCustomTemplatesItem->setLabel( i18n("CustomTemplates") );
00539   addItem( mCustomTemplatesItem, QString::fromLatin1( "CustomTemplates" ) );
00540   mMimetypesToStripWhenInlineForwardingItem = new KConfigSkeleton::ItemStringList( currentGroup(), QString::fromLatin1( "MimetypesToStripWhenInlineForwarding" ), mMimetypesToStripWhenInlineForwarding );
00541   mMimetypesToStripWhenInlineForwardingItem->setLabel( i18n("List of message part types to strip off mails that are being forwarded inline.") );
00542   addItem( mMimetypesToStripWhenInlineForwardingItem, QString::fromLatin1( "MimetypesToStripWhenInlineForwarding" ) );
00543   mMaximumAttachmentSizeItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "MaximumAttachmentSize" ), mMaximumAttachmentSize, 50 );
00544   mMaximumAttachmentSizeItem->setLabel( i18n("The maximum size in MB that email attachments are allowed to have.") );
00545   addItem( mMaximumAttachmentSizeItem, QString::fromLatin1( "MaximumAttachmentSize" ) );
00546   mShowSnippetManagerItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "ShowSnippetManager" ), mShowSnippetManager, false );
00547   mShowSnippetManagerItem->setLabel( i18n("Show the Text Snippet Management and Insertion Panel in the composer.") );
00548   addItem( mShowSnippetManagerItem, QString::fromLatin1( "ShowSnippetManager" ) );
00549   QValueList<int> defaultSnippetSplitterPosition;
00550 
00551   mSnippetSplitterPositionItem = new KConfigSkeleton::ItemIntList( currentGroup(), QString::fromLatin1( "SnippetSplitterPosition" ), mSnippetSplitterPosition, defaultSnippetSplitterPosition );
00552   mSnippetSplitterPositionItem->setLabel( i18n("SnippetSplitterPosition") );
00553   addItem( mSnippetSplitterPositionItem, QString::fromLatin1( "SnippetSplitterPosition" ) );
00554   mShowGnuPGAuditLogAfterSuccessfulSignEncryptItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "ShowGnuPGAuditLogAfterSuccessfulSignEncrypt" ), mShowGnuPGAuditLogAfterSuccessfulSignEncrypt, false );
00555   mShowGnuPGAuditLogAfterSuccessfulSignEncryptItem->setLabel( i18n("Show the GnuPG Audit Log even after crypto operations that completed successfully.") );
00556   addItem( mShowGnuPGAuditLogAfterSuccessfulSignEncryptItem, QString::fromLatin1( "ShowGnuPGAuditLogAfterSuccessfulSignEncrypt" ) );
00557 
00558   setCurrentGroup( QString::fromLatin1( "Fonts" ) );
00559 
00560   mUseDefaultFontsItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "defaultFonts" ), mUseDefaultFonts, true );
00561   mUseDefaultFontsItem->setLabel( i18n("defaultFonts") );
00562   addItem( mUseDefaultFontsItem, QString::fromLatin1( "UseDefaultFonts" ) );
00563   mComposerFontItem = new KConfigSkeleton::ItemFont( currentGroup(), QString::fromLatin1( "composer-font" ), mComposerFont, KGlobalSettings::generalFont() );
00564   mComposerFontItem->setLabel( i18n("composer-font") );
00565   addItem( mComposerFontItem, QString::fromLatin1( "ComposerFont" ) );
00566   mFixedFontItem = new KConfigSkeleton::ItemFont( currentGroup(), QString::fromLatin1( "fixed-font" ), mFixedFont, KGlobalSettings::fixedFont() );
00567   mFixedFontItem->setLabel( i18n("fixed-font") );
00568   addItem( mFixedFontItem, QString::fromLatin1( "FixedFont" ) );
00569 
00570   setCurrentGroup( QString::fromLatin1( "Geometry" ) );
00571 
00572   mComposerSizeItem = new KConfigSkeleton::ItemSize( currentGroup(), QString::fromLatin1( "composer" ), mComposerSize, QSize(480,510) );
00573   mComposerSizeItem->setLabel( i18n("composer") );
00574   addItem( mComposerSizeItem, QString::fromLatin1( "ComposerSize" ) );
00575 
00576   setCurrentGroup( QString::fromLatin1( "Reader" ) );
00577 
00578   mUseDefaultColorsItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "defaultColors" ), mUseDefaultColors, true );
00579   mUseDefaultColorsItem->setLabel( i18n("defaultColors") );
00580   addItem( mUseDefaultColorsItem, QString::fromLatin1( "UseDefaultColors" ) );
00581   mForegroundColorItem = new KConfigSkeleton::ItemColor( currentGroup(), QString::fromLatin1( "ForegroundColor" ), mForegroundColor, kapp->palette().active().text() );
00582   mForegroundColorItem->setLabel( i18n("ForegroundColor") );
00583   addItem( mForegroundColorItem, QString::fromLatin1( "ForegroundColor" ) );
00584   mBackgroundColorItem = new KConfigSkeleton::ItemColor( currentGroup(), QString::fromLatin1( "BackgroundColor" ), mBackgroundColor, kapp->palette().active().base() );
00585   mBackgroundColorItem->setLabel( i18n("BackgroundColor") );
00586   addItem( mBackgroundColorItem, QString::fromLatin1( "BackgroundColor" ) );
00587   mFallbackCharacterEncodingItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "FallbackCharacterEncoding" ), mFallbackCharacterEncoding,  QCString(QTextCodec::codecForLocale()->name()).lower() == "eucjp"? QCString("jis7") : QCString(QTextCodec::codecForLocale()->name()).lower() );
00588   mFallbackCharacterEncodingItem->setLabel( i18n("FallbackCharacterEncoding") );
00589   mFallbackCharacterEncodingItem->setWhatsThis( i18n("Some emails, especially those generated automatically, do not specify the character encoding which needs to be used to properly display them. In such cases a fallback character encoding will be used, which you can configure here. Set it to the character encoding most commonly used in your part of the world. As a default the encoding configured for the whole system is used.") );
00590   addItem( mFallbackCharacterEncodingItem, QString::fromLatin1( "FallbackCharacterEncoding" ) );
00591   mOverrideCharacterEncodingItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "encoding" ), mOverrideCharacterEncoding );
00592   mOverrideCharacterEncodingItem->setLabel( i18n("encoding") );
00593   mOverrideCharacterEncodingItem->setWhatsThis( i18n("Changing this from its default 'Auto' will force the use of the specified encoding for all emails, regardless of what they specify themselves.") );
00594   addItem( mOverrideCharacterEncodingItem, QString::fromLatin1( "OverrideCharacterEncoding" ) );
00595   mShowEmoticonsItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "ShowEmoticons" ), mShowEmoticons, true );
00596   mShowEmoticonsItem->setLabel( i18n("Replace smileys by emoticons") );
00597   mShowEmoticonsItem->setWhatsThis( i18n("Enable this if you want smileys like :-) appearing in the message text to be replaced by emoticons (small pictures).") );
00598   addItem( mShowEmoticonsItem, QString::fromLatin1( "ShowEmoticons" ) );
00599   mShowExpandQuotesMarkItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "ShowExpandQuotesMark" ), mShowExpandQuotesMark, false );
00600   mShowExpandQuotesMarkItem->setLabel( i18n("Show expand/collapse quote marks") );
00601   mShowExpandQuotesMarkItem->setWhatsThis( i18n("Enable this option to show different levels of quoted text. Disable to hide the levels of quoted text.") );
00602   addItem( mShowExpandQuotesMarkItem, QString::fromLatin1( "ShowExpandQuotesMark" ) );
00603   mCollapseQuoteLevelSpinItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "CollapseQuoteLevelSpin" ), mCollapseQuoteLevelSpin, 3 );
00604   mCollapseQuoteLevelSpinItem->setMinValue(0);
00605   mCollapseQuoteLevelSpinItem->setMaxValue(10);
00606   mCollapseQuoteLevelSpinItem->setLabel( i18n("Automatic collapse level:") );
00607   addItem( mCollapseQuoteLevelSpinItem, QString::fromLatin1( "CollapseQuoteLevelSpin" ) );
00608   mShrinkQuotesItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "ShrinkQuotes" ), mShrinkQuotes, false );
00609   mShrinkQuotesItem->setLabel( i18n("Reduce font size for quoted text") );
00610   mShrinkQuotesItem->setWhatsThis( i18n("Enable this option to show quoted text with a smaller font.") );
00611   addItem( mShrinkQuotesItem, QString::fromLatin1( "ShrinkQuotes" ) );
00612   mChiasmusDecryptionKeyItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "ChiasmusDecryptionKey" ), mChiasmusDecryptionKey );
00613   mChiasmusDecryptionKeyItem->setLabel( i18n("ChiasmusDecryptionKey") );
00614   addItem( mChiasmusDecryptionKeyItem, QString::fromLatin1( "ChiasmusDecryptionKey" ) );
00615   mChiasmusDecryptionOptionsItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "ChiasmusDecryptionOptions" ), mChiasmusDecryptionOptions );
00616   mChiasmusDecryptionOptionsItem->setLabel( i18n("ChiasmusDecryptionOptions") );
00617   addItem( mChiasmusDecryptionOptionsItem, QString::fromLatin1( "ChiasmusDecryptionOptions" ) );
00618   mShowUserAgentItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "ShowUserAgent" ), mShowUserAgent, false );
00619   mShowUserAgentItem->setLabel( i18n("Show user agent in fancy headers") );
00620   mShowUserAgentItem->setWhatsThis( i18n("Enable this option to get the User-Agent and X-Mailer header lines displayed when using fancy headers.") );
00621   addItem( mShowUserAgentItem, QString::fromLatin1( "ShowUserAgent" ) );
00622   mAllowAttachmentDeletionItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "AllowAttachmentDeletion" ), mAllowAttachmentDeletion, true );
00623   mAllowAttachmentDeletionItem->setLabel( i18n("Allow to delete attachments of existing mails.") );
00624   addItem( mAllowAttachmentDeletionItem, QString::fromLatin1( "AllowAttachmentDeletion" ) );
00625   mAllowAttachmentEditingItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "AllowAttachmentEditing" ), mAllowAttachmentEditing, false );
00626   mAllowAttachmentEditingItem->setLabel( i18n("Allow to edit attachments of existing mails.") );
00627   addItem( mAllowAttachmentEditingItem, QString::fromLatin1( "AllowAttachmentEditing" ) );
00628   mAlwaysDecryptItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "AlwaysDecrypt" ), mAlwaysDecrypt, false );
00629   mAlwaysDecryptItem->setLabel( i18n("Always decrypt messages when viewing or ask befor decrypting") );
00630   addItem( mAlwaysDecryptItem, QString::fromLatin1( "AlwaysDecrypt" ) );
00631 
00632   setCurrentGroup( QString::fromLatin1( "TextIndex" ) );
00633 
00634   mAutomaticDecryptItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "automaticDecrypt" ), mAutomaticDecrypt, true );
00635   mAutomaticDecryptItem->setLabel( i18n("automaticDecrypt") );
00636   addItem( mAutomaticDecryptItem, QString::fromLatin1( "automaticDecrypt" ) );
00637 
00638   setCurrentGroup( QString::fromLatin1( "MDN" ) );
00639 
00640   mSendMDNsWithEmptySenderItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "SendMDNsWithEmptySender" ), mSendMDNsWithEmptySender, false );
00641   mSendMDNsWithEmptySenderItem->setLabel( i18n("Send Message Disposition Notifications with an empty sender.") );
00642   mSendMDNsWithEmptySenderItem->setWhatsThis( i18n("Send Message Disposition Notifications with an empty sender string. Some servers might be configure to reject such messages, so if you are experiencing problems sending MDNs, uncheck this option.") );
00643   addItem( mSendMDNsWithEmptySenderItem, QString::fromLatin1( "SendMDNsWithEmptySender" ) );
00644 
00645   setCurrentGroup( QString::fromLatin1( "GlobalTemplates" ) );
00646 
00647   mPhrasesConvertedItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "PhrasesConverted" ), mPhrasesConverted, false );
00648   mPhrasesConvertedItem->setLabel( i18n("Phrases has been converted to templates") );
00649   mPhrasesConvertedItem->setWhatsThis( i18n("Old phrases have been converted to templates") );
00650   addItem( mPhrasesConvertedItem, QString::fromLatin1( "PhrasesConverted" ) );
00651   mTemplateNewMessageItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "TemplateNewMessage" ), mTemplateNewMessage, TemplatesConfiguration::defaultNewMessage() );
00652   mTemplateNewMessageItem->setLabel( i18n("Message template for new message") );
00653   addItem( mTemplateNewMessageItem, QString::fromLatin1( "TemplateNewMessage" ) );
00654   mTemplateReplyItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "TemplateReply" ), mTemplateReply, TemplatesConfiguration::defaultReply() );
00655   mTemplateReplyItem->setLabel( i18n("Message template for reply") );
00656   addItem( mTemplateReplyItem, QString::fromLatin1( "TemplateReply" ) );
00657   mTemplateReplyAllItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "TemplateReplyAll" ), mTemplateReplyAll, TemplatesConfiguration::defaultReplyAll() );
00658   mTemplateReplyAllItem->setLabel( i18n("Message template for reply to all") );
00659   addItem( mTemplateReplyAllItem, QString::fromLatin1( "TemplateReplyAll" ) );
00660   mTemplateForwardItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "TemplateForward" ), mTemplateForward, TemplatesConfiguration::defaultForward() );
00661   mTemplateForwardItem->setLabel( i18n("Message template for forward") );
00662   addItem( mTemplateForwardItem, QString::fromLatin1( "TemplateForward" ) );
00663   mQuoteStringItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "QuoteString" ), mQuoteString, TemplatesConfiguration::defaultQuoteString() );
00664   mQuoteStringItem->setLabel( i18n("Quote characters") );
00665   addItem( mQuoteStringItem, QString::fromLatin1( "QuoteString" ) );
00666 
00667   setCurrentGroup( QString::fromLatin1( "OutOfOffice" ) );
00668 
00669   mAllowOutOfOfficeSettingsItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "AllowOutOfOfficeSettings" ), mAllowOutOfOfficeSettings, true );
00670   mAllowOutOfOfficeSettingsItem->setLabel( i18n("Allow out-of-office settings to to be changeable by the user.") );
00671   addItem( mAllowOutOfOfficeSettingsItem, QString::fromLatin1( "AllowOutOfOfficeSettings" ) );
00672   mAllowOutOfOfficeUploadButNoSettingsItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "AllowOutOfOfficeUploadButNoSettings" ), mAllowOutOfOfficeUploadButNoSettings, false );
00673   mAllowOutOfOfficeUploadButNoSettingsItem->setLabel( i18n("Allow users to upload out-of-office sieve scripts, but disallow them changin any settings, such as the domain to react to and the spam reaction switch.") );
00674   addItem( mAllowOutOfOfficeUploadButNoSettingsItem, QString::fromLatin1( "AllowOutOfOfficeUploadButNoSettings" ) );
00675   mOutOfOfficeDomainItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "OutOfOfficeDomain" ), mOutOfOfficeDomain );
00676   mOutOfOfficeDomainItem->setLabel( i18n("Send out-of-office replies to mails coming from this domain only.") );
00677   addItem( mOutOfOfficeDomainItem, QString::fromLatin1( "OutOfOfficeDomain" ) );
00678   mOutOfOfficeReactToSpamItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "OutOfOfficeReactToSpam" ), mOutOfOfficeReactToSpam, false );
00679   mOutOfOfficeReactToSpamItem->setLabel( i18n("Allow out-of-office replies to be sent to messages marked as SPAM.") );
00680   addItem( mOutOfOfficeReactToSpamItem, QString::fromLatin1( "OutOfOfficeReactToSpam" ) );
00681   mCheckOutOfOfficeOnStartupItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "CheckOutOfOfficeOnStartup" ), mCheckOutOfOfficeOnStartup, true );
00682   mCheckOutOfOfficeOnStartupItem->setLabel( i18n("Check if there is still an active out-of-office reply configured when starting KMail.") );
00683   addItem( mCheckOutOfOfficeOnStartupItem, QString::fromLatin1( "CheckOutOfOfficeOnStartup" ) );
00684 
00685   setCurrentGroup( QString::fromLatin1( "FavoriteFolderView" ) );
00686 
00687   mEnableFavoriteFolderViewItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "EnableFavoriteFolderView" ), mEnableFavoriteFolderView, true );
00688   mEnableFavoriteFolderViewItem->setLabel( i18n("EnableFavoriteFolderView") );
00689   addItem( mEnableFavoriteFolderViewItem, QString::fromLatin1( "EnableFavoriteFolderView" ) );
00690   QValueList<int> defaultFolderViewSplitterPosition;
00691 
00692   mFolderViewSplitterPositionItem = new KConfigSkeleton::ItemIntList( currentGroup(), QString::fromLatin1( "FolderViewSplitterPosition" ), mFolderViewSplitterPosition, defaultFolderViewSplitterPosition );
00693   mFolderViewSplitterPositionItem->setLabel( i18n("FolderViewSplitterPosition") );
00694   addItem( mFolderViewSplitterPositionItem, QString::fromLatin1( "FolderViewSplitterPosition" ) );
00695   QValueList<int> defaultFavoriteFolderIds;
00696 
00697   mFavoriteFolderIdsItem = new KConfigSkeleton::ItemIntList( currentGroup(), QString::fromLatin1( "FavoriteFolderIds" ), mFavoriteFolderIds, defaultFavoriteFolderIds );
00698   mFavoriteFolderIdsItem->setLabel( i18n("FavoriteFolderIds") );
00699   addItem( mFavoriteFolderIdsItem, QString::fromLatin1( "FavoriteFolderIds" ) );
00700   mFavoriteFolderNamesItem = new KConfigSkeleton::ItemStringList( currentGroup(), QString::fromLatin1( "FavoriteFolderNames" ), mFavoriteFolderNames );
00701   mFavoriteFolderNamesItem->setLabel( i18n("FavoriteFolderNames") );
00702   addItem( mFavoriteFolderNamesItem, QString::fromLatin1( "FavoriteFolderNames" ) );
00703   QValueList<int> defaultFavoriteFolderViewSeenInboxes;
00704 
00705   mFavoriteFolderViewSeenInboxesItem = new KConfigSkeleton::ItemIntList( currentGroup(), QString::fromLatin1( "FavoriteFolderViewSeenInboxes" ), mFavoriteFolderViewSeenInboxes, defaultFavoriteFolderViewSeenInboxes );
00706   mFavoriteFolderViewSeenInboxesItem->setLabel( i18n("FavoriteFolderViewSeenInboxes") );
00707   addItem( mFavoriteFolderViewSeenInboxesItem, QString::fromLatin1( "FavoriteFolderViewSeenInboxes" ) );
00708 }
00709 
00710 GlobalSettingsBase::~GlobalSettingsBase()
00711 {
00712   if ( mSelf == this )
00713     staticGlobalSettingsBaseDeleter.setObject( mSelf, 0, false );
00714 }
00715 
KDE Home | KDE Accessibility Home | Description of Access Keys