kaddressbook

kabprefs_base.cpp

00001 // This file is generated by kconfig_compiler from kaddressbook.kcfg.
00002 // All changes you do to this file will be lost.
00003 
00004 #include "kabprefs_base.h"
00005 
00006 #include <klocale.h>
00007 
00008 KABPrefsBase::KABPrefsBase(  )
00009   : KPimPrefs( QString::fromLatin1( "kaddressbookrc" ) )
00010 {
00011   setCurrentGroup( QString::fromLatin1( "General" ) );
00012 
00013   mAutomaticNameParsingItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "AutomaticNameParsing" ), mAutomaticNameParsing, true );
00014   mAutomaticNameParsingItem->setLabel( i18n("Automatic name parsing for new addressees") );
00015   addItem( mAutomaticNameParsingItem, QString::fromLatin1( "AutomaticNameParsing" ) );
00016   mCurrentIncSearchFieldItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "CurrentIncSearchField" ), mCurrentIncSearchField, 0 );
00017   mCurrentIncSearchFieldItem->setLabel( i18n("CurrentIncSearchField") );
00018   addItem( mCurrentIncSearchFieldItem, QString::fromLatin1( "CurrentIncSearchField" ) );
00019   mPhoneHookApplicationItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "PhoneHookApplication" ), mPhoneHookApplication );
00020   mPhoneHookApplicationItem->setLabel( i18n("Phone") );
00021   addItem( mPhoneHookApplicationItem, QString::fromLatin1( "PhoneHookApplication" ) );
00022   mFaxHookApplicationItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "FaxHookApplication" ), mFaxHookApplication, QString::fromLatin1( "kdeprintfax --phone %N" ) );
00023   mFaxHookApplicationItem->setLabel( i18n("Fax") );
00024   addItem( mFaxHookApplicationItem, QString::fromLatin1( "FaxHookApplication" ) );
00025   mSMSHookApplicationItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "SMSHookApplication" ), mSMSHookApplication );
00026   mSMSHookApplicationItem->setLabel( i18n("SMS") );
00027   mSMSHookApplicationItem->setWhatsThis( i18n("The script used to send a GSM SMS text message to the mobile phone") );
00028   addItem( mSMSHookApplicationItem, QString::fromLatin1( "SMSHookApplication" ) );
00029 
00030   setCurrentGroup( QString::fromLatin1( "Views" ) );
00031 
00032   mHonorSingleClickItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "HonorSingleClick" ), mHonorSingleClick, false );
00033   mHonorSingleClickItem->setLabel( i18n("Honor KDE single click") );
00034   addItem( mHonorSingleClickItem, QString::fromLatin1( "HonorSingleClick" ) );
00035   mCurrentViewItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "CurrentView" ), mCurrentView, QString::fromLatin1( "Default Table View" ) );
00036   mCurrentViewItem->setLabel( i18n("CurrentView") );
00037   addItem( mCurrentViewItem, QString::fromLatin1( "CurrentView" ) );
00038   QStringList defaultViewNames;
00039   defaultViewNames.append( QString::fromUtf8( "Default Table View" ) );
00040 
00041   mViewNamesItem = new KConfigSkeleton::ItemStringList( currentGroup(), QString::fromLatin1( "ViewNames" ), mViewNames, defaultViewNames );
00042   mViewNamesItem->setLabel( i18n("ViewNames") );
00043   addItem( mViewNamesItem, QString::fromLatin1( "ViewNames" ) );
00044 
00045   setCurrentGroup( QString::fromLatin1( "MainWindow" ) );
00046 
00047   mJumpButtonBarVisibleItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "JumpButtonBarVisible" ), mJumpButtonBarVisible, false );
00048   mJumpButtonBarVisibleItem->setLabel( i18n("JumpButtonBarVisible") );
00049   addItem( mJumpButtonBarVisibleItem, QString::fromLatin1( "JumpButtonBarVisible" ) );
00050   mDetailsPageVisibleItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "DetailsPageVisible" ), mDetailsPageVisible, true );
00051   mDetailsPageVisibleItem->setLabel( i18n("DetailsPageVisible") );
00052   addItem( mDetailsPageVisibleItem, QString::fromLatin1( "DetailsPageVisible" ) );
00053   QValueList<int> defaultExtensionsSplitter;
00054 
00055   mExtensionsSplitterItem = new KConfigSkeleton::ItemIntList( currentGroup(), QString::fromLatin1( "ExtensionsSplitter" ), mExtensionsSplitter, defaultExtensionsSplitter );
00056   mExtensionsSplitterItem->setLabel( i18n("ExtensionsSplitter") );
00057   addItem( mExtensionsSplitterItem, QString::fromLatin1( "ExtensionsSplitter" ) );
00058   QValueList<int> defaultDetailsSplitter;
00059 
00060   mDetailsSplitterItem = new KConfigSkeleton::ItemIntList( currentGroup(), QString::fromLatin1( "DetailsSplitter" ), mDetailsSplitter, defaultDetailsSplitter );
00061   mDetailsSplitterItem->setLabel( i18n("DetailsSplitter") );
00062   addItem( mDetailsSplitterItem, QString::fromLatin1( "DetailsSplitter" ) );
00063 
00064   setCurrentGroup( QString::fromLatin1( "ExtensionsGeneral" ) );
00065 
00066   mCurrentExtensionItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "CurrentExtension" ), mCurrentExtension, QString::fromLatin1( "resourceselection" ) );
00067   mCurrentExtensionItem->setLabel( i18n("CurrentExtension") );
00068   addItem( mCurrentExtensionItem, QString::fromLatin1( "CurrentExtension" ) );
00069 
00070   setCurrentGroup( QString::fromLatin1( "Filters" ) );
00071 
00072   mCurrentFilterItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "CurrentFilter" ), mCurrentFilter, 0 );
00073   mCurrentFilterItem->setLabel( i18n("CurrentFilter") );
00074   addItem( mCurrentFilterItem, QString::fromLatin1( "CurrentFilter" ) );
00075 
00076   setCurrentGroup( QString::fromLatin1( "AddresseeEditor" ) );
00077 
00078   QValueList<KConfigSkeleton::ItemEnum::Choice> valuesEditorType;
00079   {
00080     KConfigSkeleton::ItemEnum::Choice choice;
00081     choice.name = QString::fromLatin1( "FullEditor" );
00082     valuesEditorType.append( choice );
00083   }
00084   {
00085     KConfigSkeleton::ItemEnum::Choice choice;
00086     choice.name = QString::fromLatin1( "SimpleEditor" );
00087     valuesEditorType.append( choice );
00088   }
00089   mEditorTypeItem = new KConfigSkeleton::ItemEnum( currentGroup(), QString::fromLatin1( "EditorType" ), mEditorType, valuesEditorType, FullEditor );
00090   mEditorTypeItem->setLabel( i18n("EditorType") );
00091   addItem( mEditorTypeItem, QString::fromLatin1( "EditorType" ) );
00092   mGlobalCustomFieldsItem = new KConfigSkeleton::ItemStringList( currentGroup(), QString::fromLatin1( "GlobalCustomFields" ), mGlobalCustomFields );
00093   mGlobalCustomFieldsItem->setLabel( i18n("GlobalCustomFields") );
00094   addItem( mGlobalCustomFieldsItem, QString::fromLatin1( "GlobalCustomFields" ) );
00095   mAdvancedCustomFieldsItem = new KConfigSkeleton::ItemStringList( currentGroup(), QString::fromLatin1( "AdvancedCustomFields" ), mAdvancedCustomFields );
00096   mAdvancedCustomFieldsItem->setLabel( i18n("AdvancedCustomFields") );
00097   addItem( mAdvancedCustomFieldsItem, QString::fromLatin1( "AdvancedCustomFields" ) );
00098 }
00099 
00100 KABPrefsBase::~KABPrefsBase()
00101 {
00102 }
00103 
KDE Home | KDE Accessibility Home | Description of Access Keys