author | zautrix <zautrix> | 2005-03-29 13:52:41 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-03-29 13:52:41 (UTC) |
commit | 7046b36fb5dd14598ece00b575554eba2956ef84 (patch) (unidiff) | |
tree | 934579f9f61f09563dfcbfef207d314d510d57ea /kaddressbook/kabprefs.cpp | |
parent | 894717798a8d129f4b991a2fe856d2f1e8e9624a (diff) | |
download | kdepimpi-7046b36fb5dd14598ece00b575554eba2956ef84.zip kdepimpi-7046b36fb5dd14598ece00b575554eba2956ef84.tar.gz kdepimpi-7046b36fb5dd14598ece00b575554eba2956ef84.tar.bz2 |
kapi fixes
-rw-r--r-- | kaddressbook/kabprefs.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kaddressbook/kabprefs.cpp b/kaddressbook/kabprefs.cpp index b96d28a..ea254b7 100644 --- a/kaddressbook/kabprefs.cpp +++ b/kaddressbook/kabprefs.cpp | |||
@@ -31,64 +31,66 @@ | |||
31 | #include <stdlib.h> | 31 | #include <stdlib.h> |
32 | #include <libkdepim/kpimglobalprefs.h> | 32 | #include <libkdepim/kpimglobalprefs.h> |
33 | 33 | ||
34 | #include <kconfig.h> | 34 | #include <kconfig.h> |
35 | #include <klocale.h> | 35 | #include <klocale.h> |
36 | #include <kstaticdeleter.h> | 36 | #include <kstaticdeleter.h> |
37 | #include <kglobalsettings.h> | 37 | #include <kglobalsettings.h> |
38 | //US#include <kdebug.h> // defines kdDebug() | 38 | //US#include <kdebug.h> // defines kdDebug() |
39 | 39 | ||
40 | #include "kabprefs.h" | 40 | #include "kabprefs.h" |
41 | 41 | ||
42 | #ifdef DESKTOP_VERSION | 42 | #ifdef DESKTOP_VERSION |
43 | #include <qapplication.h> | 43 | #include <qapplication.h> |
44 | #endif | 44 | #endif |
45 | 45 | ||
46 | KABPrefs *KABPrefs::sInstance = 0; | 46 | KABPrefs *KABPrefs::sInstance = 0; |
47 | static KStaticDeleter<KABPrefs> staticDeleterAB; | 47 | static KStaticDeleter<KABPrefs> staticDeleterAB; |
48 | 48 | ||
49 | KABPrefs::KABPrefs() | 49 | KABPrefs::KABPrefs() |
50 | : KPimPrefs("kaddressbookrc") | 50 | : KPimPrefs("kaddressbookrc") |
51 | { | 51 | { |
52 | KPrefs::setCurrentGroup( "Views" ); | 52 | KPrefs::setCurrentGroup( "Views" ); |
53 | addItemBool( "HonorSingleClick", &mHonorSingleClick, false ); | 53 | addItemBool( "HonorSingleClick", &mHonorSingleClick, false ); |
54 | 54 | ||
55 | KPrefs::setCurrentGroup( "General" ); | 55 | KPrefs::setCurrentGroup( "General" ); |
56 | addItemBool( "AutomaticNameParsing", &mAutomaticNameParsing, true ); | 56 | addItemBool( "AutomaticNameParsing", &mAutomaticNameParsing, true ); |
57 | addItemInt( "CurrentIncSearchField", &mCurrentIncSearchField, 0 ); | 57 | addItemInt( "CurrentIncSearchField", &mCurrentIncSearchField, 0 ); |
58 | #ifdef KAB_EMBEDDED | 58 | #ifdef KAB_EMBEDDED |
59 | addItemBool("AskForQuit",&mAskForQuit,true); | 59 | addItemBool("AskForQuit",&mAskForQuit,true); |
60 | addItemBool("ToolBarHor",&mToolBarHor, true ); | 60 | addItemBool("ToolBarHor",&mToolBarHor, true ); |
61 | addItemBool("ToolBarUp",&mToolBarUp, false ); | 61 | addItemBool("ToolBarUp",&mToolBarUp, false ); |
62 | addItemBool("SearchWithReturn",&mSearchWithReturn, false ); | 62 | addItemBool("SearchWithReturn",&mSearchWithReturn, false ); |
63 | addItemBool("AutoSearchWithWildcard",&mAutoSearchWithWildcard, false ); | ||
64 | addItemBool("HideSearchOnSwitch",&mHideSearchOnSwitch, false ); | ||
63 | addItemFont("DetailsFont",&mDetailsFont,KGlobalSettings::generalFont()); | 65 | addItemFont("DetailsFont",&mDetailsFont,KGlobalSettings::generalFont()); |
64 | 66 | ||
65 | 67 | ||
66 | #endif //KAB_EMBEDDED | 68 | #endif //KAB_EMBEDDED |
67 | 69 | ||
68 | KPrefs::setCurrentGroup( "MainWindow" ); | 70 | KPrefs::setCurrentGroup( "MainWindow" ); |
69 | bool m_visible = false; | 71 | bool m_visible = false; |
70 | #ifdef DESKTOP_VERSION | 72 | #ifdef DESKTOP_VERSION |
71 | m_visible = true; | 73 | m_visible = true; |
72 | #endif | 74 | #endif |
73 | addItemBool( "FullMenuBarVisible", &mFullMenuBarVisible, m_visible ); | 75 | addItemBool( "FullMenuBarVisible", &mFullMenuBarVisible, m_visible ); |
74 | addItemBool( "JumpButtonBarVisible", &mJumpButtonBarVisible, false ); | 76 | addItemBool( "JumpButtonBarVisible", &mJumpButtonBarVisible, false ); |
75 | addItemBool( "DetailsPageVisible", &mDetailsPageVisible, true ); | 77 | addItemBool( "DetailsPageVisible", &mDetailsPageVisible, true ); |
76 | addItemIntList( "ExtensionsSplitter", &mExtensionsSplitter ); | 78 | addItemIntList( "ExtensionsSplitter", &mExtensionsSplitter ); |
77 | addItemIntList( "DetailsSplitter", &mDetailsSplitter ); | 79 | addItemIntList( "DetailsSplitter", &mDetailsSplitter ); |
78 | addItemBool( "MultipleViewsAtOnce", &mMultipleViewsAtOnce, true ); | 80 | addItemBool( "MultipleViewsAtOnce", &mMultipleViewsAtOnce, true ); |
79 | 81 | ||
80 | 82 | ||
81 | KPrefs::setCurrentGroup( "Extensions_General" ); | 83 | KPrefs::setCurrentGroup( "Extensions_General" ); |
82 | QStringList defaultExtensions; | 84 | QStringList defaultExtensions; |
83 | defaultExtensions << "merge"; | 85 | defaultExtensions << "merge"; |
84 | defaultExtensions << "distribution_list_editor"; | 86 | defaultExtensions << "distribution_list_editor"; |
85 | addItemInt( "CurrentExtension", &mCurrentExtension, 0 ); | 87 | addItemInt( "CurrentExtension", &mCurrentExtension, 0 ); |
86 | addItemStringList( "ActiveExtensions", &mActiveExtensions, defaultExtensions ); | 88 | addItemStringList( "ActiveExtensions", &mActiveExtensions, defaultExtensions ); |
87 | 89 | ||
88 | KPrefs::setCurrentGroup( "Views" ); | 90 | KPrefs::setCurrentGroup( "Views" ); |
89 | QString defaultView = i18n( "Default Table View" ); | 91 | QString defaultView = i18n( "Default Table View" ); |
90 | addItemString( "CurrentView", &mCurrentView, defaultView ); | 92 | addItemString( "CurrentView", &mCurrentView, defaultView ); |
91 | addItemStringList( "ViewNames", &mViewNames, defaultView ); | 93 | addItemStringList( "ViewNames", &mViewNames, defaultView ); |
92 | 94 | ||
93 | KPrefs::setCurrentGroup( "Filters" ); | 95 | KPrefs::setCurrentGroup( "Filters" ); |
94 | addItemInt( "CurrentFilter", &mCurrentFilter, 0 ); | 96 | addItemInt( "CurrentFilter", &mCurrentFilter, 0 ); |