summaryrefslogtreecommitdiffabout
Unidiff
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
@@ -98,8 +98,4 @@ class KOPrefs : public KPimPrefs
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;
@@ -272,10 +268,4 @@ class KOPrefs : public KPimPrefs
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
@@ -291,2 +281,17 @@ class KOPrefs : public KPimPrefs
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:
diff --git a/korganizer/koprefsdialog.cpp b/korganizer/koprefsdialog.cpp
index 5ba4817..1c30faa 100644
--- a/korganizer/koprefsdialog.cpp
+++ b/korganizer/koprefsdialog.cpp
@@ -109,3 +109,3 @@ QFrame *topFrame = addPage(i18n("Date Format"),0,0);
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);
@@ -161,3 +161,3 @@ void KOPrefsDialog::setupLocaleTab()
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);
@@ -181,3 +181,3 @@ void KOPrefsDialog::setupLocaleTab()
181 ++iii; 181 ++iii;
182 KPrefsWidBool *sb; 182 KPrefsDialogWidBool *sb;
183 if ( QApplication::desktop()->width() < 300 ) { 183 if ( QApplication::desktop()->width() < 300 ) {
@@ -207,3 +207,3 @@ void KOPrefsDialog::setupLocaleTab()
207 } 207 }
208 //#ifndef DESKTOP_VERSION 208 // KPrefsDialogWidBool *sb; //#ifndef DESKTOP_VERSION
209#if 0 209#if 0
@@ -232,3 +232,3 @@ void KOPrefsDialog::setupSyncAlgTab()
232 232
233 KPrefsWidBool *sb = 233 KPrefsDialogWidBool *sb =
234 addWidBool(i18n("Ask for preferences before syncing"), 234 addWidBool(i18n("Ask for preferences before syncing"),
@@ -239,3 +239,3 @@ void KOPrefsDialog::setupSyncAlgTab()
239 239
240 KPrefsWidRadios *syncPrefsGroup = 240 KPrefsDialogWidRadios *syncPrefsGroup =
241 addWidRadios(i18n("Sync preferences:"),&(KOPrefs::instance()->mSyncAlgoPrefs), 241 addWidRadios(i18n("Sync preferences:"),&(KOPrefs::instance()->mSyncAlgoPrefs),
@@ -299,3 +299,3 @@ void KOPrefsDialog::setupSyncTab()
299 299
300 KPrefsWidBool *wb = 300 KPrefsDialogWidBool *wb =
301 addWidBool(i18n("Write back synced file"), 301 addWidBool(i18n("Write back synced file"),
@@ -322,3 +322,3 @@ void KOPrefsDialog::setupMainTab()
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"),
@@ -338,3 +338,3 @@ void KOPrefsDialog::setupMainTab()
338 topLayout->addWidget(mEmailEdit,1,1); 338 topLayout->addWidget(mEmailEdit,1,1);
339 KPrefsWidBool *wb; 339 KPrefsDialogWidBool *wb;
340 QHBox *dummy; 340 QHBox *dummy;
@@ -381,3 +381,3 @@ void KOPrefsDialog::setupMainTab()
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"),
@@ -408,3 +408,3 @@ void KOPrefsDialog::setupMainTab()
408 */ 408 */
409 KPrefsWidBool *verticalScreen = 409 KPrefsDialogWidBool *verticalScreen =
410 addWidBool(i18n("Show vertical screen (Needs restart)"), 410 addWidBool(i18n("Show vertical screen (Needs restart)"),
@@ -414,3 +414,3 @@ void KOPrefsDialog::setupMainTab()
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"),
@@ -421,3 +421,3 @@ void KOPrefsDialog::setupMainTab()
421 /* 421 /*
422 KPrefsWidBool *confirmCheck = 422 KPrefsDialogWidBool *confirmCheck =
423 addWidBool(i18n("Confirm &deletes"),&(KOPrefs::instance()->mConfirm), 423 addWidBool(i18n("Confirm &deletes"),&(KOPrefs::instance()->mConfirm),
@@ -447,3 +447,3 @@ void KOPrefsDialog::setupMainTab()
447 447
448 KPrefsWidRadios *defaultFormatGroup = 448 KPrefsDialogWidRadios *defaultFormatGroup =
449 addWidRadios(i18n("Default Calendar Format"), 449 addWidRadios(i18n("Default Calendar Format"),
@@ -458,3 +458,3 @@ void KOPrefsDialog::setupMainTab()
458 458
459 KPrefsWidRadios *mailClientGroup = 459 KPrefsDialogWidRadios *mailClientGroup =
460 addWidRadios(i18n("Mail Client"),&(KOPrefs::instance()->mMailClient), 460 addWidRadios(i18n("Mail Client"),&(KOPrefs::instance()->mMailClient),
@@ -465,3 +465,3 @@ void KOPrefsDialog::setupMainTab()
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),
@@ -470,3 +470,3 @@ void KOPrefsDialog::setupMainTab()
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),
@@ -492,3 +492,3 @@ void KOPrefsDialog::setupTimeTab()
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),
@@ -545,3 +545,3 @@ void KOPrefsDialog::setupTimeTab()
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),
@@ -567,3 +567,3 @@ void KOPrefsDialog::setupViewsTab()
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),
@@ -583,3 +583,3 @@ void KOPrefsDialog::setupViewsTab()
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)"),
@@ -598,3 +598,3 @@ void KOPrefsDialog::setupViewsTab()
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."),
@@ -603,3 +603,3 @@ void KOPrefsDialog::setupViewsTab()
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."),
@@ -609,3 +609,3 @@ void KOPrefsDialog::setupViewsTab()
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."),
@@ -615,3 +615,3 @@ void KOPrefsDialog::setupViewsTab()
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"),
@@ -631,3 +631,3 @@ void KOPrefsDialog::setupViewsTab()
631 631
632 KPrefsWidBool *marcusBainsEnabled = 632 KPrefsDialogWidBool *marcusBainsEnabled =
633 addWidBool(i18n("Show Marcus Bains line"), 633 addWidBool(i18n("Show Marcus Bains line"),
@@ -666,3 +666,3 @@ void KOPrefsDialog::setupViewsTab()
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"),
@@ -671,3 +671,3 @@ void KOPrefsDialog::setupViewsTab()
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"),
@@ -748,3 +748,3 @@ void KOPrefsDialog::setupViewsTab()
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"),
@@ -759,3 +759,3 @@ void KOPrefsDialog::setupViewsTab()
759 759
760 KPrefsWidBool *coloredCategoriesInMonthView = 760 KPrefsDialogWidBool *coloredCategoriesInMonthView =
761 addWidBool(i18n("Month view uses category colors"), 761 addWidBool(i18n("Month view uses category colors"),
@@ -773,3 +773,3 @@ void KOPrefsDialog::setupViewsTab()
773 773
774 KPrefsWidColor *holidayColor = 774 KPrefsDialogWidColor *holidayColor =
775 addWidColor(i18n("Day color odd months"), 775 addWidColor(i18n("Day color odd months"),
@@ -802,3 +802,3 @@ void KOPrefsDialog::setupViewsTab()
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"),
@@ -826,3 +826,3 @@ void KOPrefsDialog::setupViewsTab()
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:"),
@@ -838,3 +838,3 @@ void KOPrefsDialog::setupViewsTab()
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:"),
@@ -952,5 +952,5 @@ void KOPrefsDialog::setupFontsTab()
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)"),
@@ -971,3 +971,3 @@ void KOPrefsDialog::setupFontsTab()
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:"),
@@ -980,3 +980,3 @@ void KOPrefsDialog::setupFontsTab()
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:"),
@@ -1027,3 +1027,3 @@ void KOPrefsDialog::setupFontsTab()
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:"),
@@ -1036,3 +1036,3 @@ void KOPrefsDialog::setupFontsTab()
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"),
@@ -1045,3 +1045,3 @@ void KOPrefsDialog::setupFontsTab()
1045 1045
1046 KPrefsWidFont *lVFont = 1046 KPrefsDialogWidFont *lVFont =
1047 addWidFont(i18n("Event"),i18n("List View:"), 1047 addWidFont(i18n("Event"),i18n("List View:"),
@@ -1112,3 +1112,3 @@ void KOPrefsDialog::setupColorsTab()
1112 1112
1113 KPrefsWidColor *holidayColor = 1113 KPrefsDialogWidColor *holidayColor =
1114 addWidColor(i18n("Holiday color:"), 1114 addWidColor(i18n("Holiday color:"),
@@ -1119,3 +1119,3 @@ void KOPrefsDialog::setupColorsTab()
1119 // Highlight Color 1119 // Highlight Color
1120 KPrefsWidColor *highlightColor = 1120 KPrefsDialogWidColor *highlightColor =
1121 addWidColor(i18n("Highlight color:"), 1121 addWidColor(i18n("Highlight color:"),
@@ -1126,3 +1126,3 @@ void KOPrefsDialog::setupColorsTab()
1126 // Event color 1126 // Event color
1127 KPrefsWidColor *eventColor = 1127 KPrefsDialogWidColor *eventColor =
1128 addWidColor(i18n("Default event color:"), 1128 addWidColor(i18n("Default event color:"),
@@ -1133,3 +1133,3 @@ void KOPrefsDialog::setupColorsTab()
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:"),
@@ -1140,3 +1140,3 @@ void KOPrefsDialog::setupColorsTab()
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:"),
@@ -1146,3 +1146,3 @@ void KOPrefsDialog::setupColorsTab()
1146 1146
1147 KPrefsWidBool *sb = 1147 KPrefsDialogWidBool *sb =
1148 addWidBool(i18n("Use colors for application:"), 1148 addWidBool(i18n("Use colors for application:"),
@@ -1152,3 +1152,3 @@ void KOPrefsDialog::setupColorsTab()
1152 ii++; 1152 ii++;
1153 KPrefsWidColor * workingHoursColor1 = 1153 KPrefsDialogWidColor * workingHoursColor1 =
1154 addWidColor(i18n("Buttons, menus, etc.:"), 1154 addWidColor(i18n("Buttons, menus, etc.:"),
@@ -1158,3 +1158,3 @@ void KOPrefsDialog::setupColorsTab()
1158 1158
1159 KPrefsWidColor * workingHoursColor2 = 1159 KPrefsDialogWidColor * workingHoursColor2 =
1160 addWidColor(i18n("Frames, labels, etc.:"), 1160 addWidColor(i18n("Frames, labels, etc.:"),
@@ -1208,3 +1208,3 @@ void KOPrefsDialog::setupGroupSchedulingTab()
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),
@@ -1217,3 +1217,3 @@ void KOPrefsDialog::setupGroupSchedulingTab()
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),
@@ -1258,3 +1258,3 @@ void KOPrefsDialog::setupGroupAutomationTab()
1258 1258
1259 KPrefsWidRadios *autoRefreshGroup = 1259 KPrefsDialogWidRadios *autoRefreshGroup =
1260 addWidRadios(i18n("Auto Send Refresh"), 1260 addWidRadios(i18n("Auto Send Refresh"),
@@ -1266,3 +1266,3 @@ void KOPrefsDialog::setupGroupAutomationTab()
1266 1266
1267 KPrefsWidRadios *autoInsertGroup = 1267 KPrefsDialogWidRadios *autoInsertGroup =
1268 addWidRadios(i18n("Auto Insert IMIP Replies"), 1268 addWidRadios(i18n("Auto Insert IMIP Replies"),
@@ -1274,3 +1274,3 @@ void KOPrefsDialog::setupGroupAutomationTab()
1274 1274
1275 KPrefsWidRadios *autoRequestGroup = 1275 KPrefsDialogWidRadios *autoRequestGroup =
1276 addWidRadios(i18n("Auto Insert IMIP Requests"), 1276 addWidRadios(i18n("Auto Insert IMIP Requests"),
@@ -1282,3 +1282,3 @@ void KOPrefsDialog::setupGroupAutomationTab()
1282 1282
1283 KPrefsWidRadios *autoFreeBusyGroup = 1283 KPrefsDialogWidRadios *autoFreeBusyGroup =
1284 addWidRadios(i18n("Auto Send FreeBusy Information"), 1284 addWidRadios(i18n("Auto Send FreeBusy Information"),
@@ -1290,3 +1290,3 @@ void KOPrefsDialog::setupGroupAutomationTab()
1290 1290
1291 KPrefsWidRadios *autoFreeBusyReplyGroup = 1291 KPrefsDialogWidRadios *autoFreeBusyReplyGroup =
1292 addWidRadios(i18n("Auto Save FreeBusy Replies"), 1292 addWidRadios(i18n("Auto Save FreeBusy Replies"),
@@ -1580,3 +1580,3 @@ void KOPrefsDialog::setupTimeZoneTab()
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"),
diff --git a/korganizer/koprefsdialog.h b/korganizer/koprefsdialog.h
index fd651d0..83dc1eb 100644
--- a/korganizer/koprefsdialog.h
+++ b/korganizer/koprefsdialog.h
@@ -101,4 +101,4 @@ class KOPrefsDialog : public KPrefsDialog
101 private: 101 private:
102 KPrefsWidBool *mEnableGroupScheduling; 102 KPrefsDialogWidBool *mEnableGroupScheduling;
103 KPrefsWidBool *mEnableProjectView; 103 KPrefsDialogWidBool *mEnableProjectView;
104 104