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