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 b3acda7..8b849fa 100644
--- a/korganizer/koprefs.h
+++ b/korganizer/koprefs.h
@@ -30,192 +30,193 @@
30class KConfig; 30class KConfig;
31class QFont; 31class QFont;
32class QColor; 32class QColor;
33class QStringList; 33class QStringList;
34 34
35class KOPrefs : public KPimPrefs 35class KOPrefs : public KPimPrefs
36{ 36{
37 public: 37 public:
38 enum { FormatVCalendar, FormatICalendar }; 38 enum { FormatVCalendar, FormatICalendar };
39 enum { MailClientKMail, MailClientSendmail }; 39 enum { MailClientKMail, MailClientSendmail };
40 enum { IMIPDummy, IMIPKMail }; 40 enum { IMIPDummy, IMIPKMail };
41 enum { IMIPOutbox, IMIPdirectsend }; 41 enum { IMIPOutbox, IMIPdirectsend };
42 enum { neverAuto, addressbookAuto, selectedAuto }; 42 enum { neverAuto, addressbookAuto, selectedAuto };
43 enum { standardDestination, askDestination }; 43 enum { standardDestination, askDestination };
44 44
45 virtual ~KOPrefs(); 45 virtual ~KOPrefs();
46 46
47 /** Get instance of KOPrefs. It is made sure that there is only one 47 /** Get instance of KOPrefs. It is made sure that there is only one
48 instance. */ 48 instance. */
49 static KOPrefs *instance(); 49 static KOPrefs *instance();
50 50
51 /** Set preferences to default values */ 51 /** Set preferences to default values */
52 void usrSetDefaults(); 52 void usrSetDefaults();
53 53
54 /** Read preferences from config file */ 54 /** Read preferences from config file */
55 void usrReadConfig(); 55 void usrReadConfig();
56 56
57 /** Write preferences to config file */ 57 /** Write preferences to config file */
58 void usrWriteConfig(); 58 void usrWriteConfig();
59 void setCategoryDefaults(); 59 void setCategoryDefaults();
60 60
61 protected: 61 protected:
62 void setTimeZoneIdDefault(); 62 void setTimeZoneIdDefault();
63 63
64 /** Fill empty mail fields with default values. */ 64 /** Fill empty mail fields with default values. */
65 void fillMailDefaults(); 65 void fillMailDefaults();
66 66
67 private: 67 private:
68 /** Constructor disabled for public. Use instance() to create a KOPrefs 68 /** Constructor disabled for public. Use instance() to create a KOPrefs
69 object. */ 69 object. */
70 KOPrefs(); 70 KOPrefs();
71 71
72 static KOPrefs *mInstance; 72 static KOPrefs *mInstance;
73 QStringList getDefaultList(); 73 QStringList getDefaultList();
74 public: 74 public:
75 // preferences data 75 // preferences data
76 KConfig* getConfig(); 76 KConfig* getConfig();
77 void setFullName(const QString &); 77 void setFullName(const QString &);
78 QString fullName(); 78 QString fullName();
79 void setEmail(const QString &); 79 void setEmail(const QString &);
80 QString email(); 80 QString email();
81 81
82 QString mAdditional; 82 QString mAdditional;
83 83
84 bool mEmailControlCenter; 84 bool mEmailControlCenter;
85 85
86 bool mBcc; 86 bool mBcc;
87 bool mAutoSave; 87 bool mAutoSave;
88 int mAutoSaveInterval; 88 int mAutoSaveInterval;
89 bool mConfirm; 89 bool mConfirm;
90 90
91 bool mEnableGroupScheduling; 91 bool mEnableGroupScheduling;
92 bool mEnableProjectView; 92 bool mEnableProjectView;
93 93
94 int mDefaultFormat; 94 int mDefaultFormat;
95 int mMailClient; 95 int mMailClient;
96 96
97 int mStartTime; 97 int mStartTime;
98 int mDefaultDuration; 98 int mDefaultDuration;
99 int mAlarmTime; 99 int mAlarmTime;
100 100
101 int mWorkingHoursStart; 101 int mWorkingHoursStart;
102 int mWorkingHoursEnd; 102 int mWorkingHoursEnd;
103 bool mExcludeHolidays; 103 bool mExcludeHolidays;
104 bool mExcludeSaturdays; 104 bool mExcludeSaturdays;
105 bool mMarcusBainsShowSeconds; 105 bool mMarcusBainsShowSeconds;
106 106
107 QFont mTimeBarFont; 107 QFont mTimeBarFont;
108 QFont mMonthViewFont; 108 QFont mMonthViewFont;
109 QFont mAgendaViewFont; 109 QFont mAgendaViewFont;
110 QFont mMarcusBainsFont; 110 QFont mMarcusBainsFont;
111 QFont mTimeLabelsFont; 111 QFont mTimeLabelsFont;
112 QFont mTodoViewFont; 112 QFont mTodoViewFont;
113 QFont mListViewFont; 113 QFont mListViewFont;
114 QFont mDateNavigatorFont; 114 QFont mDateNavigatorFont;
115 QFont mEditBoxFont; 115 QFont mEditBoxFont;
116 QFont mJornalViewFont; 116 QFont mJornalViewFont;
117 QFont mWhatsNextFont; 117 QFont mWhatsNextFont;
118 QFont mEventViewFont; 118 QFont mEventViewFont;
119 119
120 120
121 121
122 122
123 QColor mHolidayColor; 123 QColor mHolidayColor;
124 QColor mHighlightColor; 124 QColor mHighlightColor;
125 QColor mEventColor; 125 QColor mEventColor;
126 QColor mTodoDoneColor;
126 QColor mAgendaBgColor; 127 QColor mAgendaBgColor;
127 QColor mWorkingHoursColor; 128 QColor mWorkingHoursColor;
128 QColor mTodoDueTodayColor; 129 QColor mTodoDueTodayColor;
129 QColor mTodoOverdueColor; 130 QColor mTodoOverdueColor;
130 QColor mMonthViewEvenColor; 131 QColor mMonthViewEvenColor;
131 QColor mMonthViewOddColor; 132 QColor mMonthViewOddColor;
132 QColor mMonthViewHolidayColor; 133 QColor mMonthViewHolidayColor;
133 bool mMonthViewUsesDayColors; 134 bool mMonthViewUsesDayColors;
134 bool mMonthViewSatSunTog; 135 bool mMonthViewSatSunTog;
135 QColor mAppColor1; 136 QColor mAppColor1;
136 QColor mAppColor2; 137 QColor mAppColor2;
137 bool mUseAppColors; 138 bool mUseAppColors;
138 139
139 int mDayBegins; 140 int mDayBegins;
140 int mHourSize; 141 int mHourSize;
141 int mAllDaySize; 142 int mAllDaySize;
142 bool mShowFullMenu; 143 bool mShowFullMenu;
143 bool mDailyRecur; 144 bool mDailyRecur;
144 bool mWeeklyRecur; 145 bool mWeeklyRecur;
145 bool mMonthDailyRecur; 146 bool mMonthDailyRecur;
146 bool mMonthWeeklyRecur; 147 bool mMonthWeeklyRecur;
147 bool mMonthShowIcons; 148 bool mMonthShowIcons;
148 bool mMonthShowShort; 149 bool mMonthShowShort;
149 bool mEnableToolTips; 150 bool mEnableToolTips;
150 bool mEnableMonthScroll; 151 bool mEnableMonthScroll;
151 bool mFullViewMonth; 152 bool mFullViewMonth;
152 bool mMonthViewUsesCategoryColor; 153 bool mMonthViewUsesCategoryColor;
153 bool mFullViewTodo; 154 bool mFullViewTodo;
154 bool mShowCompletedTodo; 155 bool mShowCompletedTodo;
155 bool mMarcusBainsEnabled; 156 bool mMarcusBainsEnabled;
156 int mNextXDays; 157 int mNextXDays;
157 int mWhatsNextDays; 158 int mWhatsNextDays;
158 int mWhatsNextPrios; 159 int mWhatsNextPrios;
159 bool mEnableQuickTodo; 160 bool mEnableQuickTodo;
160 161
161 bool mCompactDialogs; 162 bool mCompactDialogs;
162 bool mVerticalScreen; 163 bool mVerticalScreen;
163 164
164 bool mShowIconNewTodo; 165 bool mShowIconNewTodo;
165 bool mShowIconNewEvent; 166 bool mShowIconNewEvent;
166 bool mShowIconSearch; 167 bool mShowIconSearch;
167 bool mShowIconList; 168 bool mShowIconList;
168 bool mShowIconDay1; 169 bool mShowIconDay1;
169 bool mShowIconDay5; 170 bool mShowIconDay5;
170 bool mShowIconDay7; 171 bool mShowIconDay7;
171 bool mShowIconMonth; 172 bool mShowIconMonth;
172 bool mShowIconTodoview; 173 bool mShowIconTodoview;
173 bool mShowIconBackFast; 174 bool mShowIconBackFast;
174 bool mShowIconBack; 175 bool mShowIconBack;
175 bool mShowIconToday; 176 bool mShowIconToday;
176 bool mShowIconForward; 177 bool mShowIconForward;
177 bool mShowIconForwardFast; 178 bool mShowIconForwardFast;
178 bool mShowIconWhatsThis; 179 bool mShowIconWhatsThis;
179 bool mShowIconNextDays; 180 bool mShowIconNextDays;
180 bool mShowIconNext; 181 bool mShowIconNext;
181 bool mShowIconJournal; 182 bool mShowIconJournal;
182 183
183 bool mShowIconStretch; 184 bool mShowIconStretch;
184 185
185 bool mToolBarHor; 186 bool mToolBarHor;
186 bool mToolBarUp; 187 bool mToolBarUp;
187 bool mToolBarMiniIcons; 188 bool mToolBarMiniIcons;
188 189
189 bool mAskForQuit; 190 bool mAskForQuit;
190 bool mUsePassWd; 191 bool mUsePassWd;
191 bool mShowSyncEvents; 192 bool mShowSyncEvents;
192 bool mShowTodoInAgenda; 193 bool mShowTodoInAgenda;
193 bool mShowTimeInAgenda; 194 bool mShowTimeInAgenda;
194 bool mHideNonStartedTodos; 195 bool mHideNonStartedTodos;
195 196
196 int mLastSyncTime; 197 int mLastSyncTime;
197 void setCategoryColor(QString cat,const QColor & color); 198 void setCategoryColor(QString cat,const QColor & color);
198 QColor *categoryColor(QString cat); 199 QColor *categoryColor(QString cat);
199 200
200 QString mArchiveFile; 201 QString mArchiveFile;
201 QString mHtmlExportFile; 202 QString mHtmlExportFile;
202 bool mHtmlWithSave; 203 bool mHtmlWithSave;
203 204
204 QStringList mSelectedPlugins; 205 QStringList mSelectedPlugins;
205 206
206 QString mLastImportFile; 207 QString mLastImportFile;
207 QString mLastVcalFile; 208 QString mLastVcalFile;
208 QString mLastSaveFile; 209 QString mLastSaveFile;
209 QString mLastLoadFile; 210 QString mLastLoadFile;
210 211
211 212
212 QString mDefaultAlarmFile; 213 QString mDefaultAlarmFile;
213 int mIMIPScheduler; 214 int mIMIPScheduler;
214 int mIMIPSend; 215 int mIMIPSend;
215 QStringList mAdditionalMails; 216 QStringList mAdditionalMails;
216 int mIMIPAutoRefresh; 217 int mIMIPAutoRefresh;
217 int mIMIPAutoInsertReply; 218 int mIMIPAutoInsertReply;
218 int mIMIPAutoInsertRequest; 219 int mIMIPAutoInsertRequest;
219 int mIMIPAutoFreeBusy; 220 int mIMIPAutoFreeBusy;
220 int mIMIPAutoFreeBusyReply; 221 int mIMIPAutoFreeBusyReply;
221 222