kabprefs.cpp
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #include <kconfig.h>
00025 #include <klocale.h>
00026
00027 #include "kabprefs.h"
00028
00029 KABPrefs *KABPrefs::sInstance = 0;
00030
00031 KABPrefs::KABPrefs()
00032 {
00033 KPrefs::setCurrentGroup( "Views" );
00034
00035 addItemBool( "HonorSingleClick", &mHonorSingleClick, false );
00036 }
00037
00038 KABPrefs::~KABPrefs()
00039 {
00040 }
00041
00042 KABPrefs *KABPrefs::instance()
00043 {
00044 if ( !sInstance ) {
00045 sInstance = new KABPrefs();
00046 sInstance->readConfig();
00047 }
00048
00049 return sInstance;
00050 }
00051
00052 void KABPrefs::setCategoryDefaults()
00053 {
00054 mCustomCategories.clear();
00055
00056 mCustomCategories << i18n("Business") << i18n("Family") << i18n("School")
00057 << i18n("Customer") << i18n("Friend");
00058 }
This file is part of the documentation for kdelibs Version 3.1.4.