-rw-r--r-- | korganizer/koprefs.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/korganizer/koprefs.cpp b/korganizer/koprefs.cpp index e0623d5..c28da9a 100644 --- a/korganizer/koprefs.cpp +++ b/korganizer/koprefs.cpp | |||
@@ -146,96 +146,97 @@ KOPrefs::KOPrefs() : | |||
146 | // addItemInt("TimeZoneOffset",&mTimeZoneOffset,60); | 146 | // addItemInt("TimeZoneOffset",&mTimeZoneOffset,60); |
147 | addItemBool("UseDaylightsaving",&mUseDaylightsaving,true); | 147 | addItemBool("UseDaylightsaving",&mUseDaylightsaving,true); |
148 | addItemInt("DaylightsavingStart",&mDaylightsavingStart,90); | 148 | addItemInt("DaylightsavingStart",&mDaylightsavingStart,90); |
149 | addItemInt("DaylightsavingEnd",&mDaylightsavingEnd,304); | 149 | addItemInt("DaylightsavingEnd",&mDaylightsavingEnd,304); |
150 | 150 | ||
151 | 151 | ||
152 | addItemInt("Default Start Time",&mStartTime,10); | 152 | addItemInt("Default Start Time",&mStartTime,10); |
153 | addItemInt("Default Duration",&mDefaultDuration,2); | 153 | addItemInt("Default Duration",&mDefaultDuration,2); |
154 | addItemInt("Default Alarm Time",&mAlarmTime,3); | 154 | addItemInt("Default Alarm Time",&mAlarmTime,3); |
155 | addItemInt("Daylight Savings",&mDaylightSavings,0); | 155 | addItemInt("Daylight Savings",&mDaylightSavings,0); |
156 | KPrefs::setCurrentGroup("AlarmSettings"); | 156 | KPrefs::setCurrentGroup("AlarmSettings"); |
157 | addItemInt("AlarmPlayBeeps",&mAlarmPlayBeeps,20); | 157 | addItemInt("AlarmPlayBeeps",&mAlarmPlayBeeps,20); |
158 | addItemInt("AlarmSuspendTime",&mAlarmSuspendTime,7); | 158 | addItemInt("AlarmSuspendTime",&mAlarmSuspendTime,7); |
159 | addItemInt("AlarmSuspendCount",&mAlarmSuspendCount,5); | 159 | addItemInt("AlarmSuspendCount",&mAlarmSuspendCount,5); |
160 | addItemInt("AlarmBeepInterval",&mAlarmBeepInterval,3); | 160 | addItemInt("AlarmBeepInterval",&mAlarmBeepInterval,3); |
161 | 161 | ||
162 | 162 | ||
163 | KPrefs::setCurrentGroup("Calendar"); | 163 | KPrefs::setCurrentGroup("Calendar"); |
164 | 164 | ||
165 | addItemInt("Default Calendar Format",&mDefaultFormat,FormatICalendar); | 165 | addItemInt("Default Calendar Format",&mDefaultFormat,FormatICalendar); |
166 | 166 | ||
167 | KPrefs::setCurrentGroup("Fonts"); | 167 | KPrefs::setCurrentGroup("Fonts"); |
168 | // qDebug(" KPrefs::setCurrentGroup(Fonts); "); | 168 | // qDebug(" KPrefs::setCurrentGroup(Fonts); "); |
169 | addItemFont("TimeBar Font",&mTimeBarFont); | 169 | addItemFont("TimeBar Font",&mTimeBarFont); |
170 | addItemFont("MonthView Font",&mMonthViewFont); | 170 | addItemFont("MonthView Font",&mMonthViewFont); |
171 | addItemFont("AgendaView Font",&mAgendaViewFont); | 171 | addItemFont("AgendaView Font",&mAgendaViewFont); |
172 | addItemFont("MarcusBains Font",&mMarcusBainsFont); | 172 | addItemFont("MarcusBains Font",&mMarcusBainsFont); |
173 | addItemFont("TimeLabels Font",&mTimeLabelsFont); | 173 | addItemFont("TimeLabels Font",&mTimeLabelsFont); |
174 | addItemFont("TodoView Font",&mTodoViewFont); | 174 | addItemFont("TodoView Font",&mTodoViewFont); |
175 | addItemFont("ListView Font",&mListViewFont); | 175 | addItemFont("ListView Font",&mListViewFont); |
176 | addItemFont("DateNavigator Font",&mDateNavigatorFont); | 176 | addItemFont("DateNavigator Font",&mDateNavigatorFont); |
177 | addItemFont("EditBox Font",&mEditBoxFont); | 177 | addItemFont("EditBox Font",&mEditBoxFont); |
178 | addItemFont("JournalView Font",&mJornalViewFont); | 178 | addItemFont("JournalView Font",&mJornalViewFont); |
179 | addItemFont("WhatsNextView Font",&mWhatsNextFont); | 179 | addItemFont("WhatsNextView Font",&mWhatsNextFont); |
180 | addItemFont("EventView Font",&mEventViewFont); | 180 | addItemFont("EventView Font",&mEventViewFont); |
181 | 181 | ||
182 | // KPrefs::setCurrentGroup("SyncProfiles"); | 182 | // KPrefs::setCurrentGroup("SyncProfiles"); |
183 | // addItemString("LocalMachineName",&mLocalMachineName, "undefined"); | 183 | // addItemString("LocalMachineName",&mLocalMachineName, "undefined"); |
184 | // addItemStringList("SyncProfileNames",&mSyncProfileNames); | 184 | // addItemStringList("SyncProfileNames",&mSyncProfileNames); |
185 | // addItemStringList("ExternSyncProfiles",&mExternSyncProfileNames); | 185 | // addItemStringList("ExternSyncProfiles",&mExternSyncProfileNames); |
186 | 186 | ||
187 | KPrefs::setCurrentGroup("RemoteSyncing"); | 187 | KPrefs::setCurrentGroup("RemoteSyncing"); |
188 | // addItemBool("UsePasswd",&mUsePassWd,false); | 188 | // addItemBool("UsePasswd",&mUsePassWd,false); |
189 | // addItemBool("WriteBackFile",&mWriteBackFile,true); | 189 | // addItemBool("WriteBackFile",&mWriteBackFile,true); |
190 | // addItemBool("WriteBackExistingOnly",&mWriteBackExistingOnly,false); | 190 | // addItemBool("WriteBackExistingOnly",&mWriteBackExistingOnly,false); |
191 | // addItemBool("AskForPreferences",&mAskForPreferences,true); | 191 | // addItemBool("AskForPreferences",&mAskForPreferences,true); |
192 | // addItemBool("ShowSyncSummary",&mShowSyncSummary,true); | 192 | // addItemBool("ShowSyncSummary",&mShowSyncSummary,true); |
193 | addItemString("PassiveSyncPort",&mPassiveSyncPort,"9197" ); | 193 | addItemString("PassiveSyncPort",&mPassiveSyncPort,"9197" ); |
194 | addItemString("PassiveSyncPw",&mPassiveSyncPw,"abc" ); | ||
194 | addItemString("ActiveSyncPort",&mActiveSyncPort,"9197" ); | 195 | addItemString("ActiveSyncPort",&mActiveSyncPort,"9197" ); |
195 | addItemString("ActiveSyncIP",&mActiveSyncIP,"192.168.0.40" ); | 196 | addItemString("ActiveSyncIP",&mActiveSyncIP,"192.168.0.40" ); |
196 | addItemBool("ShowSyncEvents",&mShowSyncEvents,false); | 197 | addItemBool("ShowSyncEvents",&mShowSyncEvents,false); |
197 | addItemInt("LastSyncTime",&mLastSyncTime,0); | 198 | addItemInt("LastSyncTime",&mLastSyncTime,0); |
198 | addItemInt("SyncAlgoPrefs",&mSyncAlgoPrefs,3); | 199 | addItemInt("SyncAlgoPrefs",&mSyncAlgoPrefs,3); |
199 | addItemInt("RingSyncAlgoPrefs",&mRingSyncAlgoPrefs,3); | 200 | addItemInt("RingSyncAlgoPrefs",&mRingSyncAlgoPrefs,3); |
200 | 201 | ||
201 | #ifdef _WIN32_ | 202 | #ifdef _WIN32_ |
202 | QString hdp= locateLocal("data","korganizer")+"\\\\"; | 203 | QString hdp= locateLocal("data","korganizer")+"\\\\"; |
203 | #else | 204 | #else |
204 | QString hdp= locateLocal("data","korganizer")+"/"; | 205 | QString hdp= locateLocal("data","korganizer")+"/"; |
205 | #endif | 206 | #endif |
206 | // addItemString("RemoteIP",&mRemoteIP, "192.168.0.65"); | 207 | // addItemString("RemoteIP",&mRemoteIP, "192.168.0.65"); |
207 | // addItemString("RemoteUser",&mRemoteUser, "zaurus"); | 208 | // addItemString("RemoteUser",&mRemoteUser, "zaurus"); |
208 | // addItemString("RemotePassWd",&mRemotePassWd, ""); | 209 | // addItemString("RemotePassWd",&mRemotePassWd, ""); |
209 | // addItemString("RemoteFile", &mRemoteFile, hdp+"mycalendar.ics"); | 210 | // addItemString("RemoteFile", &mRemoteFile, hdp+"mycalendar.ics"); |
210 | // addItemString("LocalTempFile",&mLocalTempFile, "/tmp/tempsyncfile.ics" ); | 211 | // addItemString("LocalTempFile",&mLocalTempFile, "/tmp/tempsyncfile.ics" ); |
211 | 212 | ||
212 | 213 | ||
213 | KPrefs::setCurrentGroup("LoadSaveFileNames"); | 214 | KPrefs::setCurrentGroup("LoadSaveFileNames"); |
214 | 215 | ||
215 | addItemString("LastImportFile", &mLastImportFile ,hdp +"import.ics" ); | 216 | addItemString("LastImportFile", &mLastImportFile ,hdp +"import.ics" ); |
216 | addItemString("LastVcalFile", &mLastVcalFile ,hdp +"export.vcs" ); | 217 | addItemString("LastVcalFile", &mLastVcalFile ,hdp +"export.vcs" ); |
217 | addItemString("LastSaveFile", &mLastSaveFile ,hdp +"mybackup.ics" ); | 218 | addItemString("LastSaveFile", &mLastSaveFile ,hdp +"mybackup.ics" ); |
218 | addItemString("LastLoadFile", &mLastLoadFile ,hdp +"mybackup.ics" ); | 219 | addItemString("LastLoadFile", &mLastLoadFile ,hdp +"mybackup.ics" ); |
219 | addItemString("LastSyncedLocalFile", &mLastSyncedLocalFile ,hdp +"lastsync.ics" ); | 220 | addItemString("LastSyncedLocalFile", &mLastSyncedLocalFile ,hdp +"lastsync.ics" ); |
220 | 221 | ||
221 | 222 | ||
222 | KPrefs::setCurrentGroup("Locale"); | 223 | KPrefs::setCurrentGroup("Locale"); |
223 | addItemInt("PreferredLanguage",&mPreferredLanguage,0); | 224 | addItemInt("PreferredLanguage",&mPreferredLanguage,0); |
224 | addItemInt("PreferredTime",&mPreferredTime,0); | 225 | addItemInt("PreferredTime",&mPreferredTime,0); |
225 | addItemInt("PreferredDate",&mPreferredDate,0); | 226 | addItemInt("PreferredDate",&mPreferredDate,0); |
226 | addItemBool("WeekStartsOnSunday",&mWeekStartsOnSunday,false); | 227 | addItemBool("WeekStartsOnSunday",&mWeekStartsOnSunday,false); |
227 | addItemBool("ShortDateInViewer",&mShortDateInViewer,false); | 228 | addItemBool("ShortDateInViewer",&mShortDateInViewer,false); |
228 | addItemString("UserDateFormatLong", &mUserDateFormatLong, "%A %d %b %y"); | 229 | addItemString("UserDateFormatLong", &mUserDateFormatLong, "%A %d %b %y"); |
229 | addItemString("UserDateFormatShort", &mUserDateFormatShort, "%aK %d.%m.%y"); | 230 | addItemString("UserDateFormatShort", &mUserDateFormatShort, "%aK %d.%m.%y"); |
230 | 231 | ||
231 | 232 | ||
232 | KPrefs::setCurrentGroup("Colors"); | 233 | KPrefs::setCurrentGroup("Colors"); |
233 | addItemColor("Holiday Color",&mHolidayColor,defaultHolidayColor); | 234 | addItemColor("Holiday Color",&mHolidayColor,defaultHolidayColor); |
234 | addItemColor("Highlight Color",&mHighlightColor,defaultHighlightColor); | 235 | addItemColor("Highlight Color",&mHighlightColor,defaultHighlightColor); |
235 | addItemColor("Event Color",&mEventColor,mDefaultCategoryColor); | 236 | addItemColor("Event Color",&mEventColor,mDefaultCategoryColor); |
236 | addItemColor("Agenda Background Color",&mAgendaBgColor,defaultAgendaBgColor); | 237 | addItemColor("Agenda Background Color",&mAgendaBgColor,defaultAgendaBgColor); |
237 | addItemColor("WorkingHours Color",&mWorkingHoursColor,defaultWorkingHoursColor); | 238 | addItemColor("WorkingHours Color",&mWorkingHoursColor,defaultWorkingHoursColor); |
238 | addItemColor("Todo due today Color",&mTodoDueTodayColor,defaultTodoDueTodayColor); | 239 | addItemColor("Todo due today Color",&mTodoDueTodayColor,defaultTodoDueTodayColor); |
239 | addItemColor("Todo overdue Color",&mTodoOverdueColor,defaultTodoOverdueColor); | 240 | addItemColor("Todo overdue Color",&mTodoOverdueColor,defaultTodoOverdueColor); |
240 | addItemColor("MonthViewEvenColor",&mMonthViewEvenColor,QColor( 160,160,255 )); | 241 | addItemColor("MonthViewEvenColor",&mMonthViewEvenColor,QColor( 160,160,255 )); |
241 | addItemColor("MonthViewOddColor",&mMonthViewOddColor,QColor( 160,255,160 )); | 242 | addItemColor("MonthViewOddColor",&mMonthViewOddColor,QColor( 160,255,160 )); |