summaryrefslogtreecommitdiffabout
path: root/korganizer/koprefs.h
Unidiff
Diffstat (limited to 'korganizer/koprefs.h') (more/less context) (show whitespace changes)
-rw-r--r--korganizer/koprefs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/korganizer/koprefs.h b/korganizer/koprefs.h
index 392360d..2ff03fa 100644
--- a/korganizer/koprefs.h
+++ b/korganizer/koprefs.h
@@ -90,192 +90,193 @@ class KOPrefs : public KPimPrefs
90 static KOPrefs *instance(); 90 static KOPrefs *instance();
91 91
92 /** Set preferences to default values */ 92 /** Set preferences to default values */
93 void usrSetDefaults(); 93 void usrSetDefaults();
94 94
95 /** Read preferences from config file */ 95 /** Read preferences from config file */
96 void usrReadConfig(); 96 void usrReadConfig();
97 97
98 /** Write preferences to config file */ 98 /** Write preferences to config file */
99 void usrWriteConfig(); 99 void usrWriteConfig();
100 void setCategoryDefaults(); 100 void setCategoryDefaults();
101 void setAllDefaults(); 101 void setAllDefaults();
102 KopiCalendarFile * getNewCalendar(); 102 KopiCalendarFile * getNewCalendar();
103 KopiCalendarFile * getCalendar( int ); 103 KopiCalendarFile * getCalendar( int );
104 void deleteCalendar( int ); 104 void deleteCalendar( int );
105 QColor defaultColor( int ) const; 105 QColor defaultColor( int ) const;
106 QString calName( int ) const; 106 QString calName( int ) const;
107 int getCalendarID( const QString & name ); 107 int getCalendarID( const QString & name );
108 protected: 108 protected:
109 void setTimeZoneIdDefault(); 109 void setTimeZoneIdDefault();
110 110
111 /** Fill empty mail fields with default values. */ 111 /** Fill empty mail fields with default values. */
112 void fillMailDefaults(); 112 void fillMailDefaults();
113 113
114 private: 114 private:
115 /** Constructor disabled for public. Use instance() to create a KOPrefs 115 /** Constructor disabled for public. Use instance() to create a KOPrefs
116 object. */ 116 object. */
117 KOPrefs(); 117 KOPrefs();
118 118
119 static KOPrefs *mInstance; 119 static KOPrefs *mInstance;
120 QStringList getDefaultList(); 120 QStringList getDefaultList();
121 QStringList getLocationDefaultList(); 121 QStringList getLocationDefaultList();
122 public: 122 public:
123 // preferences data 123 // preferences data
124 KConfig* getConfig(); 124 KConfig* getConfig();
125 void setFullName(const QString &); 125 void setFullName(const QString &);
126 QString fullName(); 126 QString fullName();
127 void setEmail(const QString &); 127 void setEmail(const QString &);
128 QString email(); 128 QString email();
129 129
130 QString mAdditional; 130 QString mAdditional;
131 131
132 bool mEmailControlCenter; 132 bool mEmailControlCenter;
133 133
134 bool mBcc; 134 bool mBcc;
135 bool mAutoSave; 135 bool mAutoSave;
136 int mAutoSaveInterval; 136 int mAutoSaveInterval;
137 bool mConfirm; 137 bool mConfirm;
138 138
139 bool mEnableGroupScheduling; 139 bool mEnableGroupScheduling;
140 bool mEnableProjectView; 140 bool mEnableProjectView;
141 141
142 int mDefaultFormat; 142 int mDefaultFormat;
143 int mMailClient; 143 int mMailClient;
144 144
145 int mStartTime; 145 int mStartTime;
146 int mDefaultDuration; 146 int mDefaultDuration;
147 int mAlarmTime; 147 int mAlarmTime;
148 148
149 int mWorkingHoursStart; 149 int mWorkingHoursStart;
150 int mWorkingHoursEnd; 150 int mWorkingHoursEnd;
151 bool mExcludeHolidays; 151 bool mExcludeHolidays;
152 bool mExcludeSaturdays; 152 bool mExcludeSaturdays;
153 bool mMarcusBainsShowSeconds; 153 bool mMarcusBainsShowSeconds;
154 154
155 QFont mTimeBarFont; 155 QFont mTimeBarFont;
156 QFont mMonthViewFont; 156 QFont mMonthViewFont;
157 QFont mAgendaViewFont; 157 QFont mAgendaViewFont;
158 QFont mMarcusBainsFont; 158 QFont mMarcusBainsFont;
159 QFont mTimeLabelsFont; 159 QFont mTimeLabelsFont;
160 QFont mTodoViewFont; 160 QFont mTodoViewFont;
161 QFont mListViewFont; 161 QFont mListViewFont;
162 QFont mDateNavigatorFont; 162 QFont mDateNavigatorFont;
163 QFont mEditBoxFont; 163 QFont mEditBoxFont;
164 QFont mJornalViewFont; 164 QFont mJornalViewFont;
165 QFont mWhatsNextFont; 165 QFont mWhatsNextFont;
166 QFont mEventViewFont; 166 QFont mEventViewFont;
167 167
168 168
169 169
170 170
171 QColor mHolidayColor; 171 QColor mHolidayColor;
172 QColor mHighlightColor; 172 QColor mHighlightColor;
173 QColor mEventColor; 173 QColor mEventColor;
174 QColor mTodoDoneColor; 174 QColor mTodoDoneColor;
175 QColor mAgendaBgColor; 175 QColor mAgendaBgColor;
176 QColor mWorkingHoursColor; 176 QColor mWorkingHoursColor;
177 QColor mTodoDueTodayColor; 177 QColor mTodoDueTodayColor;
178 QColor mTodoOverdueColor; 178 QColor mTodoOverdueColor;
179 QColor mTodoRunColor; 179 QColor mTodoRunColor;
180 QColor mMonthViewEvenColor; 180 QColor mMonthViewEvenColor;
181 QColor mMonthViewOddColor; 181 QColor mMonthViewOddColor;
182 QColor mMonthViewHolidayColor; 182 QColor mMonthViewHolidayColor;
183 bool mMonthViewUsesDayColors; 183 bool mMonthViewUsesDayColors;
184 bool mMonthViewSatSunTog; 184 bool mMonthViewSatSunTog;
185 bool mMonthViewWeek; 185 bool mMonthViewWeek;
186 bool mMonthViewWeekRowlayout;
186 QColor mAppColor1; 187 QColor mAppColor1;
187 QColor mAppColor2; 188 QColor mAppColor2;
188 bool mUseAppColors; 189 bool mUseAppColors;
189 190
190 int mDayBegins; 191 int mDayBegins;
191 int mHourSize; 192 int mHourSize;
192 int mAllDaySize; 193 int mAllDaySize;
193 bool mShowFullMenu; 194 bool mShowFullMenu;
194 bool mDailyRecur; 195 bool mDailyRecur;
195 bool mWeeklyRecur; 196 bool mWeeklyRecur;
196 bool mMonthDailyRecur; 197 bool mMonthDailyRecur;
197 bool mMonthWeeklyRecur; 198 bool mMonthWeeklyRecur;
198 bool mMonthShowIcons; 199 bool mMonthShowIcons;
199 bool mMonthShowTimes; 200 bool mMonthShowTimes;
200 bool mMonthShowShort; 201 bool mMonthShowShort;
201 bool mEnableToolTips; 202 bool mEnableToolTips;
202 bool mEnableMonthScroll; 203 bool mEnableMonthScroll;
203 bool mFullViewMonth; 204 bool mFullViewMonth;
204 bool mMonthViewUsesCategoryColor; 205 bool mMonthViewUsesCategoryColor;
205 bool mFullViewTodo; 206 bool mFullViewTodo;
206 bool mShowCompletedTodo; 207 bool mShowCompletedTodo;
207 bool mMarcusBainsEnabled; 208 bool mMarcusBainsEnabled;
208 int mNextXDays; 209 int mNextXDays;
209 int mWhatsNextDays; 210 int mWhatsNextDays;
210 int mWhatsNextPrios; 211 int mWhatsNextPrios;
211 bool mEnableQuickTodo; 212 bool mEnableQuickTodo;
212 213
213 bool mCompactDialogs; 214 bool mCompactDialogs;
214 bool mVerticalScreen; 215 bool mVerticalScreen;
215 216
216 bool mShowIconNewTodo; 217 bool mShowIconNewTodo;
217 bool mShowIconNewEvent; 218 bool mShowIconNewEvent;
218 bool mShowIconSearch; 219 bool mShowIconSearch;
219 bool mShowIconList; 220 bool mShowIconList;
220 bool mShowIconDay1; 221 bool mShowIconDay1;
221 bool mShowIconDay5; 222 bool mShowIconDay5;
222 bool mShowIconDay6; 223 bool mShowIconDay6;
223 bool mShowIconDay7; 224 bool mShowIconDay7;
224 bool mShowIconMonth; 225 bool mShowIconMonth;
225 bool mShowIconTodoview; 226 bool mShowIconTodoview;
226 bool mShowIconBackFast; 227 bool mShowIconBackFast;
227 bool mShowIconBack; 228 bool mShowIconBack;
228 bool mShowIconToday; 229 bool mShowIconToday;
229 bool mShowIconForward; 230 bool mShowIconForward;
230 bool mShowIconForwardFast; 231 bool mShowIconForwardFast;
231 bool mShowIconWhatsThis; 232 bool mShowIconWhatsThis;
232 bool mShowIconWeekNum; 233 bool mShowIconWeekNum;
233 bool mShowIconNextDays; 234 bool mShowIconNextDays;
234 bool mShowIconNext; 235 bool mShowIconNext;
235 bool mShowIconJournal; 236 bool mShowIconJournal;
236 bool mShowIconFilter; 237 bool mShowIconFilter;
237 bool mShowIconOnetoolbar; 238 bool mShowIconOnetoolbar;
238 bool mShowIconNavigator; 239 bool mShowIconNavigator;
239 bool mShowIconAllday; 240 bool mShowIconAllday;
240 bool mShowIconFilterview; 241 bool mShowIconFilterview;
241 bool mShowIconToggleFull; 242 bool mShowIconToggleFull;
242 243
243 bool mShowIconStretch; 244 bool mShowIconStretch;
244 245
245 bool mToolBarHor; 246 bool mToolBarHor;
246 bool mToolBarUp; 247 bool mToolBarUp;
247 bool mToolBarHorV; 248 bool mToolBarHorV;
248 bool mToolBarUpV; 249 bool mToolBarUpV;
249 bool mToolBarHorN; 250 bool mToolBarHorN;
250 bool mToolBarUpN; 251 bool mToolBarUpN;
251 bool mToolBarHorF; 252 bool mToolBarHorF;
252 bool mToolBarUpF; 253 bool mToolBarUpF;
253 bool mToolBarMiniIcons; 254 bool mToolBarMiniIcons;
254 255
255 bool mAskForQuit; 256 bool mAskForQuit;
256 bool mUsePassWd; 257 bool mUsePassWd;
257 bool mShowSyncEvents; 258 bool mShowSyncEvents;
258 bool mShowTodoInAgenda; 259 bool mShowTodoInAgenda;
259 bool mShowCompletedTodoInAgenda; 260 bool mShowCompletedTodoInAgenda;
260 bool mShowTimeInAgenda; 261 bool mShowTimeInAgenda;
261 bool mHideNonStartedTodos; 262 bool mHideNonStartedTodos;
262 263
263 bool mBlockPopupMenu; 264 bool mBlockPopupMenu;
264 265
265 int mLastSyncTime; 266 int mLastSyncTime;
266 void setCategoryColor(QString cat,const QColor & color); 267 void setCategoryColor(QString cat,const QColor & color);
267 QColor *categoryColor(QString cat); 268 QColor *categoryColor(QString cat);
268 269
269 QString mArchiveFile; 270 QString mArchiveFile;
270 QString mHtmlExportFile; 271 QString mHtmlExportFile;
271 bool mHtmlWithSave; 272 bool mHtmlWithSave;
272 273
273 QStringList mSelectedPlugins; 274 QStringList mSelectedPlugins;
274 275
275 QString mLastImportFile; 276 QString mLastImportFile;
276 QString mLastVcalFile; 277 QString mLastVcalFile;
277 QString mLastSaveFile; 278 QString mLastSaveFile;
278 QString mLastLoadFile; 279 QString mLastLoadFile;
279 280
280 281
281 QString mDefaultAlarmFile; 282 QString mDefaultAlarmFile;