-rw-r--r-- | korganizer/koprefs.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/korganizer/koprefs.h b/korganizer/koprefs.h index 94bdd33..35c6110 100644 --- a/korganizer/koprefs.h +++ b/korganizer/koprefs.h | |||
@@ -1,377 +1,380 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of KOrganizer. | 2 | This file is part of KOrganizer. |
3 | Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org> | 3 | Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org> |
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 | #ifndef KOPREFS_H | 23 | #ifndef KOPREFS_H |
24 | #define KOPREFS_H | 24 | #define KOPREFS_H |
25 | 25 | ||
26 | 26 | ||
27 | #include <libkdepim/kpimprefs.h> | 27 | #include <libkdepim/kpimprefs.h> |
28 | #include <qdict.h> | 28 | #include <q3dict.h> |
29 | #include <qdir.h> | 29 | #include <qdir.h> |
30 | #include <qobject.h> | 30 | #include <qobject.h> |
31 | #include <QDateTime> | ||
32 | //Added by qt3to4: | ||
33 | #include <Q3PtrList> | ||
31 | 34 | ||
32 | class KConfig; | 35 | class KConfig; |
33 | class QFont; | 36 | class QFont; |
34 | class QColor; | 37 | class QColor; |
35 | class QStringList; | 38 | class QStringList; |
36 | 39 | ||
37 | #define VIEW_WN_VIEW 1 | 40 | #define VIEW_WN_VIEW 1 |
38 | #define VIEW_NX_VIEW 2 | 41 | #define VIEW_NX_VIEW 2 |
39 | #define VIEW_J_VIEW 3 | 42 | #define VIEW_J_VIEW 3 |
40 | #define VIEW_A_VIEW 4 | 43 | #define VIEW_A_VIEW 4 |
41 | #define VIEW_ML_VIEW 5 | 44 | #define VIEW_ML_VIEW 5 |
42 | #define VIEW_M_VIEW 6 | 45 | #define VIEW_M_VIEW 6 |
43 | #define VIEW_L_VIEW 7 | 46 | #define VIEW_L_VIEW 7 |
44 | #define VIEW_T_VIEW 8 | 47 | #define VIEW_T_VIEW 8 |
45 | 48 | ||
46 | class KopiCalendarFile : public QObject | 49 | class KopiCalendarFile : public QObject |
47 | { | 50 | { |
48 | public: | 51 | public: |
49 | KopiCalendarFile( ) : QObject( ) | 52 | KopiCalendarFile( ) : QObject( ) |
50 | { | 53 | { |
51 | isStandard = false; | 54 | isStandard = false; |
52 | isEnabled = true; | 55 | isEnabled = true; |
53 | isAlarmEnabled = true; | 56 | isAlarmEnabled = true; |
54 | isReadOnly = false; | 57 | isReadOnly = false; |
55 | mErrorOnLoad = false; | 58 | mErrorOnLoad = false; |
56 | isRelative = false; | 59 | isRelative = false; |
57 | mCalNumber = 0; | 60 | mCalNumber = 0; |
58 | mDefaultColor = Qt::red; | 61 | mDefaultColor = Qt::red; |
59 | mName = "Calendar"; | 62 | mName = "Calendar"; |
60 | mFileName = QDir::homeDirPath() + "/icalfile.ics"; | 63 | mFileName = QDir::homeDirPath() + "/icalfile.ics"; |
61 | mSavedFileName = "icalfile.ics"; | 64 | mSavedFileName = "icalfile.ics"; |
62 | } | 65 | } |
63 | bool isStandard; | 66 | bool isStandard; |
64 | bool isEnabled; | 67 | bool isEnabled; |
65 | bool isAlarmEnabled; | 68 | bool isAlarmEnabled; |
66 | bool isReadOnly; | 69 | bool isReadOnly; |
67 | bool mErrorOnLoad; | 70 | bool mErrorOnLoad; |
68 | bool isRelative; | 71 | bool isRelative; |
69 | int mCalNumber; | 72 | int mCalNumber; |
70 | QString mName; | 73 | QString mName; |
71 | QString mFileName; | 74 | QString mFileName; |
72 | QString mSavedFileName; | 75 | QString mSavedFileName; |
73 | QColor mDefaultColor; | 76 | QColor mDefaultColor; |
74 | QDateTime mLoadDt; | 77 | QDateTime mLoadDt; |
75 | }; | 78 | }; |
76 | class KOPrefs : public KPimPrefs | 79 | class KOPrefs : public KPimPrefs |
77 | { | 80 | { |
78 | public: | 81 | public: |
79 | enum { FormatVCalendar, FormatICalendar }; | 82 | enum { FormatVCalendar, FormatICalendar }; |
80 | enum { MailClientKMail, MailClientSendmail }; | 83 | enum { MailClientKMail, MailClientSendmail }; |
81 | enum { IMIPDummy, IMIPKMail }; | 84 | enum { IMIPDummy, IMIPKMail }; |
82 | enum { IMIPOutbox, IMIPdirectsend }; | 85 | enum { IMIPOutbox, IMIPdirectsend }; |
83 | enum { neverAuto, addressbookAuto, selectedAuto }; | 86 | enum { neverAuto, addressbookAuto, selectedAuto }; |
84 | enum { standardDestination, askDestination }; | 87 | enum { standardDestination, askDestination }; |
85 | 88 | ||
86 | virtual ~KOPrefs(); | 89 | virtual ~KOPrefs(); |
87 | 90 | ||
88 | /** Get instance of KOPrefs. It is made sure that there is only one | 91 | /** Get instance of KOPrefs. It is made sure that there is only one |
89 | instance. */ | 92 | instance. */ |
90 | static KOPrefs *instance(); | 93 | static KOPrefs *instance(); |
91 | 94 | ||
92 | /** Set preferences to default values */ | 95 | /** Set preferences to default values */ |
93 | void usrSetDefaults(); | 96 | void usrSetDefaults(); |
94 | 97 | ||
95 | /** Read preferences from config file */ | 98 | /** Read preferences from config file */ |
96 | void usrReadConfig(); | 99 | void usrReadConfig(); |
97 | 100 | ||
98 | /** Write preferences to config file */ | 101 | /** Write preferences to config file */ |
99 | void usrWriteConfig(); | 102 | void usrWriteConfig(); |
100 | void setCategoryDefaults(); | 103 | void setCategoryDefaults(); |
101 | void setAllDefaults(); | 104 | void setAllDefaults(); |
102 | KopiCalendarFile * getNewCalendar(); | 105 | KopiCalendarFile * getNewCalendar(); |
103 | KopiCalendarFile * getCalendar( int ); | 106 | KopiCalendarFile * getCalendar( int ); |
104 | void deleteCalendar( int ); | 107 | void deleteCalendar( int ); |
105 | QColor defaultColor( int ) const; | 108 | QColor defaultColor( int ) const; |
106 | QString calName( int ) const; | 109 | QString calName( int ) const; |
107 | int getCalendarID( const QString & name ); | 110 | int getCalendarID( const QString & name ); |
108 | int getFuzzyCalendarID( const QString & name ); | 111 | int getFuzzyCalendarID( const QString & name ); |
109 | protected: | 112 | protected: |
110 | void setTimeZoneIdDefault(); | 113 | void setTimeZoneIdDefault(); |
111 | 114 | ||
112 | /** Fill empty mail fields with default values. */ | 115 | /** Fill empty mail fields with default values. */ |
113 | void fillMailDefaults(); | 116 | void fillMailDefaults(); |
114 | 117 | ||
115 | private: | 118 | private: |
116 | /** Constructor disabled for public. Use instance() to create a KOPrefs | 119 | /** Constructor disabled for public. Use instance() to create a KOPrefs |
117 | object. */ | 120 | object. */ |
118 | KOPrefs(); | 121 | KOPrefs(); |
119 | 122 | ||
120 | static KOPrefs *mInstance; | 123 | static KOPrefs *mInstance; |
121 | QStringList getDefaultList(); | 124 | QStringList getDefaultList(); |
122 | QStringList getLocationDefaultList(); | 125 | QStringList getLocationDefaultList(); |
123 | public: | 126 | public: |
124 | // preferences data | 127 | // preferences data |
125 | KConfig* getConfig(); | 128 | KConfig* getConfig(); |
126 | void setFullName(const QString &); | 129 | void setFullName(const QString &); |
127 | QString fullName(); | 130 | QString fullName(); |
128 | void setEmail(const QString &); | 131 | void setEmail(const QString &); |
129 | QString email(); | 132 | QString email(); |
130 | 133 | ||
131 | QString mAdditional; | 134 | QString mAdditional; |
132 | 135 | ||
133 | bool mEmailControlCenter; | 136 | bool mEmailControlCenter; |
134 | 137 | ||
135 | bool mBcc; | 138 | bool mBcc; |
136 | bool mAutoSave; | 139 | bool mAutoSave; |
137 | int mAutoSaveInterval; | 140 | int mAutoSaveInterval; |
138 | bool mConfirm; | 141 | bool mConfirm; |
139 | 142 | ||
140 | bool mEnableGroupScheduling; | 143 | bool mEnableGroupScheduling; |
141 | bool mEnableProjectView; | 144 | bool mEnableProjectView; |
142 | 145 | ||
143 | int mDefaultFormat; | 146 | int mDefaultFormat; |
144 | int mMailClient; | 147 | int mMailClient; |
145 | 148 | ||
146 | int mStartTime; | 149 | int mStartTime; |
147 | int mDefaultDuration; | 150 | int mDefaultDuration; |
148 | int mAlarmTime; | 151 | int mAlarmTime; |
149 | 152 | ||
150 | int mWorkingHoursStart; | 153 | int mWorkingHoursStart; |
151 | int mWorkingHoursEnd; | 154 | int mWorkingHoursEnd; |
152 | bool mExcludeHolidays; | 155 | bool mExcludeHolidays; |
153 | bool mExcludeSaturdays; | 156 | bool mExcludeSaturdays; |
154 | bool mMarcusBainsShowSeconds; | 157 | bool mMarcusBainsShowSeconds; |
155 | 158 | ||
156 | QFont mTimeBarFont; | 159 | QFont mTimeBarFont; |
157 | QFont mMonthViewFont; | 160 | QFont mMonthViewFont; |
158 | QFont mAgendaViewFont; | 161 | QFont mAgendaViewFont; |
159 | QFont mMarcusBainsFont; | 162 | QFont mMarcusBainsFont; |
160 | QFont mTimeLabelsFont; | 163 | QFont mTimeLabelsFont; |
161 | QFont mTodoViewFont; | 164 | QFont mTodoViewFont; |
162 | QFont mListViewFont; | 165 | QFont mListViewFont; |
163 | QFont mDateNavigatorFont; | 166 | QFont mDateNavigatorFont; |
164 | QFont mEditBoxFont; | 167 | QFont mEditBoxFont; |
165 | QFont mJornalViewFont; | 168 | QFont mJornalViewFont; |
166 | QFont mWhatsNextFont; | 169 | QFont mWhatsNextFont; |
167 | QFont mEventViewFont; | 170 | QFont mEventViewFont; |
168 | 171 | ||
169 | 172 | ||
170 | 173 | ||
171 | 174 | ||
172 | QColor mHolidayColor; | 175 | QColor mHolidayColor; |
173 | QColor mHighlightColor; | 176 | QColor mHighlightColor; |
174 | QColor mEventColor; | 177 | QColor mEventColor; |
175 | QColor mTodoDoneColor; | 178 | QColor mTodoDoneColor; |
176 | QColor mAgendaBgColor; | 179 | QColor mAgendaBgColor; |
177 | QColor mWorkingHoursColor; | 180 | QColor mWorkingHoursColor; |
178 | QColor mTodoDueTodayColor; | 181 | QColor mTodoDueTodayColor; |
179 | QColor mTodoOverdueColor; | 182 | QColor mTodoOverdueColor; |
180 | QColor mTodoRunColor; | 183 | QColor mTodoRunColor; |
181 | QColor mMonthViewEvenColor; | 184 | QColor mMonthViewEvenColor; |
182 | QColor mMonthViewOddColor; | 185 | QColor mMonthViewOddColor; |
183 | QColor mMonthViewHolidayColor; | 186 | QColor mMonthViewHolidayColor; |
184 | bool mMonthViewUsesDayColors; | 187 | bool mMonthViewUsesDayColors; |
185 | bool mMonthViewSatSunTog; | 188 | bool mMonthViewSatSunTog; |
186 | bool mMonthViewWeek; | 189 | bool mMonthViewWeek; |
187 | bool mMonthViewWeekRowlayout; | 190 | bool mMonthViewWeekRowlayout; |
188 | QColor mAppColor1; | 191 | QColor mAppColor1; |
189 | QColor mAppColor2; | 192 | QColor mAppColor2; |
190 | bool mUseAppColors; | 193 | bool mUseAppColors; |
191 | 194 | ||
192 | int mDayBegins; | 195 | int mDayBegins; |
193 | int mHourSize; | 196 | int mHourSize; |
194 | int mAllDaySize; | 197 | int mAllDaySize; |
195 | bool mShowFullMenu; | 198 | bool mShowFullMenu; |
196 | bool mDailyRecur; | 199 | bool mDailyRecur; |
197 | bool mWeeklyRecur; | 200 | bool mWeeklyRecur; |
198 | bool mLongAllday; | 201 | bool mLongAllday; |
199 | bool mMonthDailyRecur; | 202 | bool mMonthDailyRecur; |
200 | bool mMonthWeeklyRecur; | 203 | bool mMonthWeeklyRecur; |
201 | bool mMonthShowIcons; | 204 | bool mMonthShowIcons; |
202 | bool mMonthShowTimes; | 205 | bool mMonthShowTimes; |
203 | bool mMonthShowShort; | 206 | bool mMonthShowShort; |
204 | bool mEnableToolTips; | 207 | bool mEnableToolTips; |
205 | bool mEnableMonthScroll; | 208 | bool mEnableMonthScroll; |
206 | bool mFullViewMonth; | 209 | bool mFullViewMonth; |
207 | bool mMonthViewUsesCategoryColor; | 210 | bool mMonthViewUsesCategoryColor; |
208 | bool mFullViewTodo; | 211 | bool mFullViewTodo; |
209 | bool mShowCompletedTodo; | 212 | bool mShowCompletedTodo; |
210 | bool mMarcusBainsEnabled; | 213 | bool mMarcusBainsEnabled; |
211 | int mNextXDays; | 214 | int mNextXDays; |
212 | int mWhatsNextDays; | 215 | int mWhatsNextDays; |
213 | bool mWhatsNextTime2Lines; | 216 | bool mWhatsNextTime2Lines; |
214 | int mWhatsNextPrios; | 217 | int mWhatsNextPrios; |
215 | bool mEnableQuickTodo; | 218 | bool mEnableQuickTodo; |
216 | 219 | ||
217 | bool mCompactDialogs; | 220 | bool mCompactDialogs; |
218 | bool mVerticalScreen; | 221 | bool mVerticalScreen; |
219 | 222 | ||
220 | bool mShowIconNewTodo; | 223 | bool mShowIconNewTodo; |
221 | bool mShowIconNewEvent; | 224 | bool mShowIconNewEvent; |
222 | bool mShowIconSearch; | 225 | bool mShowIconSearch; |
223 | bool mShowIconList; | 226 | bool mShowIconList; |
224 | bool mShowIconDay1; | 227 | bool mShowIconDay1; |
225 | bool mShowIconDay5; | 228 | bool mShowIconDay5; |
226 | bool mShowIconDay6; | 229 | bool mShowIconDay6; |
227 | bool mShowIconDay7; | 230 | bool mShowIconDay7; |
228 | bool mShowIconMonth; | 231 | bool mShowIconMonth; |
229 | bool mShowIconTodoview; | 232 | bool mShowIconTodoview; |
230 | bool mShowIconBackFast; | 233 | bool mShowIconBackFast; |
231 | bool mShowIconBack; | 234 | bool mShowIconBack; |
232 | bool mShowIconToday; | 235 | bool mShowIconToday; |
233 | bool mShowIconForward; | 236 | bool mShowIconForward; |
234 | bool mShowIconForwardFast; | 237 | bool mShowIconForwardFast; |
235 | bool mShowIconWhatsThis; | 238 | bool mShowIconWhatsThis; |
236 | bool mShowIconWeekNum; | 239 | bool mShowIconWeekNum; |
237 | bool mShowIconNextDays; | 240 | bool mShowIconNextDays; |
238 | bool mShowIconNext; | 241 | bool mShowIconNext; |
239 | bool mShowIconJournal; | 242 | bool mShowIconJournal; |
240 | bool mShowIconFilter; | 243 | bool mShowIconFilter; |
241 | bool mShowIconOnetoolbar; | 244 | bool mShowIconOnetoolbar; |
242 | bool mShowIconNavigator; | 245 | bool mShowIconNavigator; |
243 | bool mShowIconAllday; | 246 | bool mShowIconAllday; |
244 | bool mShowIconFilterview; | 247 | bool mShowIconFilterview; |
245 | bool mShowIconToggleFull; | 248 | bool mShowIconToggleFull; |
246 | 249 | ||
247 | bool mShowIconStretch; | 250 | bool mShowIconStretch; |
248 | 251 | ||
249 | bool mToolBarHor; | 252 | bool mToolBarHor; |
250 | bool mToolBarUp; | 253 | bool mToolBarUp; |
251 | bool mToolBarHorV; | 254 | bool mToolBarHorV; |
252 | bool mToolBarUpV; | 255 | bool mToolBarUpV; |
253 | bool mToolBarHorN; | 256 | bool mToolBarHorN; |
254 | bool mToolBarUpN; | 257 | bool mToolBarUpN; |
255 | bool mToolBarHorF; | 258 | bool mToolBarHorF; |
256 | bool mToolBarUpF; | 259 | bool mToolBarUpF; |
257 | bool mToolBarMiniIcons; | 260 | bool mToolBarMiniIcons; |
258 | 261 | ||
259 | bool mAskForQuit; | 262 | bool mAskForQuit; |
260 | bool mUsePassWd; | 263 | bool mUsePassWd; |
261 | bool mShowSyncEvents; | 264 | bool mShowSyncEvents; |
262 | bool mShowTodoInAgenda; | 265 | bool mShowTodoInAgenda; |
263 | bool mShowCompletedTodoInAgenda; | 266 | bool mShowCompletedTodoInAgenda; |
264 | bool mShowTimeInAgenda; | 267 | bool mShowTimeInAgenda; |
265 | bool mHideNonStartedTodos; | 268 | bool mHideNonStartedTodos; |
266 | 269 | ||
267 | bool mBlockPopupMenu; | 270 | bool mBlockPopupMenu; |
268 | 271 | ||
269 | int mLastSyncTime; | 272 | int mLastSyncTime; |
270 | void setCategoryColor(QString cat,const QColor & color); | 273 | void setCategoryColor(QString cat,const QColor & color); |
271 | QColor *categoryColor(QString cat); | 274 | QColor *categoryColor(QString cat); |
272 | 275 | ||
273 | QString mArchiveFile; | 276 | QString mArchiveFile; |
274 | QString mHtmlExportFile; | 277 | QString mHtmlExportFile; |
275 | bool mHtmlWithSave; | 278 | bool mHtmlWithSave; |
276 | 279 | ||
277 | QStringList mSelectedPlugins; | 280 | QStringList mSelectedPlugins; |
278 | 281 | ||
279 | QString mLastImportFile; | 282 | QString mLastImportFile; |
280 | QString mLastVcalFile; | 283 | QString mLastVcalFile; |
281 | QString mLastSaveFile; | 284 | QString mLastSaveFile; |
282 | QString mLastLoadFile; | 285 | QString mLastLoadFile; |
283 | 286 | ||
284 | 287 | ||
285 | QString mDefaultAlarmFile; | 288 | QString mDefaultAlarmFile; |
286 | int mIMIPScheduler; | 289 | int mIMIPScheduler; |
287 | int mIMIPSend; | 290 | int mIMIPSend; |
288 | QStringList mAdditionalMails; | 291 | QStringList mAdditionalMails; |
289 | int mIMIPAutoRefresh; | 292 | int mIMIPAutoRefresh; |
290 | int mIMIPAutoInsertReply; | 293 | int mIMIPAutoInsertReply; |
291 | int mIMIPAutoInsertRequest; | 294 | int mIMIPAutoInsertRequest; |
292 | int mIMIPAutoFreeBusy; | 295 | int mIMIPAutoFreeBusy; |
293 | int mIMIPAutoFreeBusyReply; | 296 | int mIMIPAutoFreeBusyReply; |
294 | 297 | ||
295 | QStringList mTodoTemplates; | 298 | QStringList mTodoTemplates; |
296 | QStringList mEventTemplates; | 299 | QStringList mEventTemplates; |
297 | 300 | ||
298 | int mDestination; | 301 | int mDestination; |
299 | 302 | ||
300 | 303 | ||
301 | bool mEditOnDoubleClick; | 304 | bool mEditOnDoubleClick; |
302 | bool mViewChangeHoldFullscreen; | 305 | bool mViewChangeHoldFullscreen; |
303 | bool mViewChangeHoldNonFullscreen; | 306 | bool mViewChangeHoldNonFullscreen; |
304 | bool mCenterOnCurrentTime; | 307 | bool mCenterOnCurrentTime; |
305 | bool mSetTimeToDayStartAt; | 308 | bool mSetTimeToDayStartAt; |
306 | bool mHighlightCurrentDay; | 309 | bool mHighlightCurrentDay; |
307 | bool mUseHighlightLightColor; | 310 | bool mUseHighlightLightColor; |
308 | bool mListViewMonthTimespan; | 311 | bool mListViewMonthTimespan; |
309 | bool mWNViewShowsParents; | 312 | bool mWNViewShowsParents; |
310 | bool mWNViewShowsPast; | 313 | bool mWNViewShowsPast; |
311 | bool mWNViewShowLocation; | 314 | bool mWNViewShowLocation; |
312 | bool mTodoViewShowsPercentage; | 315 | bool mTodoViewShowsPercentage; |
313 | bool mTodoViewUsesCatColors; | 316 | bool mTodoViewUsesCatColors; |
314 | bool mMonthViewUsesBigFont; | 317 | bool mMonthViewUsesBigFont; |
315 | bool mTodoViewUsesSmallFont; | 318 | bool mTodoViewUsesSmallFont; |
316 | bool mTodoViewUsesForegroundColor; | 319 | bool mTodoViewUsesForegroundColor; |
317 | bool mMonthViewUsesForegroundColor; | 320 | bool mMonthViewUsesForegroundColor; |
318 | 321 | ||
319 | bool mHightlightDateTimeEdit; | 322 | bool mHightlightDateTimeEdit; |
320 | bool mShortDateInViewer; | 323 | bool mShortDateInViewer; |
321 | 324 | ||
322 | bool mShowDateNavigator; | 325 | bool mShowDateNavigator; |
323 | 326 | ||
324 | QStringList mLocationDefaults; | 327 | QStringList mLocationDefaults; |
325 | QStringList mEventSummaryUser; | 328 | QStringList mEventSummaryUser; |
326 | QStringList mTodoSummaryUser; | 329 | QStringList mTodoSummaryUser; |
327 | QStringList mJournalSummaryUser; | 330 | QStringList mJournalSummaryUser; |
328 | 331 | ||
329 | bool mUseInternalAlarmNotification; | 332 | bool mUseInternalAlarmNotification; |
330 | int mAlarmPlayBeeps; | 333 | int mAlarmPlayBeeps; |
331 | int mAlarmSuspendTime; | 334 | int mAlarmSuspendTime; |
332 | int mAlarmSuspendCount; | 335 | int mAlarmSuspendCount; |
333 | int mAlarmBeepInterval; | 336 | int mAlarmBeepInterval; |
334 | int mOldLanguage; | 337 | int mOldLanguage; |
335 | int mOldLoadedLanguage; | 338 | int mOldLoadedLanguage; |
336 | 339 | ||
337 | 340 | ||
338 | QString mActiveSyncPort; | 341 | QString mActiveSyncPort; |
339 | QString mActiveSyncIP; | 342 | QString mActiveSyncIP; |
340 | 343 | ||
341 | // settings for eventviewer | 344 | // settings for eventviewer |
342 | bool mEVshowDetails; | 345 | bool mEVshowDetails; |
343 | bool mEVshowCreated; | 346 | bool mEVshowCreated; |
344 | bool mEVshowChanged; | 347 | bool mEVshowChanged; |
345 | bool mWTshowDetails; | 348 | bool mWTshowDetails; |
346 | bool mWTshowCreated; | 349 | bool mWTshowCreated; |
347 | bool mWTshowChanged; | 350 | bool mWTshowChanged; |
348 | 351 | ||
349 | int mCurrentDisplayedView; | 352 | int mCurrentDisplayedView; |
350 | QPtrList<KopiCalendarFile> mCalendars; | 353 | Q3PtrList<KopiCalendarFile> mCalendars; |
351 | int mNextAvailableCalendar; | 354 | int mNextAvailableCalendar; |
352 | bool mGlobalUpdateDisabled; | 355 | bool mGlobalUpdateDisabled; |
353 | 356 | ||
354 | 357 | ||
355 | bool mDetectConflicts; | 358 | bool mDetectConflicts; |
356 | bool mIncludeFree; | 359 | bool mIncludeFree; |
357 | bool mCheckConflictsAllDayAllDay; | 360 | bool mCheckConflictsAllDayAllDay; |
358 | bool mCheckConflictsAllDayNonAD; | 361 | bool mCheckConflictsAllDayNonAD; |
359 | bool mCheckConflictsNonADAllDay; | 362 | bool mCheckConflictsNonADAllDay; |
360 | bool mCheckConflictsNonADNonAD; | 363 | bool mCheckConflictsNonADNonAD; |
361 | QString mFilterConflictEditItem; | 364 | QString mFilterConflictEditItem; |
362 | QString mFilterConflictAllItem; | 365 | QString mFilterConflictAllItem; |
363 | 366 | ||
364 | private: | 367 | private: |
365 | QDict<QColor> mCategoryColors; | 368 | Q3Dict<QColor> mCategoryColors; |
366 | QArray<KopiCalendarFile*> mDefCalColors; | 369 | QVector<KopiCalendarFile*> mDefCalColors; |
367 | QColor mDefaultCategoryColor; | 370 | QColor mDefaultCategoryColor; |
368 | 371 | ||
369 | QFont mDefaultTimeBarFont; | 372 | QFont mDefaultTimeBarFont; |
370 | QFont mDefaultViewFont; | 373 | QFont mDefaultViewFont; |
371 | QFont mDefaultMonthViewFont; | 374 | QFont mDefaultMonthViewFont; |
372 | 375 | ||
373 | QString mName; | 376 | QString mName; |
374 | QString mEmail; | 377 | QString mEmail; |
375 | }; | 378 | }; |
376 | 379 | ||
377 | #endif | 380 | #endif |