-rw-r--r-- | libkdepim/kcmconfigs/kdepimconfigwidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libkdepim/kcmconfigs/kdepimconfigwidget.cpp b/libkdepim/kcmconfigs/kdepimconfigwidget.cpp index 4fe1e66..d62d9f9 100644 --- a/libkdepim/kcmconfigs/kdepimconfigwidget.cpp +++ b/libkdepim/kcmconfigs/kdepimconfigwidget.cpp | |||
@@ -1,465 +1,465 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of KdePim/Pi. | 2 | This file is part of KdePim/Pi. |
3 | Copyright (c) 2004 Ulf Schenk | 3 | Copyright (c) 2004 Ulf Schenk |
4 | 4 | ||
5 | This program is free software; you can redistribute it and/or modify | 5 | This program is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published by | 6 | it under the terms of the GNU General Public License as published by |
7 | the Free Software Foundation; either version 2 of the License, or | 7 | the Free Software Foundation; either version 2 of the License, or |
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 | #include <qlayout.h> | 31 | #include <qlayout.h> |
32 | #include <qtabwidget.h> | 32 | #include <qtabwidget.h> |
33 | #include <qcombobox.h> | 33 | #include <qcombobox.h> |
34 | #include <qgroupbox.h> | 34 | #include <qgroupbox.h> |
35 | #include <qlabel.h> | 35 | #include <qlabel.h> |
36 | #include <qlineedit.h> | 36 | #include <qlineedit.h> |
37 | #include <qbuttongroup.h> | 37 | #include <qbuttongroup.h> |
38 | #include <qfile.h> | 38 | #include <qfile.h> |
39 | #include <qvbox.h> | 39 | #include <qvbox.h> |
40 | #include <qdir.h> | 40 | #include <qdir.h> |
41 | #include <qregexp.h> | 41 | #include <qregexp.h> |
42 | 42 | ||
43 | #include <kdialog.h> | 43 | #include <kdialog.h> |
44 | #include <kprefsdialog.h> | 44 | #include <kprefsdialog.h> |
45 | #include <klocale.h> | 45 | #include <klocale.h> |
46 | #include <kdateedit.h> | 46 | #include <kdateedit.h> |
47 | #include <kglobal.h> | 47 | #include <kglobal.h> |
48 | #include <stdlib.h> | 48 | #include <stdlib.h> |
49 | 49 | ||
50 | /*US | 50 | /*US |
51 | #include <qcheckbox.h> | 51 | #include <qcheckbox.h> |
52 | #include <qframe.h> | 52 | #include <qframe.h> |
53 | #include <qpushbutton.h> | 53 | #include <qpushbutton.h> |
54 | #include <qcombobox.h> | 54 | #include <qcombobox.h> |
55 | #include <qlineedit.h> | 55 | #include <qlineedit.h> |
56 | #include <qlabel.h> | 56 | #include <qlabel.h> |
57 | #include <qfile.h> | 57 | #include <qfile.h> |
58 | 58 | ||
59 | #include <kconfig.h> | 59 | #include <kconfig.h> |
60 | #include <kdebug.h> | 60 | #include <kdebug.h> |
61 | #include <kdialog.h> | 61 | #include <kdialog.h> |
62 | #include <klistview.h> | 62 | #include <klistview.h> |
63 | #include <klocale.h> | 63 | #include <klocale.h> |
64 | #include <kglobal.h> | 64 | #include <kglobal.h> |
65 | #include <kmessagebox.h> | 65 | #include <kmessagebox.h> |
66 | #include <kstandarddirs.h> | 66 | #include <kstandarddirs.h> |
67 | 67 | ||
68 | #ifndef KAB_EMBEDDED | 68 | #ifndef KAB_EMBEDDED |
69 | #include <ktrader.h> | 69 | #include <ktrader.h> |
70 | #else // KAB_EMBEDDED | 70 | #else // KAB_EMBEDDED |
71 | #include <mergewidget.h> | 71 | #include <mergewidget.h> |
72 | #include <distributionlistwidget.h> | 72 | #include <distributionlistwidget.h> |
73 | #endif // KAB_EMBEDDED | 73 | #endif // KAB_EMBEDDED |
74 | 74 | ||
75 | #include "addresseewidget.h" | 75 | #include "addresseewidget.h" |
76 | #include "extensionconfigdialog.h" | 76 | #include "extensionconfigdialog.h" |
77 | #include "extensionwidget.h" | 77 | #include "extensionwidget.h" |
78 | */ | 78 | */ |
79 | 79 | ||
80 | #include "qapplication.h" | 80 | #include "qapplication.h" |
81 | 81 | ||
82 | #include "kpimglobalprefs.h" | 82 | #include "kpimglobalprefs.h" |
83 | 83 | ||
84 | #include "kdepimconfigwidget.h" | 84 | #include "kdepimconfigwidget.h" |
85 | #include <kprefs.h> | 85 | #include <kprefs.h> |
86 | #include <kmessagebox.h> | 86 | #include <kmessagebox.h> |
87 | 87 | ||
88 | 88 | ||
89 | KDEPIMConfigWidget::KDEPIMConfigWidget(KPimGlobalPrefs *prefs, QWidget *parent, const char *name ) | 89 | KDEPIMConfigWidget::KDEPIMConfigWidget(KPimGlobalPrefs *prefs, QWidget *parent, const char *name ) |
90 | : KPrefsWidget(prefs, parent, name ) | 90 | : KPrefsWidget(prefs, parent, name ) |
91 | { | 91 | { |
92 | mExternalAppsMap.insert(ExternalAppHandler::EMAIL, i18n("Email")); | 92 | mExternalAppsMap.insert(ExternalAppHandler::EMAIL, i18n("Email")); |
93 | mExternalAppsMap.insert(ExternalAppHandler::PHONE, i18n("Phone")); | 93 | mExternalAppsMap.insert(ExternalAppHandler::PHONE, i18n("Phone")); |
94 | mExternalAppsMap.insert(ExternalAppHandler::SMS, i18n("SMS")); | 94 | mExternalAppsMap.insert(ExternalAppHandler::SMS, i18n("SMS")); |
95 | mExternalAppsMap.insert(ExternalAppHandler::FAX, i18n("Fax")); | 95 | mExternalAppsMap.insert(ExternalAppHandler::FAX, i18n("Fax")); |
96 | mExternalAppsMap.insert(ExternalAppHandler::PAGER, i18n("Pager")); | 96 | mExternalAppsMap.insert(ExternalAppHandler::PAGER, i18n("Pager")); |
97 | mExternalAppsMap.insert(ExternalAppHandler::SIP, i18n("SIP")); | 97 | mExternalAppsMap.insert(ExternalAppHandler::SIP, i18n("SIP")); |
98 | 98 | ||
99 | 99 | ||
100 | QVBoxLayout *topLayout = new QVBoxLayout( this, 0, | 100 | QVBoxLayout *topLayout = new QVBoxLayout( this, 0, |
101 | KDialog::spacingHint() ); | 101 | KDialog::spacingHint() ); |
102 | 102 | ||
103 | tabWidget = new QTabWidget( this ); | 103 | tabWidget = new QTabWidget( this ); |
104 | topLayout->addWidget( tabWidget ); | 104 | topLayout->addWidget( tabWidget ); |
105 | 105 | ||
106 | 106 | ||
107 | setupLocaleTab(); | 107 | setupLocaleTab(); |
108 | setupLocaleDateTab(); | 108 | setupLocaleDateTab(); |
109 | setupTimeZoneTab(); | 109 | setupTimeZoneTab(); |
110 | setupExternalAppTab(); | 110 | setupExternalAppTab(); |
111 | setupStoreTab(); | 111 | setupStoreTab(); |
112 | 112 | ||
113 | } | 113 | } |
114 | void KDEPIMConfigWidget::showTimeZoneTab() | 114 | void KDEPIMConfigWidget::showTimeZoneTab() |
115 | { | 115 | { |
116 | tabWidget->setCurrentPage ( 3 ) ; | 116 | tabWidget->setCurrentPage ( 3 ) ; |
117 | } | 117 | } |
118 | void KDEPIMConfigWidget::setupStoreTab() | 118 | void KDEPIMConfigWidget::setupStoreTab() |
119 | { | 119 | { |
120 | QVBox *storePage = new QVBox( this ); | 120 | QVBox *storePage = new QVBox( this ); |
121 | new QLabel( i18n("Your current storage dir is:\n%1\nYour mail is stored in:\n(storagedir)/apps/kopiemail/localmail").arg(KGlobal::dirs()->localkdedir()), storePage ); | 121 | new QLabel( i18n("Your current storage dir is:\n%1\nYour mail is stored in:\n(storagedir)/apps/kopiemail/localmail").arg(KGlobal::dirs()->localkdedir()), storePage ); |
122 | new QLabel( i18n("<b>New data storage dir:</b>"), storePage ); | 122 | new QLabel( i18n("<b>New data storage dir:</b>"), storePage ); |
123 | mStoreUrl = new KURLRequester( storePage ); | 123 | mStoreUrl = new KURLRequester( storePage ); |
124 | mStoreUrl->setURL( KGlobal::dirs()->localkdedir() ); | 124 | mStoreUrl->setURL( KGlobal::dirs()->localkdedir() ); |
125 | #ifdef DESKTOP_VERSION | 125 | #ifdef DESKTOP_VERSION |
126 | QString confFile = qApp->applicationDirPath ()+ "/.microkdehome" ; | 126 | QString confFile = qApp->applicationDirPath ()+ "/.microkdehome" ; |
127 | QFileInfo fi ( confFile ); | 127 | QFileInfo fi ( confFile ); |
128 | if ( fi.exists() ) { | 128 | if ( fi.exists() ) { |
129 | KConfig cfg ( confFile ); | 129 | KConfig cfg ( confFile ); |
130 | cfg.setGroup("Global"); | 130 | cfg.setGroup("Global"); |
131 | QString localKdeDir = cfg.readEntry( "MICROKDEHOME", "x_x_x" ); | 131 | QString localKdeDir = cfg.readEntry( "MICROKDEHOME", "x_x_x" ); |
132 | if ( localKdeDir != "x_x_x" ) { | 132 | if ( localKdeDir != "x_x_x" ) { |
133 | mStoreUrl->setURL( localKdeDir ); | 133 | mStoreUrl->setURL( localKdeDir ); |
134 | qDebug("Reading config from %s ", confFile.latin1()); | 134 | qDebug("Reading config from %s ", confFile.latin1()); |
135 | } | 135 | } |
136 | } | 136 | } |
137 | 137 | ||
138 | #endif | 138 | #endif |
139 | new QLabel( i18n("New dirs are created automatically"), storePage ); | 139 | new QLabel( i18n("New dirs are created automatically"), storePage ); |
140 | QHBox *bb = new QHBox( storePage ); | 140 | QHBox *bb = new QHBox( storePage ); |
141 | QPushButton * pb; | 141 | QPushButton * pb; |
142 | if ( QApplication::desktop()->width() < 640 ) | 142 | if ( QApplication::desktop()->width() < 640 ) |
143 | pb = new QPushButton ( i18n("Save"), bb ); | 143 | pb = new QPushButton ( i18n("Save"), bb ); |
144 | else | 144 | else |
145 | pb = new QPushButton ( i18n("Save settings"), bb ); | 145 | pb = new QPushButton ( i18n("Save settings"), bb ); |
146 | connect(pb, SIGNAL( clicked() ), this, SLOT ( saveStoreSettings() ) ); | 146 | connect(pb, SIGNAL( clicked() ), this, SLOT ( saveStoreSettings() ) ); |
147 | pb = new QPushButton ( i18n("Save standard"), bb ); | 147 | pb = new QPushButton ( i18n("Save standard"), bb ); |
148 | connect(pb, SIGNAL( clicked() ), this, SLOT ( setStandardStore() ) ); | 148 | connect(pb, SIGNAL( clicked() ), this, SLOT ( setStandardStore() ) ); |
149 | #ifdef DESKTOP_VERSION | 149 | #ifdef DESKTOP_VERSION |
150 | pb = new QPushButton ( i18n("Save using LOCAL storage"), bb ); | 150 | pb = new QPushButton ( i18n("Save using LOCAL storage"), bb ); |
151 | connect(pb, SIGNAL( clicked() ), this, SLOT ( setLocalStore() ) ); | 151 | connect(pb, SIGNAL( clicked() ), this, SLOT ( setLocalStore() ) ); |
152 | #endif | 152 | #endif |
153 | new QLabel( i18n("<b>New settings are used\nafter a restart</b>"), storePage ); | 153 | new QLabel( i18n("<b>New settings are used\nafter a restart</b>"), storePage ); |
154 | new QLabel( i18n("Settings are stored in\n%1").arg(QDir::homeDirPath() + "/.microkdehome" ), storePage ); | 154 | new QLabel( i18n("Settings are stored in\n%1").arg(QDir::homeDirPath() + "/.microkdehome" ), storePage ); |
155 | tabWidget->addTab( storePage, i18n( "Data storage path" ) ); | 155 | tabWidget->addTab( storePage, i18n( "Data storage path" ) ); |
156 | } | 156 | } |
157 | void KDEPIMConfigWidget::setLocalStore() | 157 | void KDEPIMConfigWidget::setLocalStore() |
158 | { | 158 | { |
159 | mStoreUrl->setURL( "LOCAL:kdepimpi" ); | 159 | mStoreUrl->setURL( "LOCAL:kdepimpi" ); |
160 | saveStoreSettings(); | 160 | saveStoreSettings(); |
161 | QString message = i18n("'LOCAL' mode makes is possible to run\nKA/Pi and KO/Pi from a USB memory stick.\nIn LOCAL mode the data is stored\nin a path relative to the executable.\nNote, that in LOCAL mode only addressbook\nresource files in\n <path of the executable>/<dirname after LOCAL:>/apps/kabc/*.vcf\n are supported.\nIf you use the standard addressbook settings\nyou do not have to reconfigure any path,\njust restart the application and import\nyour addressbook and calendar data."); | 161 | QString message = i18n("'LOCAL' mode makes is possible to run\nKA/Pi and KO/Pi from a USB memory stick.\nIn LOCAL mode the data is stored\nin a path relative to the executable.\nNote, that in LOCAL mode only addressbook\nresource files in\n <path of the executable>/<dirname after LOCAL:>/apps/kabc/*.vcf\n are supported.\nIf you use the standard addressbook settings\nyou do not have to reconfigure any path,\njust restart the application and import\nyour addressbook and calendar data."); |
162 | KMessageBox::information( this, message); | 162 | KMessageBox::information( this, message); |
163 | } | 163 | } |
164 | void KDEPIMConfigWidget::setStandardStore() | 164 | void KDEPIMConfigWidget::setStandardStore() |
165 | { | 165 | { |
166 | mStoreUrl->setURL( QDir::homeDirPath() + "/kdepim" ); | 166 | mStoreUrl->setURL( QDir::homeDirPath() + "/kdepim" ); |
167 | saveStoreSettings(); | 167 | saveStoreSettings(); |
168 | } | 168 | } |
169 | void KDEPIMConfigWidget::saveStoreSettings() | 169 | void KDEPIMConfigWidget::saveStoreSettings() |
170 | { | 170 | { |
171 | if ( !mStoreUrl->url().isEmpty() ) { | 171 | if ( !mStoreUrl->url().isEmpty() ) { |
172 | QString path = QDir::homeDirPath(); | 172 | QString path = QDir::homeDirPath(); |
173 | QString url = mStoreUrl->url(); | 173 | QString url = mStoreUrl->url(); |
174 | #ifdef DESKTOP_VERSION | 174 | #ifdef DESKTOP_VERSION |
175 | if ( url.startsWith( "LOCAL:" ) ) { | 175 | if ( url.startsWith( "LOCAL:" ) ) { |
176 | path = qApp->applicationDirPath () ; | 176 | path = qApp->applicationDirPath () ; |
177 | } | 177 | } |
178 | #endif | 178 | #endif |
179 | KConfig cfg ( path + "/.microkdehome" ); | 179 | KConfig cfg ( path + "/.microkdehome" ); |
180 | cfg.setGroup("Global"); | 180 | cfg.setGroup("Global"); |
181 | cfg.writeEntry( "MICROKDEHOME", url ); | 181 | cfg.writeEntry( "MICROKDEHOME", url ); |
182 | qDebug("cfg.writeEntry( MICROKDEHOME, %s ", url.latin1()); | 182 | qDebug("cfg.writeEntry( MICROKDEHOME, %s ", url.latin1()); |
183 | cfg.sync(); | 183 | cfg.sync(); |
184 | } else { | 184 | } else { |
185 | mStoreUrl->setURL( QDir::homeDirPath() + "/kdepim" ); | 185 | mStoreUrl->setURL( QDir::homeDirPath() + "/kdepim" ); |
186 | saveStoreSettings(); | 186 | saveStoreSettings(); |
187 | } | 187 | } |
188 | } | 188 | } |
189 | void KDEPIMConfigWidget::setupExternalAppTab() | 189 | void KDEPIMConfigWidget::setupExternalAppTab() |
190 | { | 190 | { |
191 | QWidget *externalAppsPage = new QWidget( this ); | 191 | QWidget *externalAppsPage = new QWidget( this ); |
192 | QVBoxLayout* layout = new QVBoxLayout( externalAppsPage, KDialog::marginHintSmall(), | 192 | QVBoxLayout* layout = new QVBoxLayout( externalAppsPage, KDialog::marginHintSmall(), |
193 | KDialog::spacingHintSmall() ); | 193 | KDialog::spacingHintSmall() ); |
194 | 194 | ||
195 | mExternalApps = new QComboBox( externalAppsPage ); | 195 | mExternalApps = new QComboBox( externalAppsPage ); |
196 | 196 | ||
197 | QMap<ExternalAppHandler::Types, QString>::Iterator it; | 197 | QMap<ExternalAppHandler::Types, QString>::Iterator it; |
198 | for( it = mExternalAppsMap.begin(); it != mExternalAppsMap.end(); ++it ) | 198 | for( it = mExternalAppsMap.begin(); it != mExternalAppsMap.end(); ++it ) |
199 | mExternalApps->insertItem( it.data(), it.key() ); | 199 | mExternalApps->insertItem( it.data(), it.key() ); |
200 | 200 | ||
201 | layout->addWidget( mExternalApps ); | 201 | layout->addWidget( mExternalApps ); |
202 | 202 | ||
203 | connect( mExternalApps, SIGNAL( activated( int ) ), | 203 | connect( mExternalApps, SIGNAL( activated( int ) ), |
204 | this, SLOT (externalapp_changed( int ) ) ); | 204 | this, SLOT (externalapp_changed( int ) ) ); |
205 | 205 | ||
206 | 206 | ||
207 | mExternalAppGroupBox = new QGroupBox( 0, Qt::Vertical, i18n( "Used Mail Client" ), externalAppsPage ); | 207 | mExternalAppGroupBox = new QGroupBox( 0, Qt::Vertical, i18n( "Used Mail Client" ), externalAppsPage ); |
208 | QGridLayout *boxLayout = new QGridLayout( mExternalAppGroupBox->layout(), 4, 2, -1, "gridlayout" ); | 208 | QGridLayout *boxLayout = new QGridLayout( mExternalAppGroupBox->layout(), 4, 2, -1, "gridlayout" ); |
209 | mExternalAppGroupBox->layout()->setMargin(5); | 209 | mExternalAppGroupBox->layout()->setMargin(4); |
210 | 210 | ||
211 | mClient = new QComboBox( mExternalAppGroupBox ); | 211 | mClient = new QComboBox( mExternalAppGroupBox ); |
212 | boxLayout->addMultiCellWidget( mClient, 0, 0, 0, 1 ); | 212 | boxLayout->addMultiCellWidget( mClient, 0, 0, 0, 1 ); |
213 | 213 | ||
214 | connect( mClient, SIGNAL( activated( int ) ), | 214 | connect( mClient, SIGNAL( activated( int ) ), |
215 | this, SLOT (client_changed( int ) ) ); | 215 | this, SLOT (client_changed( int ) ) ); |
216 | 216 | ||
217 | QLabel* lab = new QLabel( i18n("Channel:"), mExternalAppGroupBox); | 217 | QLabel* lab = new QLabel( i18n("Channel:"), mExternalAppGroupBox); |
218 | boxLayout->addWidget( lab, 1, 0 ); | 218 | boxLayout->addWidget( lab, 1, 0 ); |
219 | mChannel = new QLineEdit(mExternalAppGroupBox); | 219 | mChannel = new QLineEdit(mExternalAppGroupBox); |
220 | mChannel->setReadOnly(true); | 220 | mChannel->setReadOnly(true); |
221 | boxLayout->addMultiCellWidget( mChannel, 2 , 2, 0, 1 ); | 221 | boxLayout->addMultiCellWidget( mChannel, 2 , 2, 0, 1 ); |
222 | 222 | ||
223 | lab = new QLabel( i18n("Message:"), mExternalAppGroupBox); | 223 | lab = new QLabel( i18n("Message:"), mExternalAppGroupBox); |
224 | boxLayout->addWidget( lab, 3, 0 ); | 224 | boxLayout->addWidget( lab, 3, 0 ); |
225 | mMessage = new QLineEdit(mExternalAppGroupBox); | 225 | mMessage = new QLineEdit(mExternalAppGroupBox); |
226 | mMessage->setReadOnly(true); | 226 | mMessage->setReadOnly(true); |
227 | boxLayout->addWidget( mMessage , 4, 0); | 227 | boxLayout->addWidget( mMessage , 4, 0); |
228 | 228 | ||
229 | lab = new QLabel( i18n("Parameters:"), mExternalAppGroupBox); | 229 | lab = new QLabel( i18n("Parameters:"), mExternalAppGroupBox); |
230 | boxLayout->addWidget( lab, 3, 1 ); | 230 | boxLayout->addWidget( lab, 3, 1 ); |
231 | mParameters = new QLineEdit(mExternalAppGroupBox); | 231 | mParameters = new QLineEdit(mExternalAppGroupBox); |
232 | mParameters->setReadOnly(true); | 232 | mParameters->setReadOnly(true); |
233 | boxLayout->addWidget( mParameters, 4, 1 ); | 233 | boxLayout->addWidget( mParameters, 4, 1 ); |
234 | 234 | ||
235 | lab = new QLabel( i18n("HINT: Delimiter=; Name=%1,Email=%2"), mExternalAppGroupBox); | 235 | lab = new QLabel( i18n("HINT: Delimiter=; Name=%1,Email=%2"), mExternalAppGroupBox); |
236 | boxLayout->addMultiCellWidget( lab, 5, 5, 0, 1 ); | 236 | boxLayout->addMultiCellWidget( lab, 5, 5, 0, 1 ); |
237 | 237 | ||
238 | 238 | ||
239 | lab = new QLabel( i18n("extra Message:"), mExternalAppGroupBox); | 239 | lab = new QLabel( i18n("extra Message:"), mExternalAppGroupBox); |
240 | boxLayout->addWidget( lab, 6, 0 ); | 240 | boxLayout->addWidget( lab, 6, 0 ); |
241 | mMessage2 = new QLineEdit(mExternalAppGroupBox); | 241 | mMessage2 = new QLineEdit(mExternalAppGroupBox); |
242 | mMessage2->setReadOnly(true); | 242 | mMessage2->setReadOnly(true); |
243 | boxLayout->addWidget( mMessage2 , 7, 0); | 243 | boxLayout->addWidget( mMessage2 , 7, 0); |
244 | 244 | ||
245 | lab = new QLabel( i18n("extra Parameters:"), mExternalAppGroupBox); | 245 | lab = new QLabel( i18n("extra Parameters:"), mExternalAppGroupBox); |
246 | boxLayout->addWidget( lab, 6, 1 ); | 246 | boxLayout->addWidget( lab, 6, 1 ); |
247 | mParameters2 = new QLineEdit(mExternalAppGroupBox); | 247 | mParameters2 = new QLineEdit(mExternalAppGroupBox); |
248 | mParameters2->setReadOnly(true); | 248 | mParameters2->setReadOnly(true); |
249 | boxLayout->addWidget( mParameters2, 7, 1 ); | 249 | boxLayout->addWidget( mParameters2, 7, 1 ); |
250 | 250 | ||
251 | lab = new QLabel( i18n("HINT: Emails=%1,Attachments=%2"), mExternalAppGroupBox); | 251 | lab = new QLabel( i18n("HINT: Emails=%1,Attachments=%2"), mExternalAppGroupBox); |
252 | boxLayout->addMultiCellWidget( lab, 8, 8, 0, 1 ); | 252 | boxLayout->addMultiCellWidget( lab, 8, 8, 0, 1 ); |
253 | 253 | ||
254 | 254 | ||
255 | connect( mChannel, SIGNAL( textChanged ( const QString & )), this, SLOT( textChanged ( const QString & )) ); | 255 | connect( mChannel, SIGNAL( textChanged ( const QString & )), this, SLOT( textChanged ( const QString & )) ); |
256 | connect( mMessage, SIGNAL( textChanged ( const QString & )), this, SLOT( textChanged ( const QString & )) ); | 256 | connect( mMessage, SIGNAL( textChanged ( const QString & )), this, SLOT( textChanged ( const QString & )) ); |
257 | connect( mParameters, SIGNAL( textChanged ( const QString & )), this, SLOT( textChanged ( const QString & )) ); | 257 | connect( mParameters, SIGNAL( textChanged ( const QString & )), this, SLOT( textChanged ( const QString & )) ); |
258 | connect( mMessage2, SIGNAL( textChanged ( const QString & )), this, SLOT( textChanged ( const QString & )) ); | 258 | connect( mMessage2, SIGNAL( textChanged ( const QString & )), this, SLOT( textChanged ( const QString & )) ); |
259 | connect( mParameters2, SIGNAL( textChanged ( const QString & )), this, SLOT( textChanged ( const QString & )) ); | 259 | connect( mParameters2, SIGNAL( textChanged ( const QString & )), this, SLOT( textChanged ( const QString & )) ); |
260 | 260 | ||
261 | 261 | ||
262 | layout->addWidget( mExternalAppGroupBox ); | 262 | layout->addWidget( mExternalAppGroupBox ); |
263 | tabWidget->addTab( externalAppsPage, i18n( "External Apps." ) ); | 263 | tabWidget->addTab( externalAppsPage, i18n( "External Apps." ) ); |
264 | 264 | ||
265 | } | 265 | } |
266 | 266 | ||
267 | 267 | ||
268 | void KDEPIMConfigWidget::setupLocaleDateTab() | 268 | void KDEPIMConfigWidget::setupLocaleDateTab() |
269 | { | 269 | { |
270 | QWidget *topFrame = new QWidget( this ); | 270 | QWidget *topFrame = new QWidget( this ); |
271 | QGridLayout *topLayout = new QGridLayout( topFrame, 3, 2); | 271 | QGridLayout *topLayout = new QGridLayout( topFrame, 3, 2); |
272 | 272 | ||
273 | topLayout->setSpacing(KDialog::spacingHintSmall()); | 273 | topLayout->setSpacing(KDialog::spacingHintSmall()); |
274 | topLayout->setMargin(KDialog::marginHintSmall()); | 274 | topLayout->setMargin(KDialog::marginHintSmall()); |
275 | int iii = 0; | 275 | int iii = 0; |
276 | 276 | ||
277 | 277 | ||
278 | KPrefsWidRadios *syncPrefsGroup = | 278 | KPrefsWidRadios *syncPrefsGroup = |
279 | addWidRadios(i18n("Date Format:"),&(KPimGlobalPrefs::instance()->mPreferredDate),topFrame); | 279 | addWidRadios(i18n("Date Format:"),&(KPimGlobalPrefs::instance()->mPreferredDate),topFrame); |
280 | QString format; | 280 | QString format; |
281 | if ( QApplication::desktop()->width() < 480 ) | 281 | if ( QApplication::desktop()->width() < 480 ) |
282 | format = "(%d.%m.%Y)"; | 282 | format = "(%d.%m.%Y)"; |
283 | else | 283 | else |
284 | format = "(%d.%m.%Y|%A %d %B %Y)"; | 284 | format = "(%d.%m.%Y|%A %d %B %Y)"; |
285 | syncPrefsGroup->addRadio(i18n("24.03.2004 "+format)); | 285 | syncPrefsGroup->addRadio(i18n("24.03.2004 "+format)); |
286 | if ( QApplication::desktop()->width() < 480 ) | 286 | if ( QApplication::desktop()->width() < 480 ) |
287 | format = "(%m.%d.%Y)"; | 287 | format = "(%m.%d.%Y)"; |
288 | else | 288 | else |
289 | format = "(%m.%d.%Y|%A %B %d %Y)"; | 289 | format = "(%m.%d.%Y|%A %B %d %Y)"; |
290 | syncPrefsGroup->addRadio(i18n("03.24.2004 "+format)); | 290 | syncPrefsGroup->addRadio(i18n("03.24.2004 "+format)); |
291 | if ( QApplication::desktop()->width() < 480 ) | 291 | if ( QApplication::desktop()->width() < 480 ) |
292 | format = "(%Y-%m-%d)"; | 292 | format = "(%Y-%m-%d)"; |
293 | else | 293 | else |
294 | format = "(%Y-%m-%d|%A %Y %B %d)"; | 294 | format = "(%Y-%m-%d|%A %Y %B %d)"; |
295 | syncPrefsGroup->addRadio(i18n("2004-03-24 "+format)); | 295 | syncPrefsGroup->addRadio(i18n("2004-03-24 "+format)); |
296 | syncPrefsGroup->addRadio(i18n("User defined")); | 296 | syncPrefsGroup->addRadio(i18n("User defined")); |
297 | if ( QApplication::desktop()->width() < 480 ) { | 297 | if ( QApplication::desktop()->width() < 480 ) { |
298 | syncPrefsGroup->groupBox()->layout()->setMargin( 5 ); | 298 | syncPrefsGroup->groupBox()->layout()->setMargin( 5 ); |
299 | syncPrefsGroup->groupBox()->layout()->setSpacing( 0 ); | 299 | syncPrefsGroup->groupBox()->layout()->setSpacing( 0 ); |
300 | } | 300 | } |
301 | topLayout->addMultiCellWidget( (QWidget*)syncPrefsGroup->groupBox(),iii,iii,0,1); | 301 | topLayout->addMultiCellWidget( (QWidget*)syncPrefsGroup->groupBox(),iii,iii,0,1); |
302 | ++iii; | 302 | ++iii; |
303 | ++iii; | 303 | ++iii; |
304 | QLabel * lab; | 304 | QLabel * lab; |
305 | mUserDateFormatLong = new QLineEdit(topFrame); | 305 | mUserDateFormatLong = new QLineEdit(topFrame); |
306 | lab = new QLabel(mUserDateFormatLong, i18n("User long date:"), topFrame); | 306 | lab = new QLabel(mUserDateFormatLong, i18n("User long date:"), topFrame); |
307 | topLayout->addWidget(lab ,iii,0); | 307 | topLayout->addWidget(lab ,iii,0); |
308 | topLayout->addWidget(mUserDateFormatLong,iii,1); | 308 | topLayout->addWidget(mUserDateFormatLong,iii,1); |
309 | ++iii; | 309 | ++iii; |
310 | mUserDateFormatShort = new QLineEdit(topFrame); | 310 | mUserDateFormatShort = new QLineEdit(topFrame); |
311 | lab = new QLabel(mUserDateFormatShort, i18n("User short date:"), topFrame); | 311 | lab = new QLabel(mUserDateFormatShort, i18n("User short date:"), topFrame); |
312 | topLayout->addWidget(lab ,iii,0); | 312 | topLayout->addWidget(lab ,iii,0); |
313 | topLayout->addWidget(mUserDateFormatShort,iii,1); | 313 | topLayout->addWidget(mUserDateFormatShort,iii,1); |
314 | ++iii; | 314 | ++iii; |
315 | lab = new QLabel( i18n("Monday 19 April 2004: %A %d %B %Y"), topFrame); | 315 | lab = new QLabel( i18n("Monday 19 April 2004: %A %d %B %Y"), topFrame); |
316 | topLayout->addMultiCellWidget(lab ,iii,iii,0,1); | 316 | topLayout->addMultiCellWidget(lab ,iii,iii,0,1); |
317 | ++iii; | 317 | ++iii; |
318 | lab = new QLabel( i18n("Mon 19.04.04: %a %d.%m.%y"), topFrame); | 318 | lab = new QLabel( i18n("Mon 19.04.04: %a %d.%m.%y"), topFrame); |
319 | topLayout->addMultiCellWidget(lab ,iii,iii,0,1); | 319 | topLayout->addMultiCellWidget(lab ,iii,iii,0,1); |
320 | ++iii; | 320 | ++iii; |
321 | lab = new QLabel( i18n("Mon, 19.Apr.04: %a, %d.%b.%y"), topFrame); | 321 | lab = new QLabel( i18n("Mon, 19.Apr.04: %a, %d.%b.%y"), topFrame); |
322 | topLayout->addMultiCellWidget(lab ,iii,iii,0,1); | 322 | topLayout->addMultiCellWidget(lab ,iii,iii,0,1); |
323 | ++iii; | 323 | ++iii; |
324 | 324 | ||
325 | connect( mUserDateFormatLong, SIGNAL( textChanged ( const QString & )), this, SLOT( textChanged ( const QString & )) ); | 325 | connect( mUserDateFormatLong, SIGNAL( textChanged ( const QString & )), this, SLOT( textChanged ( const QString & )) ); |
326 | connect( mUserDateFormatShort, SIGNAL( textChanged ( const QString & )), this, SLOT( textChanged ( const QString & )) ); | 326 | connect( mUserDateFormatShort, SIGNAL( textChanged ( const QString & )), this, SLOT( textChanged ( const QString & )) ); |
327 | 327 | ||
328 | 328 | ||
329 | tabWidget->addTab( topFrame, i18n( "Date Format" ) ); | 329 | tabWidget->addTab( topFrame, i18n( "Date Format" ) ); |
330 | } | 330 | } |
331 | 331 | ||
332 | void KDEPIMConfigWidget::setupLocaleTab() | 332 | void KDEPIMConfigWidget::setupLocaleTab() |
333 | { | 333 | { |
334 | 334 | ||
335 | QWidget *topFrame = new QWidget( this ); | 335 | QWidget *topFrame = new QWidget( this ); |
336 | QGridLayout *topLayout = new QGridLayout(topFrame,4,2); | 336 | QGridLayout *topLayout = new QGridLayout(topFrame,4,2); |
337 | 337 | ||
338 | topLayout->setSpacing(KDialog::spacingHint()); | 338 | topLayout->setSpacing(KDialog::spacingHint()); |
339 | topLayout->setMargin(KDialog::marginHint()); | 339 | topLayout->setMargin(KDialog::marginHint()); |
340 | int iii = 0; | 340 | int iii = 0; |
341 | KPrefsWidRadios *syncPrefsGroup = | 341 | KPrefsWidRadios *syncPrefsGroup = |
342 | addWidRadios(i18n("Language:(needs restart)"),&(KPimGlobalPrefs::instance()->mPreferredLanguage),topFrame); | 342 | addWidRadios(i18n("Language:(needs restart)"),&(KPimGlobalPrefs::instance()->mPreferredLanguage),topFrame); |
343 | syncPrefsGroup->addRadio(i18n("English")); | 343 | syncPrefsGroup->addRadio(i18n("English")); |
344 | syncPrefsGroup->addRadio(i18n("German")); | 344 | syncPrefsGroup->addRadio(i18n("German")); |
345 | syncPrefsGroup->addRadio(i18n("French")); | 345 | syncPrefsGroup->addRadio(i18n("French")); |
346 | syncPrefsGroup->addRadio(i18n("Italian")); | 346 | syncPrefsGroup->addRadio(i18n("Italian")); |
347 | syncPrefsGroup->addRadio(i18n("User defined (usertranslation.txt)")); | 347 | syncPrefsGroup->addRadio(i18n("User defined (usertranslation.txt)")); |
348 | if ( QApplication::desktop()->width() < 300 ) { | 348 | if ( QApplication::desktop()->width() < 300 ) { |
349 | syncPrefsGroup->groupBox()->layout()->setMargin( 5 ); | 349 | syncPrefsGroup->groupBox()->layout()->setMargin( 5 ); |
350 | syncPrefsGroup->groupBox()->layout()->setSpacing( 0 ); | 350 | syncPrefsGroup->groupBox()->layout()->setSpacing( 0 ); |
351 | } | 351 | } |
352 | topLayout->addMultiCellWidget( (QWidget*)syncPrefsGroup->groupBox(),iii,iii,0,1); | 352 | topLayout->addMultiCellWidget( (QWidget*)syncPrefsGroup->groupBox(),iii,iii,0,1); |
353 | ++iii; | 353 | ++iii; |
354 | 354 | ||
355 | 355 | ||
356 | tabWidget->addTab( topFrame, i18n( "Language" ) ); | 356 | tabWidget->addTab( topFrame, i18n( "Language" ) ); |
357 | topFrame = new QWidget( this ); | 357 | topFrame = new QWidget( this ); |
358 | topLayout = new QGridLayout(topFrame,4,2); | 358 | topLayout = new QGridLayout(topFrame,4,2); |
359 | 359 | ||
360 | topLayout->setSpacing(KDialog::spacingHint()); | 360 | topLayout->setSpacing(KDialog::spacingHint()); |
361 | topLayout->setMargin(KDialog::marginHint()); | 361 | topLayout->setMargin(KDialog::marginHint()); |
362 | iii = 0; | 362 | iii = 0; |
363 | syncPrefsGroup = | 363 | syncPrefsGroup = |
364 | addWidRadios(i18n("Time Format(nr):"),&(KPimGlobalPrefs::instance()->mPreferredTime),topFrame); | 364 | addWidRadios(i18n("Time Format(nr):"),&(KPimGlobalPrefs::instance()->mPreferredTime),topFrame); |
365 | if ( QApplication::desktop()->width() > 300 ) | 365 | if ( QApplication::desktop()->width() > 300 ) |
366 | syncPrefsGroup->groupBox()->setOrientation (Qt::Vertical); | 366 | syncPrefsGroup->groupBox()->setOrientation (Qt::Vertical); |
367 | syncPrefsGroup->addRadio(i18n("24:00")); | 367 | syncPrefsGroup->addRadio(i18n("24:00")); |
368 | syncPrefsGroup->addRadio(i18n("12:00am")); | 368 | syncPrefsGroup->addRadio(i18n("12:00am")); |
369 | syncPrefsGroup->groupBox()->setOrientation (Qt::Vertical); | 369 | syncPrefsGroup->groupBox()->setOrientation (Qt::Vertical); |
370 | topLayout->addMultiCellWidget( syncPrefsGroup->groupBox(),iii,iii,0,1); | 370 | topLayout->addMultiCellWidget( syncPrefsGroup->groupBox(),iii,iii,0,1); |
371 | ++iii; | 371 | ++iii; |
372 | 372 | ||
373 | KPrefsWidBool *sb = addWidBool(i18n("Week starts on Sunday"), | 373 | KPrefsWidBool *sb = addWidBool(i18n("Week starts on Sunday"), |
374 | &(KPimGlobalPrefs::instance()->mWeekStartsOnSunday),topFrame); | 374 | &(KPimGlobalPrefs::instance()->mWeekStartsOnSunday),topFrame); |
375 | topLayout->addMultiCellWidget((QWidget*)sb->checkBox(), iii,iii,0,1); | 375 | topLayout->addMultiCellWidget((QWidget*)sb->checkBox(), iii,iii,0,1); |
376 | ++iii; | 376 | ++iii; |
377 | 377 | ||
378 | 378 | ||
379 | tabWidget->addTab( topFrame, i18n( "Time Format" ) ); | 379 | tabWidget->addTab( topFrame, i18n( "Time Format" ) ); |
380 | 380 | ||
381 | } | 381 | } |
382 | 382 | ||
383 | 383 | ||
384 | void KDEPIMConfigWidget::setupTimeZoneTab() | 384 | void KDEPIMConfigWidget::setupTimeZoneTab() |
385 | { | 385 | { |
386 | QWidget *topFrame; | 386 | QWidget *topFrame; |
387 | QGridLayout *topLayout ; | 387 | QGridLayout *topLayout ; |
388 | 388 | ||
389 | 389 | ||
390 | 390 | ||
391 | 391 | ||
392 | 392 | ||
393 | 393 | ||
394 | topFrame = new QWidget( this ); | 394 | topFrame = new QWidget( this ); |
395 | topLayout = new QGridLayout( topFrame, 5, 2); | 395 | topLayout = new QGridLayout( topFrame, 5, 2); |
396 | topLayout->setSpacing(KDialog::spacingHintSmall()); | 396 | topLayout->setSpacing(KDialog::spacingHintSmall()); |
397 | topLayout->setMargin(KDialog::marginHintSmall()); | 397 | topLayout->setMargin(KDialog::marginHintSmall()); |
398 | 398 | ||
399 | QHBox *timeZoneBox = new QHBox( topFrame ); | 399 | QHBox *timeZoneBox = new QHBox( topFrame ); |
400 | topLayout->addMultiCellWidget( timeZoneBox, 0, 0, 0, 1 ); | 400 | topLayout->addMultiCellWidget( timeZoneBox, 0, 0, 0, 1 ); |
401 | 401 | ||
402 | new QLabel( i18n("Timezone:"), timeZoneBox ); | 402 | new QLabel( i18n("Timezone:"), timeZoneBox ); |
403 | mTimeZoneCombo = new QComboBox( timeZoneBox ); | 403 | mTimeZoneCombo = new QComboBox( timeZoneBox ); |
404 | if ( QApplication::desktop()->width() < 300 ) { | 404 | if ( QApplication::desktop()->width() < 300 ) { |
405 | mTimeZoneCombo->setMaximumWidth(150); | 405 | mTimeZoneCombo->setMaximumWidth(150); |
406 | } | 406 | } |
407 | 407 | ||
408 | QStringList list; | 408 | QStringList list; |
409 | list = KGlobal::locale()->timeZoneList(); | 409 | list = KGlobal::locale()->timeZoneList(); |
410 | mTimeZoneCombo->insertStringList(list); | 410 | mTimeZoneCombo->insertStringList(list); |
411 | 411 | ||
412 | // find the currently set time zone and select it | 412 | // find the currently set time zone and select it |
413 | QString sCurrentlySet = KPimGlobalPrefs::instance()->mTimeZoneId; | 413 | QString sCurrentlySet = KPimGlobalPrefs::instance()->mTimeZoneId; |
414 | int nCurrentlySet = 11; | 414 | int nCurrentlySet = 11; |
415 | for (int i = 0; i < mTimeZoneCombo->count(); i++) | 415 | for (int i = 0; i < mTimeZoneCombo->count(); i++) |
416 | { | 416 | { |
417 | if (mTimeZoneCombo->text(i) == sCurrentlySet) | 417 | if (mTimeZoneCombo->text(i) == sCurrentlySet) |
418 | { | 418 | { |
419 | nCurrentlySet = i; | 419 | nCurrentlySet = i; |
420 | break; | 420 | break; |
421 | } | 421 | } |
422 | } | 422 | } |
423 | mTimeZoneCombo->setCurrentItem(nCurrentlySet); | 423 | mTimeZoneCombo->setCurrentItem(nCurrentlySet); |
424 | int iii = 1; | 424 | int iii = 1; |
425 | KPrefsWidBool *sb = | 425 | KPrefsWidBool *sb = |
426 | addWidBool(i18n("Add 30 min to selected Timezone"), | 426 | addWidBool(i18n("Add 30 min to selected Timezone"), |
427 | &(KPimGlobalPrefs::instance()->mTimeZoneAdd30min),topFrame); | 427 | &(KPimGlobalPrefs::instance()->mTimeZoneAdd30min),topFrame); |
428 | topLayout->addMultiCellWidget((QWidget*)sb->checkBox(), iii,iii,0,1); | 428 | topLayout->addMultiCellWidget((QWidget*)sb->checkBox(), iii,iii,0,1); |
429 | ++iii; | 429 | ++iii; |
430 | sb = | 430 | sb = |
431 | addWidBool(i18n("Timezone has daylight saving"), | 431 | addWidBool(i18n("Timezone has daylight saving"), |
432 | &(KPimGlobalPrefs::instance()->mUseDaylightsaving),topFrame); | 432 | &(KPimGlobalPrefs::instance()->mUseDaylightsaving),topFrame); |
433 | topLayout->addMultiCellWidget((QWidget*)sb->checkBox(), iii,iii,0,1); | 433 | topLayout->addMultiCellWidget((QWidget*)sb->checkBox(), iii,iii,0,1); |
434 | ++iii; | 434 | ++iii; |
435 | QLabel* lab; | 435 | QLabel* lab; |
436 | 436 | ||
437 | lab = new QLabel( i18n("Actual start and end is the\nsunday before this date."), topFrame ); | 437 | lab = new QLabel( i18n("Actual start and end is the\nsunday before this date."), topFrame ); |
438 | topLayout->addMultiCellWidget(lab, iii,iii,0,1); | 438 | topLayout->addMultiCellWidget(lab, iii,iii,0,1); |
439 | ++iii; | 439 | ++iii; |
440 | 440 | ||
441 | lab = new QLabel( i18n("The year in the date is ignored."), topFrame ); | 441 | lab = new QLabel( i18n("The year in the date is ignored."), topFrame ); |
442 | topLayout->addMultiCellWidget(lab, iii,iii,0,1); | 442 | topLayout->addMultiCellWidget(lab, iii,iii,0,1); |
443 | ++iii; | 443 | ++iii; |
444 | lab = new QLabel( i18n("Daylight start:"), topFrame ); | 444 | lab = new QLabel( i18n("Daylight start:"), topFrame ); |
445 | topLayout->addWidget(lab, iii,0); | 445 | topLayout->addWidget(lab, iii,0); |
446 | mStartDateSavingEdit = new KDateEdit(topFrame); | 446 | mStartDateSavingEdit = new KDateEdit(topFrame); |
447 | topLayout->addWidget(mStartDateSavingEdit, iii,1); | 447 | topLayout->addWidget(mStartDateSavingEdit, iii,1); |
448 | ++iii; | 448 | ++iii; |
449 | 449 | ||
450 | lab = new QLabel( i18n("Daylight end:"), topFrame ); | 450 | lab = new QLabel( i18n("Daylight end:"), topFrame ); |
451 | topLayout->addWidget(lab, iii,0); | 451 | topLayout->addWidget(lab, iii,0); |
452 | mEndDateSavingEdit = new KDateEdit(topFrame); | 452 | mEndDateSavingEdit = new KDateEdit(topFrame); |
453 | topLayout->addWidget(mEndDateSavingEdit, iii,1); | 453 | topLayout->addWidget(mEndDateSavingEdit, iii,1); |
454 | ++iii; | 454 | ++iii; |
455 | QDate current ( 2001, 1,1); | 455 | QDate current ( 2001, 1,1); |
456 | mStartDateSavingEdit->setDate(current.addDays(KPimGlobalPrefs::instance()->mDaylightsavingStart-1)); | 456 | mStartDateSavingEdit->setDate(current.addDays(KPimGlobalPrefs::instance()->mDaylightsavingStart-1)); |
457 | mEndDateSavingEdit->setDate(current.addDays(KPimGlobalPrefs::instance()->mDaylightsavingEnd-1)); | 457 | mEndDateSavingEdit->setDate(current.addDays(KPimGlobalPrefs::instance()->mDaylightsavingEnd-1)); |
458 | 458 | ||
459 | connect( mStartDateSavingEdit, SIGNAL( dateChanged(QDate)), this, SLOT( modified()) ); | 459 | connect( mStartDateSavingEdit, SIGNAL( dateChanged(QDate)), this, SLOT( modified()) ); |
460 | connect( mEndDateSavingEdit, SIGNAL( dateChanged(QDate)), this, SLOT( modified()) ); | 460 | connect( mEndDateSavingEdit, SIGNAL( dateChanged(QDate)), this, SLOT( modified()) ); |
461 | connect( mTimeZoneCombo, SIGNAL( activated( int ) ), this, SLOT (modified() ) ); | 461 | connect( mTimeZoneCombo, SIGNAL( activated( int ) ), this, SLOT (modified() ) ); |
462 | tabWidget->addTab( topFrame, i18n( "Time Zone" ) ); | 462 | tabWidget->addTab( topFrame, i18n( "Time Zone" ) ); |
463 | 463 | ||
464 | 464 | ||
465 | topFrame = new QWidget( this ); | 465 | topFrame = new QWidget( this ); |