kontact

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> staticPrefsDeleter;
00014 
00015 Prefs *Prefs::self()
00016 {
00017   if ( !mSelf ) {
00018     staticPrefsDeleter.setObject( mSelf, new Prefs() );
00019     mSelf->readConfig();
00020   }
00021 
00022   return mSelf;
00023 }
00024 
00025 Prefs::Prefs(  )
00026   : KConfigSkeleton( QString::fromLatin1( "kontactrc" ) )
00027 {
00028   mSelf = this;
00029   setCurrentGroup( QString::fromLatin1( "View" ) );
00030 
00031   mActivePluginItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "ActivePlugin" ), mActivePlugin, QString::fromLatin1( "kontact_summaryplugin" ) );
00032   mActivePluginItem->setLabel( i18n("ActivePlugin") );
00033   addItem( mActivePluginItem, QString::fromLatin1( "ActivePlugin" ) );
00034   mForceStartupPluginItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "ForceStartupPlugin" ), mForceStartupPlugin, false );
00035   mForceStartupPluginItem->setLabel( i18n("Always start with specified component:") );
00036   mForceStartupPluginItem->setWhatsThis( i18n("Usually Kontact will come up with the component used before shutdown. Check this box if you would like a specific component to come up on start instead.") );
00037   addItem( mForceStartupPluginItem, QString::fromLatin1( "ForceStartupPlugin" ) );
00038   mForcedStartupPluginItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "ForcedStartupPlugin" ), mForcedStartupPlugin );
00039   mForcedStartupPluginItem->setLabel( i18n("ForcedStartupPlugin") );
00040   addItem( mForcedStartupPluginItem, QString::fromLatin1( "ForcedStartupPlugin" ) );
00041   QValueList<int> defaultSidePaneSplitter;
00042   defaultSidePaneSplitter.append( 1 );
00043 
00044   mSidePaneSplitterItem = new KConfigSkeleton::ItemIntList( currentGroup(), QString::fromLatin1( "SidePaneSplitter" ), mSidePaneSplitter, defaultSidePaneSplitter );
00045   mSidePaneSplitterItem->setLabel( i18n("SidePaneSplitter") );
00046   addItem( mSidePaneSplitterItem, QString::fromLatin1( "SidePaneSplitter" ) );
00047   mSidePaneIconSizeItem = new KConfigSkeleton::ItemInt( currentGroup(), QString::fromLatin1( "SidePaneIconSize" ), mSidePaneIconSize, 32 );
00048   mSidePaneIconSizeItem->setLabel( i18n("SidePaneIconSize") );
00049   addItem( mSidePaneIconSizeItem, QString::fromLatin1( "SidePaneIconSize" ) );
00050   mSidePaneShowIconsItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "SidePaneShowIcons" ), mSidePaneShowIcons, true );
00051   mSidePaneShowIconsItem->setLabel( i18n("SidePaneShowIcons") );
00052   addItem( mSidePaneShowIconsItem, QString::fromLatin1( "SidePaneShowIcons" ) );
00053   mSidePaneShowTextItem = new KConfigSkeleton::ItemBool( currentGroup(), QString::fromLatin1( "SidePaneShowText" ), mSidePaneShowText, false );
00054   mSidePaneShowTextItem->setLabel( i18n("SidePaneShowText") );
00055   addItem( mSidePaneShowTextItem, QString::fromLatin1( "SidePaneShowText" ) );
00056   mLastVersionSeenItem = new KConfigSkeleton::ItemString( currentGroup(), QString::fromLatin1( "LastVersionSeen" ), mLastVersionSeen );
00057   mLastVersionSeenItem->setLabel( i18n("LastVersionSeen") );
00058   addItem( mLastVersionSeenItem, QString::fromLatin1( "LastVersionSeen" ) );
00059 }
00060 
00061 Prefs::~Prefs()
00062 {
00063   if ( mSelf == this )
00064     staticPrefsDeleter.setObject( mSelf, 0, false );
00065 }
00066 
KDE Home | KDE Accessibility Home | Description of Access Keys