summaryrefslogtreecommitdiffabout
authorulf69 <ulf69>2004-09-21 19:52:42 (UTC)
committer ulf69 <ulf69>2004-09-21 19:52:42 (UTC)
commit186ee062d9169860fbab1613ca21b956c69296a6 (patch) (unidiff)
tree62df959e22100e6fc6d3129a19aaa22f7a7beefa
parent93313aa8d66c01aa0e4562449020af20b5cef0a7 (diff)
downloadkdepimpi-186ee062d9169860fbab1613ca21b956c69296a6.zip
kdepimpi-186ee062d9169860fbab1613ca21b956c69296a6.tar.gz
kdepimpi-186ee062d9169860fbab1613ca21b956c69296a6.tar.bz2
changed name of prefs edit widgets to distinguish between krefsdialog and the same implementation in kprefswidget
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/koprefs.h25
-rw-r--r--korganizer/koprefsdialog.cpp114
-rw-r--r--korganizer/koprefsdialog.h4
3 files changed, 74 insertions, 69 deletions
diff --git a/korganizer/koprefs.h b/korganizer/koprefs.h
index a9ac52f..33eda60 100644
--- a/korganizer/koprefs.h
+++ b/korganizer/koprefs.h
@@ -91,22 +91,18 @@ class KOPrefs : public KPimPrefs
91 91
92 bool mEnableGroupScheduling; 92 bool mEnableGroupScheduling;
93 bool mEnableProjectView; 93 bool mEnableProjectView;
94 94
95 int mDefaultFormat; 95 int mDefaultFormat;
96 int mMailClient; 96 int mMailClient;
97 97
98 QString mTimeZone; 98 QString mTimeZone;
99 QString mTimeZoneId;
100 //QString mTimeZoneName; // e.g. +00:04:00 Indian/Mauritius 99 //QString mTimeZoneName; // e.g. +00:04:00 Indian/Mauritius
101 //int mTimeZoneOffset; // e.g. -240 min 100 //int mTimeZoneOffset; // e.g. -240 min
102 bool mUseDaylightsaving;
103 int mDaylightsavingStart;
104 int mDaylightsavingEnd;
105 int mStartTime; 101 int mStartTime;
106 int mDefaultDuration; 102 int mDefaultDuration;
107 int mAlarmTime; 103 int mAlarmTime;
108 int mDaylightSavings; 104 int mDaylightSavings;
109 105
110 int mWorkingHoursStart; 106 int mWorkingHoursStart;
111 int mWorkingHoursEnd; 107 int mWorkingHoursEnd;
112 bool mExcludeHolidays; 108 bool mExcludeHolidays;
@@ -265,35 +261,44 @@ class KOPrefs : public KPimPrefs
265 bool mWNViewShowLocation; 261 bool mWNViewShowLocation;
266 bool mTodoViewShowsPercentage; 262 bool mTodoViewShowsPercentage;
267 bool mTodoViewUsesCatColors; 263 bool mTodoViewUsesCatColors;
268 bool mTodoViewUsesSmallFont; 264 bool mTodoViewUsesSmallFont;
269 bool mTodoViewUsesForegroundColor; 265 bool mTodoViewUsesForegroundColor;
270 bool mMonthViewUsesForegroundColor; 266 bool mMonthViewUsesForegroundColor;
271 267
272 bool mHightlightDateTimeEdit; 268 bool mHightlightDateTimeEdit;
273 int mPreferredLanguage;
274 bool mUseQuicksave; 269 bool mUseQuicksave;
275 int mPreferredTime;
276 int mPreferredDate;
277 bool mWeekStartsOnSunday;
278 bool mShortDateInViewer; 270 bool mShortDateInViewer;
279 QString mUserDateFormatLong;
280 QString mUserDateFormatShort;
281 271
282 QStringList mLocationDefaults; 272 QStringList mLocationDefaults;
283 QStringList mEventSummaryUser; 273 QStringList mEventSummaryUser;
284 QStringList mTodoSummaryUser; 274 QStringList mTodoSummaryUser;
285 275
286 bool mUseInternalAlarmNotification; 276 bool mUseInternalAlarmNotification;
287 int mAlarmPlayBeeps; 277 int mAlarmPlayBeeps;
288 int mAlarmSuspendTime; 278 int mAlarmSuspendTime;
289 int mAlarmSuspendCount; 279 int mAlarmSuspendCount;
290 int mAlarmBeepInterval; 280 int mAlarmBeepInterval;
291 281
282
283 //US I copied the following settings into KPimGlobalPrefs
284 // that allows us later to easily remove the settings from here.
285 int mPreferredDate;
286 QString mUserDateFormatLong;
287 QString mUserDateFormatShort;
288 int mPreferredLanguage;
289 int mPreferredTime;
290 bool mWeekStartsOnSunday;
291 QString mTimeZoneId;
292 bool mUseDaylightsaving;
293 int mDaylightsavingStart;
294 int mDaylightsavingEnd;
295
296
292 private: 297 private:
293 QDict<QColor> mCategoryColors; 298 QDict<QColor> mCategoryColors;
294 QColor mDefaultCategoryColor; 299 QColor mDefaultCategoryColor;
295 300
296 QFont mDefaultTimeBarFont; 301 QFont mDefaultTimeBarFont;
297 QFont mDefaultViewFont; 302 QFont mDefaultViewFont;
298 QFont mDefaultMonthViewFont; 303 QFont mDefaultMonthViewFont;
299 304
diff --git a/korganizer/koprefsdialog.cpp b/korganizer/koprefsdialog.cpp
index 5ba4817..1c30faa 100644
--- a/korganizer/koprefsdialog.cpp
+++ b/korganizer/koprefsdialog.cpp
@@ -102,17 +102,17 @@ void KOPrefsDialog::setupLocaleDateTab()
102{ 102{
103QFrame *topFrame = addPage(i18n("Date Format"),0,0); 103QFrame *topFrame = addPage(i18n("Date Format"),0,0);
104 QGridLayout *topLayout = new QGridLayout(topFrame,3,2); 104 QGridLayout *topLayout = new QGridLayout(topFrame,3,2);
105 topLayout->setSpacing(spacingHint()); 105 topLayout->setSpacing(spacingHint());
106 topLayout->setMargin(marginHint()); 106 topLayout->setMargin(marginHint());
107 int iii = 0; 107 int iii = 0;
108 108
109 109
110 KPrefsWidRadios *syncPrefsGroup = 110 KPrefsDialogWidRadios *syncPrefsGroup =
111 addWidRadios(i18n("Date Format:"),&(KOPrefs::instance()->mPreferredDate),topFrame); 111 addWidRadios(i18n("Date Format:"),&(KOPrefs::instance()->mPreferredDate),topFrame);
112 QString format; 112 QString format;
113 if ( QApplication::desktop()->width() < 480 ) 113 if ( QApplication::desktop()->width() < 480 )
114 format = "(%d.%m.%Y)"; 114 format = "(%d.%m.%Y)";
115 else 115 else
116 format = "(%d.%m.%Y|%A %d %B %Y)"; 116 format = "(%d.%m.%Y|%A %d %B %Y)";
117 syncPrefsGroup->addRadio(i18n("24.03.2004 "+format)); 117 syncPrefsGroup->addRadio(i18n("24.03.2004 "+format));
118 if ( QApplication::desktop()->width() < 480 ) 118 if ( QApplication::desktop()->width() < 480 )
@@ -154,17 +154,17 @@ QFrame *topFrame = addPage(i18n("Date Format"),0,0);
154 154
155void KOPrefsDialog::setupLocaleTab() 155void KOPrefsDialog::setupLocaleTab()
156{ 156{
157 QFrame *topFrame = addPage(i18n("Locale"),0,0); 157 QFrame *topFrame = addPage(i18n("Locale"),0,0);
158 QGridLayout *topLayout = new QGridLayout(topFrame,4,2); 158 QGridLayout *topLayout = new QGridLayout(topFrame,4,2);
159 topLayout->setSpacing(spacingHint()); 159 topLayout->setSpacing(spacingHint());
160 topLayout->setMargin(marginHint()); 160 topLayout->setMargin(marginHint());
161 int iii = 0; 161 int iii = 0;
162 KPrefsWidRadios *syncPrefsGroup = 162 KPrefsDialogWidRadios *syncPrefsGroup =
163 addWidRadios(i18n("Language:(needs restart)"),&(KOPrefs::instance()->mPreferredLanguage),topFrame); 163 addWidRadios(i18n("Language:(needs restart)"),&(KOPrefs::instance()->mPreferredLanguage),topFrame);
164 syncPrefsGroup->addRadio(i18n("English")); 164 syncPrefsGroup->addRadio(i18n("English"));
165 syncPrefsGroup->addRadio(i18n("German")); 165 syncPrefsGroup->addRadio(i18n("German"));
166 syncPrefsGroup->addRadio(i18n("French")); 166 syncPrefsGroup->addRadio(i18n("French"));
167 syncPrefsGroup->addRadio(i18n("User defined (usertranslation.txt)")); 167 syncPrefsGroup->addRadio(i18n("User defined (usertranslation.txt)"));
168 if ( QApplication::desktop()->width() < 300 ) 168 if ( QApplication::desktop()->width() < 300 )
169 ;// syncPrefsGroup->groupBox()-> setOrientation (Qt::Vertical); 169 ;// syncPrefsGroup->groupBox()-> setOrientation (Qt::Vertical);
170 topLayout->addMultiCellWidget( syncPrefsGroup->groupBox(),iii,iii,0,1); 170 topLayout->addMultiCellWidget( syncPrefsGroup->groupBox(),iii,iii,0,1);
@@ -174,17 +174,17 @@ void KOPrefsDialog::setupLocaleTab()
174 addWidRadios(i18n("Time Format(nr):"),&(KOPrefs::instance()->mPreferredTime),topFrame); 174 addWidRadios(i18n("Time Format(nr):"),&(KOPrefs::instance()->mPreferredTime),topFrame);
175 if ( QApplication::desktop()->width() > 300 ) 175 if ( QApplication::desktop()->width() > 300 )
176 syncPrefsGroup->groupBox()-> setOrientation (Qt::Vertical); 176 syncPrefsGroup->groupBox()-> setOrientation (Qt::Vertical);
177 syncPrefsGroup->addRadio(i18n("24:00")); 177 syncPrefsGroup->addRadio(i18n("24:00"));
178 syncPrefsGroup->addRadio(i18n("12:00am")); 178 syncPrefsGroup->addRadio(i18n("12:00am"));
179 syncPrefsGroup->groupBox()-> setOrientation (Qt::Vertical); 179 syncPrefsGroup->groupBox()-> setOrientation (Qt::Vertical);
180 topLayout->addMultiCellWidget( syncPrefsGroup->groupBox(),iii,iii,0,1); 180 topLayout->addMultiCellWidget( syncPrefsGroup->groupBox(),iii,iii,0,1);
181 ++iii; 181 ++iii;
182 KPrefsWidBool *sb; 182 KPrefsDialogWidBool *sb;
183 if ( QApplication::desktop()->width() < 300 ) { 183 if ( QApplication::desktop()->width() < 300 ) {
184 sb = 184 sb =
185 addWidBool(i18n("Week starts on Sunday"), 185 addWidBool(i18n("Week starts on Sunday"),
186 &(KOPrefs::instance()->mWeekStartsOnSunday),topFrame); 186 &(KOPrefs::instance()->mWeekStartsOnSunday),topFrame);
187 topLayout->addMultiCellWidget(sb->checkBox(), iii,iii,0,1); 187 topLayout->addMultiCellWidget(sb->checkBox(), iii,iii,0,1);
188 ++iii; 188 ++iii;
189 sb = 189 sb =
190 addWidBool(i18n("Use short date in (WN/E) view"), 190 addWidBool(i18n("Use short date in (WN/E) view"),
@@ -200,17 +200,17 @@ void KOPrefsDialog::setupLocaleTab()
200 hbLayout->addWidget(sb->checkBox() ); 200 hbLayout->addWidget(sb->checkBox() );
201 sb = 201 sb =
202 addWidBool(i18n("Use short date in (WN/E) view"), 202 addWidBool(i18n("Use short date in (WN/E) view"),
203 &(KOPrefs::instance()->mShortDateInViewer),hb); 203 &(KOPrefs::instance()->mShortDateInViewer),hb);
204 hbLayout->addWidget(sb->checkBox() ); 204 hbLayout->addWidget(sb->checkBox() );
205 topLayout->addMultiCellWidget(hb, iii,iii,0,1); 205 topLayout->addMultiCellWidget(hb, iii,iii,0,1);
206 206
207 } 207 }
208 //#ifndef DESKTOP_VERSION 208 // KPrefsDialogWidBool *sb; //#ifndef DESKTOP_VERSION
209#if 0 209#if 0
210 ++iii; 210 ++iii;
211 sb = 211 sb =
212 addWidBool(i18n("Quick load/save (w/o Unicode)"), 212 addWidBool(i18n("Quick load/save (w/o Unicode)"),
213 &(KOPrefs::instance()->mUseQuicksave),topFrame); 213 &(KOPrefs::instance()->mUseQuicksave),topFrame);
214 topLayout->addMultiCellWidget(sb->checkBox(), iii,iii,0,1); 214 topLayout->addMultiCellWidget(sb->checkBox(), iii,iii,0,1);
215#endif 215#endif
216} 216}
@@ -225,24 +225,24 @@ void KOPrefsDialog::setupSyncAlgTab()
225 QLabel * lab; 225 QLabel * lab;
226 QFrame *topFrame = addPage(i18n("Sync Prefs"),0,0); 226 QFrame *topFrame = addPage(i18n("Sync Prefs"),0,0);
227 mSetupSyncAlgTab = topFrame; 227 mSetupSyncAlgTab = topFrame;
228 QGridLayout *topLayout = new QGridLayout(topFrame,6,2); 228 QGridLayout *topLayout = new QGridLayout(topFrame,6,2);
229 topLayout->setSpacing(spacingHint()); 229 topLayout->setSpacing(spacingHint());
230 topLayout->setMargin(marginHint()); 230 topLayout->setMargin(marginHint());
231 int iii = 0; 231 int iii = 0;
232 232
233 KPrefsWidBool *sb = 233 KPrefsDialogWidBool *sb =
234 addWidBool(i18n("Ask for preferences before syncing"), 234 addWidBool(i18n("Ask for preferences before syncing"),
235 &(KOPrefs::instance()->mAskForPreferences),topFrame); 235 &(KOPrefs::instance()->mAskForPreferences),topFrame);
236 topLayout->addMultiCellWidget(sb->checkBox(), iii,iii,0,1); 236 topLayout->addMultiCellWidget(sb->checkBox(), iii,iii,0,1);
237 237
238 ++iii; 238 ++iii;
239 239
240 KPrefsWidRadios *syncPrefsGroup = 240 KPrefsDialogWidRadios *syncPrefsGroup =
241 addWidRadios(i18n("Sync preferences:"),&(KOPrefs::instance()->mSyncAlgoPrefs), 241 addWidRadios(i18n("Sync preferences:"),&(KOPrefs::instance()->mSyncAlgoPrefs),
242 topFrame); 242 topFrame);
243 syncPrefsGroup->addRadio(i18n("Take local entry on conflict")); 243 syncPrefsGroup->addRadio(i18n("Take local entry on conflict"));
244 syncPrefsGroup->addRadio(i18n("Take remote entry on conflict")); 244 syncPrefsGroup->addRadio(i18n("Take remote entry on conflict"));
245 syncPrefsGroup->addRadio(i18n("Take newest entry on conflict")); 245 syncPrefsGroup->addRadio(i18n("Take newest entry on conflict"));
246 syncPrefsGroup->addRadio(i18n("Ask for every entry on conflict")); 246 syncPrefsGroup->addRadio(i18n("Ask for every entry on conflict"));
247 syncPrefsGroup->addRadio(i18n("Force take local entry always")); 247 syncPrefsGroup->addRadio(i18n("Force take local entry always"));
248 syncPrefsGroup->addRadio(i18n("Force take remote entry always")); 248 syncPrefsGroup->addRadio(i18n("Force take remote entry always"));
@@ -292,17 +292,17 @@ void KOPrefsDialog::setupSyncTab()
292 ++iii; 292 ++iii;
293 293
294 mLocalTempFile = new QLineEdit(topFrame); 294 mLocalTempFile = new QLineEdit(topFrame);
295 lab = new QLabel(mLocalTempFile, i18n("Local temp file:"), topFrame); 295 lab = new QLabel(mLocalTempFile, i18n("Local temp file:"), topFrame);
296 topLayout->addWidget(lab ,iii,0); 296 topLayout->addWidget(lab ,iii,0);
297 topLayout->addWidget(mLocalTempFile,iii,1); 297 topLayout->addWidget(mLocalTempFile,iii,1);
298 ++iii; 298 ++iii;
299 299
300 KPrefsWidBool *wb = 300 KPrefsDialogWidBool *wb =
301 addWidBool(i18n("Write back synced file"), 301 addWidBool(i18n("Write back synced file"),
302 &(KOPrefs::instance()->mWriteBackFile),topFrame); 302 &(KOPrefs::instance()->mWriteBackFile),topFrame);
303 topLayout->addMultiCellWidget(wb->checkBox(), iii,iii,0,1); 303 topLayout->addMultiCellWidget(wb->checkBox(), iii,iii,0,1);
304 ++iii; 304 ++iii;
305 wb = 305 wb =
306 addWidBool(i18n("Write back existing entries only"), 306 addWidBool(i18n("Write back existing entries only"),
307 &(KOPrefs::instance()->mWriteBackExistingOnly),topFrame); 307 &(KOPrefs::instance()->mWriteBackExistingOnly),topFrame);
308 topLayout->addMultiCellWidget(wb->checkBox(), iii,iii,0,1); 308 topLayout->addMultiCellWidget(wb->checkBox(), iii,iii,0,1);
@@ -315,33 +315,33 @@ void KOPrefsDialog::setupMainTab()
315{ 315{
316 QFrame *topFrame = addPage(i18n("General"),0,0); 316 QFrame *topFrame = addPage(i18n("General"),0,0);
317 // DesktopIcon("identity",KIcon::SizeMedium)); 317 // DesktopIcon("identity",KIcon::SizeMedium));
318 318
319 QGridLayout *topLayout = new QGridLayout(topFrame,6,2); 319 QGridLayout *topLayout = new QGridLayout(topFrame,6,2);
320 topLayout->setSpacing(spacingHint()); 320 topLayout->setSpacing(spacingHint());
321 topLayout->setMargin(marginHint()); 321 topLayout->setMargin(marginHint());
322 322
323 // KPrefsWidBool *emailControlCenter = 323 // KPrefsDialogWidBool *emailControlCenter =
324// addWidBool(i18n("&Use email settings from Control Center"), 324// addWidBool(i18n("&Use email settings from Control Center"),
325// &(KOPrefs::instance()->mEmailControlCenter),topFrame); 325// &(KOPrefs::instance()->mEmailControlCenter),topFrame);
326// topLayout->addMultiCellWidget(emailControlCenter->checkBox(),0,0,0,1); 326// topLayout->addMultiCellWidget(emailControlCenter->checkBox(),0,0,0,1);
327 // connect(emailControlCenter->checkBox(),SIGNAL(toggled(bool)), 327 // connect(emailControlCenter->checkBox(),SIGNAL(toggled(bool)),
328 // SLOT(toggleEmailSettings(bool))); 328 // SLOT(toggleEmailSettings(bool)));
329 329
330 mNameEdit = new QLineEdit(topFrame); 330 mNameEdit = new QLineEdit(topFrame);
331 mNameLabel = new QLabel(mNameEdit, i18n("Full &name:"), topFrame); 331 mNameLabel = new QLabel(mNameEdit, i18n("Full &name:"), topFrame);
332 topLayout->addWidget(mNameLabel,0,0); 332 topLayout->addWidget(mNameLabel,0,0);
333 topLayout->addWidget(mNameEdit,0,1); 333 topLayout->addWidget(mNameEdit,0,1);
334 334
335 mEmailEdit = new QLineEdit(topFrame); 335 mEmailEdit = new QLineEdit(topFrame);
336 mEmailLabel = new QLabel(mEmailEdit, i18n("E&mail address:"),topFrame); 336 mEmailLabel = new QLabel(mEmailEdit, i18n("E&mail address:"),topFrame);
337 topLayout->addWidget(mEmailLabel,1,0); 337 topLayout->addWidget(mEmailLabel,1,0);
338 topLayout->addWidget(mEmailEdit,1,1); 338 topLayout->addWidget(mEmailEdit,1,1);
339 KPrefsWidBool *wb; 339 KPrefsDialogWidBool *wb;
340 QHBox *dummy; 340 QHBox *dummy;
341 if ( QApplication::desktop()->width() > 480 ) { 341 if ( QApplication::desktop()->width() > 480 ) {
342 dummy = new QHBox(topFrame); 342 dummy = new QHBox(topFrame);
343 } else { 343 } else {
344 dummy = new QVBox(topFrame); 344 dummy = new QVBox(topFrame);
345 } 345 }
346 346
347 topLayout->addMultiCellWidget(dummy, 2,2,0,1); 347 topLayout->addMultiCellWidget(dummy, 2,2,0,1);
@@ -374,17 +374,17 @@ void KOPrefsDialog::setupMainTab()
374 374
375 if ( QApplication::desktop()->width() < 300 ) 375 if ( QApplication::desktop()->width() < 300 )
376 messa = i18n("Show topmost todo prios in What's N.:"); 376 messa = i18n("Show topmost todo prios in What's N.:");
377 QLabel *prioLabel = new QLabel(messa, prioBox); 377 QLabel *prioLabel = new QLabel(messa, prioBox);
378 mPrioSpin = new QSpinBox(0,5,1,prioBox); 378 mPrioSpin = new QSpinBox(0,5,1,prioBox);
379 if ( QApplication::desktop()->width() < 300 ) 379 if ( QApplication::desktop()->width() < 300 )
380 mPrioSpin->setFixedWidth( 40 ); 380 mPrioSpin->setFixedWidth( 40 );
381 381
382 // KPrefsWidBool *bcc = 382 // KPrefsDialogWidBool *bcc =
383// addWidBool(i18n("Send copy to owner when mailing events"), 383// addWidBool(i18n("Send copy to owner when mailing events"),
384// &(KOPrefs::instance()->mBcc),topFrame); 384// &(KOPrefs::instance()->mBcc),topFrame);
385// topLayout->addMultiCellWidget(bcc->checkBox(),4,4,0,1); 385// topLayout->addMultiCellWidget(bcc->checkBox(),4,4,0,1);
386 386
387 387
388 // QGroupBox *autoSaveGroup = new QGroupBox(1,Horizontal,i18n("Auto-Save"), topFrame); 388 // QGroupBox *autoSaveGroup = new QGroupBox(1,Horizontal,i18n("Auto-Save"), topFrame);
389 //topLayout->addMultiCellWidget(autoSaveGroup,6,6,0,1); 389 //topLayout->addMultiCellWidget(autoSaveGroup,6,6,0,1);
390 390
@@ -401,30 +401,30 @@ void KOPrefsDialog::setupMainTab()
401 QHBox * agendasize = new QHBox ( topFrame ); 401 QHBox * agendasize = new QHBox ( topFrame );
402 402
403 new QLabel (i18n("AllDayAgenda Height:"), agendasize ); 403 new QLabel (i18n("AllDayAgenda Height:"), agendasize );
404 404
405 405
406 mHourSizeSlider = new QSlider(24,47,1,24,Horizontal,agendasize); 406 mHourSizeSlider = new QSlider(24,47,1,24,Horizontal,agendasize);
407 topLayout->addMultiCellWidget(agendasize,7,7,0,1); 407 topLayout->addMultiCellWidget(agendasize,7,7,0,1);
408 */ 408 */
409 KPrefsWidBool *verticalScreen = 409 KPrefsDialogWidBool *verticalScreen =
410 addWidBool(i18n("Show vertical screen (Needs restart)"), 410 addWidBool(i18n("Show vertical screen (Needs restart)"),
411 &(KOPrefs::instance()->mVerticalScreen),topFrame); 411 &(KOPrefs::instance()->mVerticalScreen),topFrame);
412 //topLayout->addWidget(verticalScreen->checkBox(),ii++,0); 412 //topLayout->addWidget(verticalScreen->checkBox(),ii++,0);
413 topLayout->addMultiCellWidget(verticalScreen->checkBox(),7,7,0,1); 413 topLayout->addMultiCellWidget(verticalScreen->checkBox(),7,7,0,1);
414 414
415 KPrefsWidBool *ask = 415 KPrefsDialogWidBool *ask =
416 addWidBool(i18n("Ask for quit when closing KO/Pi"), 416 addWidBool(i18n("Ask for quit when closing KO/Pi"),
417 &(KOPrefs::instance()->mAskForQuit),topFrame); 417 &(KOPrefs::instance()->mAskForQuit),topFrame);
418 topLayout->addMultiCellWidget(ask->checkBox(),8,8,0,1); 418 topLayout->addMultiCellWidget(ask->checkBox(),8,8,0,1);
419 419
420 420
421 /* 421 /*
422 KPrefsWidBool *confirmCheck = 422 KPrefsDialogWidBool *confirmCheck =
423 addWidBool(i18n("Confirm &deletes"),&(KOPrefs::instance()->mConfirm), 423 addWidBool(i18n("Confirm &deletes"),&(KOPrefs::instance()->mConfirm),
424 topFrame); 424 topFrame);
425 topLayout->addMultiCellWidget(confirmCheck->checkBox(),7,7,0,1); 425 topLayout->addMultiCellWidget(confirmCheck->checkBox(),7,7,0,1);
426 426
427 427
428 mEnableGroupScheduling = 428 mEnableGroupScheduling =
429 addWidBool(i18n("Enable group scheduling"), 429 addWidBool(i18n("Enable group scheduling"),
430 &(KOPrefs::instance()->mEnableGroupScheduling),topFrame); 430 &(KOPrefs::instance()->mEnableGroupScheduling),topFrame);
@@ -440,40 +440,40 @@ void KOPrefsDialog::setupMainTab()
440 SLOT(warningProjectView())); 440 SLOT(warningProjectView()));
441 441
442 // Can't be disabled anymore 442 // Can't be disabled anymore
443 mEnableGroupScheduling->checkBox()->hide(); 443 mEnableGroupScheduling->checkBox()->hide();
444 444
445 // Disable setting, because this feature now becomes stable 445 // Disable setting, because this feature now becomes stable
446 mEnableProjectView->checkBox()->hide(); 446 mEnableProjectView->checkBox()->hide();
447 447
448 KPrefsWidRadios *defaultFormatGroup = 448 KPrefsDialogWidRadios *defaultFormatGroup =
449 addWidRadios(i18n("Default Calendar Format"), 449 addWidRadios(i18n("Default Calendar Format"),
450 &(KOPrefs::instance()->mDefaultFormat),topFrame); 450 &(KOPrefs::instance()->mDefaultFormat),topFrame);
451 defaultFormatGroup->addRadio(i18n("vCalendar")); 451 defaultFormatGroup->addRadio(i18n("vCalendar"));
452 defaultFormatGroup->addRadio(i18n("iCalendar")); 452 defaultFormatGroup->addRadio(i18n("iCalendar"));
453 453
454 topLayout->addMultiCellWidget(defaultFormatGroup->groupBox(),10,10,0,1); 454 topLayout->addMultiCellWidget(defaultFormatGroup->groupBox(),10,10,0,1);
455 455
456 // Default format unconditionally is iCalendar 456 // Default format unconditionally is iCalendar
457 defaultFormatGroup->groupBox()->hide(); 457 defaultFormatGroup->groupBox()->hide();
458 458
459 KPrefsWidRadios *mailClientGroup = 459 KPrefsDialogWidRadios *mailClientGroup =
460 addWidRadios(i18n("Mail Client"),&(KOPrefs::instance()->mMailClient), 460 addWidRadios(i18n("Mail Client"),&(KOPrefs::instance()->mMailClient),
461 topFrame); 461 topFrame);
462 mailClientGroup->addRadio(i18n("KMail")); 462 mailClientGroup->addRadio(i18n("KMail"));
463 mailClientGroup->addRadio(i18n("Sendmail")); 463 mailClientGroup->addRadio(i18n("Sendmail"));
464 topLayout->addMultiCellWidget(mailClientGroup->groupBox(),11,11,0,1); 464 topLayout->addMultiCellWidget(mailClientGroup->groupBox(),11,11,0,1);
465 465
466 KPrefsWidBool *htmlsave = 466 KPrefsDialogWidBool *htmlsave =
467 addWidBool(i18n("Export to HTML with every save"),&(KOPrefs::instance()->mHtmlWithSave), 467 addWidBool(i18n("Export to HTML with every save"),&(KOPrefs::instance()->mHtmlWithSave),
468 topFrame); 468 topFrame);
469 topLayout->addMultiCellWidget(htmlsave->checkBox(),12,12,0,1); 469 topLayout->addMultiCellWidget(htmlsave->checkBox(),12,12,0,1);
470 470
471 KPrefsWidRadios *destinationGroup = 471 KPrefsDialogWidRadios *destinationGroup =
472 addWidRadios(i18n("New Events/Todos should"),&(KOPrefs::instance()->mDestination), 472 addWidRadios(i18n("New Events/Todos should"),&(KOPrefs::instance()->mDestination),
473 topFrame); 473 topFrame);
474 destinationGroup->addRadio(i18n("be added to the standard resource")); 474 destinationGroup->addRadio(i18n("be added to the standard resource"));
475 destinationGroup->addRadio(i18n("be asked which resource to use")); 475 destinationGroup->addRadio(i18n("be asked which resource to use"));
476 topLayout->addMultiCellWidget(destinationGroup->groupBox(),13,13,0,1); 476 topLayout->addMultiCellWidget(destinationGroup->groupBox(),13,13,0,1);
477 477
478 topLayout->setRowStretch(14,1); 478 topLayout->setRowStretch(14,1);
479 */ 479 */
@@ -485,17 +485,17 @@ void KOPrefsDialog::setupTimeTab()
485 QFrame *topFrame = addPage(i18n("Time"),0,0); 485 QFrame *topFrame = addPage(i18n("Time"),0,0);
486 // DesktopIcon("clock",KIcon::SizeMedium)); 486 // DesktopIcon("clock",KIcon::SizeMedium));
487 487
488 QGridLayout *topLayout = new QGridLayout(topFrame,4,2); 488 QGridLayout *topLayout = new QGridLayout(topFrame,4,2);
489 topLayout->setSpacing(spacingHint()); 489 topLayout->setSpacing(spacingHint());
490 topLayout->setMargin(marginHint()); 490 topLayout->setMargin(marginHint());
491 491
492 QHBox *dummy = new QHBox(topFrame); 492 QHBox *dummy = new QHBox(topFrame);
493 KPrefsWidTime *dayBegins = 493 KPrefsDialogWidTime *dayBegins =
494 addWidTime(i18n("Day begins at:"),&(KOPrefs::instance()->mDayBegins), 494 addWidTime(i18n("Day begins at:"),&(KOPrefs::instance()->mDayBegins),
495 dummy); 495 dummy);
496 //topLayout->addWidget(dayBegins->label(),2,0); 496 //topLayout->addWidget(dayBegins->label(),2,0);
497 497
498 //topLayout->addWidget(dayBegins->spinBox(),2,1); 498 //topLayout->addWidget(dayBegins->spinBox(),2,1);
499 topLayout->addMultiCellWidget(dummy,0,0,0,1); 499 topLayout->addMultiCellWidget(dummy,0,0,0,1);
500 500
501 topLayout->addWidget(new QLabel(i18n("Default appointment time:"), 501 topLayout->addWidget(new QLabel(i18n("Default appointment time:"),
@@ -538,17 +538,17 @@ void KOPrefsDialog::setupTimeTab()
538 QVBox *excludeBox = new QVBox(workingHoursGroup); 538 QVBox *excludeBox = new QVBox(workingHoursGroup);
539 //excludeBox->setMargin( 0 ); 539 //excludeBox->setMargin( 0 );
540 addWidBool(i18n("Exclude holidays"), 540 addWidBool(i18n("Exclude holidays"),
541 &(KOPrefs::instance()->mExcludeHolidays),excludeBox); 541 &(KOPrefs::instance()->mExcludeHolidays),excludeBox);
542 542
543 addWidBool(i18n("Exclude Saturdays"), 543 addWidBool(i18n("Exclude Saturdays"),
544 &(KOPrefs::instance()->mExcludeSaturdays),excludeBox); 544 &(KOPrefs::instance()->mExcludeSaturdays),excludeBox);
545 545
546// KPrefsWidBool *marcusBainsShowSeconds = addWidBool(i18n("Show seconds on Marcus Bains line"), 546// KPrefsDialogWidBool *marcusBainsShowSeconds = addWidBool(i18n("Show seconds on Marcus Bains line"),
547 // &(KOPrefs::instance()->mMarcusBainsShowSeconds), 547 // &(KOPrefs::instance()->mMarcusBainsShowSeconds),
548 // topFrame); 548 // topFrame);
549// topLayout->addWidget(marcusBainsShowSeconds->checkBox(),5,0); 549// topLayout->addWidget(marcusBainsShowSeconds->checkBox(),5,0);
550 550
551 // topLayout->setRowStretch(6,1); 551 // topLayout->setRowStretch(6,1);
552} 552}
553 553
554 554
@@ -560,81 +560,81 @@ void KOPrefsDialog::setupViewsTab()
560 560
561 QGridLayout *topLayout = new QGridLayout(topFrame,6,1); 561 QGridLayout *topLayout = new QGridLayout(topFrame,6,1);
562 topLayout->setSpacing(spacingHint()); 562 topLayout->setSpacing(spacingHint());
563 topLayout->setMargin(marginHint()); 563 topLayout->setMargin(marginHint());
564 564
565// QBoxLayout *dayBeginsLayout = new QHBoxLayout; 565// QBoxLayout *dayBeginsLayout = new QHBoxLayout;
566// topLayout->addLayout(dayBeginsLayout,0,0); 566// topLayout->addLayout(dayBeginsLayout,0,0);
567 567
568// KPrefsWidTime *dayBegins = 568// KPrefsDialogWidTime *dayBegins =
569// addWidTime(i18n("Day begins at:"),&(KOPrefs::instance()->mDayBegins), 569// addWidTime(i18n("Day begins at:"),&(KOPrefs::instance()->mDayBegins),
570// topFrame); 570// topFrame);
571// dayBeginsLayout->addWidget(dayBegins->label()); 571// dayBeginsLayout->addWidget(dayBegins->label());
572// dayBeginsLayout->addStretch(1); 572// dayBeginsLayout->addStretch(1);
573// dayBeginsLayout->addWidget(dayBegins->spinBox()); 573// dayBeginsLayout->addWidget(dayBegins->spinBox());
574 574
575// QBoxLayout *nextDaysLayout = new QHBoxLayout; 575// QBoxLayout *nextDaysLayout = new QHBoxLayout;
576// topLayout->addLayout(nextDaysLayout,1,0); 576// topLayout->addLayout(nextDaysLayout,1,0);
577// nextDaysLayout->addWidget(new QLabel(i18n("Days to show in Next-X-Days view:"),topFrame)); 577// nextDaysLayout->addWidget(new QLabel(i18n("Days to show in Next-X-Days view:"),topFrame));
578// mNextXDaysSpin = new QSpinBox(2,14,1,topFrame); 578// mNextXDaysSpin = new QSpinBox(2,14,1,topFrame);
579// nextDaysLayout->addStretch(1); 579// nextDaysLayout->addStretch(1);
580// nextDaysLayout->addWidget(mNextXDaysSpin); 580// nextDaysLayout->addWidget(mNextXDaysSpin);
581 581
582 582
583 int ii = 0; 583 int ii = 0;
584 KPrefsWidBool *dummy = 584 KPrefsDialogWidBool *dummy =
585 addWidBool(i18n("Edit item on doubleclick (if not, show)"), 585 addWidBool(i18n("Edit item on doubleclick (if not, show)"),
586 &(KOPrefs::instance()->mEditOnDoubleClick),topFrame); 586 &(KOPrefs::instance()->mEditOnDoubleClick),topFrame);
587 topLayout->addWidget(dummy->checkBox(),ii++,0); 587 topLayout->addWidget(dummy->checkBox(),ii++,0);
588 588
589 dummy = 589 dummy =
590 addWidBool(i18n("Highlight current day in agenda"), 590 addWidBool(i18n("Highlight current day in agenda"),
591 &(KOPrefs::instance()->mHighlightCurrentDay),topFrame); 591 &(KOPrefs::instance()->mHighlightCurrentDay),topFrame);
592 topLayout->addWidget(dummy->checkBox(),ii++,0); 592 topLayout->addWidget(dummy->checkBox(),ii++,0);
593 593
594 dummy = 594 dummy =
595 addWidBool(i18n("Use light color for highlight current day"), 595 addWidBool(i18n("Use light color for highlight current day"),
596 &(KOPrefs::instance()->mUseHighlightLightColor),topFrame); 596 &(KOPrefs::instance()->mUseHighlightLightColor),topFrame);
597 topLayout->addWidget(dummy->checkBox(),ii++,0); 597 topLayout->addWidget(dummy->checkBox(),ii++,0);
598 598
599 KPrefsWidBool *dailyRecur = 599 KPrefsDialogWidBool *dailyRecur =
600 addWidBool(i18n("Show events that recur daily in date nav."), 600 addWidBool(i18n("Show events that recur daily in date nav."),
601 &(KOPrefs::instance()->mDailyRecur),topFrame); 601 &(KOPrefs::instance()->mDailyRecur),topFrame);
602 topLayout->addWidget(dailyRecur->checkBox(),ii++,0); 602 topLayout->addWidget(dailyRecur->checkBox(),ii++,0);
603 603
604 KPrefsWidBool *weeklyRecur = 604 KPrefsDialogWidBool *weeklyRecur =
605 addWidBool(i18n("Show ev. that recur weekly in date nav."), 605 addWidBool(i18n("Show ev. that recur weekly in date nav."),
606 &(KOPrefs::instance()->mWeeklyRecur),topFrame); 606 &(KOPrefs::instance()->mWeeklyRecur),topFrame);
607 topLayout->addWidget(weeklyRecur->checkBox(),ii++,0); 607 topLayout->addWidget(weeklyRecur->checkBox(),ii++,0);
608 if ( QApplication::desktop()->width() > 640 ) { 608 if ( QApplication::desktop()->width() > 640 ) {
609 609
610 KPrefsWidBool *enableToolTips = 610 KPrefsDialogWidBool *enableToolTips =
611 addWidBool(i18n("Enable tooltips displaying summary of ev."), 611 addWidBool(i18n("Enable tooltips displaying summary of ev."),
612 &(KOPrefs::instance()->mEnableToolTips),topFrame); 612 &(KOPrefs::instance()->mEnableToolTips),topFrame);
613 topLayout->addWidget(enableToolTips->checkBox(),ii++,0); 613 topLayout->addWidget(enableToolTips->checkBox(),ii++,0);
614 614
615 } 615 }
616 KPrefsWidBool *passwdk = 616 KPrefsDialogWidBool *passwdk =
617 addWidBool(i18n("Show parent To-Do's in What's Next view"), 617 addWidBool(i18n("Show parent To-Do's in What's Next view"),
618 &(KOPrefs::instance()->mWNViewShowsParents),topFrame); 618 &(KOPrefs::instance()->mWNViewShowsParents),topFrame);
619 topLayout->addWidget(passwdk->checkBox(), ii++,0); 619 topLayout->addWidget(passwdk->checkBox(), ii++,0);
620 620
621 passwdk = 621 passwdk =
622 addWidBool(i18n("Show location in What's Next view"), 622 addWidBool(i18n("Show location in What's Next view"),
623 &(KOPrefs::instance()->mWNViewShowLocation),topFrame); 623 &(KOPrefs::instance()->mWNViewShowLocation),topFrame);
624 topLayout->addWidget(passwdk->checkBox(), ii++,0); 624 topLayout->addWidget(passwdk->checkBox(), ii++,0);
625 625
626 passwdk = 626 passwdk =
627 addWidBool(i18n("Show Sync Events in WN/Agenda view"), 627 addWidBool(i18n("Show Sync Events in WN/Agenda view"),
628 &(KOPrefs::instance()->mShowSyncEvents),topFrame); 628 &(KOPrefs::instance()->mShowSyncEvents),topFrame);
629 topLayout->addWidget(passwdk->checkBox(), ii++,0); 629 topLayout->addWidget(passwdk->checkBox(), ii++,0);
630 630
631 631
632 KPrefsWidBool *marcusBainsEnabled = 632 KPrefsDialogWidBool *marcusBainsEnabled =
633 addWidBool(i18n("Show Marcus Bains line"), 633 addWidBool(i18n("Show Marcus Bains line"),
634 &(KOPrefs::instance()->mMarcusBainsEnabled),topFrame); 634 &(KOPrefs::instance()->mMarcusBainsEnabled),topFrame);
635 topLayout->addWidget(marcusBainsEnabled->checkBox(),ii++,0); 635 topLayout->addWidget(marcusBainsEnabled->checkBox(),ii++,0);
636 636
637 637
638 // topLayout->addWidget(hourSizeGroup,ii++,0); 638 // topLayout->addWidget(hourSizeGroup,ii++,0);
639 // topLayout->addMultiCellWidget(hourSizeGroup,ii,ii,0,0); 639 // topLayout->addMultiCellWidget(hourSizeGroup,ii,ii,0,0);
640 //topLayout->setRowStretch(11,1); 640 //topLayout->setRowStretch(11,1);
@@ -659,22 +659,22 @@ void KOPrefsDialog::setupViewsTab()
659 topLayout->addWidget(dummy->checkBox(),ii++,0); 659 topLayout->addWidget(dummy->checkBox(),ii++,0);
660 660
661 dummy = 661 dummy =
662 addWidBool(i18n("Hold non-fullscreen on view change"), 662 addWidBool(i18n("Hold non-fullscreen on view change"),
663 &(KOPrefs::instance()->mViewChangeHoldNonFullscreen),topFrame); 663 &(KOPrefs::instance()->mViewChangeHoldNonFullscreen),topFrame);
664 topLayout->addWidget(dummy->checkBox(),ii++,0); 664 topLayout->addWidget(dummy->checkBox(),ii++,0);
665 665
666 666
667 KPrefsWidBool *fullViewTodo = 667 KPrefsDialogWidBool *fullViewTodo =
668 addWidBool(i18n("Event list view uses full window"), 668 addWidBool(i18n("Event list view uses full window"),
669 &(KOPrefs::instance()->mFullViewTodo),topFrame); 669 &(KOPrefs::instance()->mFullViewTodo),topFrame);
670 topLayout->addWidget(fullViewTodo->checkBox(),ii++,0); 670 topLayout->addWidget(fullViewTodo->checkBox(),ii++,0);
671 671
672 KPrefsWidBool *fullViewMonth = 672 KPrefsDialogWidBool *fullViewMonth =
673 addWidBool(i18n("Next days view uses full window"), 673 addWidBool(i18n("Next days view uses full window"),
674 &(KOPrefs::instance()->mFullViewMonth),topFrame); 674 &(KOPrefs::instance()->mFullViewMonth),topFrame);
675 topLayout->addWidget(fullViewMonth->checkBox(),ii++,0); 675 topLayout->addWidget(fullViewMonth->checkBox(),ii++,0);
676 676
677 dummy = 677 dummy =
678 addWidBool(i18n("Set agenda to DayBeginsAt on change"), 678 addWidBool(i18n("Set agenda to DayBeginsAt on change"),
679 &(KOPrefs::instance()->mSetTimeToDayStartAt),topFrame); 679 &(KOPrefs::instance()->mSetTimeToDayStartAt),topFrame);
680 topLayout->addWidget(dummy->checkBox(),ii++,0); 680 topLayout->addWidget(dummy->checkBox(),ii++,0);
@@ -741,42 +741,42 @@ void KOPrefsDialog::setupViewsTab()
741 &(KOPrefs::instance()->mMonthShowShort),habo); 741 &(KOPrefs::instance()->mMonthShowShort),habo);
742 weeklyRecur = 742 weeklyRecur =
743 addWidBool(i18n("icons"), 743 addWidBool(i18n("icons"),
744 &(KOPrefs::instance()->mMonthShowIcons),habo); 744 &(KOPrefs::instance()->mMonthShowIcons),habo);
745 745
746 topLayout->addMultiCellWidget(habo,ii, ii,0,1); 746 topLayout->addMultiCellWidget(habo,ii, ii,0,1);
747 ii++; 747 ii++;
748#ifdef DESKTOP_VERSION 748#ifdef DESKTOP_VERSION
749 KPrefsWidBool *enableMonthScroll = 749 KPrefsDialogWidBool *enableMonthScroll =
750 addWidBool(i18n("Enable scrollbars in month view cells"), 750 addWidBool(i18n("Enable scrollbars in month view cells"),
751 &(KOPrefs::instance()->mEnableMonthScroll),topFrame); 751 &(KOPrefs::instance()->mEnableMonthScroll),topFrame);
752 topLayout->addWidget(enableMonthScroll->checkBox(),ii++,0); 752 topLayout->addWidget(enableMonthScroll->checkBox(),ii++,0);
753#endif 753#endif
754 754
755 dummy = 755 dummy =
756 addWidBool(i18n("Show Sat/Sun together"), 756 addWidBool(i18n("Show Sat/Sun together"),
757 &(KOPrefs::instance()->mMonthViewSatSunTog),topFrame); 757 &(KOPrefs::instance()->mMonthViewSatSunTog),topFrame);
758 topLayout->addWidget(dummy->checkBox(),ii++,0); 758 topLayout->addWidget(dummy->checkBox(),ii++,0);
759 759
760 KPrefsWidBool *coloredCategoriesInMonthView = 760 KPrefsDialogWidBool *coloredCategoriesInMonthView =
761 addWidBool(i18n("Month view uses category colors"), 761 addWidBool(i18n("Month view uses category colors"),
762 &(KOPrefs::instance()->mMonthViewUsesCategoryColor),topFrame); 762 &(KOPrefs::instance()->mMonthViewUsesCategoryColor),topFrame);
763 topLayout->addWidget(coloredCategoriesInMonthView->checkBox(),ii++,0); 763 topLayout->addWidget(coloredCategoriesInMonthView->checkBox(),ii++,0);
764 764
765 dummy = 765 dummy =
766 addWidBool(i18n("Categorie colors are applied to text"), 766 addWidBool(i18n("Categorie colors are applied to text"),
767 &(KOPrefs::instance()->mMonthViewUsesForegroundColor),topFrame); 767 &(KOPrefs::instance()->mMonthViewUsesForegroundColor),topFrame);
768 topLayout->addWidget(dummy->checkBox(),ii++,0); 768 topLayout->addWidget(dummy->checkBox(),ii++,0);
769 coloredCategoriesInMonthView = 769 coloredCategoriesInMonthView =
770 addWidBool(i18n("Month view uses day colors"), 770 addWidBool(i18n("Month view uses day colors"),
771 &(KOPrefs::instance()->mMonthViewUsesDayColors),topFrame); 771 &(KOPrefs::instance()->mMonthViewUsesDayColors),topFrame);
772 topLayout->addWidget(coloredCategoriesInMonthView->checkBox(),ii++,0); 772 topLayout->addWidget(coloredCategoriesInMonthView->checkBox(),ii++,0);
773 773
774 KPrefsWidColor *holidayColor = 774 KPrefsDialogWidColor *holidayColor =
775 addWidColor(i18n("Day color odd months"), 775 addWidColor(i18n("Day color odd months"),
776 &(KOPrefs::instance()->mMonthViewOddColor),topFrame); 776 &(KOPrefs::instance()->mMonthViewOddColor),topFrame);
777 topLayout->addWidget(holidayColor->label(),ii,0); 777 topLayout->addWidget(holidayColor->label(),ii,0);
778 topLayout->addWidget(holidayColor->button(),ii++,1); 778 topLayout->addWidget(holidayColor->button(),ii++,1);
779 779
780 holidayColor = 780 holidayColor =
781 addWidColor(i18n("Day color even months"), 781 addWidColor(i18n("Day color even months"),
782 &(KOPrefs::instance()->mMonthViewEvenColor),topFrame); 782 &(KOPrefs::instance()->mMonthViewEvenColor),topFrame);
@@ -795,17 +795,17 @@ void KOPrefsDialog::setupViewsTab()
795 topFrame = addPage(i18n("Todo View"),0,0); 795 topFrame = addPage(i18n("Todo View"),0,0);
796 // DesktopIcon("viewmag",KIcon::SizeMedium)); 796 // DesktopIcon("viewmag",KIcon::SizeMedium));
797 797
798 topLayout = new QGridLayout(topFrame,4,1); 798 topLayout = new QGridLayout(topFrame,4,1);
799 topLayout->setSpacing(spacingHint()); 799 topLayout->setSpacing(spacingHint());
800 topLayout->setMargin(marginHint()); 800 topLayout->setMargin(marginHint());
801 ii = 0; 801 ii = 0;
802 802
803 KPrefsWidBool *showCompletedTodo = 803 KPrefsDialogWidBool *showCompletedTodo =
804 addWidBool(i18n("To-do view shows completed Todos"), 804 addWidBool(i18n("To-do view shows completed Todos"),
805 &(KOPrefs::instance()->mShowCompletedTodo),topFrame); 805 &(KOPrefs::instance()->mShowCompletedTodo),topFrame);
806 topLayout->addWidget(showCompletedTodo->checkBox(),ii++,0); 806 topLayout->addWidget(showCompletedTodo->checkBox(),ii++,0);
807 dummy = 807 dummy =
808 addWidBool(i18n("To-do view shows complete as 'xx %'"), 808 addWidBool(i18n("To-do view shows complete as 'xx %'"),
809 &(KOPrefs::instance()->mTodoViewShowsPercentage),topFrame); 809 &(KOPrefs::instance()->mTodoViewShowsPercentage),topFrame);
810 topLayout->addWidget(dummy->checkBox(),ii++,0); 810 topLayout->addWidget(dummy->checkBox(),ii++,0);
811 811
@@ -819,29 +819,29 @@ void KOPrefsDialog::setupViewsTab()
819 dummy = 819 dummy =
820 addWidBool(i18n("Todo view uses category colors"), 820 addWidBool(i18n("Todo view uses category colors"),
821 &(KOPrefs::instance()->mTodoViewUsesCatColors),topFrame); 821 &(KOPrefs::instance()->mTodoViewUsesCatColors),topFrame);
822 topLayout->addWidget(dummy->checkBox(),ii++,0); 822 topLayout->addWidget(dummy->checkBox(),ii++,0);
823 823
824 824
825 QWidget* wid = new QWidget( topFrame ); 825 QWidget* wid = new QWidget( topFrame );
826 // Todo due today color 826 // Todo due today color
827 KPrefsWidColor *todoDueTodayColor = 827 KPrefsDialogWidColor *todoDueTodayColor =
828 addWidColor(i18n("Todo due today color:"), 828 addWidColor(i18n("Todo due today color:"),
829 &(KOPrefs::instance()->mTodoDueTodayColor),wid); 829 &(KOPrefs::instance()->mTodoDueTodayColor),wid);
830 QHBoxLayout *widLayout = new QHBoxLayout(wid); 830 QHBoxLayout *widLayout = new QHBoxLayout(wid);
831 widLayout->addWidget( todoDueTodayColor->label() ); 831 widLayout->addWidget( todoDueTodayColor->label() );
832 widLayout->addWidget( todoDueTodayColor->button() ); 832 widLayout->addWidget( todoDueTodayColor->button() );
833 topLayout->addWidget(wid,ii++,0); 833 topLayout->addWidget(wid,ii++,0);
834 //topLayout->addWidget(todoDueTodayColor->button(),ii++,1); 834 //topLayout->addWidget(todoDueTodayColor->button(),ii++,1);
835 835
836 // Todo overdue color 836 // Todo overdue color
837 wid = new QWidget( topFrame ); 837 wid = new QWidget( topFrame );
838 widLayout = new QHBoxLayout(wid); 838 widLayout = new QHBoxLayout(wid);
839 KPrefsWidColor *todoOverdueColor = 839 KPrefsDialogWidColor *todoOverdueColor =
840 addWidColor(i18n("Todo overdue color:"), 840 addWidColor(i18n("Todo overdue color:"),
841 &(KOPrefs::instance()->mTodoOverdueColor),wid); 841 &(KOPrefs::instance()->mTodoOverdueColor),wid);
842 widLayout->addWidget(todoOverdueColor->label()); 842 widLayout->addWidget(todoOverdueColor->label());
843 widLayout->addWidget(todoOverdueColor->button()); 843 widLayout->addWidget(todoOverdueColor->button());
844 topLayout->addWidget(wid,ii++,0); 844 topLayout->addWidget(wid,ii++,0);
845 845
846 dummy = 846 dummy =
847 addWidBool(i18n("Colors are applied to text"), 847 addWidBool(i18n("Colors are applied to text"),
@@ -945,45 +945,45 @@ void KOPrefsDialog::setupFontsTab()
945{ 945{
946 946
947 QFrame *topFrame = addPage(i18n("Fonts"),0,0); 947 QFrame *topFrame = addPage(i18n("Fonts"),0,0);
948 // DesktopIcon("fonts",KIcon::SizeMedium)); 948 // DesktopIcon("fonts",KIcon::SizeMedium));
949 949
950 QGridLayout *topLayout = new QGridLayout(topFrame,7,3); 950 QGridLayout *topLayout = new QGridLayout(topFrame,7,3);
951 topLayout->setSpacing(1); 951 topLayout->setSpacing(1);
952 topLayout->setMargin(3); 952 topLayout->setMargin(3);
953 KPrefsWidFont * tVFont; 953 KPrefsDialogWidFont * tVFont;
954 int i = 0; 954 int i = 0;
955 KPrefsWidFont *timeLabelsFont = 955 KPrefsDialogWidFont *timeLabelsFont =
956 addWidFont(i18n("23"),i18n("DateNavigator:(nr)"), 956 addWidFont(i18n("23"),i18n("DateNavigator:(nr)"),
957 &(KOPrefs::instance()->mDateNavigatorFont),topFrame); 957 &(KOPrefs::instance()->mDateNavigatorFont),topFrame);
958 topLayout->addWidget(timeLabelsFont->label(),i,0); 958 topLayout->addWidget(timeLabelsFont->label(),i,0);
959 topLayout->addWidget(timeLabelsFont->preview(),i,1); 959 topLayout->addWidget(timeLabelsFont->preview(),i,1);
960 topLayout->addWidget(timeLabelsFont->button(),i,2); 960 topLayout->addWidget(timeLabelsFont->button(),i,2);
961 ++i; 961 ++i;
962 962
963 963
964 timeLabelsFont = 964 timeLabelsFont =
965 addWidFont(i18n("Mon 15"),i18n("Date Labels:"), 965 addWidFont(i18n("Mon 15"),i18n("Date Labels:"),
966 &(KOPrefs::instance()->mTimeLabelsFont),topFrame); 966 &(KOPrefs::instance()->mTimeLabelsFont),topFrame);
967 topLayout->addWidget(timeLabelsFont->label(),i,0); 967 topLayout->addWidget(timeLabelsFont->label(),i,0);
968 topLayout->addWidget(timeLabelsFont->preview(),i,1); 968 topLayout->addWidget(timeLabelsFont->preview(),i,1);
969 topLayout->addWidget(timeLabelsFont->button(),i,2); 969 topLayout->addWidget(timeLabelsFont->button(),i,2);
970 ++i; 970 ++i;
971 971
972 KPrefsWidFont *timeBarFont = 972 KPrefsDialogWidFont *timeBarFont =
973 addWidFont(KGlobal::locale()->formatTime(QTime(12,34)),i18n("Time bar:"), 973 addWidFont(KGlobal::locale()->formatTime(QTime(12,34)),i18n("Time bar:"),
974 &(KOPrefs::instance()->mTimeBarFont),topFrame); 974 &(KOPrefs::instance()->mTimeBarFont),topFrame);
975 topLayout->addWidget(timeBarFont->label(),i,0); 975 topLayout->addWidget(timeBarFont->label(),i,0);
976 topLayout->addWidget(timeBarFont->preview(),i,1); 976 topLayout->addWidget(timeBarFont->preview(),i,1);
977 topLayout->addWidget(timeBarFont->button(),i,2); 977 topLayout->addWidget(timeBarFont->button(),i,2);
978 ++i; 978 ++i;
979 979
980 980
981 KPrefsWidFont *marcusBainsFont = 981 KPrefsDialogWidFont *marcusBainsFont =
982 addWidFont(KGlobal::locale()->formatTime(QTime(12,34,23)),i18n("M. Bains line:"), 982 addWidFont(KGlobal::locale()->formatTime(QTime(12,34,23)),i18n("M. Bains line:"),
983 &(KOPrefs::instance()->mMarcusBainsFont),topFrame); 983 &(KOPrefs::instance()->mMarcusBainsFont),topFrame);
984 topLayout->addWidget(marcusBainsFont->label(),i,0); 984 topLayout->addWidget(marcusBainsFont->label(),i,0);
985 topLayout->addWidget(marcusBainsFont->preview(),i,1); 985 topLayout->addWidget(marcusBainsFont->preview(),i,1);
986 topLayout->addWidget(marcusBainsFont->button(),i,2); 986 topLayout->addWidget(marcusBainsFont->button(),i,2);
987 ++i; 987 ++i;
988 988
989 tVFont = 989 tVFont =
@@ -1020,35 +1020,35 @@ void KOPrefsDialog::setupFontsTab()
1020 1020
1021 tVFont = 1021 tVFont =
1022 addWidFont(i18n("Configure KO"),i18n("What's Next View:"), 1022 addWidFont(i18n("Configure KO"),i18n("What's Next View:"),
1023 &(KOPrefs::instance()->mWhatsNextFont),topFrame); 1023 &(KOPrefs::instance()->mWhatsNextFont),topFrame);
1024 topLayout->addWidget(tVFont->label(),i,0); 1024 topLayout->addWidget(tVFont->label(),i,0);
1025 topLayout->addWidget(tVFont->preview(),i,1); 1025 topLayout->addWidget(tVFont->preview(),i,1);
1026 topLayout->addWidget(tVFont->button(),i,2); 1026 topLayout->addWidget(tVFont->button(),i,2);
1027 ++i; 1027 ++i;
1028 KPrefsWidFont *agendaViewFont = 1028 KPrefsDialogWidFont *agendaViewFont =
1029 addWidFont(i18n("Event text"),i18n("Agenda view:"), 1029 addWidFont(i18n("Event text"),i18n("Agenda view:"),
1030 &(KOPrefs::instance()->mAgendaViewFont),topFrame); 1030 &(KOPrefs::instance()->mAgendaViewFont),topFrame);
1031 topLayout->addWidget(agendaViewFont->label(),i,0); 1031 topLayout->addWidget(agendaViewFont->label(),i,0);
1032 topLayout->addWidget(agendaViewFont->preview(),i,1); 1032 topLayout->addWidget(agendaViewFont->preview(),i,1);
1033 topLayout->addWidget(agendaViewFont->button(),i,2); 1033 topLayout->addWidget(agendaViewFont->button(),i,2);
1034 ++i; 1034 ++i;
1035 1035
1036 1036
1037 KPrefsWidFont *monthViewFont = 1037 KPrefsDialogWidFont *monthViewFont =
1038 addWidFont(KGlobal::locale()->formatTime(QTime(12,34)) + " " + i18n("Event"), 1038 addWidFont(KGlobal::locale()->formatTime(QTime(12,34)) + " " + i18n("Event"),
1039 i18n("Month view:"),&(KOPrefs::instance()->mMonthViewFont),topFrame); 1039 i18n("Month view:"),&(KOPrefs::instance()->mMonthViewFont),topFrame);
1040 topLayout->addWidget(monthViewFont->label(),i,0); 1040 topLayout->addWidget(monthViewFont->label(),i,0);
1041 topLayout->addWidget(monthViewFont->preview(),i,1); 1041 topLayout->addWidget(monthViewFont->preview(),i,1);
1042 topLayout->addWidget(monthViewFont->button(),i,2); 1042 topLayout->addWidget(monthViewFont->button(),i,2);
1043 ++i; 1043 ++i;
1044 1044
1045 1045
1046 KPrefsWidFont *lVFont = 1046 KPrefsDialogWidFont *lVFont =
1047 addWidFont(i18n("Event"),i18n("List View:"), 1047 addWidFont(i18n("Event"),i18n("List View:"),
1048 &(KOPrefs::instance()->mListViewFont),topFrame); 1048 &(KOPrefs::instance()->mListViewFont),topFrame);
1049 topLayout->addWidget(lVFont->label(),i,0); 1049 topLayout->addWidget(lVFont->label(),i,0);
1050 topLayout->addWidget(lVFont->preview(),i,1); 1050 topLayout->addWidget(lVFont->preview(),i,1);
1051 topLayout->addWidget(lVFont->button(),i,2); 1051 topLayout->addWidget(lVFont->button(),i,2);
1052 ++i; 1052 ++i;
1053 1053
1054 1054
@@ -1105,63 +1105,63 @@ void KOPrefsDialog::setupColorsTab()
1105 1105
1106 mCategoryButton = new KColorButton(categoryGroup); 1106 mCategoryButton = new KColorButton(categoryGroup);
1107 connect(mCategoryButton,SIGNAL(changed(const QColor &)),SLOT(setCategoryColor())); 1107 connect(mCategoryButton,SIGNAL(changed(const QColor &)),SLOT(setCategoryColor()));
1108 updateCategoryColor(); 1108 updateCategoryColor();
1109 1109
1110 1110
1111 // Holiday Color 1111 // Holiday Color
1112 1112
1113 KPrefsWidColor *holidayColor = 1113 KPrefsDialogWidColor *holidayColor =
1114 addWidColor(i18n("Holiday color:"), 1114 addWidColor(i18n("Holiday color:"),
1115 &(KOPrefs::instance()->mHolidayColor),topFrame); 1115 &(KOPrefs::instance()->mHolidayColor),topFrame);
1116 topLayout->addWidget(holidayColor->label(),ii,0); 1116 topLayout->addWidget(holidayColor->label(),ii,0);
1117 topLayout->addWidget(holidayColor->button(),ii++,1); 1117 topLayout->addWidget(holidayColor->button(),ii++,1);
1118 1118
1119 // Highlight Color 1119 // Highlight Color
1120 KPrefsWidColor *highlightColor = 1120 KPrefsDialogWidColor *highlightColor =
1121 addWidColor(i18n("Highlight color:"), 1121 addWidColor(i18n("Highlight color:"),
1122 &(KOPrefs::instance()->mHighlightColor),topFrame); 1122 &(KOPrefs::instance()->mHighlightColor),topFrame);
1123 topLayout->addWidget(highlightColor->label(),ii,0); 1123 topLayout->addWidget(highlightColor->label(),ii,0);
1124 topLayout->addWidget(highlightColor->button(),ii++,1); 1124 topLayout->addWidget(highlightColor->button(),ii++,1);
1125 1125
1126 // Event color 1126 // Event color
1127 KPrefsWidColor *eventColor = 1127 KPrefsDialogWidColor *eventColor =
1128 addWidColor(i18n("Default event color:"), 1128 addWidColor(i18n("Default event color:"),
1129 &(KOPrefs::instance()->mEventColor),topFrame); 1129 &(KOPrefs::instance()->mEventColor),topFrame);
1130 topLayout->addWidget(eventColor->label(),ii,0); 1130 topLayout->addWidget(eventColor->label(),ii,0);
1131 topLayout->addWidget(eventColor->button(),ii++,1); 1131 topLayout->addWidget(eventColor->button(),ii++,1);
1132 1132
1133 // agenda view background color 1133 // agenda view background color
1134 KPrefsWidColor *agendaBgColor = 1134 KPrefsDialogWidColor *agendaBgColor =
1135 addWidColor(i18n("Agenda view background color:"), 1135 addWidColor(i18n("Agenda view background color:"),
1136 &(KOPrefs::instance()->mAgendaBgColor),topFrame); 1136 &(KOPrefs::instance()->mAgendaBgColor),topFrame);
1137 topLayout->addWidget(agendaBgColor->label(),ii,0); 1137 topLayout->addWidget(agendaBgColor->label(),ii,0);
1138 topLayout->addWidget(agendaBgColor->button(),ii++,1); 1138 topLayout->addWidget(agendaBgColor->button(),ii++,1);
1139 1139
1140 // working hours color 1140 // working hours color
1141 KPrefsWidColor *workingHoursColor = 1141 KPrefsDialogWidColor *workingHoursColor =
1142 addWidColor(i18n("Working hours color:"), 1142 addWidColor(i18n("Working hours color:"),
1143 &(KOPrefs::instance()->mWorkingHoursColor),topFrame); 1143 &(KOPrefs::instance()->mWorkingHoursColor),topFrame);
1144 topLayout->addWidget(workingHoursColor->label(),ii,0); 1144 topLayout->addWidget(workingHoursColor->label(),ii,0);
1145 topLayout->addWidget(workingHoursColor->button(),ii++,1); 1145 topLayout->addWidget(workingHoursColor->button(),ii++,1);
1146 1146
1147 KPrefsWidBool *sb = 1147 KPrefsDialogWidBool *sb =
1148 addWidBool(i18n("Use colors for application:"), 1148 addWidBool(i18n("Use colors for application:"),
1149 &(KOPrefs::instance()->mUseAppColors),topFrame); 1149 &(KOPrefs::instance()->mUseAppColors),topFrame);
1150 topLayout->addMultiCellWidget(sb->checkBox(), ii, ii, 0,1 ); 1150 topLayout->addMultiCellWidget(sb->checkBox(), ii, ii, 0,1 );
1151 1151
1152 ii++; 1152 ii++;
1153 KPrefsWidColor * workingHoursColor1 = 1153 KPrefsDialogWidColor * workingHoursColor1 =
1154 addWidColor(i18n("Buttons, menus, etc.:"), 1154 addWidColor(i18n("Buttons, menus, etc.:"),
1155 &(KOPrefs::instance()->mAppColor1),topFrame); 1155 &(KOPrefs::instance()->mAppColor1),topFrame);
1156 topLayout->addWidget(workingHoursColor1->label(),ii,0); 1156 topLayout->addWidget(workingHoursColor1->label(),ii,0);
1157 topLayout->addWidget(workingHoursColor1->button(),ii++,1); 1157 topLayout->addWidget(workingHoursColor1->button(),ii++,1);
1158 1158
1159 KPrefsWidColor * workingHoursColor2 = 1159 KPrefsDialogWidColor * workingHoursColor2 =
1160 addWidColor(i18n("Frames, labels, etc.:"), 1160 addWidColor(i18n("Frames, labels, etc.:"),
1161 &(KOPrefs::instance()->mAppColor2),topFrame); 1161 &(KOPrefs::instance()->mAppColor2),topFrame);
1162 topLayout->addWidget(workingHoursColor2->label(),ii,0); 1162 topLayout->addWidget(workingHoursColor2->label(),ii,0);
1163 topLayout->addWidget(workingHoursColor2->button(),ii++,1); 1163 topLayout->addWidget(workingHoursColor2->button(),ii++,1);
1164 1164
1165 1165
1166 1166
1167} 1167}
@@ -1201,26 +1201,26 @@ void KOPrefsDialog::setupGroupSchedulingTab()
1201 QFrame *topFrame = addPage(i18n("Group Scheduling"),0, 1201 QFrame *topFrame = addPage(i18n("Group Scheduling"),0,
1202 DesktopIcon("personal",KIcon::SizeMedium)); 1202 DesktopIcon("personal",KIcon::SizeMedium));
1203 1203
1204 QGridLayout *topLayout = new QGridLayout(topFrame,6,2); 1204 QGridLayout *topLayout = new QGridLayout(topFrame,6,2);
1205 topLayout->setSpacing(spacingHint()); 1205 topLayout->setSpacing(spacingHint());
1206 topLayout->setMargin(marginHint()); 1206 topLayout->setMargin(marginHint());
1207 1207
1208#if 0 1208#if 0
1209 KPrefsWidRadios *schedulerGroup = 1209 KPrefsDialogWidRadios *schedulerGroup =
1210 addWidRadios(i18n("Scheduler Mail Client"),&(KOPrefs::instance()->mIMIPScheduler), 1210 addWidRadios(i18n("Scheduler Mail Client"),&(KOPrefs::instance()->mIMIPScheduler),
1211 topFrame); 1211 topFrame);
1212 schedulerGroup->addRadio("Dummy"); // Only for debugging 1212 schedulerGroup->addRadio("Dummy"); // Only for debugging
1213 schedulerGroup->addRadio(i18n("Mail client")); 1213 schedulerGroup->addRadio(i18n("Mail client"));
1214 1214
1215 topLayout->addMultiCellWidget(schedulerGroup->groupBox(),0,0,0,1); 1215 topLayout->addMultiCellWidget(schedulerGroup->groupBox(),0,0,0,1);
1216#endif 1216#endif
1217 1217
1218 KPrefsWidRadios *sendGroup = 1218 KPrefsDialogWidRadios *sendGroup =
1219 addWidRadios(i18n("Scheduler Mails Should Be"),&(KOPrefs::instance()->mIMIPSend), 1219 addWidRadios(i18n("Scheduler Mails Should Be"),&(KOPrefs::instance()->mIMIPSend),
1220 topFrame); 1220 topFrame);
1221 sendGroup->addRadio(i18n("Send to outbox")); 1221 sendGroup->addRadio(i18n("Send to outbox"));
1222 sendGroup->addRadio(i18n("Send directly")); 1222 sendGroup->addRadio(i18n("Send directly"));
1223 1223
1224 topLayout->addMultiCellWidget(sendGroup->groupBox(),1,1,0,1); 1224 topLayout->addMultiCellWidget(sendGroup->groupBox(),1,1,0,1);
1225 1225
1226 topLayout->addMultiCellWidget(new QLabel(i18n("Additional email addresses:"),topFrame),2,2,0,1); 1226 topLayout->addMultiCellWidget(new QLabel(i18n("Additional email addresses:"),topFrame),2,2,0,1);
@@ -1251,49 +1251,49 @@ void KOPrefsDialog::setupGroupAutomationTab()
1251 return; 1251 return;
1252 QFrame *topFrame = addPage(i18n("Group Automation"),0, 1252 QFrame *topFrame = addPage(i18n("Group Automation"),0,
1253 DesktopIcon("personal",KIcon::SizeMedium)); 1253 DesktopIcon("personal",KIcon::SizeMedium));
1254 1254
1255 QGridLayout *topLayout = new QGridLayout(topFrame,5,1); 1255 QGridLayout *topLayout = new QGridLayout(topFrame,5,1);
1256 topLayout->setSpacing(spacingHint()); 1256 topLayout->setSpacing(spacingHint());
1257 topLayout->setMargin(marginHint()); 1257 topLayout->setMargin(marginHint());
1258 1258
1259 KPrefsWidRadios *autoRefreshGroup = 1259 KPrefsDialogWidRadios *autoRefreshGroup =
1260 addWidRadios(i18n("Auto Send Refresh"), 1260 addWidRadios(i18n("Auto Send Refresh"),
1261 &(KOPrefs::instance()->mIMIPAutoRefresh),topFrame); 1261 &(KOPrefs::instance()->mIMIPAutoRefresh),topFrame);
1262 autoRefreshGroup->addRadio(i18n("Never")); 1262 autoRefreshGroup->addRadio(i18n("Never"));
1263 autoRefreshGroup->addRadio(i18n("If attendee is in addressbook")); 1263 autoRefreshGroup->addRadio(i18n("If attendee is in addressbook"));
1264 //autoRefreshGroup->addRadio(i18n("selected emails")); 1264 //autoRefreshGroup->addRadio(i18n("selected emails"));
1265 topLayout->addMultiCellWidget(autoRefreshGroup->groupBox(),0,0,0,0); 1265 topLayout->addMultiCellWidget(autoRefreshGroup->groupBox(),0,0,0,0);
1266 1266
1267 KPrefsWidRadios *autoInsertGroup = 1267 KPrefsDialogWidRadios *autoInsertGroup =
1268 addWidRadios(i18n("Auto Insert IMIP Replies"), 1268 addWidRadios(i18n("Auto Insert IMIP Replies"),
1269 &(KOPrefs::instance()->mIMIPAutoInsertReply),topFrame); 1269 &(KOPrefs::instance()->mIMIPAutoInsertReply),topFrame);
1270 autoInsertGroup->addRadio(i18n("Never")); 1270 autoInsertGroup->addRadio(i18n("Never"));
1271 autoInsertGroup->addRadio(i18n("If attendee is in addressbook")); 1271 autoInsertGroup->addRadio(i18n("If attendee is in addressbook"));
1272 //autoInsertGroup->addRadio(i18n("selected emails")); 1272 //autoInsertGroup->addRadio(i18n("selected emails"));
1273 topLayout->addMultiCellWidget(autoInsertGroup->groupBox(),1,1,0,0); 1273 topLayout->addMultiCellWidget(autoInsertGroup->groupBox(),1,1,0,0);
1274 1274
1275 KPrefsWidRadios *autoRequestGroup = 1275 KPrefsDialogWidRadios *autoRequestGroup =
1276 addWidRadios(i18n("Auto Insert IMIP Requests"), 1276 addWidRadios(i18n("Auto Insert IMIP Requests"),
1277 &(KOPrefs::instance()->mIMIPAutoInsertRequest),topFrame); 1277 &(KOPrefs::instance()->mIMIPAutoInsertRequest),topFrame);
1278 autoRequestGroup->addRadio(i18n("Never")); 1278 autoRequestGroup->addRadio(i18n("Never"));
1279 autoRequestGroup->addRadio(i18n("If organizer is in addressbook")); 1279 autoRequestGroup->addRadio(i18n("If organizer is in addressbook"));
1280 //autoInsertGroup->addRadio(i18n("selected emails")); 1280 //autoInsertGroup->addRadio(i18n("selected emails"));
1281 topLayout->addMultiCellWidget(autoRequestGroup->groupBox(),2,2,0,0); 1281 topLayout->addMultiCellWidget(autoRequestGroup->groupBox(),2,2,0,0);
1282 1282
1283 KPrefsWidRadios *autoFreeBusyGroup = 1283 KPrefsDialogWidRadios *autoFreeBusyGroup =
1284 addWidRadios(i18n("Auto Send FreeBusy Information"), 1284 addWidRadios(i18n("Auto Send FreeBusy Information"),
1285 &(KOPrefs::instance()->mIMIPAutoFreeBusy),topFrame); 1285 &(KOPrefs::instance()->mIMIPAutoFreeBusy),topFrame);
1286 autoFreeBusyGroup->addRadio(i18n("Never")); 1286 autoFreeBusyGroup->addRadio(i18n("Never"));
1287 autoFreeBusyGroup->addRadio(i18n("If requested from an email in addressbook")); 1287 autoFreeBusyGroup->addRadio(i18n("If requested from an email in addressbook"));
1288 //autoFreeBusyGroup->addRadio(i18n("selected emails")); 1288 //autoFreeBusyGroup->addRadio(i18n("selected emails"));
1289 topLayout->addMultiCellWidget(autoFreeBusyGroup->groupBox(),3,3,0,0); 1289 topLayout->addMultiCellWidget(autoFreeBusyGroup->groupBox(),3,3,0,0);
1290 1290
1291 KPrefsWidRadios *autoFreeBusyReplyGroup = 1291 KPrefsDialogWidRadios *autoFreeBusyReplyGroup =
1292 addWidRadios(i18n("Auto Save FreeBusy Replies"), 1292 addWidRadios(i18n("Auto Save FreeBusy Replies"),
1293 &(KOPrefs::instance()->mIMIPAutoFreeBusyReply),topFrame); 1293 &(KOPrefs::instance()->mIMIPAutoFreeBusyReply),topFrame);
1294 autoFreeBusyReplyGroup->addRadio(i18n("Never")); 1294 autoFreeBusyReplyGroup->addRadio(i18n("Never"));
1295 autoFreeBusyReplyGroup->addRadio(i18n("If attendee is in addressbook")); 1295 autoFreeBusyReplyGroup->addRadio(i18n("If attendee is in addressbook"));
1296 //autoFreeBusyGroup->addRadio(i18n("selected emails")); 1296 //autoFreeBusyGroup->addRadio(i18n("selected emails"));
1297 topLayout->addMultiCellWidget(autoFreeBusyReplyGroup->groupBox(),4,4,0,0); 1297 topLayout->addMultiCellWidget(autoFreeBusyReplyGroup->groupBox(),4,4,0,0);
1298} 1298}
1299 1299
@@ -1573,17 +1573,17 @@ void KOPrefsDialog::setupTimeZoneTab()
1573 if (mTimeZoneCombo->text(i) == sCurrentlySet) 1573 if (mTimeZoneCombo->text(i) == sCurrentlySet)
1574 { 1574 {
1575 nCurrentlySet = i; 1575 nCurrentlySet = i;
1576 break; 1576 break;
1577 } 1577 }
1578 } 1578 }
1579 mTimeZoneCombo->setCurrentItem(nCurrentlySet); 1579 mTimeZoneCombo->setCurrentItem(nCurrentlySet);
1580 int iii = 1; 1580 int iii = 1;
1581 KPrefsWidBool *sb = 1581 KPrefsDialogWidBool *sb =
1582 addWidBool(i18n("Timezone has daylight saving"), 1582 addWidBool(i18n("Timezone has daylight saving"),
1583 &(KOPrefs::instance()->mUseDaylightsaving),topFrame); 1583 &(KOPrefs::instance()->mUseDaylightsaving),topFrame);
1584 topLayout->addMultiCellWidget(sb->checkBox(), iii,iii,0,1); 1584 topLayout->addMultiCellWidget(sb->checkBox(), iii,iii,0,1);
1585 ++iii; 1585 ++iii;
1586 QLabel* lab = new QLabel( i18n("Actual start and end is the\nsunday before this date."), topFrame ); 1586 QLabel* lab = new QLabel( i18n("Actual start and end is the\nsunday before this date."), topFrame );
1587 topLayout->addMultiCellWidget(lab, iii,iii,0,1); 1587 topLayout->addMultiCellWidget(lab, iii,iii,0,1);
1588 ++iii; 1588 ++iii;
1589 lab = new QLabel( i18n("The year in the date is ignored."), topFrame ); 1589 lab = new QLabel( i18n("The year in the date is ignored."), topFrame );
diff --git a/korganizer/koprefsdialog.h b/korganizer/koprefsdialog.h
index fd651d0..83dc1eb 100644
--- a/korganizer/koprefsdialog.h
+++ b/korganizer/koprefsdialog.h
@@ -94,18 +94,18 @@ class KOPrefsDialog : public KPrefsDialog
94 void setupGroupAutomationTab(); 94 void setupGroupAutomationTab();
95 void setupSyncTab(); 95 void setupSyncTab();
96 void setupSyncAlgTab(); 96 void setupSyncAlgTab();
97 97
98 void setCombo(QComboBox *combo,const QString & text, const QStringList *tags = 0); 98 void setCombo(QComboBox *combo,const QString & text, const QStringList *tags = 0);
99 99
100 100
101 private: 101 private:
102 KPrefsWidBool *mEnableGroupScheduling; 102 KPrefsDialogWidBool *mEnableGroupScheduling;
103 KPrefsWidBool *mEnableProjectView; 103 KPrefsDialogWidBool *mEnableProjectView;
104 104
105 QFrame *mPrinterTab; 105 QFrame *mPrinterTab;
106 106
107 QLineEdit *nameEdit; 107 QLineEdit *nameEdit;
108 QLineEdit *emailEdit; 108 QLineEdit *emailEdit;
109 109
110 QComboBox *timeCombo; 110 QComboBox *timeCombo;
111 QComboBox *tzCombo; 111 QComboBox *tzCombo;