summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--bin/kdepim/WhatsNew.txt1
-rw-r--r--pwmanager/pwmanager/pwm.cpp13
2 files changed, 13 insertions, 1 deletions
diff --git a/bin/kdepim/WhatsNew.txt b/bin/kdepim/WhatsNew.txt
index a7b8530..d4b7971 100644
--- a/bin/kdepim/WhatsNew.txt
+++ b/bin/kdepim/WhatsNew.txt
@@ -1,105 +1,106 @@
1Info about the changes in new versions of KDE-Pim/Pi 1Info about the changes in new versions of KDE-Pim/Pi
2 2
3********** VERSION 2.0.15 ************ 3********** VERSION 2.0.15 ************
4 4
5PwM/Pi: 5PwM/Pi:
6Added keyboard shorcuts for 6Added keyboard shorcuts for
7- toggling summary view (space bar) 7- toggling summary view (space bar)
8- delete item (delete + backspace key) 8- delete item (delete + backspace key)
9- add new item ( i + n key) 9- add new item ( i + n key)
10Fixed length of info in the title.
10 11
11KO/Pi-KA/Pi: 12KO/Pi-KA/Pi:
12Changed "ME" menu bar entry to an icon. 13Changed "ME" menu bar entry to an icon.
13 14
14KO/Pi: 15KO/Pi:
15Fixed two minor bugs in displaying todos. 16Fixed two minor bugs in displaying todos.
16 17
17 18
18********** VERSION 2.0.14 ************ 19********** VERSION 2.0.14 ************
19 20
20Made Passwordmanager PwM/Pi more userfriendly: 21Made Passwordmanager PwM/Pi more userfriendly:
21Rearranged some toolbar icons, optimized setting of focus, fixed layout problems and more. 22Rearranged some toolbar icons, optimized setting of focus, fixed layout problems and more.
22Fixed bug in KO/Pi todo printing. 23Fixed bug in KO/Pi todo printing.
23Made Qtopia calendar import possible on desktop . 24Made Qtopia calendar import possible on desktop .
24 25
25********** VERSION 2.0.13 ************ 26********** VERSION 2.0.13 ************
26 27
27Fixed a problem in the addressee select dialog and made it more user friendly by adding a minimize splitter. 28Fixed a problem in the addressee select dialog and made it more user friendly by adding a minimize splitter.
28 29
29In the search dialog you can switch now the focus from search line edit to the list view by pressing key "arrow down". 30In the search dialog you can switch now the focus from search line edit to the list view by pressing key "arrow down".
30 31
31OM/Pi: 32OM/Pi:
32Fixed a refresh problem of outgoing/sent/sendfailed folders after sending mails. 33Fixed a refresh problem of outgoing/sent/sendfailed folders after sending mails.
33Added missing German translation. 34Added missing German translation.
34Added warning if path is specified in local folder settings of account config. 35Added warning if path is specified in local folder settings of account config.
35 36
36********** VERSION 2.0.12 ************ 37********** VERSION 2.0.12 ************
37 38
38KO/Pi: 39KO/Pi:
39Fixed a bug in todo start/due date handling for non recurring todos with a start and due date. 40Fixed a bug in todo start/due date handling for non recurring todos with a start and due date.
40Fixed some layout problems in the KO/Pi agenda view when there were many conflicting itmes. 41Fixed some layout problems in the KO/Pi agenda view when there were many conflicting itmes.
41Fixed several problems of the keyboard focus in the desktop versions when opening the search dialog/event viewer. 42Fixed several problems of the keyboard focus in the desktop versions when opening the search dialog/event viewer.
42 43
43Fixed problem in pi-sync mode when wrong password was sent. 44Fixed problem in pi-sync mode when wrong password was sent.
44 45
45OM/Pi: 46OM/Pi:
46Fixed a crash when displaying mails with "Show mail as html" was checked in the config. 47Fixed a crash when displaying mails with "Show mail as html" was checked in the config.
47Added a check before displaying the mail if the mail is in html format, if "Show mail as html" is enabled. 48Added a check before displaying the mail if the mail is in html format, if "Show mail as html" is enabled.
48 49
49********** VERSION 2.0.11 ************ 50********** VERSION 2.0.11 ************
50 51
51Fixed some problems in pi-sync mode 52Fixed some problems in pi-sync mode
52(e.g. details of events were not synced properly) 53(e.g. details of events were not synced properly)
53 54
54********** VERSION 2.0.10 ************ 55********** VERSION 2.0.10 ************
55 56
56KO/Pi: 57KO/Pi:
57In the desktop versions the context menu in the search dialog was broken after introducing the What'sThis info for the list view. 58In the desktop versions the context menu in the search dialog was broken after introducing the What'sThis info for the list view.
58This is fixed. 59This is fixed.
59Changed the search dialog a bit to make it more user friendly. 60Changed the search dialog a bit to make it more user friendly.
60(E.g.: Removed message box about "no items found" and set key focus to search line edit after search). 61(E.g.: Removed message box about "no items found" and set key focus to search line edit after search).
61 62
62Added config option to hide the week number in KO/Pi toolbar. 63Added config option to hide the week number in KO/Pi toolbar.
63 64
64********** VERSION 2.0.9 ************ 65********** VERSION 2.0.9 ************
65 66
66Made month view icons for multiday events a bit nicer. 67Made month view icons for multiday events a bit nicer.
67Some minor fixes in KO/Pi 68Some minor fixes in KO/Pi
68(e.g. go to today did not work for new week view properly). 69(e.g. go to today did not work for new week view properly).
69 70
70 71
71********** VERSION 2.0.8 ************ 72********** VERSION 2.0.8 ************
72 73
73Fixed a problem in dependency info in the ipk files for the Zaurus. 74Fixed a problem in dependency info in the ipk files for the Zaurus.
74 75
75Added icon for the stealth new week view and made navigation more user friendly in monthview by adding a prev/next week button to the navigator bar. 76Added icon for the stealth new week view and made navigation more user friendly in monthview by adding a prev/next week button to the navigator bar.
76 77
77Added a "go today" button to the datepicker. 78Added a "go today" button to the datepicker.
78 79
79Added "created" and "last modified" to event/todo viewer (and What'sThis viewer) 80Added "created" and "last modified" to event/todo viewer (and What'sThis viewer)
80and made it configureable to show these values. 81and made it configureable to show these values.
81 82
82Fixed a problem for events (from external iCal files) that do have a duration but no end date. 83Fixed a problem for events (from external iCal files) that do have a duration but no end date.
83 84
84 85
85********** VERSION 2.0.7 ************ 86********** VERSION 2.0.7 ************
86 87
87Added global application font settings 88Added global application font settings
88(for all KDE-Pim/Pi apps) to the general settings. 89(for all KDE-Pim/Pi apps) to the general settings.
89 90
90Fixed a problem in OM/Pi when trying to login to some IMAP servers 91Fixed a problem in OM/Pi when trying to login to some IMAP servers
91(like the IMAP server of Apple: mail.mac.com ) 92(like the IMAP server of Apple: mail.mac.com )
92 93
93Added recurring todos to KO/Pi. 94Added recurring todos to KO/Pi.
94 95
95 96
96********** VERSION 2.0.6 ************ 97********** VERSION 2.0.6 ************
97 98
98Some bugfixes in the pi-sync mode. 99Some bugfixes in the pi-sync mode.
99Added German translation for pi-sync mode. 100Added German translation for pi-sync mode.
100 101
101KO/Pi: 102KO/Pi:
102Made the todolist using alternate background. 103Made the todolist using alternate background.
103 104
104Other minor fixes in KO/Pi. 105Other minor fixes in KO/Pi.
105 106
diff --git a/pwmanager/pwmanager/pwm.cpp b/pwmanager/pwmanager/pwm.cpp
index a751fce..9c8d12d 100644
--- a/pwmanager/pwmanager/pwm.cpp
+++ b/pwmanager/pwmanager/pwm.cpp
@@ -396,193 +396,204 @@ void PwM::initMenubar()
396 396
397 helpPopup->insertItem(i18n("&About PwManager"), this, 397 helpPopup->insertItem(i18n("&About PwManager"), this,
398 SLOT(createAboutData_slot()), 0, 398 SLOT(createAboutData_slot()), 0,
399 BUTTON_POPUP_HELP_ABOUT); 399 BUTTON_POPUP_HELP_ABOUT);
400 400
401 helpPopup->insertItem(i18n("&Sync HowTo"), this, 401 helpPopup->insertItem(i18n("&Sync HowTo"), this,
402 SLOT(syncHowTo_slot()), 0, 402 SLOT(syncHowTo_slot()), 0,
403 BUTTON_POPUP_HELP_SYNC); 403 BUTTON_POPUP_HELP_SYNC);
404 404
405 helpPopup->insertItem(i18n("&What's New"), this, 405 helpPopup->insertItem(i18n("&What's New"), this,
406 SLOT(whatsnew_slot()), 0, 406 SLOT(whatsnew_slot()), 0,
407 BUTTON_POPUP_HELP_WHATSNEW); 407 BUTTON_POPUP_HELP_WHATSNEW);
408 408
409#endif 409#endif
410 menuBar()->insertItem(i18n("&Help"), helpPopup); 410 menuBar()->insertItem(i18n("&Help"), helpPopup);
411 411
412} 412}
413 413
414void PwM::initToolbar() 414void PwM::initToolbar()
415{ 415{
416 KIconLoader* picons; 416 KIconLoader* picons;
417#ifndef PWM_EMBEDDED 417#ifndef PWM_EMBEDDED
418 KIconLoader icons; 418 KIconLoader icons;
419 picons = &icons; 419 picons = &icons;
420#else 420#else
421 picons = KGlobal::iconLoader(); 421 picons = KGlobal::iconLoader();
422#endif 422#endif
423 423
424#if 0 424#if 0
425 toolBar()->insertButton(picons->loadIcon("filenew", KIcon::Toolbar), 425 toolBar()->insertButton(picons->loadIcon("filenew", KIcon::Toolbar),
426 BUTTON_TOOL_NEW, SIGNAL(clicked(int)), this, 426 BUTTON_TOOL_NEW, SIGNAL(clicked(int)), this,
427 SLOT(new_slot()), true, i18n("New")); 427 SLOT(new_slot()), true, i18n("New"));
428#endif 428#endif
429 toolBar()->insertButton(picons->loadIcon("fileopen", KIcon::Toolbar), 429 toolBar()->insertButton(picons->loadIcon("fileopen", KIcon::Toolbar),
430 BUTTON_TOOL_OPEN, SIGNAL(clicked(int)), this, 430 BUTTON_TOOL_OPEN, SIGNAL(clicked(int)), this,
431 SLOT(open_slot()), true, i18n("Open")); 431 SLOT(open_slot()), true, i18n("Open"));
432 toolBar()->insertButton(picons->loadIcon("pencil", KIcon::Toolbar), 432 toolBar()->insertButton(picons->loadIcon("pencil", KIcon::Toolbar),
433 BUTTON_TOOL_ADD, SIGNAL(clicked(int)), this, 433 BUTTON_TOOL_ADD, SIGNAL(clicked(int)), this,
434 SLOT(addPwd_slot()), true, 434 SLOT(addPwd_slot()), true,
435 i18n("Add password")); 435 i18n("Add password"));
436 toolBar()->insertSeparator(); 436 toolBar()->insertSeparator();
437 437
438 toolBar()->insertButton(picons->loadIcon("find", KIcon::Toolbar), 438 toolBar()->insertButton(picons->loadIcon("find", KIcon::Toolbar),
439 BUTTON_TOOL_FIND, SIGNAL(clicked(int)), this, 439 BUTTON_TOOL_FIND, SIGNAL(clicked(int)), this,
440 SLOT(find_slot()), true, i18n("Find entry")); 440 SLOT(find_slot()), true, i18n("Find entry"));
441 toolBar()->insertSeparator(); 441 toolBar()->insertSeparator();
442 toolBar()->insertButton(picons->loadIcon("filesave", KIcon::Toolbar), 442 toolBar()->insertButton(picons->loadIcon("filesave", KIcon::Toolbar),
443 BUTTON_TOOL_SAVE, SIGNAL(clicked(int)), this, 443 BUTTON_TOOL_SAVE, SIGNAL(clicked(int)), this,
444 SLOT(save_slot()), true, i18n("Save")); 444 SLOT(save_slot()), true, i18n("Save"));
445#if 0 445#if 0
446 toolBar()->insertButton(picons->loadIcon("filesaveas", KIcon::Toolbar), 446 toolBar()->insertButton(picons->loadIcon("filesaveas", KIcon::Toolbar),
447 BUTTON_TOOL_SAVEAS, SIGNAL(clicked(int)), this, 447 BUTTON_TOOL_SAVEAS, SIGNAL(clicked(int)), this,
448 SLOT(saveAs_slot()), true, i18n("Save as")); 448 SLOT(saveAs_slot()), true, i18n("Save as"));
449#endif 449#endif
450 450
451 451
452#if 0 452#if 0
453 toolBar()->insertButton(picons->loadIcon("fileprint", KIcon::Toolbar), 453 toolBar()->insertButton(picons->loadIcon("fileprint", KIcon::Toolbar),
454 BUTTON_TOOL_PRINT, SIGNAL(clicked(int)), this, 454 BUTTON_TOOL_PRINT, SIGNAL(clicked(int)), this,
455 SLOT(print_slot()), true, i18n("Print...")); 455 SLOT(print_slot()), true, i18n("Print..."));
456#endif 456#endif
457 toolBar()->insertSeparator(); 457 toolBar()->insertSeparator();
458 toolBar()->insertButton(picons->loadIcon("edit", KIcon::Toolbar), 458 toolBar()->insertButton(picons->loadIcon("edit", KIcon::Toolbar),
459 BUTTON_TOOL_EDIT, SIGNAL(clicked(int)), this, 459 BUTTON_TOOL_EDIT, SIGNAL(clicked(int)), this,
460 SLOT(editPwd_slot()), true, 460 SLOT(editPwd_slot()), true,
461 i18n("Edit password")); 461 i18n("Edit password"));
462 toolBar()->insertButton(picons->loadIcon("editdelete", KIcon::Toolbar), 462 toolBar()->insertButton(picons->loadIcon("editdelete", KIcon::Toolbar),
463 BUTTON_TOOL_DEL, SIGNAL(clicked(int)), this, 463 BUTTON_TOOL_DEL, SIGNAL(clicked(int)), this,
464 SLOT(deletePwd_slot()), true, 464 SLOT(deletePwd_slot()), true,
465 i18n("Delete password")); 465 i18n("Delete password"));
466 toolBar()->insertSeparator(); 466 toolBar()->insertSeparator();
467 toolBar()->insertButton(picons->loadIcon("halfencrypted", KIcon::Toolbar), 467 toolBar()->insertButton(picons->loadIcon("halfencrypted", KIcon::Toolbar),
468 BUTTON_TOOL_LOCK, SIGNAL(clicked(int)), this, 468 BUTTON_TOOL_LOCK, SIGNAL(clicked(int)), this,
469 SLOT(lockWnd_slot()), true, 469 SLOT(lockWnd_slot()), true,
470 i18n("Lock all entries")); 470 i18n("Lock all entries"));
471 toolBar()->insertButton(picons->loadIcon("encrypted", KIcon::Toolbar), 471 toolBar()->insertButton(picons->loadIcon("encrypted", KIcon::Toolbar),
472 BUTTON_TOOL_DEEPLOCK, SIGNAL(clicked(int)), this, 472 BUTTON_TOOL_DEEPLOCK, SIGNAL(clicked(int)), this,
473 SLOT(deepLockWnd_slot()), true, 473 SLOT(deepLockWnd_slot()), true,
474 i18n("Deep-Lock all entries")); 474 i18n("Deep-Lock all entries"));
475 toolBar()->insertButton(picons->loadIcon("decrypted", KIcon::Toolbar), 475 toolBar()->insertButton(picons->loadIcon("decrypted", KIcon::Toolbar),
476 BUTTON_TOOL_UNLOCK, SIGNAL(clicked(int)), this, 476 BUTTON_TOOL_UNLOCK, SIGNAL(clicked(int)), this,
477 SLOT(unlockWnd_slot()), true, 477 SLOT(unlockWnd_slot()), true,
478 i18n("Unlock all entries")); 478 i18n("Unlock all entries"));
479} 479}
480 480
481void PwM::initMetrics() 481void PwM::initMetrics()
482{ 482{
483 QSize s = conf()->confWndMainWndSize(); 483 QSize s = conf()->confWndMainWndSize();
484 if (s.isValid()) 484 if (s.isValid())
485 resize(s); 485 resize(s);
486 else 486 else
487 resize(DEFAULT_SIZE); 487 resize(DEFAULT_SIZE);
488} 488}
489 489
490void PwM::updateCaption() 490void PwM::updateCaption()
491{ 491{
492 setPlainCaption(curDoc()->getTitle() + " - " PROG_NAME " " PACKAGE_VER); 492 QString s = curDoc()->getTitle();
493 int maxlen = 50;
494 if ( QApplication::desktop()->width() < 640 ) {
495 if ( QApplication::desktop()->width() < 320 )
496 maxlen = 22;
497 else
498 maxlen = 35;
499 }
500 if ( s.length() > maxlen ) {
501 s = "..."+s.right(maxlen -3);
502 }
503 setPlainCaption( s );
493} 504}
494 505
495void PwM::hideEvent(QHideEvent *) 506void PwM::hideEvent(QHideEvent *)
496{ 507{
497 if (isMinimized()) { 508 if (isMinimized()) {
498 if (init->tray()) { 509 if (init->tray()) {
499 forceMinimizeToTray = true; 510 forceMinimizeToTray = true;
500 close(); 511 close();
501 } 512 }
502 int mmlock = conf()->confGlobMinimizeLock(); 513 int mmlock = conf()->confGlobMinimizeLock();
503 switch (mmlock) { 514 switch (mmlock) {
504 case 0: // don't lock anything 515 case 0: // don't lock anything
505 break; 516 break;
506 case 1: {// normal lock 517 case 1: {// normal lock
507 curDoc()->lockAll(true); 518 curDoc()->lockAll(true);
508 break; 519 break;
509 } case 2: {// deep-lock 520 } case 2: {// deep-lock
510 curDoc()->deepLock(); 521 curDoc()->deepLock();
511 break; 522 break;
512 } default: 523 } default:
513 WARN(); 524 WARN();
514 } 525 }
515 } 526 }
516} 527}
517 528
518void PwM::setVirgin(bool v) 529void PwM::setVirgin(bool v)
519{ 530{
520 if (virgin == v) 531 if (virgin == v)
521 return; 532 return;
522 virgin = v; 533 virgin = v;
523 filePopup->setItemEnabled(BUTTON_POPUP_FILE_SAVE, !v); 534 filePopup->setItemEnabled(BUTTON_POPUP_FILE_SAVE, !v);
524 filePopup->setItemEnabled(BUTTON_POPUP_FILE_SAVEAS, !v); 535 filePopup->setItemEnabled(BUTTON_POPUP_FILE_SAVEAS, !v);
525 filePopup->setItemEnabled(BUTTON_POPUP_FILE_EXPORT, !v); 536 filePopup->setItemEnabled(BUTTON_POPUP_FILE_EXPORT, !v);
526 filePopup->setItemEnabled(BUTTON_POPUP_FILE_PRINT, !v); 537 filePopup->setItemEnabled(BUTTON_POPUP_FILE_PRINT, !v);
527 managePopup->setItemEnabled(BUTTON_POPUP_MANAGE_EDIT, !v); 538 managePopup->setItemEnabled(BUTTON_POPUP_MANAGE_EDIT, !v);
528 managePopup->setItemEnabled(BUTTON_POPUP_MANAGE_DEL, !v); 539 managePopup->setItemEnabled(BUTTON_POPUP_MANAGE_DEL, !v);
529 managePopup->setItemEnabled(BUTTON_POPUP_MANAGE_CHANGEMP, !v); 540 managePopup->setItemEnabled(BUTTON_POPUP_MANAGE_CHANGEMP, !v);
530 viewPopup->setItemEnabled(BUTTON_POPUP_VIEW_LOCK, !v); 541 viewPopup->setItemEnabled(BUTTON_POPUP_VIEW_LOCK, !v);
531 viewPopup->setItemEnabled(BUTTON_POPUP_VIEW_DEEPLOCK, !v); 542 viewPopup->setItemEnabled(BUTTON_POPUP_VIEW_DEEPLOCK, !v);
532 viewPopup->setItemEnabled(BUTTON_POPUP_VIEW_UNLOCK, !v); 543 viewPopup->setItemEnabled(BUTTON_POPUP_VIEW_UNLOCK, !v);
533 viewPopup->setItemEnabled(BUTTON_POPUP_VIEW_FIND, !v); 544 viewPopup->setItemEnabled(BUTTON_POPUP_VIEW_FIND, !v);
534 toolBar()->setItemEnabled(BUTTON_TOOL_SAVE, !v); 545 toolBar()->setItemEnabled(BUTTON_TOOL_SAVE, !v);
535 toolBar()->setItemEnabled(BUTTON_TOOL_SAVEAS, !v); 546 toolBar()->setItemEnabled(BUTTON_TOOL_SAVEAS, !v);
536 toolBar()->setItemEnabled(BUTTON_TOOL_PRINT, !v); 547 toolBar()->setItemEnabled(BUTTON_TOOL_PRINT, !v);
537 toolBar()->setItemEnabled(BUTTON_TOOL_EDIT, !v); 548 toolBar()->setItemEnabled(BUTTON_TOOL_EDIT, !v);
538 toolBar()->setItemEnabled(BUTTON_TOOL_DEL, !v); 549 toolBar()->setItemEnabled(BUTTON_TOOL_DEL, !v);
539 toolBar()->setItemEnabled(BUTTON_TOOL_LOCK, !v); 550 toolBar()->setItemEnabled(BUTTON_TOOL_LOCK, !v);
540 toolBar()->setItemEnabled(BUTTON_TOOL_DEEPLOCK, !v); 551 toolBar()->setItemEnabled(BUTTON_TOOL_DEEPLOCK, !v);
541 toolBar()->setItemEnabled(BUTTON_TOOL_UNLOCK, !v); 552 toolBar()->setItemEnabled(BUTTON_TOOL_UNLOCK, !v);
542 toolBar()->setItemEnabled(BUTTON_TOOL_FIND, !v); 553 toolBar()->setItemEnabled(BUTTON_TOOL_FIND, !v);
543} 554}
544 555
545void PwM::new_slot() 556void PwM::new_slot()
546{ 557{
547 init->createMainWnd(); 558 init->createMainWnd();
548} 559}
549 560
550//US ENH 561//US ENH
551void PwM::open_slot() 562void PwM::open_slot()
552{ 563{
553 open_slot(""); 564 open_slot("");
554} 565}
555 566
556void PwM::open_slot(QString fn) 567void PwM::open_slot(QString fn)
557{ 568{
558 openDoc(fn); 569 openDoc(fn);
559} 570}
560 571
561PwMDoc * PwM::openDoc(QString filename, bool openDeepLocked) 572PwMDoc * PwM::openDoc(QString filename, bool openDeepLocked)
562{ 573{
563 if (!isVirgin()) { 574 if (!isVirgin()) {
564 // open the document in a new window. 575 // open the document in a new window.
565 PwM *newInstance = init->createMainWnd(); 576 PwM *newInstance = init->createMainWnd();
566 PwMDoc *newDoc = newInstance->openDoc(filename, openDeepLocked); 577 PwMDoc *newDoc = newInstance->openDoc(filename, openDeepLocked);
567 if (!newDoc) { 578 if (!newDoc) {
568 newInstance->setForceQuit(true); 579 newInstance->setForceQuit(true);
569 delete_and_null(newInstance); 580 delete_and_null(newInstance);
570 } 581 }
571 return newDoc; 582 return newDoc;
572 } 583 }
573 584
574 if (!curDoc()->openDocUi(curDoc(), filename, openDeepLocked)) 585 if (!curDoc()->openDocUi(curDoc(), filename, openDeepLocked))
575 return 0; 586 return 0;
576 showStatMsg(i18n("Successfully opened file.")); 587 showStatMsg(i18n("Successfully opened file."));
577 updateCaption(); 588 updateCaption();
578 setVirgin(false); 589 setVirgin(false);
579 return curDoc(); 590 return curDoc();
580} 591}
581 592
582PwMView * PwM::makeNewListView(PwMDoc *doc) 593PwMView * PwM::makeNewListView(PwMDoc *doc)
583{ 594{
584 PwMView *ret = new PwMView(this, this, doc); 595 PwMView *ret = new PwMView(this, this, doc);
585 ret->setFont(conf()->confGlobEntryFont()); 596 ret->setFont(conf()->confGlobEntryFont());
586 ret->show(); 597 ret->show();
587 return ret; 598 return ret;
588} 599}