kontact Library API Documentation

prefs.cpp

00001 // This file is generated by kconfig_compiler from kontact.kcfg. 00002 // All changes you do to this file will be lost. 00003 00004 #include "prefs.h" 00005 00006 #include <klocale.h> 00007 00008 #include <kstaticdeleter.h> 00009 00010 using namespace Kontact; 00011 00012 Prefs *Prefs::mSelf = 0; 00013 static KStaticDeleter<Prefs> staticDeleter; 00014 00015 Prefs *Prefs::self() 00016 { 00017 if ( !mSelf ) { 00018 staticDeleter.setObject( mSelf, new Prefs() ); 00019 mSelf->readConfig(); 00020 } 00021 00022 return mSelf; 00023 } 00024 00025 Prefs::Prefs( ) 00026 : KConfigSkeleton( "kontactrc" ) 00027 { 00028 mSelf = this; 00029 setCurrentGroup( "View" ); 00030 00031 mActivePluginItem = new KConfigSkeleton::ItemString( currentGroup(), "ActivePlugin", mActivePlugin, "kontact_summaryplugin" ); 00032 mActivePluginItem->setLabel( i18n("ActivePlugin") ); 00033 addItem( mActivePluginItem ); 00034 QValueList<int> defaultSidePaneSplitter; 00035 00036 mSidePaneSplitterItem = new KConfigSkeleton::ItemIntList( currentGroup(), "SidePaneSplitter", mSidePaneSplitter, defaultSidePaneSplitter ); 00037 mSidePaneSplitterItem->setLabel( i18n("SidePaneSplitter") ); 00038 addItem( mSidePaneSplitterItem ); 00039 QValueList<KConfigSkeleton::ItemEnum::Choice> valuesSidePaneType; 00040 { 00041 KConfigSkeleton::ItemEnum::Choice choice; 00042 choice.name = "SidePaneBars"; 00043 choice.label = i18n("Button view with sidebar extension"); 00044 valuesSidePaneType.append( choice ); 00045 } 00046 { 00047 KConfigSkeleton::ItemEnum::Choice choice; 00048 choice.name = "SidePaneIcons"; 00049 choice.label = i18n("Icon view"); 00050 valuesSidePaneType.append( choice ); 00051 } 00052 mSidePaneTypeItem = new KConfigSkeleton::ItemEnum( currentGroup(), "SidePaneType", mSidePaneType, valuesSidePaneType, SidePaneIcons ); 00053 mSidePaneTypeItem->setLabel( i18n("Side Pane Type") ); 00054 addItem( mSidePaneTypeItem ); 00055 } 00056 00057 Prefs::~Prefs() 00058 { 00059 if ( mSelf == this ) 00060 staticDeleter.setObject( mSelf, 0, false ); 00061 } 00062
KDE Logo
This file is part of the documentation for kontact Library Version 3.3.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Fri Oct 1 15:19:36 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003