-rw-r--r-- | korganizer/koprefsdialog.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/korganizer/koprefsdialog.cpp b/korganizer/koprefsdialog.cpp index b4b3b27..393e6e6 100644 --- a/korganizer/koprefsdialog.cpp +++ b/korganizer/koprefsdialog.cpp | |||
@@ -137,193 +137,194 @@ QFrame *topFrame = addPage(i18n("Date Format"),0,0); | |||
137 | format = "(%Y-%m-%d|%A %Y %B %d)"; | 137 | format = "(%Y-%m-%d|%A %Y %B %d)"; |
138 | syncPrefsGroup->addRadio(i18n("2004-03-24 "+format)); | 138 | syncPrefsGroup->addRadio(i18n("2004-03-24 "+format)); |
139 | syncPrefsGroup->addRadio(i18n("User defined")); | 139 | syncPrefsGroup->addRadio(i18n("User defined")); |
140 | topLayout->addMultiCellWidget( syncPrefsGroup->groupBox(),iii,iii,0,1); | 140 | topLayout->addMultiCellWidget( syncPrefsGroup->groupBox(),iii,iii,0,1); |
141 | ++iii; | 141 | ++iii; |
142 | ++iii; | 142 | ++iii; |
143 | QLabel * lab; | 143 | QLabel * lab; |
144 | mUserDateFormatLong = new QLineEdit(topFrame); | 144 | mUserDateFormatLong = new QLineEdit(topFrame); |
145 | lab = new QLabel(mUserDateFormatLong, i18n("User long date:"), topFrame); | 145 | lab = new QLabel(mUserDateFormatLong, i18n("User long date:"), topFrame); |
146 | topLayout->addWidget(lab ,iii,0); | 146 | topLayout->addWidget(lab ,iii,0); |
147 | topLayout->addWidget(mUserDateFormatLong,iii,1); | 147 | topLayout->addWidget(mUserDateFormatLong,iii,1); |
148 | ++iii; | 148 | ++iii; |
149 | mUserDateFormatShort = new QLineEdit(topFrame); | 149 | mUserDateFormatShort = new QLineEdit(topFrame); |
150 | lab = new QLabel(mUserDateFormatShort, i18n("User short date:"), topFrame); | 150 | lab = new QLabel(mUserDateFormatShort, i18n("User short date:"), topFrame); |
151 | topLayout->addWidget(lab ,iii,0); | 151 | topLayout->addWidget(lab ,iii,0); |
152 | topLayout->addWidget(mUserDateFormatShort,iii,1); | 152 | topLayout->addWidget(mUserDateFormatShort,iii,1); |
153 | ++iii; | 153 | ++iii; |
154 | lab = new QLabel( i18n("Monday 19 April 2004: %A %d %B %Y"), topFrame); | 154 | lab = new QLabel( i18n("Monday 19 April 2004: %A %d %B %Y"), topFrame); |
155 | topLayout->addMultiCellWidget(lab ,iii,iii,0,1); | 155 | topLayout->addMultiCellWidget(lab ,iii,iii,0,1); |
156 | ++iii; | 156 | ++iii; |
157 | lab = new QLabel( i18n("Mon 19.04.04: %a %d.%m.%y"), topFrame); | 157 | lab = new QLabel( i18n("Mon 19.04.04: %a %d.%m.%y"), topFrame); |
158 | topLayout->addMultiCellWidget(lab ,iii,iii,0,1); | 158 | topLayout->addMultiCellWidget(lab ,iii,iii,0,1); |
159 | ++iii; | 159 | ++iii; |
160 | lab = new QLabel( i18n("Mon, 19.Apr.04: %a, %d.%b.%y"), topFrame); | 160 | lab = new QLabel( i18n("Mon, 19.Apr.04: %a, %d.%b.%y"), topFrame); |
161 | topLayout->addMultiCellWidget(lab ,iii,iii,0,1); | 161 | topLayout->addMultiCellWidget(lab ,iii,iii,0,1); |
162 | ++iii; | 162 | ++iii; |
163 | #endif | 163 | #endif |
164 | 164 | ||
165 | } | 165 | } |
166 | 166 | ||
167 | void KOPrefsDialog::setupLocaleTab() | 167 | void KOPrefsDialog::setupLocaleTab() |
168 | { | 168 | { |
169 | #if 0 | 169 | #if 0 |
170 | QFrame *topFrame = addPage(i18n("Locale"),0,0); | 170 | QFrame *topFrame = addPage(i18n("Locale"),0,0); |
171 | QGridLayout *topLayout = new QGridLayout(topFrame,4,2); | 171 | QGridLayout *topLayout = new QGridLayout(topFrame,4,2); |
172 | topLayout->setSpacing(spacingHint()); | 172 | topLayout->setSpacing(spacingHint()); |
173 | topLayout->setMargin(marginHint()); | 173 | topLayout->setMargin(marginHint()); |
174 | int iii = 0; | 174 | int iii = 0; |
175 | KPrefsDialogWidRadios *syncPrefsGroup = | 175 | KPrefsDialogWidRadios *syncPrefsGroup = |
176 | addWidRadios(i18n("Language:(needs restart)"),&(KOPrefs::instance()->mPreferredLanguage),topFrame); | 176 | addWidRadios(i18n("Language:(needs restart)"),&(KOPrefs::instance()->mPreferredLanguage),topFrame); |
177 | syncPrefsGroup->addRadio(i18n("English")); | 177 | syncPrefsGroup->addRadio(i18n("English")); |
178 | syncPrefsGroup->addRadio(i18n("German")); | 178 | syncPrefsGroup->addRadio(i18n("German")); |
179 | syncPrefsGroup->addRadio(i18n("French")); | 179 | syncPrefsGroup->addRadio(i18n("French")); |
180 | syncPrefsGroup->addRadio(i18n("User defined (usertranslation.txt)")); | 180 | syncPrefsGroup->addRadio(i18n("User defined (usertranslation.txt)")); |
181 | if ( QApplication::desktop()->width() < 300 ) | 181 | if ( QApplication::desktop()->width() < 300 ) |
182 | ;// syncPrefsGroup->groupBox()-> setOrientation (Qt::Vertical); | 182 | ;// syncPrefsGroup->groupBox()-> setOrientation (Qt::Vertical); |
183 | topLayout->addMultiCellWidget( syncPrefsGroup->groupBox(),iii,iii,0,1); | 183 | topLayout->addMultiCellWidget( syncPrefsGroup->groupBox(),iii,iii,0,1); |
184 | ++iii; | 184 | ++iii; |
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; |
282 | QFrame *topFrame = addPage(i18n("Sync Network"),0,0); | 283 | QFrame *topFrame = addPage(i18n("Sync Network"),0,0); |
283 | QGridLayout *topLayout = new QGridLayout(topFrame,6,2); | 284 | QGridLayout *topLayout = new QGridLayout(topFrame,6,2); |
284 | topLayout->setSpacing(spacingHint()); | 285 | topLayout->setSpacing(spacingHint()); |
285 | topLayout->setMargin(marginHint()); | 286 | topLayout->setMargin(marginHint()); |
286 | lab = new QLabel(i18n("Remote syncing (via ssh/scp)\nnetwork settings "), topFrame); | 287 | lab = new QLabel(i18n("Remote syncing (via ssh/scp)\nnetwork settings "), topFrame); |
287 | int iii = 0; | 288 | int iii = 0; |
288 | topLayout->addMultiCellWidget(lab , iii,iii,0,1); | 289 | topLayout->addMultiCellWidget(lab , iii,iii,0,1); |
289 | ++iii; | 290 | ++iii; |
290 | 291 | ||
291 | mRemoteIPEdit = new QLineEdit(topFrame); | 292 | mRemoteIPEdit = new QLineEdit(topFrame); |
292 | lab = new QLabel(mRemoteIPEdit, i18n("Remote IP:"), topFrame); | 293 | lab = new QLabel(mRemoteIPEdit, i18n("Remote IP:"), topFrame); |
293 | topLayout->addWidget(lab ,iii,0); | 294 | topLayout->addWidget(lab ,iii,0); |
294 | topLayout->addWidget(mRemoteIPEdit,iii,1); | 295 | topLayout->addWidget(mRemoteIPEdit,iii,1); |
295 | ++iii; | 296 | ++iii; |
296 | mRemoteUser = new QLineEdit(topFrame); | 297 | mRemoteUser = new QLineEdit(topFrame); |
297 | lab = new QLabel(mRemoteUser, i18n("Remote user:"), topFrame); | 298 | lab = new QLabel(mRemoteUser, i18n("Remote user:"), topFrame); |
298 | topLayout->addWidget(lab ,iii,0); | 299 | topLayout->addWidget(lab ,iii,0); |
299 | topLayout->addWidget(mRemoteUser, iii,1); | 300 | topLayout->addWidget(mRemoteUser, iii,1); |
300 | ++iii; | 301 | ++iii; |
301 | 302 | ||
302 | mRemoteFile = new QLineEdit(topFrame); | 303 | mRemoteFile = new QLineEdit(topFrame); |
303 | lab = new QLabel(mRemoteFile, i18n("Remote file:"), topFrame); | 304 | lab = new QLabel(mRemoteFile, i18n("Remote file:"), topFrame); |
304 | topLayout->addWidget(lab ,iii,0); | 305 | topLayout->addWidget(lab ,iii,0); |
305 | topLayout->addWidget(mRemoteFile,iii,1); | 306 | topLayout->addWidget(mRemoteFile,iii,1); |
306 | ++iii; | 307 | ++iii; |
307 | 308 | ||
308 | mLocalTempFile = new QLineEdit(topFrame); | 309 | mLocalTempFile = new QLineEdit(topFrame); |
309 | lab = new QLabel(mLocalTempFile, i18n("Local temp file:"), topFrame); | 310 | lab = new QLabel(mLocalTempFile, i18n("Local temp file:"), topFrame); |
310 | topLayout->addWidget(lab ,iii,0); | 311 | topLayout->addWidget(lab ,iii,0); |
311 | topLayout->addWidget(mLocalTempFile,iii,1); | 312 | topLayout->addWidget(mLocalTempFile,iii,1); |
312 | ++iii; | 313 | ++iii; |
313 | 314 | ||
314 | KPrefsDialogWidBool *wb = | 315 | KPrefsDialogWidBool *wb = |
315 | addWidBool(i18n("Write back synced file"), | 316 | addWidBool(i18n("Write back synced file"), |
316 | &(KOPrefs::instance()->mWriteBackFile),topFrame); | 317 | &(KOPrefs::instance()->mWriteBackFile),topFrame); |
317 | topLayout->addMultiCellWidget(wb->checkBox(), iii,iii,0,1); | 318 | topLayout->addMultiCellWidget(wb->checkBox(), iii,iii,0,1); |
318 | ++iii; | 319 | ++iii; |
319 | wb = | 320 | wb = |
320 | addWidBool(i18n("Write back existing entries only"), | 321 | addWidBool(i18n("Write back existing entries only"), |
321 | &(KOPrefs::instance()->mWriteBackExistingOnly),topFrame); | 322 | &(KOPrefs::instance()->mWriteBackExistingOnly),topFrame); |
322 | topLayout->addMultiCellWidget(wb->checkBox(), iii,iii,0,1); | 323 | topLayout->addMultiCellWidget(wb->checkBox(), iii,iii,0,1); |
323 | ++iii; | 324 | ++iii; |
324 | 325 | ||
325 | #endif | 326 | #endif |
326 | } | 327 | } |
327 | 328 | ||
328 | void KOPrefsDialog::setupMainTab() | 329 | void KOPrefsDialog::setupMainTab() |
329 | { | 330 | { |