-rw-r--r-- | korganizer/koprefsdialog.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/korganizer/koprefsdialog.cpp b/korganizer/koprefsdialog.cpp index 04fffe2..da6644f 100644 --- a/korganizer/koprefsdialog.cpp +++ b/korganizer/koprefsdialog.cpp | |||
@@ -22,97 +22,96 @@ | |||
22 | */ | 22 | */ |
23 | 23 | ||
24 | #include <qlayout.h> | 24 | #include <qlayout.h> |
25 | #include <qlabel.h> | 25 | #include <qlabel.h> |
26 | #include <qgroupbox.h> | 26 | #include <qgroupbox.h> |
27 | #include <qbuttongroup.h> | 27 | #include <qbuttongroup.h> |
28 | #include <qlineedit.h> | 28 | #include <qlineedit.h> |
29 | #include <qfont.h> | 29 | #include <qfont.h> |
30 | #include <qslider.h> | 30 | #include <qslider.h> |
31 | #include <qfile.h> | 31 | #include <qfile.h> |
32 | #include <qtextstream.h> | 32 | #include <qtextstream.h> |
33 | #include <qcombobox.h> | 33 | #include <qcombobox.h> |
34 | #include <qvbox.h> | 34 | #include <qvbox.h> |
35 | #include <qhbox.h> | 35 | #include <qhbox.h> |
36 | #include <qregexp.h> | 36 | #include <qregexp.h> |
37 | #include <qspinbox.h> | 37 | #include <qspinbox.h> |
38 | #include <qdatetime.h> | 38 | #include <qdatetime.h> |
39 | #include <qcheckbox.h> | 39 | #include <qcheckbox.h> |
40 | #include <qradiobutton.h> | 40 | #include <qradiobutton.h> |
41 | #include <qpushbutton.h> | 41 | #include <qpushbutton.h> |
42 | #include <qstrlist.h> | 42 | #include <qstrlist.h> |
43 | #include <qapplication.h> | 43 | #include <qapplication.h> |
44 | 44 | ||
45 | #include <kcolorbutton.h> | 45 | #include <kcolorbutton.h> |
46 | #include <kdebug.h> | 46 | #include <kdebug.h> |
47 | #include <klocale.h> | 47 | #include <klocale.h> |
48 | #include <kglobal.h> | 48 | #include <kglobal.h> |
49 | #include <kfontdialog.h> | 49 | #include <kfontdialog.h> |
50 | #include <kfiledialog.h> | 50 | #include <kfiledialog.h> |
51 | #include <kmessagebox.h> | 51 | #include <kmessagebox.h> |
52 | #include <kcolordialog.h> | 52 | #include <kcolordialog.h> |
53 | #include <kiconloader.h> | 53 | #include <kiconloader.h> |
54 | #include <kemailsettings.h> | 54 | #include <kemailsettings.h> |
55 | #include <kstandarddirs.h> | 55 | #include <kstandarddirs.h> |
56 | 56 | ||
57 | #include <kurlrequester.h> | 57 | #include <kurlrequester.h> |
58 | #include <klineedit.h> | 58 | #include <klineedit.h> |
59 | 59 | ||
60 | #if defined(USE_SOLARIS) | 60 | #if defined(USE_SOLARIS) |
61 | #include <sys/param.h> | 61 | #include <sys/param.h> |
62 | 62 | ||
63 | #define ZONEINFODIR "/usr/share/lib/zoneinfo" | 63 | #define ZONEINFODIR "/usr/share/lib/zoneinfo" |
64 | #define INITFILE "/etc/default/init" | 64 | #define INITFILE "/etc/default/init" |
65 | #endif | 65 | #endif |
66 | 66 | ||
67 | #include "koprefs.h" | 67 | #include "koprefs.h" |
68 | 68 | ||
69 | #include "koprefsdialog.h" | 69 | #include "koprefsdialog.h" |
70 | #include "koprefsdialog.moc" | ||
71 | 70 | ||
72 | 71 | ||
73 | KOPrefsDialog::KOPrefsDialog(QWidget *parent, char *name, bool modal) : | 72 | KOPrefsDialog::KOPrefsDialog(QWidget *parent, char *name, bool modal) : |
74 | KPrefsDialog(KOPrefs::instance(),parent,name,true) | 73 | KPrefsDialog(KOPrefs::instance(),parent,name,true) |
75 | { | 74 | { |
76 | 75 | ||
77 | setCaption( i18n("Preferences - some settings need a restart (nr)")); | 76 | setCaption( i18n("Preferences - some settings need a restart (nr)")); |
78 | mCategoryDict.setAutoDelete(true); | 77 | mCategoryDict.setAutoDelete(true); |
79 | 78 | ||
80 | KGlobal::locale()->insertCatalogue("timezones"); | 79 | KGlobal::locale()->insertCatalogue("timezones"); |
81 | 80 | ||
82 | setupMainTab(); | 81 | setupMainTab(); |
83 | setupLocaleTab(); | 82 | setupLocaleTab(); |
84 | setupTimeZoneTab(); | 83 | setupTimeZoneTab(); |
85 | setupTimeTab(); | 84 | setupTimeTab(); |
86 | setupLocaleDateTab(); | 85 | setupLocaleDateTab(); |
87 | setupFontsTab(); | 86 | setupFontsTab(); |
88 | setupColorsTab(); | 87 | setupColorsTab(); |
89 | setupViewsTab(); | 88 | setupViewsTab(); |
90 | //setupSyncTab(); | 89 | //setupSyncTab(); |
91 | //setupSyncAlgTab(); | 90 | //setupSyncAlgTab(); |
92 | //setupPrinterTab(); | 91 | //setupPrinterTab(); |
93 | //setupGroupSchedulingTab(); | 92 | //setupGroupSchedulingTab(); |
94 | //setupGroupAutomationTab(); | 93 | //setupGroupAutomationTab(); |
95 | } | 94 | } |
96 | 95 | ||
97 | 96 | ||
98 | KOPrefsDialog::~KOPrefsDialog() | 97 | KOPrefsDialog::~KOPrefsDialog() |
99 | { | 98 | { |
100 | } | 99 | } |
101 | 100 | ||
102 | void KOPrefsDialog::setupLocaleDateTab() | 101 | void KOPrefsDialog::setupLocaleDateTab() |
103 | { | 102 | { |
104 | QFrame *topFrame = addPage(i18n("Date Format"),0,0); | 103 | QFrame *topFrame = addPage(i18n("Date Format"),0,0); |
105 | QGridLayout *topLayout = new QGridLayout(topFrame,3,2); | 104 | QGridLayout *topLayout = new QGridLayout(topFrame,3,2); |
106 | topLayout->setSpacing(spacingHint()); | 105 | topLayout->setSpacing(spacingHint()); |
107 | topLayout->setMargin(marginHint()); | 106 | topLayout->setMargin(marginHint()); |
108 | int iii = 0; | 107 | int iii = 0; |
109 | 108 | ||
110 | 109 | ||
111 | KPrefsWidRadios *syncPrefsGroup = | 110 | KPrefsWidRadios *syncPrefsGroup = |
112 | addWidRadios(i18n("Date Format:"),&(KOPrefs::instance()->mPreferredDate),topFrame); | 111 | addWidRadios(i18n("Date Format:"),&(KOPrefs::instance()->mPreferredDate),topFrame); |
113 | QString format; | 112 | QString format; |
114 | if ( QApplication::desktop()->width() < 480 ) | 113 | if ( QApplication::desktop()->width() < 480 ) |
115 | format = "(%d.%m.%Y)"; | 114 | format = "(%d.%m.%Y)"; |
116 | else | 115 | else |
117 | format = "(%d.%m.%Y|%A %d %B %Y)"; | 116 | format = "(%d.%m.%Y|%A %d %B %Y)"; |
118 | syncPrefsGroup->addRadio(i18n("24.03.2004 "+format)); | 117 | syncPrefsGroup->addRadio(i18n("24.03.2004 "+format)); |