author | zautrix <zautrix> | 2004-09-22 04:05:36 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-09-22 04:05:36 (UTC) |
commit | a56783aace3496c8b40008d0dec4c42437165e54 (patch) (unidiff) | |
tree | 7c3c070c3346d67356508d586327212d97b457cb | |
parent | d63eac7a612a9724705bc58ad98c65c6ac052d07 (diff) | |
download | kdepimpi-a56783aace3496c8b40008d0dec4c42437165e54.zip kdepimpi-a56783aace3496c8b40008d0dec4c42437165e54.tar.gz kdepimpi-a56783aace3496c8b40008d0dec4c42437165e54.tar.bz2 |
Fix for startup question for timezone
-rw-r--r-- | korganizer/koprefsdialog.cpp | 3 | ||||
-rw-r--r-- | libkdepim/kcmconfigs/kdepimconfigwidget.cpp | 5 | ||||
-rw-r--r-- | libkdepim/kcmconfigs/kdepimconfigwidget.h | 1 |
3 files changed, 7 insertions, 2 deletions
diff --git a/korganizer/koprefsdialog.cpp b/korganizer/koprefsdialog.cpp index b4b3b27..393e6e6 100644 --- a/korganizer/koprefsdialog.cpp +++ b/korganizer/koprefsdialog.cpp | |||
@@ -185,97 +185,98 @@ void KOPrefsDialog::setupLocaleTab() | |||
185 | 185 | ||
186 | syncPrefsGroup = | 186 | syncPrefsGroup = |
187 | addWidRadios(i18n("Time Format(nr):"),&(KOPrefs::instance()->mPreferredTime),topFrame); | 187 | addWidRadios(i18n("Time Format(nr):"),&(KOPrefs::instance()->mPreferredTime),topFrame); |
188 | if ( QApplication::desktop()->width() > 300 ) | 188 | if ( QApplication::desktop()->width() > 300 ) |
189 | syncPrefsGroup->groupBox()-> setOrientation (Qt::Vertical); | 189 | syncPrefsGroup->groupBox()-> setOrientation (Qt::Vertical); |
190 | syncPrefsGroup->addRadio(i18n("24:00")); | 190 | syncPrefsGroup->addRadio(i18n("24:00")); |
191 | syncPrefsGroup->addRadio(i18n("12:00am")); | 191 | syncPrefsGroup->addRadio(i18n("12:00am")); |
192 | syncPrefsGroup->groupBox()-> setOrientation (Qt::Vertical); | 192 | syncPrefsGroup->groupBox()-> setOrientation (Qt::Vertical); |
193 | topLayout->addMultiCellWidget( syncPrefsGroup->groupBox(),iii,iii,0,1); | 193 | topLayout->addMultiCellWidget( syncPrefsGroup->groupBox(),iii,iii,0,1); |
194 | ++iii; | 194 | ++iii; |
195 | KPrefsDialogWidBool *sb; | 195 | KPrefsDialogWidBool *sb; |
196 | if ( QApplication::desktop()->width() < 300 ) { | 196 | if ( QApplication::desktop()->width() < 300 ) { |
197 | sb = | 197 | sb = |
198 | addWidBool(i18n("Week starts on Sunday"), | 198 | addWidBool(i18n("Week starts on Sunday"), |
199 | &(KOPrefs::instance()->mWeekStartsOnSunday),topFrame); | 199 | &(KOPrefs::instance()->mWeekStartsOnSunday),topFrame); |
200 | topLayout->addMultiCellWidget(sb->checkBox(), iii,iii,0,1); | 200 | topLayout->addMultiCellWidget(sb->checkBox(), iii,iii,0,1); |
201 | ++iii; | 201 | ++iii; |
202 | sb = | 202 | sb = |
203 | addWidBool(i18n("Use short date in (WN/E) view"), | 203 | addWidBool(i18n("Use short date in (WN/E) view"), |
204 | &(KOPrefs::instance()->mShortDateInViewer),topFrame); | 204 | &(KOPrefs::instance()->mShortDateInViewer),topFrame); |
205 | topLayout->addMultiCellWidget(sb->checkBox(), iii,iii,0,1); | 205 | topLayout->addMultiCellWidget(sb->checkBox(), iii,iii,0,1); |
206 | } | 206 | } |
207 | else { | 207 | else { |
208 | QWidget * hb = new QWidget( topFrame ); | 208 | QWidget * hb = new QWidget( topFrame ); |
209 | QHBoxLayout *hbLayout = new QHBoxLayout(hb); | 209 | QHBoxLayout *hbLayout = new QHBoxLayout(hb); |
210 | sb = | 210 | sb = |
211 | addWidBool(i18n("Week starts on Sunday"), | 211 | addWidBool(i18n("Week starts on Sunday"), |
212 | &(KOPrefs::instance()->mWeekStartsOnSunday),hb); | 212 | &(KOPrefs::instance()->mWeekStartsOnSunday),hb); |
213 | hbLayout->addWidget(sb->checkBox() ); | 213 | hbLayout->addWidget(sb->checkBox() ); |
214 | sb = | 214 | sb = |
215 | addWidBool(i18n("Use short date in (WN/E) view"), | 215 | addWidBool(i18n("Use short date in (WN/E) view"), |
216 | &(KOPrefs::instance()->mShortDateInViewer),hb); | 216 | &(KOPrefs::instance()->mShortDateInViewer),hb); |
217 | hbLayout->addWidget(sb->checkBox() ); | 217 | hbLayout->addWidget(sb->checkBox() ); |
218 | topLayout->addMultiCellWidget(hb, iii,iii,0,1); | 218 | topLayout->addMultiCellWidget(hb, iii,iii,0,1); |
219 | 219 | ||
220 | } | 220 | } |
221 | // KPrefsDialogWidBool *sb; //#ifndef DESKTOP_VERSION | 221 | // KPrefsDialogWidBool *sb; //#ifndef DESKTOP_VERSION |
222 | #if 0 | 222 | #if 0 |
223 | ++iii; | 223 | ++iii; |
224 | sb = | 224 | sb = |
225 | addWidBool(i18n("Quick load/save (w/o Unicode)"), | 225 | addWidBool(i18n("Quick load/save (w/o Unicode)"), |
226 | &(KOPrefs::instance()->mUseQuicksave),topFrame); | 226 | &(KOPrefs::instance()->mUseQuicksave),topFrame); |
227 | topLayout->addMultiCellWidget(sb->checkBox(), iii,iii,0,1); | 227 | topLayout->addMultiCellWidget(sb->checkBox(), iii,iii,0,1); |
228 | #endif | 228 | #endif |
229 | #endif | 229 | #endif |
230 | } | 230 | } |
231 | void KOPrefsDialog::showSyncPage() | 231 | void KOPrefsDialog::showSyncPage() |
232 | { | 232 | { |
233 | showPage ( 2 ) ; | 233 | showPage ( 0 ) ; |
234 | kdelibcfg->showTimeZoneTab() ; | ||
234 | 235 | ||
235 | } | 236 | } |
236 | void KOPrefsDialog::setupSyncAlgTab() | 237 | void KOPrefsDialog::setupSyncAlgTab() |
237 | { | 238 | { |
238 | #if 0 | 239 | #if 0 |
239 | QLabel * lab; | 240 | QLabel * lab; |
240 | QFrame *topFrame = addPage(i18n("Sync Prefs"),0,0); | 241 | QFrame *topFrame = addPage(i18n("Sync Prefs"),0,0); |
241 | mSetupSyncAlgTab = topFrame; | 242 | mSetupSyncAlgTab = topFrame; |
242 | QGridLayout *topLayout = new QGridLayout(topFrame,6,2); | 243 | QGridLayout *topLayout = new QGridLayout(topFrame,6,2); |
243 | topLayout->setSpacing(spacingHint()); | 244 | topLayout->setSpacing(spacingHint()); |
244 | topLayout->setMargin(marginHint()); | 245 | topLayout->setMargin(marginHint()); |
245 | int iii = 0; | 246 | int iii = 0; |
246 | 247 | ||
247 | KPrefsDialogWidBool *sb = | 248 | KPrefsDialogWidBool *sb = |
248 | addWidBool(i18n("Ask for preferences before syncing"), | 249 | addWidBool(i18n("Ask for preferences before syncing"), |
249 | &(KOPrefs::instance()->mAskForPreferences),topFrame); | 250 | &(KOPrefs::instance()->mAskForPreferences),topFrame); |
250 | topLayout->addMultiCellWidget(sb->checkBox(), iii,iii,0,1); | 251 | topLayout->addMultiCellWidget(sb->checkBox(), iii,iii,0,1); |
251 | 252 | ||
252 | ++iii; | 253 | ++iii; |
253 | 254 | ||
254 | KPrefsDialogWidRadios *syncPrefsGroup = | 255 | KPrefsDialogWidRadios *syncPrefsGroup = |
255 | addWidRadios(i18n("Sync preferences:"),&(KOPrefs::instance()->mSyncAlgoPrefs), | 256 | addWidRadios(i18n("Sync preferences:"),&(KOPrefs::instance()->mSyncAlgoPrefs), |
256 | topFrame); | 257 | topFrame); |
257 | syncPrefsGroup->addRadio(i18n("Take local entry on conflict")); | 258 | syncPrefsGroup->addRadio(i18n("Take local entry on conflict")); |
258 | syncPrefsGroup->addRadio(i18n("Take remote entry on conflict")); | 259 | syncPrefsGroup->addRadio(i18n("Take remote entry on conflict")); |
259 | syncPrefsGroup->addRadio(i18n("Take newest entry on conflict")); | 260 | syncPrefsGroup->addRadio(i18n("Take newest entry on conflict")); |
260 | syncPrefsGroup->addRadio(i18n("Ask for every entry on conflict")); | 261 | syncPrefsGroup->addRadio(i18n("Ask for every entry on conflict")); |
261 | syncPrefsGroup->addRadio(i18n("Force take local entry always")); | 262 | syncPrefsGroup->addRadio(i18n("Force take local entry always")); |
262 | syncPrefsGroup->addRadio(i18n("Force take remote entry always")); | 263 | syncPrefsGroup->addRadio(i18n("Force take remote entry always")); |
263 | topLayout->addMultiCellWidget( syncPrefsGroup->groupBox(),iii,iii,0,1); | 264 | topLayout->addMultiCellWidget( syncPrefsGroup->groupBox(),iii,iii,0,1); |
264 | ++iii; | 265 | ++iii; |
265 | sb = | 266 | sb = |
266 | addWidBool(i18n("Show summary after syncing"), | 267 | addWidBool(i18n("Show summary after syncing"), |
267 | &(KOPrefs::instance()->mShowSyncSummary),topFrame); | 268 | &(KOPrefs::instance()->mShowSyncSummary),topFrame); |
268 | topLayout->addMultiCellWidget(sb->checkBox(), iii,iii,0,1); | 269 | topLayout->addMultiCellWidget(sb->checkBox(), iii,iii,0,1); |
269 | 270 | ||
270 | ++iii; | 271 | ++iii; |
271 | #endif | 272 | #endif |
272 | 273 | ||
273 | 274 | ||
274 | 275 | ||
275 | } | 276 | } |
276 | 277 | ||
277 | 278 | ||
278 | void KOPrefsDialog::setupSyncTab() | 279 | void KOPrefsDialog::setupSyncTab() |
279 | { | 280 | { |
280 | #if 0 | 281 | #if 0 |
281 | QLabel * lab; | 282 | QLabel * lab; |
diff --git a/libkdepim/kcmconfigs/kdepimconfigwidget.cpp b/libkdepim/kcmconfigs/kdepimconfigwidget.cpp index 2819ab1..073ab74 100644 --- a/libkdepim/kcmconfigs/kdepimconfigwidget.cpp +++ b/libkdepim/kcmconfigs/kdepimconfigwidget.cpp | |||
@@ -59,97 +59,100 @@ $Id$ | |||
59 | #include <klocale.h> | 59 | #include <klocale.h> |
60 | #include <kglobal.h> | 60 | #include <kglobal.h> |
61 | #include <kmessagebox.h> | 61 | #include <kmessagebox.h> |
62 | #include <kstandarddirs.h> | 62 | #include <kstandarddirs.h> |
63 | 63 | ||
64 | #ifndef KAB_EMBEDDED | 64 | #ifndef KAB_EMBEDDED |
65 | #include <ktrader.h> | 65 | #include <ktrader.h> |
66 | #else // KAB_EMBEDDED | 66 | #else // KAB_EMBEDDED |
67 | #include <mergewidget.h> | 67 | #include <mergewidget.h> |
68 | #include <distributionlistwidget.h> | 68 | #include <distributionlistwidget.h> |
69 | #endif // KAB_EMBEDDED | 69 | #endif // KAB_EMBEDDED |
70 | 70 | ||
71 | #include "addresseewidget.h" | 71 | #include "addresseewidget.h" |
72 | #include "extensionconfigdialog.h" | 72 | #include "extensionconfigdialog.h" |
73 | #include "extensionwidget.h" | 73 | #include "extensionwidget.h" |
74 | */ | 74 | */ |
75 | 75 | ||
76 | #include "qapplication.h" | 76 | #include "qapplication.h" |
77 | 77 | ||
78 | #include "kpimglobalprefs.h" | 78 | #include "kpimglobalprefs.h" |
79 | 79 | ||
80 | #include "kdepimconfigwidget.h" | 80 | #include "kdepimconfigwidget.h" |
81 | 81 | ||
82 | 82 | ||
83 | KDEPIMConfigWidget::KDEPIMConfigWidget(KPimGlobalPrefs *prefs, QWidget *parent, const char *name ) | 83 | KDEPIMConfigWidget::KDEPIMConfigWidget(KPimGlobalPrefs *prefs, QWidget *parent, const char *name ) |
84 | : KPrefsWidget(prefs, parent, name ) | 84 | : KPrefsWidget(prefs, parent, name ) |
85 | { | 85 | { |
86 | mExternalAppsMap.insert(ExternalAppHandler::EMAIL, i18n("Email")); | 86 | mExternalAppsMap.insert(ExternalAppHandler::EMAIL, i18n("Email")); |
87 | mExternalAppsMap.insert(ExternalAppHandler::PHONE, i18n("Phone")); | 87 | mExternalAppsMap.insert(ExternalAppHandler::PHONE, i18n("Phone")); |
88 | mExternalAppsMap.insert(ExternalAppHandler::SMS, i18n("SMS")); | 88 | mExternalAppsMap.insert(ExternalAppHandler::SMS, i18n("SMS")); |
89 | mExternalAppsMap.insert(ExternalAppHandler::FAX, i18n("Fax")); | 89 | mExternalAppsMap.insert(ExternalAppHandler::FAX, i18n("Fax")); |
90 | mExternalAppsMap.insert(ExternalAppHandler::PAGER, i18n("Pager")); | 90 | mExternalAppsMap.insert(ExternalAppHandler::PAGER, i18n("Pager")); |
91 | mExternalAppsMap.insert(ExternalAppHandler::SIP, i18n("SIP")); | 91 | mExternalAppsMap.insert(ExternalAppHandler::SIP, i18n("SIP")); |
92 | 92 | ||
93 | 93 | ||
94 | QVBoxLayout *topLayout = new QVBoxLayout( this, 0, | 94 | QVBoxLayout *topLayout = new QVBoxLayout( this, 0, |
95 | KDialog::spacingHint() ); | 95 | KDialog::spacingHint() ); |
96 | 96 | ||
97 | tabWidget = new QTabWidget( this ); | 97 | tabWidget = new QTabWidget( this ); |
98 | topLayout->addWidget( tabWidget ); | 98 | topLayout->addWidget( tabWidget ); |
99 | 99 | ||
100 | 100 | ||
101 | setupLocaleTab(); | 101 | setupLocaleTab(); |
102 | setupLocaleDateTab(); | 102 | setupLocaleDateTab(); |
103 | setupTimeZoneTab(); | 103 | setupTimeZoneTab(); |
104 | setupExternalAppTab(); | 104 | setupExternalAppTab(); |
105 | 105 | ||
106 | } | 106 | } |
107 | 107 | void KDEPIMConfigWidget::showTimeZoneTab() | |
108 | { | ||
109 | tabWidget->setCurrentPage ( 2 ) ; | ||
110 | } | ||
108 | void KDEPIMConfigWidget::setupExternalAppTab() | 111 | void KDEPIMConfigWidget::setupExternalAppTab() |
109 | { | 112 | { |
110 | QWidget *externalAppsPage = new QWidget( this ); | 113 | QWidget *externalAppsPage = new QWidget( this ); |
111 | QVBoxLayout* layout = new QVBoxLayout( externalAppsPage, KDialog::marginHintSmall(), | 114 | QVBoxLayout* layout = new QVBoxLayout( externalAppsPage, KDialog::marginHintSmall(), |
112 | KDialog::spacingHintSmall() ); | 115 | KDialog::spacingHintSmall() ); |
113 | 116 | ||
114 | mExternalApps = new QComboBox( externalAppsPage ); | 117 | mExternalApps = new QComboBox( externalAppsPage ); |
115 | 118 | ||
116 | QMap<ExternalAppHandler::Types, QString>::Iterator it; | 119 | QMap<ExternalAppHandler::Types, QString>::Iterator it; |
117 | for( it = mExternalAppsMap.begin(); it != mExternalAppsMap.end(); ++it ) | 120 | for( it = mExternalAppsMap.begin(); it != mExternalAppsMap.end(); ++it ) |
118 | mExternalApps->insertItem( it.data(), it.key() ); | 121 | mExternalApps->insertItem( it.data(), it.key() ); |
119 | 122 | ||
120 | layout->addWidget( mExternalApps ); | 123 | layout->addWidget( mExternalApps ); |
121 | 124 | ||
122 | connect( mExternalApps, SIGNAL( activated( int ) ), | 125 | connect( mExternalApps, SIGNAL( activated( int ) ), |
123 | this, SLOT (externalapp_changed( int ) ) ); | 126 | this, SLOT (externalapp_changed( int ) ) ); |
124 | 127 | ||
125 | 128 | ||
126 | mExternalAppGroupBox = new QGroupBox( 0, Qt::Vertical, i18n( "Used Mail Client" ), externalAppsPage ); | 129 | mExternalAppGroupBox = new QGroupBox( 0, Qt::Vertical, i18n( "Used Mail Client" ), externalAppsPage ); |
127 | QGridLayout *boxLayout = new QGridLayout( mExternalAppGroupBox->layout(), 4, 2, -1, "gridlayout" ); | 130 | QGridLayout *boxLayout = new QGridLayout( mExternalAppGroupBox->layout(), 4, 2, -1, "gridlayout" ); |
128 | 131 | ||
129 | 132 | ||
130 | mClient = new QComboBox( mExternalAppGroupBox ); | 133 | mClient = new QComboBox( mExternalAppGroupBox ); |
131 | boxLayout->addMultiCellWidget( mClient, 0, 0, 0, 1 ); | 134 | boxLayout->addMultiCellWidget( mClient, 0, 0, 0, 1 ); |
132 | 135 | ||
133 | connect( mClient, SIGNAL( activated( int ) ), | 136 | connect( mClient, SIGNAL( activated( int ) ), |
134 | this, SLOT (client_changed( int ) ) ); | 137 | this, SLOT (client_changed( int ) ) ); |
135 | 138 | ||
136 | QLabel* lab = new QLabel( i18n("Channel:"), mExternalAppGroupBox); | 139 | QLabel* lab = new QLabel( i18n("Channel:"), mExternalAppGroupBox); |
137 | boxLayout->addWidget( lab, 1, 0 ); | 140 | boxLayout->addWidget( lab, 1, 0 ); |
138 | mChannel = new QLineEdit(mExternalAppGroupBox); | 141 | mChannel = new QLineEdit(mExternalAppGroupBox); |
139 | mChannel->setReadOnly(true); | 142 | mChannel->setReadOnly(true); |
140 | boxLayout->addMultiCellWidget( mChannel, 2 , 2, 0, 1 ); | 143 | boxLayout->addMultiCellWidget( mChannel, 2 , 2, 0, 1 ); |
141 | 144 | ||
142 | lab = new QLabel( i18n("Message:"), mExternalAppGroupBox); | 145 | lab = new QLabel( i18n("Message:"), mExternalAppGroupBox); |
143 | boxLayout->addWidget( lab, 3, 0 ); | 146 | boxLayout->addWidget( lab, 3, 0 ); |
144 | mMessage = new QLineEdit(mExternalAppGroupBox); | 147 | mMessage = new QLineEdit(mExternalAppGroupBox); |
145 | mMessage->setReadOnly(true); | 148 | mMessage->setReadOnly(true); |
146 | boxLayout->addWidget( mMessage , 4, 0); | 149 | boxLayout->addWidget( mMessage , 4, 0); |
147 | 150 | ||
148 | lab = new QLabel( i18n("Parameters:"), mExternalAppGroupBox); | 151 | lab = new QLabel( i18n("Parameters:"), mExternalAppGroupBox); |
149 | boxLayout->addWidget( lab, 3, 1 ); | 152 | boxLayout->addWidget( lab, 3, 1 ); |
150 | mParameters = new QLineEdit(mExternalAppGroupBox); | 153 | mParameters = new QLineEdit(mExternalAppGroupBox); |
151 | mParameters->setReadOnly(true); | 154 | mParameters->setReadOnly(true); |
152 | boxLayout->addWidget( mParameters, 4, 1 ); | 155 | boxLayout->addWidget( mParameters, 4, 1 ); |
153 | 156 | ||
154 | lab = new QLabel( i18n("HINT: Delimiter=; Name=%1,Email=%2"), mExternalAppGroupBox); | 157 | lab = new QLabel( i18n("HINT: Delimiter=; Name=%1,Email=%2"), mExternalAppGroupBox); |
155 | boxLayout->addMultiCellWidget( lab, 5, 5, 0, 1 ); | 158 | boxLayout->addMultiCellWidget( lab, 5, 5, 0, 1 ); |
diff --git a/libkdepim/kcmconfigs/kdepimconfigwidget.h b/libkdepim/kcmconfigs/kdepimconfigwidget.h index 6f26513..619f3d7 100644 --- a/libkdepim/kcmconfigs/kdepimconfigwidget.h +++ b/libkdepim/kcmconfigs/kdepimconfigwidget.h | |||
@@ -8,96 +8,97 @@ | |||
8 | (at your option) any later version. | 8 | (at your option) any later version. |
9 | 9 | ||
10 | This program is distributed in the hope that it will be useful, | 10 | This program is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | GNU General Public License for more details. | 13 | GNU General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License | 15 | You should have received a copy of the GNU General Public License |
16 | along with this program; if not, write to the Free Software | 16 | along with this program; if not, write to the Free Software |
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
18 | 18 | ||
19 | As a special exception, permission is given to link this program | 19 | As a special exception, permission is given to link this program |
20 | with any edition of Qt, and distribute the resulting executable, | 20 | with any edition of Qt, and distribute the resulting executable, |
21 | without including the source code for Qt in the source distribution. | 21 | without including the source code for Qt in the source distribution. |
22 | */ | 22 | */ |
23 | 23 | ||
24 | /* | 24 | /* |
25 | Enhanced Version of the file for platform independent KDE tools. | 25 | Enhanced Version of the file for platform independent KDE tools. |
26 | Copyright (c) 2004 Ulf Schenk | 26 | Copyright (c) 2004 Ulf Schenk |
27 | 27 | ||
28 | $Id$ | 28 | $Id$ |
29 | */ | 29 | */ |
30 | 30 | ||
31 | #ifndef KDEPIMCONFIGWIDGET_H | 31 | #ifndef KDEPIMCONFIGWIDGET_H |
32 | #define KDEPIMCONFIGWIDGET_H | 32 | #define KDEPIMCONFIGWIDGET_H |
33 | 33 | ||
34 | #include <kprefswidget.h> | 34 | #include <kprefswidget.h> |
35 | #include <qmap.h> | 35 | #include <qmap.h> |
36 | 36 | ||
37 | #include "externalapphandler.h" | 37 | #include "externalapphandler.h" |
38 | 38 | ||
39 | 39 | ||
40 | class QComboBox; | 40 | class QComboBox; |
41 | class QLineEdit; | 41 | class QLineEdit; |
42 | class KPimGlobalPrefs; | 42 | class KPimGlobalPrefs; |
43 | class QGroupBox; | 43 | class QGroupBox; |
44 | class QTabWidget; | 44 | class QTabWidget; |
45 | class KDateEdit; | 45 | class KDateEdit; |
46 | 46 | ||
47 | class KDEPIMConfigWidget : public KPrefsWidget | 47 | class KDEPIMConfigWidget : public KPrefsWidget |
48 | { | 48 | { |
49 | Q_OBJECT | 49 | Q_OBJECT |
50 | 50 | ||
51 | public: | 51 | public: |
52 | KDEPIMConfigWidget(KPimGlobalPrefs *prefs, QWidget *parent, const char *name = 0 ); | 52 | KDEPIMConfigWidget(KPimGlobalPrefs *prefs, QWidget *parent, const char *name = 0 ); |
53 | 53 | ||
54 | public slots: | 54 | public slots: |
55 | void textChanged( const QString& text ); | 55 | void textChanged( const QString& text ); |
56 | void showTimeZoneTab(); | ||
56 | 57 | ||
57 | protected: | 58 | protected: |
58 | /** Implement this to read custom configuration widgets. */ | 59 | /** Implement this to read custom configuration widgets. */ |
59 | virtual void usrReadConfig(); | 60 | virtual void usrReadConfig(); |
60 | /** Implement this to write custom configuration widgets. */ | 61 | /** Implement this to write custom configuration widgets. */ |
61 | virtual void usrWriteConfig(); | 62 | virtual void usrWriteConfig(); |
62 | 63 | ||
63 | 64 | ||
64 | private slots: | 65 | private slots: |
65 | // void configureExtension(); | 66 | // void configureExtension(); |
66 | // void selectionChanged( QListViewItem* ); | 67 | // void selectionChanged( QListViewItem* ); |
67 | // void itemClicked( QListViewItem* ); | 68 | // void itemClicked( QListViewItem* ); |
68 | void client_changed( int newClient ); | 69 | void client_changed( int newClient ); |
69 | void externalapp_changed( int newApp ); | 70 | void externalapp_changed( int newApp ); |
70 | 71 | ||
71 | private: | 72 | private: |
72 | void setupExternalAppTab(); | 73 | void setupExternalAppTab(); |
73 | void setupLocaleDateTab(); | 74 | void setupLocaleDateTab(); |
74 | void setupLocaleTab(); | 75 | void setupLocaleTab(); |
75 | void setupTimeZoneTab(); | 76 | void setupTimeZoneTab(); |
76 | 77 | ||
77 | void setCombo(QComboBox *combo,const QString & text, const QStringList *tags = 0); | 78 | void setCombo(QComboBox *combo,const QString & text, const QStringList *tags = 0); |
78 | 79 | ||
79 | 80 | ||
80 | void saveEditFieldSettings(); | 81 | void saveEditFieldSettings(); |
81 | void updateClientWidgets(); | 82 | void updateClientWidgets(); |
82 | 83 | ||
83 | QTabWidget *tabWidget; | 84 | QTabWidget *tabWidget; |
84 | 85 | ||
85 | 86 | ||
86 | QLineEdit* mUserDateFormatShort; | 87 | QLineEdit* mUserDateFormatShort; |
87 | QLineEdit* mUserDateFormatLong; | 88 | QLineEdit* mUserDateFormatLong; |
88 | QComboBox* mTimeZoneCombo; | 89 | QComboBox* mTimeZoneCombo; |
89 | KDateEdit* mStartDateSavingEdit; | 90 | KDateEdit* mStartDateSavingEdit; |
90 | KDateEdit* mEndDateSavingEdit; | 91 | KDateEdit* mEndDateSavingEdit; |
91 | 92 | ||
92 | // void restoreExtensionSettings(); | 93 | // void restoreExtensionSettings(); |
93 | // void saveExtensionSettings(); | 94 | // void saveExtensionSettings(); |
94 | 95 | ||
95 | // KListView *mExtensionView; | 96 | // KListView *mExtensionView; |
96 | 97 | ||
97 | // QCheckBox *mNameParsing; | 98 | // QCheckBox *mNameParsing; |
98 | // QCheckBox *mViewsSingleClickBox; | 99 | // QCheckBox *mViewsSingleClickBox; |
99 | // QPushButton *mConfigureButton; | 100 | // QPushButton *mConfigureButton; |
100 | QComboBox* mExternalApps; | 101 | QComboBox* mExternalApps; |
101 | QGroupBox* mExternalAppGroupBox; | 102 | QGroupBox* mExternalAppGroupBox; |
102 | 103 | ||
103 | 104 | ||