summaryrefslogtreecommitdiffabout
path: root/kaddressbook/kabprefs.h
authorMichael Krelin <hacker@klever.net>2007-07-04 11:23:42 (UTC)
committer Michael Krelin <hacker@klever.net>2007-07-04 11:23:42 (UTC)
commita08aff328d4393031d5ba7d622c2b05705a89d73 (patch) (unidiff)
tree8ee90d686081c52e7c69b5ce946e9b1a7d690001 /kaddressbook/kabprefs.h
parent11edc920afe4f274c0964436633aa632c8288a40 (diff)
downloadkdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.zip
kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.gz
kdepimpi-a08aff328d4393031d5ba7d622c2b05705a89d73.tar.bz2
initial public commit of qt4 portp1
Diffstat (limited to 'kaddressbook/kabprefs.h') (more/less context) (ignore whitespace changes)
-rw-r--r--kaddressbook/kabprefs.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/kaddressbook/kabprefs.h b/kaddressbook/kabprefs.h
index ddbc0c0..aff725e 100644
--- a/kaddressbook/kabprefs.h
+++ b/kaddressbook/kabprefs.h
@@ -1,99 +1,101 @@
1/* 1/*
2 This file is part of KAddressBook. 2 This file is part of KAddressBook.
3 Copyright (c) 2002 Mike Pilone <mpilone@slac.com> 3 Copyright (c) 2002 Mike Pilone <mpilone@slac.com>
4 4
5 This program is free software; you can redistribute it and/or modify 5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by 6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or 7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version. 8 (at your option) any later version.
9 9
10 This program is distributed in the hope that it will be useful, 10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details. 13 GNU General Public License for more details.
14 14
15 You should have received a copy of the GNU General Public License 15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software 16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 18
19 As a special exception, permission is given to link this program 19 As a special exception, permission is given to link this program
20 with any edition of Qt, and distribute the resulting executable, 20 with any edition of Qt, and distribute the resulting executable,
21 without including the source code for Qt in the source distribution. 21 without including the source code for Qt in the source distribution.
22*/ 22*/
23 23
24#ifndef KABPREFS_H 24#ifndef KABPREFS_H
25#define KABPREFS_H 25#define KABPREFS_H
26 26
27#include <qstringlist.h> 27#include <qstringlist.h>
28#include <qdict.h> 28#include <q3dict.h>
29//Added by qt3to4:
30#include <Q3ValueList>
29 31
30#include <libkdepim/kpimprefs.h> 32#include <libkdepim/kpimprefs.h>
31 33
32class KConfig; 34class KConfig;
33 35
34class KABPrefs : public KPimPrefs 36class KABPrefs : public KPimPrefs
35{ 37{
36 public: 38 public:
37 virtual ~KABPrefs(); 39 virtual ~KABPrefs();
38 40
39 static KABPrefs *instance(); 41 static KABPrefs *instance();
40 42
41 // General 43 // General
42 bool mHonorSingleClick; 44 bool mHonorSingleClick;
43 bool mAutomaticNameParsing; 45 bool mAutomaticNameParsing;
44 int mCurrentIncSearchField; 46 int mCurrentIncSearchField;
45 47
46#ifdef KAB_EMBEDDED 48#ifdef KAB_EMBEDDED
47 // US introduce a nonconst way to return the config object. 49 // US introduce a nonconst way to return the config object.
48 KConfig* getConfig(); 50 KConfig* getConfig();
49 51
50 bool mToolBarHor; 52 bool mToolBarHor;
51 bool mToolBarUp; 53 bool mToolBarUp;
52 bool mAskForQuit; 54 bool mAskForQuit;
53 55
54 56
55 /** Set preferences to default values */ 57 /** Set preferences to default values */
56// void usrSetDefaults(); 58// void usrSetDefaults();
57 59
58 /** Read preferences from config file */ 60 /** Read preferences from config file */
59// void usrReadConfig(); 61// void usrReadConfig();
60 62
61 /** Write preferences to config file */ 63 /** Write preferences to config file */
62// void usrWriteConfig(); 64// void usrWriteConfig();
63#endif //KAB_EMBEDDED 65#endif //KAB_EMBEDDED
64 void usrReadConfig(); 66 void usrReadConfig();
65 67
66 68
67 // GUI 69 // GUI
68 bool mFullMenuBarVisible; 70 bool mFullMenuBarVisible;
69 bool mJumpButtonBarVisible; 71 bool mJumpButtonBarVisible;
70 bool mDetailsPageVisible; 72 bool mDetailsPageVisible;
71 bool mMultipleViewsAtOnce; 73 bool mMultipleViewsAtOnce;
72 bool mSearchWithReturn; 74 bool mSearchWithReturn;
73 bool mAutoSearchWithWildcard; 75 bool mAutoSearchWithWildcard;
74 bool mHideSearchOnSwitch; 76 bool mHideSearchOnSwitch;
75 bool mAskForDelete; 77 bool mAskForDelete;
76 QValueList<int> mExtensionsSplitter; 78 Q3ValueList<int> mExtensionsSplitter;
77 QValueList<int> mDetailsSplitter; 79 Q3ValueList<int> mDetailsSplitter;
78 80
79 // Extensions stuff 81 // Extensions stuff
80 int mCurrentExtension; 82 int mCurrentExtension;
81 QStringList mActiveExtensions; 83 QStringList mActiveExtensions;
82 84
83 // Views stuff 85 // Views stuff
84 QString mCurrentView; 86 QString mCurrentView;
85 QStringList mViewNames; 87 QStringList mViewNames;
86 88
87 // Filter 89 // Filter
88 int mCurrentFilter; 90 int mCurrentFilter;
89 91
90 void setCategoryDefaults(); 92 void setCategoryDefaults();
91 QFont mDetailsFont; 93 QFont mDetailsFont;
92 94
93 private: 95 private:
94 KABPrefs(); 96 KABPrefs();
95 97
96 static KABPrefs *sInstance; 98 static KABPrefs *sInstance;
97}; 99};
98 100
99#endif 101#endif