author | zautrix <zautrix> | 2005-03-16 20:18:23 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-03-16 20:18:23 (UTC) |
commit | 3f6f846915ac28e623e1f04201b233111d8bbbdf (patch) (unidiff) | |
tree | ea360c30e39561c4cc532a3112b1dd8bb94f986b /kmicromail/mainwindow.cpp | |
parent | aae23f2f26ef87a4fe45ea54f1e7fe82e9fd0460 (diff) | |
download | kdepimpi-3f6f846915ac28e623e1f04201b233111d8bbbdf.zip kdepimpi-3f6f846915ac28e623e1f04201b233111d8bbbdf.tar.gz kdepimpi-3f6f846915ac28e623e1f04201b233111d8bbbdf.tar.bz2 |
fix
-rw-r--r-- | kmicromail/mainwindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kmicromail/mainwindow.cpp b/kmicromail/mainwindow.cpp index 4c58909..9a52d1b 100644 --- a/kmicromail/mainwindow.cpp +++ b/kmicromail/mainwindow.cpp | |||
@@ -267,101 +267,101 @@ void MainWindow::slotSetCodec( int codec ) | |||
267 | { | 267 | { |
268 | codecMenu->setItemChecked(KOPrefs::instance()->mCurrentCodec, false ); | 268 | codecMenu->setItemChecked(KOPrefs::instance()->mCurrentCodec, false ); |
269 | //qDebug("codec %d ", codec); | 269 | //qDebug("codec %d ", codec); |
270 | KOPrefs::instance()->mCurrentCodec = codec; | 270 | KOPrefs::instance()->mCurrentCodec = codec; |
271 | KOPrefs::instance()->isDirty = true; | 271 | KOPrefs::instance()->isDirty = true; |
272 | QString name; | 272 | QString name; |
273 | switch ( codec ) { | 273 | switch ( codec ) { |
274 | case 0: | 274 | case 0: |
275 | name = "iso-8859-1"; | 275 | name = "iso-8859-1"; |
276 | break; | 276 | break; |
277 | case 1: | 277 | case 1: |
278 | name = "iso-8859-5"; | 278 | name = "iso-8859-5"; |
279 | break; | 279 | break; |
280 | case 2: | 280 | case 2: |
281 | name = "iso-8859-15"; | 281 | name = "iso-8859-15"; |
282 | break; | 282 | break; |
283 | case 3: | 283 | case 3: |
284 | name = "big-5"; | 284 | name = "big-5"; |
285 | break; | 285 | break; |
286 | case 4: | 286 | case 4: |
287 | name = "utf-8"; | 287 | name = "utf-8"; |
288 | break; | 288 | break; |
289 | case 5: | 289 | case 5: |
290 | name = KOPrefs::instance()->mSendCodec.lower(); | 290 | name = KOPrefs::instance()->mSendCodec.lower(); |
291 | break; | 291 | break; |
292 | } | 292 | } |
293 | KOPrefs::instance()->mCurrentCodeName = name ; | 293 | KOPrefs::instance()->mCurrentCodeName = name ; |
294 | codecMenu->changeItem ( 5, "Userdefined ("+KOPrefs::instance()->mSendCodec+")"); | 294 | codecMenu->changeItem ( 5, "Userdefined ("+KOPrefs::instance()->mSendCodec+")"); |
295 | codecMenu->setItemChecked(KOPrefs::instance()->mCurrentCodec, true ); | 295 | codecMenu->setItemChecked(KOPrefs::instance()->mCurrentCodec, true ); |
296 | } | 296 | } |
297 | void MainWindow::showLicence() | 297 | void MainWindow::showLicence() |
298 | { | 298 | { |
299 | KApplication::showLicence(); | 299 | KApplication::showLicence(); |
300 | } | 300 | } |
301 | void MainWindow::showAbout() | 301 | void MainWindow::showAbout() |
302 | { | 302 | { |
303 | QString version; | 303 | QString version; |
304 | #include <../version> | 304 | #include <../version> |
305 | 305 | ||
306 | QString cap = "About KOpieMail/Pi"; | 306 | QString cap = "About KOpieMail/Pi"; |
307 | QString text =i18n("KOpieMail/Platform-independent\n") + | 307 | QString text =i18n("KOpieMail/Platform-independent\n") + |
308 | "(OM/Pi) " + version + " - " | 308 | "(OM/Pi) " + version + " - " |
309 | 309 | ||
310 | #ifdef DESKTOP_VERSION | 310 | #ifdef DESKTOP_VERSION |
311 | "Desktop Edition\n" | 311 | "Desktop Edition\n" |
312 | #else | 312 | #else |
313 | "PDA-Edition\nfor: Zaurus 5x00 / 7x0 / 8x0\n" | 313 | "PDA-Edition\nfor: Zaurus 5x00 / 7x0 / 8x0\n" |
314 | #endif | 314 | #endif |
315 | "www.pi-sync.net\n\n" | 315 | "www.pi-sync.info\n\n" |
316 | 316 | ||
317 | 317 | ||
318 | 318 | ||
319 | "Copyright (c) 2004 Lutz Rogowski <lutz@pi-sync.net>\n" | 319 | "Copyright (c) 2004 Lutz Rogowski <lutz@pi-sync.info>\n" |
320 | "KOpieMail/Pi is based on Opie Mail\n" | 320 | "KOpieMail/Pi is based on Opie Mail\n" |
321 | "Copyright (c) Rajko Albrecht and the Opie team\n" | 321 | "Copyright (c) Rajko Albrecht and the Opie team\n" |
322 | "KOpieMail/Pi is licensed under the GPL\n" | 322 | "KOpieMail/Pi is licensed under the GPL\n" |
323 | "\n" | 323 | "\n" |
324 | "KOpieMail/Pi uses LibEtPan - a mail stuff library\n" | 324 | "KOpieMail/Pi uses LibEtPan - a mail stuff library\n" |
325 | "Copyright (C) 2001, 2002 - DINH Viet Hoa\n" | 325 | "Copyright (C) 2001, 2002 - DINH Viet Hoa\n" |
326 | "libEtPan has its own licence - see LibEtPan licence\n"; | 326 | "libEtPan has its own licence - see LibEtPan licence\n"; |
327 | 327 | ||
328 | KApplication::showText( cap, text ); | 328 | KApplication::showText( cap, text ); |
329 | } | 329 | } |
330 | void MainWindow::showEtpanLicence() | 330 | void MainWindow::showEtpanLicence() |
331 | { | 331 | { |
332 | KApplication::showFile( "LibEtPan licence", "kdepim/kopiemail/COPYRIGHTlibetpan" ); | 332 | KApplication::showFile( "LibEtPan licence", "kdepim/kopiemail/COPYRIGHTlibetpan" ); |
333 | 333 | ||
334 | } | 334 | } |
335 | void MainWindow::appMessage(const QCString &, const QByteArray &) | 335 | void MainWindow::appMessage(const QCString &, const QByteArray &) |
336 | { | 336 | { |
337 | qDebug("appMessage implemented by subclass"); | 337 | qDebug("appMessage implemented by subclass"); |
338 | } | 338 | } |
339 | 339 | ||
340 | void MainWindow::slotAdjustLayout() { | 340 | void MainWindow::slotAdjustLayout() { |
341 | 341 | ||
342 | /* | 342 | /* |
343 | QWidget *d = QApplication::desktop(); | 343 | QWidget *d = QApplication::desktop(); |
344 | 344 | ||
345 | if ( d->width() < d->height() ) { | 345 | if ( d->width() < d->height() ) { |
346 | layout->setDirection( QBoxLayout::TopToBottom ); | 346 | layout->setDirection( QBoxLayout::TopToBottom ); |
347 | } else { | 347 | } else { |
348 | layout->setDirection( QBoxLayout::LeftToRight ); | 348 | layout->setDirection( QBoxLayout::LeftToRight ); |
349 | } | 349 | } |
350 | */ | 350 | */ |
351 | } | 351 | } |
352 | 352 | ||
353 | void MainWindow::slotAdjustColumns() | 353 | void MainWindow::slotAdjustColumns() |
354 | { | 354 | { |
355 | bool hidden = folderView->isHidden(); | 355 | bool hidden = folderView->isHidden(); |
356 | if ( hidden ) folderView->show(); | 356 | if ( hidden ) folderView->show(); |
357 | folderView->setColumnWidth( 0, folderView->visibleWidth() ); | 357 | folderView->setColumnWidth( 0, folderView->visibleWidth() ); |
358 | if ( hidden ) folderView->hide(); | 358 | if ( hidden ) folderView->hide(); |
359 | 359 | ||
360 | mailView->setColumnWidth( 0, 10 ); | 360 | mailView->setColumnWidth( 0, 10 ); |
361 | mailView->setColumnWidth( 1, 100 ); | 361 | mailView->setColumnWidth( 1, 100 ); |
362 | mailView->setColumnWidth( 2, 100 ); | 362 | mailView->setColumnWidth( 2, 100 ); |
363 | mailView->setColumnWidth( 3, 50 ); | 363 | mailView->setColumnWidth( 3, 50 ); |
364 | mailView->setColumnWidth( 4, 120 ); | 364 | mailView->setColumnWidth( 4, 120 ); |
365 | if ( KOPrefs::instance()->mShowToField ) | 365 | if ( KOPrefs::instance()->mShowToField ) |
366 | mailView->setColumnWidth( 5, 100 ); | 366 | mailView->setColumnWidth( 5, 100 ); |
367 | } | 367 | } |