-rw-r--r-- | kmicromail/koprefsdialog.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kmicromail/koprefsdialog.cpp b/kmicromail/koprefsdialog.cpp index 4af4a8c..40347cc 100644 --- a/kmicromail/koprefsdialog.cpp +++ b/kmicromail/koprefsdialog.cpp | |||
@@ -28,96 +28,100 @@ | |||
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 <klineedit.h> | 57 | #include <klineedit.h> |
58 | 58 | ||
59 | 59 | ||
60 | #include "koprefs.h" | 60 | #include "koprefs.h" |
61 | 61 | ||
62 | #include "koprefsdialog.h" | 62 | #include "koprefsdialog.h" |
63 | //#include <kprefswidget.h> | 63 | //#include <kprefswidget.h> |
64 | 64 | ||
65 | 65 | ||
66 | KOPrefsDialog::KOPrefsDialog(QWidget *parent, char *name, bool modal) : | 66 | KOPrefsDialog::KOPrefsDialog(QWidget *parent, char *name, bool modal) : |
67 | KPrefsDialog(KOPrefs::instance(),parent,name,true) | 67 | KPrefsDialog(KOPrefs::instance(),parent,name,true) |
68 | { | 68 | { |
69 | 69 | ||
70 | setCaption( i18n("Settings - some need a restart (nr)")); | 70 | setCaption( i18n("Settings - some need a restart (nr)")); |
71 | setupGlobalTab(); | 71 | setupGlobalTab(); |
72 | setupMainTab(); | 72 | setupMainTab(); |
73 | setupMailTab();; | 73 | setupMailTab();; |
74 | setupFontsTab(); | 74 | setupFontsTab(); |
75 | readConfig(); | 75 | readConfig(); |
76 | #ifndef DESKTOP_VERSION | ||
77 | if ( QApplication::desktop()->height() == 480 ) | ||
78 | hideButtons(); | ||
79 | #endif | ||
76 | 80 | ||
77 | #if 0 | 81 | #if 0 |
78 | 82 | ||
79 | setupMainTab(); | 83 | setupMainTab(); |
80 | setupLocaleTab(); | 84 | setupLocaleTab(); |
81 | setupTimeZoneTab(); | 85 | setupTimeZoneTab(); |
82 | setupTimeTab(); | 86 | setupTimeTab(); |
83 | setupLocaleDateTab(); | 87 | setupLocaleDateTab(); |
84 | setupFontsTab(); | 88 | setupFontsTab(); |
85 | setupColorsTab(); | 89 | setupColorsTab(); |
86 | setupViewsTab(); | 90 | setupViewsTab(); |
87 | //setupSyncTab(); | 91 | //setupSyncTab(); |
88 | //setupSyncAlgTab(); | 92 | //setupSyncAlgTab(); |
89 | //setupPrinterTab(); | 93 | //setupPrinterTab(); |
90 | //setupGroupSchedulingTab(); | 94 | //setupGroupSchedulingTab(); |
91 | //setupGroupAutomationTab(); | 95 | //setupGroupAutomationTab(); |
92 | #endif | 96 | #endif |
93 | } | 97 | } |
94 | 98 | ||
95 | #include "kpimglobalprefs.h" | 99 | #include "kpimglobalprefs.h" |
96 | 100 | ||
97 | KOPrefsDialog::~KOPrefsDialog() | 101 | KOPrefsDialog::~KOPrefsDialog() |
98 | { | 102 | { |
99 | } | 103 | } |
100 | void KOPrefsDialog::setupGlobalTab() | 104 | void KOPrefsDialog::setupGlobalTab() |
101 | { | 105 | { |
102 | QFrame *topFrame = addPage(i18n("Global"),0,0); | 106 | QFrame *topFrame = addPage(i18n("Global"),0,0); |
103 | kdelibcfg = new KDEPIMConfigWidget( KPimGlobalPrefs::instance(), topFrame, "KCMKdeLibConfig" ); | 107 | kdelibcfg = new KDEPIMConfigWidget( KPimGlobalPrefs::instance(), topFrame, "KCMKdeLibConfig" ); |
104 | QVBoxLayout *topLayout = new QVBoxLayout(topFrame); | 108 | QVBoxLayout *topLayout = new QVBoxLayout(topFrame); |
105 | topLayout->addWidget( kdelibcfg ); | 109 | topLayout->addWidget( kdelibcfg ); |
106 | 110 | ||
107 | 111 | ||
108 | } | 112 | } |
109 | void KOPrefsDialog::setupMainTab() | 113 | void KOPrefsDialog::setupMainTab() |
110 | { | 114 | { |
111 | QFrame *topFrame = addPage(i18n("General"),0,0); | 115 | QFrame *topFrame = addPage(i18n("General"),0,0); |
112 | 116 | ||
113 | QGridLayout *topLayout = new QGridLayout(topFrame,6,2); | 117 | QGridLayout *topLayout = new QGridLayout(topFrame,6,2); |
114 | topLayout->setSpacing(spacingHint()); | 118 | topLayout->setSpacing(spacingHint()); |
115 | topLayout->setMargin(marginHint()); | 119 | topLayout->setMargin(marginHint()); |
116 | 120 | ||
117 | 121 | ||
118 | mNameEdit = new QLineEdit(topFrame); | 122 | mNameEdit = new QLineEdit(topFrame); |
119 | mNameLabel = new QLabel(mNameEdit, i18n("Full &name:"), topFrame); | 123 | mNameLabel = new QLabel(mNameEdit, i18n("Full &name:"), topFrame); |
120 | topLayout->addWidget(mNameLabel,0,0); | 124 | topLayout->addWidget(mNameLabel,0,0); |
121 | topLayout->addWidget(mNameEdit,0,1); | 125 | topLayout->addWidget(mNameEdit,0,1); |
122 | 126 | ||
123 | mEmailEdit = new QLineEdit(topFrame); | 127 | mEmailEdit = new QLineEdit(topFrame); |