-rw-r--r-- | kmicromail/mainwindow.cpp | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/kmicromail/mainwindow.cpp b/kmicromail/mainwindow.cpp index 82a915e..3dde3cd 100644 --- a/kmicromail/mainwindow.cpp +++ b/kmicromail/mainwindow.cpp | |||
@@ -304,130 +304,144 @@ void MainWindow::slotSetCodec( int codec ) | |||
304 | break; | 304 | break; |
305 | } | 305 | } |
306 | KOPrefs::instance()->mCurrentCodeName = name ; | 306 | KOPrefs::instance()->mCurrentCodeName = name ; |
307 | codecMenu->changeItem ( 5, "Userdefined ("+KOPrefs::instance()->mSendCodec+")"); | 307 | codecMenu->changeItem ( 5, "Userdefined ("+KOPrefs::instance()->mSendCodec+")"); |
308 | codecMenu->setItemChecked(KOPrefs::instance()->mCurrentCodec, true ); | 308 | codecMenu->setItemChecked(KOPrefs::instance()->mCurrentCodec, true ); |
309 | } | 309 | } |
310 | void MainWindow::showLicence() | 310 | void MainWindow::showLicence() |
311 | { | 311 | { |
312 | KApplication::showLicence(); | 312 | KApplication::showLicence(); |
313 | } | 313 | } |
314 | void MainWindow::showAbout() | 314 | void MainWindow::showAbout() |
315 | { | 315 | { |
316 | QString version; | 316 | QString version; |
317 | #include <../version> | 317 | #include <../version> |
318 | 318 | ||
319 | QString cap = "About KOpieMail/Pi"; | 319 | QString cap = "About KOpieMail/Pi"; |
320 | QString text =i18n("KOpieMail/Platform-independent\n") + | 320 | QString text =i18n("KOpieMail/Platform-independent\n") + |
321 | "(OM/Pi) " + version + " - " | 321 | "(OM/Pi) " + version + " - " |
322 | 322 | ||
323 | #ifdef DESKTOP_VERSION | 323 | #ifdef DESKTOP_VERSION |
324 | "Desktop Edition\n" | 324 | "Desktop Edition\n" |
325 | #else | 325 | #else |
326 | "PDA-Edition\nfor: Zaurus 5x00 / 7x0 / 8x0\n" | 326 | "PDA-Edition\nfor: Zaurus 5x00 / 7x0 / 8x0\n" |
327 | #endif | 327 | #endif |
328 | "www.pi-sync.info\n\n" | 328 | "www.pi-sync.info\n\n" |
329 | 329 | ||
330 | 330 | ||
331 | 331 | ||
332 | "Copyright (c) 2004 Lutz Rogowski <lutz@pi-sync.info>\n" | 332 | "Copyright (c) 2004 Lutz Rogowski <lutz@pi-sync.info>\n" |
333 | "KOpieMail/Pi is based on Opie Mail\n" | 333 | "KOpieMail/Pi is based on Opie Mail\n" |
334 | "Copyright (c) Rajko Albrecht and the Opie team\n" | 334 | "Copyright (c) Rajko Albrecht and the Opie team\n" |
335 | "KOpieMail/Pi is licensed under the GPL\n" | 335 | "KOpieMail/Pi is licensed under the GPL\n" |
336 | "\n" | 336 | "\n" |
337 | "KOpieMail/Pi uses LibEtPan - a mail stuff library\n" | 337 | "KOpieMail/Pi uses LibEtPan - a mail stuff library\n" |
338 | "Copyright (C) 2001, 2002 - DINH Viet Hoa\n" | 338 | "Copyright (C) 2001, 2002 - DINH Viet Hoa\n" |
339 | "libEtPan has its own licence - see LibEtPan licence\n"; | 339 | "libEtPan has its own licence - see LibEtPan licence\n"; |
340 | 340 | ||
341 | KApplication::showText( cap, text ); | 341 | KApplication::showText( cap, text ); |
342 | } | 342 | } |
343 | void MainWindow::showEtpanLicence() | 343 | void MainWindow::showEtpanLicence() |
344 | { | 344 | { |
345 | KApplication::showFile( "LibEtPan licence", "kdepim/kopiemail/COPYRIGHTlibetpan" ); | 345 | KApplication::showFile( "LibEtPan licence", "kdepim/kopiemail/COPYRIGHTlibetpan" ); |
346 | 346 | ||
347 | } | 347 | } |
348 | void MainWindow::appMessage(const QCString &, const QByteArray &) | 348 | void MainWindow::appMessage(const QCString &, const QByteArray &) |
349 | { | 349 | { |
350 | qDebug("appMessage implemented by subclass"); | 350 | qDebug("appMessage implemented by subclass"); |
351 | } | 351 | } |
352 | 352 | ||
353 | void MainWindow::slotAdjustLayout() { | 353 | void MainWindow::slotAdjustLayout() { |
354 | 354 | ||
355 | /* | 355 | /* |
356 | QWidget *d = QApplication::desktop(); | 356 | QWidget *d = QApplication::desktop(); |
357 | 357 | ||
358 | if ( d->width() < d->height() ) { | 358 | if ( d->width() < d->height() ) { |
359 | layout->setDirection( QBoxLayout::TopToBottom ); | 359 | layout->setDirection( QBoxLayout::TopToBottom ); |
360 | } else { | 360 | } else { |
361 | layout->setDirection( QBoxLayout::LeftToRight ); | 361 | layout->setDirection( QBoxLayout::LeftToRight ); |
362 | } | 362 | } |
363 | */ | 363 | */ |
364 | } | 364 | } |
365 | 365 | ||
366 | void MainWindow::slotAdjustColumns() | 366 | void MainWindow::slotAdjustColumns() |
367 | { | 367 | { |
368 | bool hidden = folderView->isHidden(); | 368 | |
369 | if ( hidden ) folderView->show(); | 369 | if ( !folderView->isHidden() ) |
370 | folderView->setColumnWidth( 0, folderView->visibleWidth() ); | 370 | folderView->setColumnWidth( 0, folderView->visibleWidth() ); |
371 | if ( hidden ) folderView->hide(); | ||
372 | 371 | ||
373 | mailView->setColumnWidth( 0, 10 ); | 372 | mailView->setColumnWidth( 0, 10 ); |
374 | mailView->setColumnWidth( 1, 100 ); | 373 | mailView->setColumnWidth( 1, 100 ); |
375 | mailView->setColumnWidth( 2, 100 ); | 374 | mailView->setColumnWidth( 2, 100 ); |
376 | mailView->setColumnWidth( 3, 70 ); | 375 | mailView->setColumnWidth( 3, 70 ); |
377 | mailView->setColumnWidth( 4, 170 ); | 376 | mailView->setColumnWidth( 4, 180 ); |
377 | if ( KOPrefs::instance()->mShowToField ) | ||
378 | mailView->setColumnWidth( 5, 100 ); | ||
379 | mailView->setColumnAlignment( 3, AlignRight); | ||
380 | mailView->setColumnAlignment( 4, AlignRight); | ||
381 | } | ||
382 | void MainWindow::slotAdjustColumnsWide() | ||
383 | { | ||
384 | if ( !folderView->isHidden() ) | ||
385 | folderView->setColumnWidth( 0, folderView->visibleWidth() ); | ||
386 | |||
387 | mailView->setColumnWidth( 0, 10 ); | ||
388 | mailView->setColumnWidth( 1, 200 ); | ||
389 | mailView->setColumnWidth( 2, 200 ); | ||
390 | mailView->setColumnWidth( 3, 70 ); | ||
391 | mailView->setColumnWidth( 4, 180 ); | ||
378 | if ( KOPrefs::instance()->mShowToField ) | 392 | if ( KOPrefs::instance()->mShowToField ) |
379 | mailView->setColumnWidth( 5, 100 ); | 393 | mailView->setColumnWidth( 5, 100 ); |
380 | mailView->setColumnAlignment( 3, AlignRight); | 394 | mailView->setColumnAlignment( 3, AlignRight); |
381 | } | 395 | } |
382 | 396 | ||
383 | void MainWindow::slotEditSettings() | 397 | void MainWindow::slotEditSettings() |
384 | { | 398 | { |
385 | } | 399 | } |
386 | void MainWindow::slotEditGlobalSettings() | 400 | void MainWindow::slotEditGlobalSettings() |
387 | { | 401 | { |
388 | } | 402 | } |
389 | 403 | ||
390 | void MainWindow::slotShowFolders( bool ) | 404 | void MainWindow::slotShowFolders( bool ) |
391 | { | 405 | { |
392 | qDebug("not implemented: "); | 406 | qDebug("not implemented: "); |
393 | } | 407 | } |
394 | 408 | ||
395 | void MainWindow::refreshMailView(const QValueList<RecMailP>&) | 409 | void MainWindow::refreshMailView(const QValueList<RecMailP>&) |
396 | { | 410 | { |
397 | qDebug("not implemented: "); | 411 | qDebug("not implemented: "); |
398 | } | 412 | } |
399 | 413 | ||
400 | void MainWindow::mailLeftClicked(QListViewItem * ) | 414 | void MainWindow::mailLeftClicked(QListViewItem * ) |
401 | { | 415 | { |
402 | qDebug("not implemented: "); | 416 | qDebug("not implemented: "); |
403 | } | 417 | } |
404 | 418 | ||
405 | void MainWindow::displayMail() | 419 | void MainWindow::displayMail() |
406 | { | 420 | { |
407 | qDebug("not implemented: "); | 421 | qDebug("not implemented: "); |
408 | } | 422 | } |
409 | 423 | ||
410 | void MainWindow::slotDeleteMail() | 424 | void MainWindow::slotDeleteMail() |
411 | { | 425 | { |
412 | qDebug("not implemented: "); | 426 | qDebug("not implemented: "); |
413 | } | 427 | } |
414 | 428 | ||
415 | void MainWindow::mailHold(int, QListViewItem *,const QPoint&,int ) | 429 | void MainWindow::mailHold(int, QListViewItem *,const QPoint&,int ) |
416 | { | 430 | { |
417 | qDebug("not implemented: "); | 431 | qDebug("not implemented: "); |
418 | } | 432 | } |
419 | 433 | ||
420 | void MainWindow::slotSendQueued() | 434 | void MainWindow::slotSendQueued() |
421 | { | 435 | { |
422 | qDebug("not implemented: "); | 436 | qDebug("not implemented: "); |
423 | } | 437 | } |
424 | 438 | ||
425 | void MainWindow::slotEditAccounts() | 439 | void MainWindow::slotEditAccounts() |
426 | { | 440 | { |
427 | qDebug("not implemented: "); | 441 | qDebug("not implemented: "); |
428 | } | 442 | } |
429 | 443 | ||
430 | void MainWindow::slotComposeMail() | 444 | void MainWindow::slotComposeMail() |
431 | { | 445 | { |
432 | qDebug("not implemented: "); | 446 | qDebug("not implemented: "); |
433 | } | 447 | } |