-rw-r--r-- | bin/kdepim/WhatsNew.txt | 3 | ||||
-rw-r--r-- | korganizer/mainwindow.cpp | 24 |
2 files changed, 20 insertions, 7 deletions
diff --git a/bin/kdepim/WhatsNew.txt b/bin/kdepim/WhatsNew.txt index 21f5b2f..6c4cb7b 100644 --- a/bin/kdepim/WhatsNew.txt +++ b/bin/kdepim/WhatsNew.txt | |||
@@ -1,105 +1,108 @@ | |||
1 | Info about the changes in new versions of KDE-Pim/Pi | 1 | Info about the changes in new versions of KDE-Pim/Pi |
2 | 2 | ||
3 | ********** VERSION 2.0.0 ************ | 3 | ********** VERSION 2.0.0 ************ |
4 | 4 | ||
5 | Stable release 2.0.0! | ||
6 | |||
5 | KO/Pi: | 7 | KO/Pi: |
6 | Fixed problem in edit dialog recreation at startup. | 8 | Fixed problem in edit dialog recreation at startup. |
7 | Made "toggle view*" menu items enabled context sensitive. | 9 | Made "toggle view*" menu items enabled context sensitive. |
8 | Changed agenda size menu to items 1-10. | 10 | Changed agenda size menu to items 1-10. |
9 | Made it possible to change agenda size quickly by pressing mouse on timelabels in agenda view and move mouse up/down. | 11 | Made it possible to change agenda size quickly by pressing mouse on timelabels in agenda view and move mouse up/down. |
12 | Usebility enhancements in the KO/Pi menus. | ||
10 | OM/Pi: | 13 | OM/Pi: |
11 | Added three info lines to display subject, from and to of selected mails. | 14 | Added three info lines to display subject, from and to of selected mails. |
12 | 15 | ||
13 | ********** VERSION 1.9.20 ************ | 16 | ********** VERSION 1.9.20 ************ |
14 | 17 | ||
15 | KO/Pi: | 18 | KO/Pi: |
16 | Added for the "dislplay one day" agenda mode | 19 | Added for the "dislplay one day" agenda mode |
17 | info in the caption and in the day lables: | 20 | info in the caption and in the day lables: |
18 | Now it is displayed, if the selected day is from "day before yesterday" | 21 | Now it is displayed, if the selected day is from "day before yesterday" |
19 | to "day after tomorrow". | 22 | to "day after tomorrow". |
20 | Made it possible to delete a Todo, which has sub-todos. | 23 | Made it possible to delete a Todo, which has sub-todos. |
21 | Fixed two small problems in the todo view. | 24 | Fixed two small problems in the todo view. |
22 | Added missing German translation for filter edit and print dialog. | 25 | Added missing German translation for filter edit and print dialog. |
23 | Made search dialog closeable by cancel key. | 26 | Made search dialog closeable by cancel key. |
24 | 27 | ||
25 | Made it possible to select in the date picker the (ligt grey ) | 28 | Made it possible to select in the date picker the (ligt grey ) |
26 | dates of the prev./next month with the mouse. | 29 | dates of the prev./next month with the mouse. |
27 | 30 | ||
28 | OM/Pi: | 31 | OM/Pi: |
29 | "Delete mail" icon in main window now deletes all selected mails. | 32 | "Delete mail" icon in main window now deletes all selected mails. |
30 | Fixed the problem, that the state flag of imap mails was ignored. | 33 | Fixed the problem, that the state flag of imap mails was ignored. |
31 | Now mails with "FLAG_SEEN" on the imap server get no icon in the list view | 34 | Now mails with "FLAG_SEEN" on the imap server get no icon in the list view |
32 | to indecate that they are already seen. | 35 | to indecate that they are already seen. |
33 | Fixed the problem that the body of some mails was not displayed in the | 36 | Fixed the problem that the body of some mails was not displayed in the |
34 | mail viewer when fetching them from the imap server directly to read them. | 37 | mail viewer when fetching them from the imap server directly to read them. |
35 | Made it (configurable) possible to show the "To:" field in the list view. | 38 | Made it (configurable) possible to show the "To:" field in the list view. |
36 | Added to the mail viewer the option "View Source" to make it possible to see the raw mail data. | 39 | Added to the mail viewer the option "View Source" to make it possible to see the raw mail data. |
37 | Added a "Download Mail" button to the mail viewer to quickly download the viewed mail to the | 40 | Added a "Download Mail" button to the mail viewer to quickly download the viewed mail to the |
38 | local storage folder (specified in account settings) of the account of the mail. | 41 | local storage folder (specified in account settings) of the account of the mail. |
39 | Removed some memory leaks in OM/Pi. | 42 | Removed some memory leaks in OM/Pi. |
40 | 43 | ||
41 | 44 | ||
42 | ********** VERSION 1.9.19 ************ | 45 | ********** VERSION 1.9.19 ************ |
43 | 46 | ||
44 | Added a lot of missing translations to KA/Pi, | 47 | Added a lot of missing translations to KA/Pi, |
45 | Added some missing translations to KO/Pi and OM/Pi. | 48 | Added some missing translations to KO/Pi and OM/Pi. |
46 | 49 | ||
47 | Fixed some minor problems in KA/Pi + KO/Pi. | 50 | Fixed some minor problems in KA/Pi + KO/Pi. |
48 | 51 | ||
49 | Fixed a crash when closing PwM/Pi. | 52 | Fixed a crash when closing PwM/Pi. |
50 | Added German translation for PwM/Pi. | 53 | Added German translation for PwM/Pi. |
51 | 54 | ||
52 | Made view change and Month View update faster in KO/Pi. | 55 | Made view change and Month View update faster in KO/Pi. |
53 | 56 | ||
54 | 57 | ||
55 | ********** VERSION 1.9.18 ************ | 58 | ********** VERSION 1.9.18 ************ |
56 | 59 | ||
57 | FYI: The VERSION 1.9.17 was a testing release only. | 60 | FYI: The VERSION 1.9.17 was a testing release only. |
58 | Please read the changelog of VERSION 1.9.17 as well. | 61 | Please read the changelog of VERSION 1.9.17 as well. |
59 | 62 | ||
60 | Cleaned up the syncing config dialog. | 63 | Cleaned up the syncing config dialog. |
61 | Added sync config options for date range for events. | 64 | Added sync config options for date range for events. |
62 | Added sync config options for filters on incoming data. | 65 | Added sync config options for filters on incoming data. |
63 | Added sync config options for filters on outgoing data. | 66 | Added sync config options for filters on outgoing data. |
64 | Please read the updated SyncHowTo about the new filter settings. | 67 | Please read the updated SyncHowTo about the new filter settings. |
65 | These filter settings make it now possible to sync with shared | 68 | These filter settings make it now possible to sync with shared |
66 | calendars without writing back private or confidential data | 69 | calendars without writing back private or confidential data |
67 | (via the outgoing filters). | 70 | (via the outgoing filters). |
68 | To sync only with particular parts of a shared calendar, | 71 | To sync only with particular parts of a shared calendar, |
69 | the incoming filter settings can be used. | 72 | the incoming filter settings can be used. |
70 | An example can be found in the SyncHowTo. | 73 | An example can be found in the SyncHowTo. |
71 | Same for shared addressbooks. | 74 | Same for shared addressbooks. |
72 | 75 | ||
73 | Added a setting for the global kdepim data storage. | 76 | Added a setting for the global kdepim data storage. |
74 | Usually the data is stored in (yourhomedir/kdepim). | 77 | Usually the data is stored in (yourhomedir/kdepim). |
75 | Now you can set in the Global config dialog TAB, subTAB "Data storage path" | 78 | Now you can set in the Global config dialog TAB, subTAB "Data storage path" |
76 | a directory where all the kdepim data is stored. | 79 | a directory where all the kdepim data is stored. |
77 | That makes it easy to save all kdepim data on a SD card on the Z, for example. | 80 | That makes it easy to save all kdepim data on a SD card on the Z, for example. |
78 | 81 | ||
79 | KO/Pi: | 82 | KO/Pi: |
80 | The timeedit input has a pulldown list for times. | 83 | The timeedit input has a pulldown list for times. |
81 | If opened, this pulldown list should now has the right time highlighted. | 84 | If opened, this pulldown list should now has the right time highlighted. |
82 | Added the possibility to exclude events/todos/journals in a filter. | 85 | Added the possibility to exclude events/todos/journals in a filter. |
83 | You should exclude journals, if you do not want them to sync with a public calendar. | 86 | You should exclude journals, if you do not want them to sync with a public calendar. |
84 | 87 | ||
85 | KA/Pi: | 88 | KA/Pi: |
86 | Added the possibility to in/exclude public/private/confidential contacts to a filter. | 89 | Added the possibility to in/exclude public/private/confidential contacts to a filter. |
87 | If you have already defined filterrules in KA/Pi you have to adjust them all by setting the "include public/private/confidential" property manually. Sorry for that ... | 90 | If you have already defined filterrules in KA/Pi you have to adjust them all by setting the "include public/private/confidential" property manually. Sorry for that ... |
88 | Added printing of card view and details view on desktop. | 91 | Added printing of card view and details view on desktop. |
89 | Printing of list view is not working... | 92 | Printing of list view is not working... |
90 | Added button for removing pictures in contact editor. | 93 | Added button for removing pictures in contact editor. |
91 | Parsing data fix of KA/Pi version 1.9.17. | 94 | Parsing data fix of KA/Pi version 1.9.17. |
92 | Fixed the "parse name automatically" problem of KA/Pi version 1.9.17. | 95 | Fixed the "parse name automatically" problem of KA/Pi version 1.9.17. |
93 | Fixed some syncing merging problems. | 96 | Fixed some syncing merging problems. |
94 | 97 | ||
95 | 98 | ||
96 | ********** VERSION 1.9.17 ************ | 99 | ********** VERSION 1.9.17 ************ |
97 | 100 | ||
98 | KO/Pi: | 101 | KO/Pi: |
99 | Fixed that tooltips were not updated after moving an item in agenda view. | 102 | Fixed that tooltips were not updated after moving an item in agenda view. |
100 | Fixed a bug in sorting start date for recurring events in list view. | 103 | Fixed a bug in sorting start date for recurring events in list view. |
101 | Changed the left button in todo viewer from "Agenda" to "Set completed". | 104 | Changed the left button in todo viewer from "Agenda" to "Set completed". |
102 | This makes it possible to change a todo in the What's Next View quickly to the completed state without leaving the What's Next View. | 105 | This makes it possible to change a todo in the What's Next View quickly to the completed state without leaving the What's Next View. |
103 | Added more info in the todo viewer: Startdate, parent/sub todos. | 106 | Added more info in the todo viewer: Startdate, parent/sub todos. |
104 | 107 | ||
105 | 108 | ||
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index 950d2ec..3feb4ab 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp | |||
@@ -430,433 +430,441 @@ void MainWindow::recieve( const QCString& cmsg, const QByteArray& data ) | |||
430 | if ( cmsg == "-newCountdown" ) { | 430 | if ( cmsg == "-newCountdown" ) { |
431 | qDebug("newCountdown "); | 431 | qDebug("newCountdown "); |
432 | 432 | ||
433 | } | 433 | } |
434 | QString msg ; | 434 | QString msg ; |
435 | QString allmsg = cmsg; | 435 | QString allmsg = cmsg; |
436 | while ( allmsg.length() > 0 ) { | 436 | while ( allmsg.length() > 0 ) { |
437 | int nextC = allmsg.find( "-", 1 ); | 437 | int nextC = allmsg.find( "-", 1 ); |
438 | if ( nextC == -1 ) { | 438 | if ( nextC == -1 ) { |
439 | msg = allmsg; | 439 | msg = allmsg; |
440 | allmsg = ""; | 440 | allmsg = ""; |
441 | } else{ | 441 | } else{ |
442 | msg = allmsg.left( nextC ); | 442 | msg = allmsg.left( nextC ); |
443 | allmsg = allmsg.mid( nextC, allmsg.length()-nextC ); | 443 | allmsg = allmsg.mid( nextC, allmsg.length()-nextC ); |
444 | } | 444 | } |
445 | //qDebug("msg: %s all: %s ", msg.latin1(), allmsg.latin1() ); | 445 | //qDebug("msg: %s all: %s ", msg.latin1(), allmsg.latin1() ); |
446 | if ( msg == "-newEvent" ) { | 446 | if ( msg == "-newEvent" ) { |
447 | mView->newEvent(); | 447 | mView->newEvent(); |
448 | } | 448 | } |
449 | if ( msg == "-newTodo" ) { | 449 | if ( msg == "-newTodo" ) { |
450 | mView->newTodo(); | 450 | mView->newTodo(); |
451 | 451 | ||
452 | } | 452 | } |
453 | if ( msg == "-showWN" ) { | 453 | if ( msg == "-showWN" ) { |
454 | mView->viewManager()->showWhatsNextView(); | 454 | mView->viewManager()->showWhatsNextView(); |
455 | } | 455 | } |
456 | if ( msg == "-showTodo" ) { | 456 | if ( msg == "-showTodo" ) { |
457 | mView->viewManager()->showTodoView(); | 457 | mView->viewManager()->showTodoView(); |
458 | } | 458 | } |
459 | if ( msg == "-showList" ) { | 459 | if ( msg == "-showList" ) { |
460 | mView->viewManager()->showListView(); | 460 | mView->viewManager()->showListView(); |
461 | } | 461 | } |
462 | else if ( msg == "-showDay" ) { | 462 | else if ( msg == "-showDay" ) { |
463 | mView->viewManager()->showDayView(); | 463 | mView->viewManager()->showDayView(); |
464 | } | 464 | } |
465 | else if ( msg == "-showWWeek" ) { | 465 | else if ( msg == "-showWWeek" ) { |
466 | mView->viewManager()->showWorkWeekView(); | 466 | mView->viewManager()->showWorkWeekView(); |
467 | } | 467 | } |
468 | else if ( msg == "-ringSync" ) { | 468 | else if ( msg == "-ringSync" ) { |
469 | mSyncManager->multiSync( false ); | 469 | mSyncManager->multiSync( false ); |
470 | } | 470 | } |
471 | else if ( msg == "-showWeek" ) { | 471 | else if ( msg == "-showWeek" ) { |
472 | mView->viewManager()->showWeekView(); | 472 | mView->viewManager()->showWeekView(); |
473 | } | 473 | } |
474 | else if ( msg == "-showTodo" ) { | 474 | else if ( msg == "-showTodo" ) { |
475 | mView->viewManager()->showTodoView(); | 475 | mView->viewManager()->showTodoView(); |
476 | } | 476 | } |
477 | else if ( msg == "-showJournal" ) { | 477 | else if ( msg == "-showJournal" ) { |
478 | mView->dateNavigator()->selectDates( 1 ); | 478 | mView->dateNavigator()->selectDates( 1 ); |
479 | mView->dateNavigator()->selectToday(); | 479 | mView->dateNavigator()->selectToday(); |
480 | mView->viewManager()->showJournalView(); | 480 | mView->viewManager()->showJournalView(); |
481 | } | 481 | } |
482 | else if ( msg == "-showKO" ) { | 482 | else if ( msg == "-showKO" ) { |
483 | mView->viewManager()->showNextXView(); | 483 | mView->viewManager()->showNextXView(); |
484 | } | 484 | } |
485 | else if ( msg == "-showWNext" || msg == "nextView()" ) { | 485 | else if ( msg == "-showWNext" || msg == "nextView()" ) { |
486 | mView->viewManager()->showWhatsNextView(); | 486 | mView->viewManager()->showWhatsNextView(); |
487 | } | 487 | } |
488 | else if ( msg == "-showNextXView" ) { | 488 | else if ( msg == "-showNextXView" ) { |
489 | mView->viewManager()->showNextXView(); | 489 | mView->viewManager()->showNextXView(); |
490 | } | 490 | } |
491 | 491 | ||
492 | 492 | ||
493 | } | 493 | } |
494 | 494 | ||
495 | showMaximized(); | 495 | showMaximized(); |
496 | raise(); | 496 | raise(); |
497 | } | 497 | } |
498 | 498 | ||
499 | QPixmap MainWindow::loadPixmap( QString name ) | 499 | QPixmap MainWindow::loadPixmap( QString name ) |
500 | { | 500 | { |
501 | return SmallIcon( name ); | 501 | return SmallIcon( name ); |
502 | 502 | ||
503 | } | 503 | } |
504 | void MainWindow::initActions() | 504 | void MainWindow::initActions() |
505 | { | 505 | { |
506 | //KOPrefs::instance()->mShowFullMenu | 506 | //KOPrefs::instance()->mShowFullMenu |
507 | iconToolBar->clear(); | 507 | iconToolBar->clear(); |
508 | KOPrefs *p = KOPrefs::instance(); | 508 | KOPrefs *p = KOPrefs::instance(); |
509 | //QPEMenuBar *menuBar1;// = new QPEMenuBar( iconToolBar ); | 509 | //QPEMenuBar *menuBar1;// = new QPEMenuBar( iconToolBar ); |
510 | 510 | ||
511 | QPopupMenu *viewMenu = new QPopupMenu( this ); | 511 | QPopupMenu *viewMenu = new QPopupMenu( this ); |
512 | QPopupMenu *actionMenu = new QPopupMenu( this ); | 512 | QPopupMenu *actionMenu = new QPopupMenu( this ); |
513 | QPopupMenu *importMenu = new QPopupMenu( this ); | 513 | QPopupMenu *importMenu = new QPopupMenu( this ); |
514 | selectFilterMenu = new QPopupMenu( this ); | 514 | selectFilterMenu = new QPopupMenu( this ); |
515 | selectFilterMenu->setCheckable( true ); | 515 | selectFilterMenu->setCheckable( true ); |
516 | syncMenu = new QPopupMenu( this ); | 516 | syncMenu = new QPopupMenu( this ); |
517 | configureAgendaMenu = new QPopupMenu( this ); | 517 | configureAgendaMenu = new QPopupMenu( this ); |
518 | configureToolBarMenu = new QPopupMenu( this ); | 518 | configureToolBarMenu = new QPopupMenu( this ); |
519 | QPopupMenu *helpMenu = new QPopupMenu( this ); | 519 | QPopupMenu *helpMenu = new QPopupMenu( this ); |
520 | if ( KOPrefs::instance()->mShowFullMenu ) { | 520 | if ( KOPrefs::instance()->mShowFullMenu ) { |
521 | QMenuBar *menuBar1; | 521 | QMenuBar *menuBar1; |
522 | menuBar1 = menuBar(); | 522 | menuBar1 = menuBar(); |
523 | menuBar1->insertItem( i18n("File"), importMenu ); | 523 | menuBar1->insertItem( i18n("File"), importMenu ); |
524 | menuBar1->insertItem( i18n("View"), viewMenu ); | 524 | menuBar1->insertItem( i18n("View"), viewMenu ); |
525 | menuBar1->insertItem( i18n("Actions"), actionMenu ); | 525 | menuBar1->insertItem( i18n("Actions"), actionMenu ); |
526 | #ifdef DESKTOP_VERSION | ||
526 | menuBar1->insertItem( i18n("Synchronize"), syncMenu ); | 527 | menuBar1->insertItem( i18n("Synchronize"), syncMenu ); |
527 | menuBar1->insertItem( i18n("AgendaSize"),configureAgendaMenu ); | 528 | menuBar1->insertItem( i18n("AgendaSize"),configureAgendaMenu ); |
529 | #else | ||
530 | menuBar1->insertItem( i18n("Sync"), syncMenu ); | ||
531 | menuBar1->insertItem( i18n("Agenda"),configureAgendaMenu ); | ||
532 | #endif | ||
528 | //menuBar1->insertItem( i18n("Toolbar"),configureToolBarMenu ); | 533 | //menuBar1->insertItem( i18n("Toolbar"),configureToolBarMenu ); |
529 | menuBar1->insertItem( i18n("Filter"),selectFilterMenu ); | 534 | menuBar1->insertItem( i18n("Filter"),selectFilterMenu ); |
530 | menuBar1->insertItem( i18n("Help"), helpMenu ); | 535 | menuBar1->insertItem( i18n("Help"), helpMenu ); |
531 | } else { | 536 | } else { |
532 | QPEMenuBar *menuBar1; | 537 | QPEMenuBar *menuBar1; |
533 | menuBar1 = new QPEMenuBar( iconToolBar ); | 538 | menuBar1 = new QPEMenuBar( iconToolBar ); |
534 | QPopupMenu *menuBar = new QPopupMenu( this ); | 539 | QPopupMenu *menuBar = new QPopupMenu( this ); |
535 | menuBar1->insertItem( i18n("ME"), menuBar); | 540 | menuBar1->insertItem( i18n("ME"), menuBar); |
536 | menuBar->insertItem( i18n("File"), importMenu ); | 541 | menuBar->insertItem( i18n("File"), importMenu ); |
537 | menuBar->insertItem( i18n("View"), viewMenu ); | 542 | menuBar->insertItem( i18n("View"), viewMenu ); |
538 | menuBar->insertItem( i18n("Actions"), actionMenu ); | 543 | menuBar->insertItem( i18n("Actions"), actionMenu ); |
539 | menuBar->insertItem( i18n("Synchronize"), syncMenu ); | 544 | menuBar->insertItem( i18n("Synchronize"), syncMenu ); |
540 | menuBar->insertItem( i18n("AgendaSize"),configureAgendaMenu ); | 545 | menuBar->insertItem( i18n("AgendaSize"),configureAgendaMenu ); |
541 | menuBar->insertItem( i18n("Toolbar"),configureToolBarMenu ); | 546 | menuBar->insertItem( i18n("Toolbar"),configureToolBarMenu ); |
542 | menuBar->insertItem( i18n("Filter"),selectFilterMenu ); | 547 | menuBar->insertItem( i18n("Filter"),selectFilterMenu ); |
543 | menuBar->insertItem( i18n("Help"), helpMenu ); | 548 | menuBar->insertItem( i18n("Help"), helpMenu ); |
544 | //menuBar1->setMaximumWidth( menuBar1->sizeHint().width() ); | 549 | //menuBar1->setMaximumWidth( menuBar1->sizeHint().width() ); |
545 | menuBar1->setMaximumSize( menuBar1->sizeHint( )); | 550 | menuBar1->setMaximumSize( menuBar1->sizeHint( )); |
546 | } | 551 | } |
547 | connect ( selectFilterMenu, SIGNAL( activated ( int ) ), this, SLOT (selectFilter( int ) ) ); | 552 | connect ( selectFilterMenu, SIGNAL( activated ( int ) ), this, SLOT (selectFilter( int ) ) ); |
548 | connect ( selectFilterMenu, SIGNAL( aboutToShow() ), this, SLOT (fillFilterMenu() ) ); | 553 | connect ( selectFilterMenu, SIGNAL( aboutToShow() ), this, SLOT (fillFilterMenu() ) ); |
549 | 554 | ||
550 | // ****************** | 555 | // ****************** |
551 | QAction *action; | 556 | QAction *action; |
552 | QIconSet icon; | 557 | QIconSet icon; |
553 | // QPopupMenu *configureMenu= new QPopupMenu( menuBar ); | 558 | // QPopupMenu *configureMenu= new QPopupMenu( menuBar ); |
554 | configureToolBarMenu->setCheckable( true ); | 559 | configureToolBarMenu->setCheckable( true ); |
555 | 560 | ||
556 | QString pathString = ""; | 561 | QString pathString = ""; |
557 | if ( !p->mToolBarMiniIcons ) { | 562 | if ( !p->mToolBarMiniIcons ) { |
558 | if ( QApplication::desktop()->width() < 480 ) | 563 | if ( QApplication::desktop()->width() < 480 ) |
559 | pathString += "icons16/"; | 564 | pathString += "icons16/"; |
560 | } else | 565 | } else |
561 | pathString += "iconsmini/"; | 566 | pathString += "iconsmini/"; |
562 | configureAgendaMenu->setCheckable( true ); | 567 | configureAgendaMenu->setCheckable( true ); |
563 | int iii ; | 568 | int iii ; |
564 | for ( iii = 1;iii<= 10 ;++iii ){ | 569 | for ( iii = 1;iii<= 10 ;++iii ){ |
565 | configureAgendaMenu->insertItem(i18n("Size %1").arg(iii), (iii+1)*2 ); | 570 | configureAgendaMenu->insertItem(i18n("Size %1").arg(iii), (iii+1)*2 ); |
566 | } | 571 | } |
567 | //configureMenu->insertItem( "AgendaSize",configureAgendaMenu ); | 572 | //configureMenu->insertItem( "AgendaSize",configureAgendaMenu ); |
568 | 573 | ||
569 | connect( configureAgendaMenu, SIGNAL( aboutToShow()), | 574 | connect( configureAgendaMenu, SIGNAL( aboutToShow()), |
570 | this, SLOT( showConfigureAgenda( ) ) ); | 575 | this, SLOT( showConfigureAgenda( ) ) ); |
571 | 576 | ||
572 | icon = loadPixmap( pathString + "configure" ); | 577 | icon = loadPixmap( pathString + "configure" ); |
573 | action = new QAction( i18n("Configure"),icon, i18n("Configure..."), 0, this ); | 578 | action = new QAction( i18n("Configure"),icon, i18n("Configure..."), 0, this ); |
574 | action->addTo( actionMenu ); | 579 | action->addTo( actionMenu ); |
575 | connect( action, SIGNAL( activated() ), | 580 | connect( action, SIGNAL( activated() ), |
576 | mView, SLOT( edit_options() ) ); | 581 | mView, SLOT( edit_options() ) ); |
577 | actionMenu->insertSeparator(); | 582 | actionMenu->insertSeparator(); |
578 | 583 | ||
579 | action = new QAction( i18n("Undo Delete"), i18n("Undo Delete..."), 0, this ); | 584 | action = new QAction( i18n("Undo Delete"), i18n("Undo Delete..."), 0, this ); |
580 | action->addTo( actionMenu ); | 585 | action->addTo( actionMenu ); |
581 | connect( action, SIGNAL( activated() ), | 586 | connect( action, SIGNAL( activated() ), |
582 | mView, SLOT( undo_delete() ) ); | 587 | mView, SLOT( undo_delete() ) ); |
583 | actionMenu->insertSeparator(); | 588 | actionMenu->insertSeparator(); |
584 | 589 | ||
585 | icon = loadPixmap( pathString + "newevent" ); | 590 | icon = loadPixmap( pathString + "newevent" ); |
586 | configureToolBarMenu->insertItem(i18n("Stretched TB"), 5 ); | 591 | configureToolBarMenu->insertItem(i18n("Stretched TB"), 5 ); |
587 | configureToolBarMenu->insertSeparator(); | 592 | configureToolBarMenu->insertSeparator(); |
588 | configureToolBarMenu->insertItem(icon, i18n("New Event..."), 10 ); | 593 | configureToolBarMenu->insertItem(icon, i18n("New Event..."), 10 ); |
589 | QAction* ne_action = new QAction( i18n("New Event..."), icon, i18n("New Event..."), 0, this ); | 594 | QAction* ne_action = new QAction( i18n("New Event..."), icon, i18n("New Event..."), 0, this ); |
590 | ne_action->addTo( actionMenu ); | 595 | ne_action->addTo( actionMenu ); |
591 | connect( ne_action, SIGNAL( activated() ), | 596 | connect( ne_action, SIGNAL( activated() ), |
592 | mView, SLOT( newEvent() ) ); | 597 | mView, SLOT( newEvent() ) ); |
593 | icon = loadPixmap( pathString + "newtodo" ); | 598 | icon = loadPixmap( pathString + "newtodo" ); |
594 | configureToolBarMenu->insertItem(icon, i18n("New Todo..."), 20 ); | 599 | configureToolBarMenu->insertItem(icon, i18n("New Todo..."), 20 ); |
595 | QAction* nt_action = new QAction( i18n("New Todo..."), icon, i18n("New Todo..."), 0, this ); | 600 | QAction* nt_action = new QAction( i18n("New Todo..."), icon, i18n("New Todo..."), 0, this ); |
596 | nt_action->addTo( actionMenu ); | 601 | nt_action->addTo( actionMenu ); |
597 | connect( nt_action, SIGNAL( activated() ), | 602 | connect( nt_action, SIGNAL( activated() ), |
598 | mView, SLOT( newTodo() ) ); | 603 | mView, SLOT( newTodo() ) ); |
604 | |||
605 | icon = loadPixmap( pathString + "today" ); | ||
606 | QAction* today_action = new QAction( i18n("Go to Today"), icon, i18n("Go to Today"), 0, this ); | ||
607 | today_action->addTo( viewMenu ); | ||
608 | connect( today_action, SIGNAL( activated() ), | ||
609 | mView, SLOT( goToday() ) ); | ||
610 | viewMenu->insertSeparator(); | ||
611 | |||
599 | icon = loadPixmap( pathString + "navi" ); | 612 | icon = loadPixmap( pathString + "navi" ); |
600 | action = new QAction( i18n("Toggle DateNavigator"), icon, i18n("Toggle DateNavigator"), 0, this ); | 613 | action = new QAction( i18n("Toggle DateNavigator"), icon, i18n("Toggle DateNavigator"), 0, this ); |
601 | action->addTo( viewMenu ); | 614 | action->addTo( viewMenu ); |
602 | connect( action, SIGNAL( activated() ), | 615 | connect( action, SIGNAL( activated() ), |
603 | mView, SLOT( toggleDateNavigatorWidget() ) ); | 616 | mView, SLOT( toggleDateNavigatorWidget() ) ); |
604 | mToggleNav = action ; | 617 | mToggleNav = action ; |
605 | icon = loadPixmap( pathString + "filter" ); | 618 | icon = loadPixmap( pathString + "filter" ); |
606 | action = new QAction( i18n("Toggle FilterView"), icon, i18n("Toggle FilterView"), 0, this ); | 619 | action = new QAction( i18n("Toggle FilterView"), icon, i18n("Toggle FilterView"), 0, this ); |
607 | action->addTo( viewMenu ); | 620 | action->addTo( viewMenu ); |
608 | connect( action, SIGNAL( activated() ), | 621 | connect( action, SIGNAL( activated() ), |
609 | mView, SLOT( toggleFilter() ) ); | 622 | mView, SLOT( toggleFilter() ) ); |
610 | mToggleFilter = action; | 623 | mToggleFilter = action; |
611 | icon = loadPixmap( pathString + "allday" ); | 624 | icon = loadPixmap( pathString + "allday" ); |
612 | action = new QAction( i18n("Toggle Allday"), icon,i18n("Toggle Allday"), 0, this ); | 625 | action = new QAction( i18n("Toggle Allday"), icon,i18n("Toggle Allday"), 0, this ); |
613 | action->addTo( viewMenu ); | 626 | action->addTo( viewMenu ); |
614 | connect( action, SIGNAL( activated() ), | 627 | connect( action, SIGNAL( activated() ), |
615 | mView, SLOT( toggleAllDaySize() ) ); | 628 | mView, SLOT( toggleAllDaySize() ) ); |
616 | mToggleAllday = action; | 629 | mToggleAllday = action; |
617 | 630 | ||
618 | 631 | ||
619 | connect( mView->viewManager(), SIGNAL( signalFullScreen( bool ) ), | 632 | connect( mView->viewManager(), SIGNAL( signalFullScreen( bool ) ), |
620 | mToggleNav, SLOT( setEnabled ( bool ) ) ); | 633 | mToggleNav, SLOT( setEnabled ( bool ) ) ); |
621 | connect( mView->viewManager(), SIGNAL( signalFullScreen( bool ) ), | 634 | connect( mView->viewManager(), SIGNAL( signalFullScreen( bool ) ), |
622 | mToggleFilter, SLOT( setEnabled ( bool ) ) ); | 635 | mToggleFilter, SLOT( setEnabled ( bool ) ) ); |
623 | connect( mView->viewManager(), SIGNAL( signalAgendaView( bool ) ), | 636 | connect( mView->viewManager(), SIGNAL( signalAgendaView( bool ) ), |
624 | mToggleAllday, SLOT( setEnabled ( bool ) ) ); | 637 | mToggleAllday, SLOT( setEnabled ( bool ) ) ); |
625 | 638 | ||
626 | viewMenu->insertSeparator(); | 639 | viewMenu->insertSeparator(); |
627 | icon = loadPixmap( pathString + "picker" ); | 640 | icon = loadPixmap( pathString + "picker" ); |
628 | action = new QAction( i18n("Date Picker"), icon, i18n("Date Picker"), 0, this ); | 641 | action = new QAction( i18n("Date Picker"), icon, i18n("Date Picker"), 0, this ); |
629 | action->addTo( viewMenu ); | 642 | action->addTo( viewMenu ); |
630 | connect( action, SIGNAL( activated() ), | 643 | connect( action, SIGNAL( activated() ), |
631 | mView, SLOT( showDatePicker() ) ); | 644 | mView, SLOT( showDatePicker() ) ); |
632 | action->addTo( iconToolBar ); | 645 | action->addTo( iconToolBar ); |
633 | viewMenu->insertSeparator(); | 646 | viewMenu->insertSeparator(); |
634 | icon = loadPixmap( pathString + "list" ); | 647 | icon = loadPixmap( pathString + "list" ); |
635 | configureToolBarMenu->insertItem(icon, i18n("List View"), 30 ); | 648 | configureToolBarMenu->insertItem(icon, i18n("List View"), 30 ); |
636 | QAction* showlist_action = new QAction( i18n("List View"), icon, i18n("List View"), 0, this ); | 649 | QAction* showlist_action = new QAction( i18n("List View"), icon, i18n("List View"), 0, this ); |
637 | showlist_action->addTo( viewMenu ); | 650 | showlist_action->addTo( viewMenu ); |
638 | connect( showlist_action, SIGNAL( activated() ), | 651 | connect( showlist_action, SIGNAL( activated() ), |
639 | mView->viewManager(), SLOT( showListView() ) ); | 652 | mView->viewManager(), SLOT( showListView() ) ); |
640 | 653 | ||
641 | 654 | ||
642 | icon = loadPixmap( pathString + "day" ); | 655 | icon = loadPixmap( pathString + "day" ); |
643 | configureToolBarMenu->insertItem(icon, i18n("Day View"), 40 ); | 656 | configureToolBarMenu->insertItem(icon, i18n("Day View"), 40 ); |
644 | QAction* day1_action = new QAction( i18n("Day View"), icon, i18n("Day View"), 0, this ); | 657 | QAction* day1_action = new QAction( i18n("Day View"), icon, i18n("Day View"), 0, this ); |
645 | day1_action->addTo( viewMenu ); | 658 | day1_action->addTo( viewMenu ); |
646 | // action->addTo( toolBar ); | 659 | // action->addTo( toolBar ); |
647 | connect( day1_action, SIGNAL( activated() ), | 660 | connect( day1_action, SIGNAL( activated() ), |
648 | mView->viewManager(), SLOT( showDayView() ) ); | 661 | mView->viewManager(), SLOT( showDayView() ) ); |
649 | 662 | ||
650 | icon = loadPixmap( pathString + "workweek" ); | 663 | icon = loadPixmap( pathString + "workweek" ); |
651 | configureToolBarMenu->insertItem(icon, i18n("Work Week"), 50 ); | 664 | configureToolBarMenu->insertItem(icon, i18n("Work Week"), 50 ); |
652 | QAction* day5_action = new QAction( i18n("Work Week"), icon, i18n("Work Week"), 0, this ); | 665 | QAction* day5_action = new QAction( i18n("Work Week"), icon, i18n("Work Week"), 0, this ); |
653 | day5_action->addTo( viewMenu ); | 666 | day5_action->addTo( viewMenu ); |
654 | connect( day5_action, SIGNAL( activated() ), | 667 | connect( day5_action, SIGNAL( activated() ), |
655 | mView->viewManager(), SLOT( showWorkWeekView() ) ); | 668 | mView->viewManager(), SLOT( showWorkWeekView() ) ); |
656 | 669 | ||
657 | icon = loadPixmap( pathString + "week" ); | 670 | icon = loadPixmap( pathString + "week" ); |
658 | configureToolBarMenu->insertItem(icon, i18n("Week"), 60 ); | 671 | configureToolBarMenu->insertItem(icon, i18n("Week"), 60 ); |
659 | QAction* day7_action = new QAction( i18n("Week"), icon, i18n("Week"), 0, this ); | 672 | QAction* day7_action = new QAction( i18n("Week"), icon, i18n("Week"), 0, this ); |
660 | day7_action->addTo( viewMenu ); | 673 | day7_action->addTo( viewMenu ); |
661 | connect( day7_action, SIGNAL( activated() ), | 674 | connect( day7_action, SIGNAL( activated() ), |
662 | mView->viewManager(), SLOT( showWeekView() ) ); | 675 | mView->viewManager(), SLOT( showWeekView() ) ); |
663 | 676 | ||
664 | icon = loadPixmap( pathString + "month" ); | 677 | icon = loadPixmap( pathString + "month" ); |
665 | configureToolBarMenu->insertItem(icon, i18n("Month"), 70 ); | 678 | configureToolBarMenu->insertItem(icon, i18n("Month"), 70 ); |
666 | QAction* month_action = new QAction( i18n("Month"), icon, i18n("Month"), 0, this ); | 679 | QAction* month_action = new QAction( i18n("Month"), icon, i18n("Month"), 0, this ); |
667 | month_action->addTo( viewMenu ); | 680 | month_action->addTo( viewMenu ); |
668 | connect( month_action, SIGNAL( activated() ), | 681 | connect( month_action, SIGNAL( activated() ), |
669 | mView->viewManager(), SLOT( showMonthView() ) ); | 682 | mView->viewManager(), SLOT( showMonthView() ) ); |
670 | 683 | ||
671 | icon = loadPixmap( pathString + "todo" ); | 684 | icon = loadPixmap( pathString + "todo" ); |
672 | configureToolBarMenu->insertItem(icon, i18n("Todo View"), 80 ); | 685 | configureToolBarMenu->insertItem(icon, i18n("Todo View"), 80 ); |
673 | QAction* todoview_action = new QAction( i18n("Todo View"), icon, i18n("Todo View"), 0, this ); | 686 | QAction* todoview_action = new QAction( i18n("Todo View"), icon, i18n("Todo View"), 0, this ); |
674 | todoview_action->addTo( viewMenu ); | 687 | todoview_action->addTo( viewMenu ); |
675 | connect( todoview_action, SIGNAL( activated() ), | 688 | connect( todoview_action, SIGNAL( activated() ), |
676 | mView->viewManager(), SLOT( showTodoView() ) ); | 689 | mView->viewManager(), SLOT( showTodoView() ) ); |
677 | 690 | ||
678 | icon = loadPixmap( pathString + "journal" ); | 691 | icon = loadPixmap( pathString + "journal" ); |
679 | configureToolBarMenu->insertItem(icon, i18n("Journal"), 90 ); | 692 | configureToolBarMenu->insertItem(icon, i18n("Journal"), 90 ); |
680 | QAction* viewjournal_action = new QAction( i18n("Journal"), icon, i18n("Journal"), 0, this ); | 693 | QAction* viewjournal_action = new QAction( i18n("Journal"), icon, i18n("Journal"), 0, this ); |
681 | viewjournal_action->addTo( viewMenu ); | 694 | viewjournal_action->addTo( viewMenu ); |
682 | connect( viewjournal_action, SIGNAL( activated() ), | 695 | connect( viewjournal_action, SIGNAL( activated() ), |
683 | mView->viewManager(), SLOT( showJournalView() ) ); | 696 | mView->viewManager(), SLOT( showJournalView() ) ); |
684 | 697 | ||
685 | icon = loadPixmap( pathString + "xdays" ); | 698 | icon = loadPixmap( pathString + "xdays" ); |
686 | configureToolBarMenu->insertItem(icon, i18n("Next days"), 100,4 ); | 699 | configureToolBarMenu->insertItem(icon, i18n("Next days"), 100,4 ); |
687 | QAction* xdays_action = new QAction( i18n("Next days"), icon, i18n("Next days"), 0, this ); | 700 | QAction* xdays_action = new QAction( i18n("Next days"), icon, i18n("Next days"), 0, this ); |
688 | xdays_action->addTo( viewMenu ); | 701 | xdays_action->addTo( viewMenu ); |
689 | connect( xdays_action, SIGNAL( activated() ), | 702 | connect( xdays_action, SIGNAL( activated() ), |
690 | mView->viewManager(), SLOT( showNextXView() ) ); | 703 | mView->viewManager(), SLOT( showNextXView() ) ); |
691 | 704 | ||
692 | icon = loadPixmap( pathString + "whatsnext" ); | 705 | icon = loadPixmap( pathString + "whatsnext" ); |
693 | configureToolBarMenu->insertItem(icon, i18n("What's Next"), 110, 4 ); | 706 | configureToolBarMenu->insertItem(icon, i18n("What's Next"), 110, 4 ); |
694 | QAction* whatsnext_action = new QAction( i18n("What's Next"), icon, i18n("What's Next"), 0, this ); | 707 | QAction* whatsnext_action = new QAction( i18n("What's Next"), icon, i18n("What's Next"), 0, this ); |
695 | whatsnext_action->addTo( viewMenu ); | 708 | whatsnext_action->addTo( viewMenu ); |
696 | connect( whatsnext_action, SIGNAL( activated() ), | 709 | connect( whatsnext_action, SIGNAL( activated() ), |
697 | mView->viewManager(), SLOT( showWhatsNextView() ) ); | 710 | mView->viewManager(), SLOT( showWhatsNextView() ) ); |
698 | 711 | ||
699 | #if 0 | 712 | #if 0 |
700 | action = new QAction( "view_timespan", "Time Span", 0, this ); | 713 | action = new QAction( "view_timespan", "Time Span", 0, this ); |
701 | action->addTo( viewMenu ); | 714 | action->addTo( viewMenu ); |
702 | connect( action, SIGNAL( activated() ), | 715 | connect( action, SIGNAL( activated() ), |
703 | mView->viewManager(), SLOT( showTimeSpanView() ) ); | 716 | mView->viewManager(), SLOT( showTimeSpanView() ) ); |
704 | #endif | 717 | #endif |
705 | 718 | ||
706 | mNewSubTodoAction = new QAction( "new_subtodo", i18n("New Sub-Todo..."), 0, | 719 | mNewSubTodoAction = new QAction( "new_subtodo", i18n("New Sub-Todo..."), 0, |
707 | this ); | 720 | this ); |
708 | mNewSubTodoAction->addTo( actionMenu ); | 721 | mNewSubTodoAction->addTo( actionMenu ); |
709 | connect( mNewSubTodoAction, SIGNAL( activated() ), | 722 | connect( mNewSubTodoAction, SIGNAL( activated() ), |
710 | mView, SLOT( newSubTodo() ) ); | 723 | mView, SLOT( newSubTodo() ) ); |
711 | 724 | ||
712 | actionMenu->insertSeparator(); | 725 | actionMenu->insertSeparator(); |
713 | 726 | ||
714 | mShowAction = new QAction( "show_incidence", i18n("Show..."), 0, this ); | 727 | mShowAction = new QAction( "show_incidence", i18n("Show..."), 0, this ); |
715 | mShowAction->addTo( actionMenu ); | 728 | mShowAction->addTo( actionMenu ); |
716 | connect( mShowAction, SIGNAL( activated() ), | 729 | connect( mShowAction, SIGNAL( activated() ), |
717 | mView, SLOT( showIncidence() ) ); | 730 | mView, SLOT( showIncidence() ) ); |
718 | 731 | ||
719 | mEditAction = new QAction( "edit_incidence", i18n("Edit..."), 0, this ); | 732 | mEditAction = new QAction( "edit_incidence", i18n("Edit..."), 0, this ); |
720 | mEditAction->addTo( actionMenu ); | 733 | mEditAction->addTo( actionMenu ); |
721 | connect( mEditAction, SIGNAL( activated() ), | 734 | connect( mEditAction, SIGNAL( activated() ), |
722 | mView, SLOT( editIncidence() ) ); | 735 | mView, SLOT( editIncidence() ) ); |
723 | 736 | ||
724 | mDeleteAction = new QAction( "delete_incidence", i18n("Delete..."), 0, this ); | 737 | mDeleteAction = new QAction( "delete_incidence", i18n("Delete..."), 0, this ); |
725 | mDeleteAction->addTo( actionMenu ); | 738 | mDeleteAction->addTo( actionMenu ); |
726 | connect( mDeleteAction, SIGNAL( activated() ), | 739 | connect( mDeleteAction, SIGNAL( activated() ), |
727 | mView, SLOT( deleteIncidence() ) ); | 740 | mView, SLOT( deleteIncidence() ) ); |
728 | 741 | ||
729 | 742 | ||
730 | mCloneAction = new QAction( "clone_incidence", i18n("Clone..."), 0, this ); | 743 | mCloneAction = new QAction( "clone_incidence", i18n("Clone..."), 0, this ); |
731 | mCloneAction->addTo( actionMenu ); | 744 | mCloneAction->addTo( actionMenu ); |
732 | connect( mCloneAction, SIGNAL( activated() ), | 745 | connect( mCloneAction, SIGNAL( activated() ), |
733 | mView, SLOT( cloneIncidence() ) ); | 746 | mView, SLOT( cloneIncidence() ) ); |
734 | mMoveAction = new QAction( "Move_incidence", i18n("Move..."), 0, this ); | 747 | mMoveAction = new QAction( "Move_incidence", i18n("Move..."), 0, this ); |
735 | mMoveAction->addTo( actionMenu ); | 748 | mMoveAction->addTo( actionMenu ); |
736 | connect( mMoveAction, SIGNAL( activated() ), | 749 | connect( mMoveAction, SIGNAL( activated() ), |
737 | mView, SLOT( moveIncidence() ) ); | 750 | mView, SLOT( moveIncidence() ) ); |
738 | mBeamAction = new QAction( "Beam_incidence", i18n("Beam..."), 0, this ); | 751 | mBeamAction = new QAction( "Beam_incidence", i18n("Beam..."), 0, this ); |
739 | mBeamAction->addTo( actionMenu ); | 752 | mBeamAction->addTo( actionMenu ); |
740 | connect( mBeamAction, SIGNAL( activated() ), | 753 | connect( mBeamAction, SIGNAL( activated() ), |
741 | mView, SLOT( beamIncidence() ) ); | 754 | mView, SLOT( beamIncidence() ) ); |
742 | mCancelAction = new QAction( "Cancel_incidence", i18n("Toggle Cancel"), 0, this ); | 755 | mCancelAction = new QAction( "Cancel_incidence", i18n("Toggle Cancel"), 0, this ); |
743 | mCancelAction->addTo( actionMenu ); | 756 | mCancelAction->addTo( actionMenu ); |
744 | connect( mCancelAction, SIGNAL( activated() ), | 757 | connect( mCancelAction, SIGNAL( activated() ), |
745 | mView, SLOT( toggleCancelIncidence() ) ); | 758 | mView, SLOT( toggleCancelIncidence() ) ); |
746 | 759 | ||
747 | actionMenu->insertSeparator(); | 760 | actionMenu->insertSeparator(); |
748 | 761 | ||
749 | action = new QAction( "purge_completed", i18n("Purge Completed"), 0, | 762 | action = new QAction( "purge_completed", i18n("Purge Completed"), 0, |
750 | this ); | 763 | this ); |
751 | action->addTo( actionMenu ); | 764 | action->addTo( actionMenu ); |
752 | connect( action, SIGNAL( activated() ), mView, SLOT( purgeCompleted() ) ); | 765 | connect( action, SIGNAL( activated() ), mView, SLOT( purgeCompleted() ) ); |
753 | 766 | ||
754 | icon = loadPixmap( pathString + "search" ); | 767 | icon = loadPixmap( pathString + "search" ); |
755 | QAction* search_action = new QAction( i18n("Search"), icon, i18n("Search..."), 0, this ); | 768 | QAction* search_action = new QAction( i18n("Search"), icon, i18n("Search..."), 0, this ); |
756 | configureToolBarMenu->insertItem(icon, i18n("Search"), 120 , 4); | 769 | configureToolBarMenu->insertItem(icon, i18n("Search"), 120 , 4); |
757 | search_action->addTo( actionMenu ); | 770 | search_action->addTo( actionMenu ); |
758 | connect( search_action, SIGNAL( activated() ), | 771 | connect( search_action, SIGNAL( activated() ), |
759 | mView->dialogManager(), SLOT( showSearchDialog() ) ); | 772 | mView->dialogManager(), SLOT( showSearchDialog() ) ); |
760 | 773 | ||
761 | icon = loadPixmap( pathString + "today" ); | 774 | |
762 | configureToolBarMenu->insertItem(icon, i18n("Go to Today"), 130); | ||
763 | QAction* today_action = new QAction( i18n("Go to Today"), icon, i18n("Go to Today"), 0, this ); | ||
764 | today_action->addTo( actionMenu ); | ||
765 | connect( today_action, SIGNAL( activated() ), | ||
766 | mView, SLOT( goToday() ) ); | ||
767 | 775 | ||
768 | if ( KOPrefs::instance()->mShowFullMenu ) { | 776 | if ( KOPrefs::instance()->mShowFullMenu ) { |
769 | actionMenu->insertSeparator(); | 777 | actionMenu->insertSeparator(); |
770 | actionMenu->insertItem( i18n("Configure Toolbar"),configureToolBarMenu ); | 778 | actionMenu->insertItem( i18n("Configure Toolbar"),configureToolBarMenu ); |
771 | 779 | ||
772 | } | 780 | } |
773 | // actionMenu->insertSeparator(); | 781 | // actionMenu->insertSeparator(); |
774 | action = new QAction( "import_qtopia", i18n("Import (*.ics/*.vcs) file"), 0, | 782 | action = new QAction( "import_qtopia", i18n("Import (*.ics/*.vcs) file"), 0, |
775 | this ); | 783 | this ); |
776 | action->addTo( importMenu ); | 784 | action->addTo( importMenu ); |
777 | connect( action, SIGNAL( activated() ), SLOT( importIcal() ) ); | 785 | connect( action, SIGNAL( activated() ), SLOT( importIcal() ) ); |
778 | action = new QAction( "import_quick", i18n("Import last file"), 0, | 786 | action = new QAction( "import_quick", i18n("Import last file"), 0, |
779 | this ); | 787 | this ); |
780 | action->addTo( importMenu ); | 788 | action->addTo( importMenu ); |
781 | connect( action, SIGNAL( activated() ), SLOT( quickImportIcal() ) ); | 789 | connect( action, SIGNAL( activated() ), SLOT( quickImportIcal() ) ); |
782 | importMenu->insertSeparator(); | 790 | importMenu->insertSeparator(); |
783 | action = new QAction( "import_bday", i18n("Import Birthdays (KA/Pi)"), 0, | 791 | action = new QAction( "import_bday", i18n("Import Birthdays (KA/Pi)"), 0, |
784 | this ); | 792 | this ); |
785 | action->addTo( importMenu ); | 793 | action->addTo( importMenu ); |
786 | connect( action, SIGNAL( activated() ), SLOT( importBday() ) ); | 794 | connect( action, SIGNAL( activated() ), SLOT( importBday() ) ); |
787 | #ifndef DESKTOP_VERSION | 795 | #ifndef DESKTOP_VERSION |
788 | importMenu->insertSeparator(); | 796 | importMenu->insertSeparator(); |
789 | action = new QAction( "import_qtopia", i18n("Import Opie/Qtopia Cal."), 0, | 797 | action = new QAction( "import_qtopia", i18n("Import Opie/Qtopia Cal."), 0, |
790 | this ); | 798 | this ); |
791 | action->addTo( importMenu ); | 799 | action->addTo( importMenu ); |
792 | connect( action, SIGNAL( activated() ), SLOT( importQtopia() ) ); | 800 | connect( action, SIGNAL( activated() ), SLOT( importQtopia() ) ); |
793 | #else | 801 | #else |
794 | #ifdef _OL_IMPORT_ | 802 | #ifdef _OL_IMPORT_ |
795 | importMenu->insertSeparator(); | 803 | importMenu->insertSeparator(); |
796 | action = new QAction( "import_ol", i18n("Import from OL"), 0, | 804 | action = new QAction( "import_ol", i18n("Import from OL"), 0, |
797 | this ); | 805 | this ); |
798 | action->addTo( importMenu ); | 806 | action->addTo( importMenu ); |
799 | connect( action, SIGNAL( activated() ), SLOT( importOL() ) ); | 807 | connect( action, SIGNAL( activated() ), SLOT( importOL() ) ); |
800 | #endif | 808 | #endif |
801 | #endif | 809 | #endif |
802 | 810 | ||
803 | importMenu->insertSeparator(); | 811 | importMenu->insertSeparator(); |
804 | action = new QAction( "load_cal", i18n("Load Calendar Backup"), 0, | 812 | action = new QAction( "load_cal", i18n("Load Calendar Backup"), 0, |
805 | this ); | 813 | this ); |
806 | action->addTo( importMenu ); | 814 | action->addTo( importMenu ); |
807 | connect( action, SIGNAL( activated() ), SLOT( loadCalendar() ) ); | 815 | connect( action, SIGNAL( activated() ), SLOT( loadCalendar() ) ); |
808 | 816 | ||
809 | action = new QAction( "save_cal", i18n("Save Calendar Backup"), 0, | 817 | action = new QAction( "save_cal", i18n("Save Calendar Backup"), 0, |
810 | this ); | 818 | this ); |
811 | action->addTo( importMenu ); | 819 | action->addTo( importMenu ); |
812 | connect( action, SIGNAL( activated() ), SLOT( saveCalendar() ) ); | 820 | connect( action, SIGNAL( activated() ), SLOT( saveCalendar() ) ); |
813 | 821 | ||
814 | importMenu->insertSeparator(); | 822 | importMenu->insertSeparator(); |
815 | action = new QAction( "import_qtopia", i18n("Export VCalendar"), 0, | 823 | action = new QAction( "import_qtopia", i18n("Export VCalendar"), 0, |
816 | this ); | 824 | this ); |
817 | action->addTo( importMenu ); connect( action, SIGNAL( activated() ), SLOT( exportVCalendar() ) ); | 825 | action->addTo( importMenu ); connect( action, SIGNAL( activated() ), SLOT( exportVCalendar() ) ); |
818 | 826 | ||
819 | 827 | ||
820 | //LR | 828 | //LR |
821 | QPopupMenu *ex2phone = new QPopupMenu( this ); | 829 | QPopupMenu *ex2phone = new QPopupMenu( this ); |
822 | ex2phone->insertItem(i18n("Complete calendar..."), 1 ); | 830 | ex2phone->insertItem(i18n("Complete calendar..."), 1 ); |
823 | ex2phone->insertItem(i18n("Filtered calendar..."), 2 ); | 831 | ex2phone->insertItem(i18n("Filtered calendar..."), 2 ); |
824 | connect( ex2phone, SIGNAL( activated(int) ), this, SLOT( exportToPhone( int)) ); | 832 | connect( ex2phone, SIGNAL( activated(int) ), this, SLOT( exportToPhone( int)) ); |
825 | importMenu->insertItem( i18n("Export to phone"), ex2phone ); | 833 | importMenu->insertItem( i18n("Export to phone"), ex2phone ); |
826 | 834 | ||
827 | importMenu->insertSeparator(); | 835 | importMenu->insertSeparator(); |
828 | action = new QAction( "manage cat", i18n("Manage new categories..."), 0, | 836 | action = new QAction( "manage cat", i18n("Manage new categories..."), 0, |
829 | this ); | 837 | this ); |
830 | action->addTo( importMenu ); | 838 | action->addTo( importMenu ); |
831 | connect( action, SIGNAL( activated() ), mView, SLOT( manageCategories() ) ); | 839 | connect( action, SIGNAL( activated() ), mView, SLOT( manageCategories() ) ); |
832 | #ifndef DESKTOP_VERSION | 840 | #ifndef DESKTOP_VERSION |
833 | importMenu->insertSeparator(); | 841 | importMenu->insertSeparator(); |
834 | brAction = new QAction( "beam toggle", i18n("Beam receive enabled"), 0, | 842 | brAction = new QAction( "beam toggle", i18n("Beam receive enabled"), 0, |
835 | this ); | 843 | this ); |
836 | brAction->addTo( importMenu ); | 844 | brAction->addTo( importMenu ); |
837 | brAction->setToggleAction (true ) ; | 845 | brAction->setToggleAction (true ) ; |
838 | connect( brAction, SIGNAL( activated() ), this, SLOT( toggleBeamReceive() ) ); | 846 | connect( brAction, SIGNAL( activated() ), this, SLOT( toggleBeamReceive() ) ); |
839 | 847 | ||
840 | action = new QAction( "beam all", i18n("Beam complete calendar..."), 0, | 848 | action = new QAction( "beam all", i18n("Beam complete calendar..."), 0, |
841 | this ); | 849 | this ); |
842 | action->addTo( importMenu ); | 850 | action->addTo( importMenu ); |
843 | connect( action, SIGNAL( activated() ), mView, SLOT( beamCalendar() ) ); | 851 | connect( action, SIGNAL( activated() ), mView, SLOT( beamCalendar() ) ); |
844 | 852 | ||
845 | action = new QAction( "beam all", i18n("Beam filtered calendar..."), 0, | 853 | action = new QAction( "beam all", i18n("Beam filtered calendar..."), 0, |
846 | this ); | 854 | this ); |
847 | action->addTo( importMenu ); | 855 | action->addTo( importMenu ); |
848 | connect( action, SIGNAL( activated() ), mView, SLOT( beamFilteredCalendar()) ); | 856 | connect( action, SIGNAL( activated() ), mView, SLOT( beamFilteredCalendar()) ); |
849 | #else | 857 | #else |
850 | importMenu->insertSeparator(); | 858 | importMenu->insertSeparator(); |
851 | icon = loadPixmap( pathString + "print" ); | 859 | icon = loadPixmap( pathString + "print" ); |
852 | action = new QAction( i18n("Print calendar..."),icon,i18n("Print calendar..."), 0, this ); | 860 | action = new QAction( i18n("Print calendar..."),icon,i18n("Print calendar..."), 0, this ); |
853 | action->addTo( importMenu ); | 861 | action->addTo( importMenu ); |
854 | connect( action, SIGNAL( activated() ), | 862 | connect( action, SIGNAL( activated() ), |
855 | this, SLOT( printCal() ) ); | 863 | this, SLOT( printCal() ) ); |
856 | 864 | ||
857 | icon = loadPixmap( pathString + "print" ); | 865 | icon = loadPixmap( pathString + "print" ); |
858 | action = new QAction( i18n("Print agenda selection..."),icon,i18n("Print agenda selection..."), 0, this ); | 866 | action = new QAction( i18n("Print agenda selection..."),icon,i18n("Print agenda selection..."), 0, this ); |
859 | action->addTo( importMenu ); | 867 | action->addTo( importMenu ); |
860 | connect( action, SIGNAL( activated() ), | 868 | connect( action, SIGNAL( activated() ), |
861 | this, SLOT( printSel() ) ); | 869 | this, SLOT( printSel() ) ); |
862 | action = new QAction( i18n("Print What's Next View..."),icon,i18n("Print What's Next View..."), 0, this ); | 870 | action = new QAction( i18n("Print What's Next View..."),icon,i18n("Print What's Next View..."), 0, this ); |
@@ -881,193 +889,195 @@ void MainWindow::initActions() | |||
881 | action = new QAction( "Whats New", i18n("What's new?"), 0,this ); | 889 | action = new QAction( "Whats New", i18n("What's new?"), 0,this ); |
882 | action->addTo( helpMenu ); | 890 | action->addTo( helpMenu ); |
883 | connect( action, SIGNAL( activated() ), | 891 | connect( action, SIGNAL( activated() ), |
884 | SLOT( whatsNew() ) ); | 892 | SLOT( whatsNew() ) ); |
885 | action = new QAction( "featureHowto", i18n("Features + hints..."), 0,this ); | 893 | action = new QAction( "featureHowto", i18n("Features + hints..."), 0,this ); |
886 | action->addTo( helpMenu ); | 894 | action->addTo( helpMenu ); |
887 | connect( action, SIGNAL( activated() ), | 895 | connect( action, SIGNAL( activated() ), |
888 | SLOT( features() ) ); | 896 | SLOT( features() ) ); |
889 | action = new QAction( "Keys + Colors", i18n("Keys + Colors..."), 0, this ); | 897 | action = new QAction( "Keys + Colors", i18n("Keys + Colors..."), 0, this ); |
890 | action->addTo( helpMenu ); | 898 | action->addTo( helpMenu ); |
891 | connect( action, SIGNAL( activated() ), | 899 | connect( action, SIGNAL( activated() ), |
892 | SLOT( keyBindings() ) ); | 900 | SLOT( keyBindings() ) ); |
893 | action = new QAction( "Sync Howto", i18n("Sync HowTo..."), 0,this ); | 901 | action = new QAction( "Sync Howto", i18n("Sync HowTo..."), 0,this ); |
894 | action->addTo( helpMenu ); | 902 | action->addTo( helpMenu ); |
895 | connect( action, SIGNAL( activated() ), | 903 | connect( action, SIGNAL( activated() ), |
896 | SLOT( synchowto() ) ); | 904 | SLOT( synchowto() ) ); |
897 | action = new QAction( "KDE Sync Howto", i18n("KDE Sync HowTo..."), 0,this ); | 905 | action = new QAction( "KDE Sync Howto", i18n("KDE Sync HowTo..."), 0,this ); |
898 | action->addTo( helpMenu ); | 906 | action->addTo( helpMenu ); |
899 | connect( action, SIGNAL( activated() ), | 907 | connect( action, SIGNAL( activated() ), |
900 | SLOT( kdesynchowto() ) ); | 908 | SLOT( kdesynchowto() ) ); |
901 | action = new QAction( "Multi Sync Howto", i18n("Multi Sync HowTo..."), 0,this ); | 909 | action = new QAction( "Multi Sync Howto", i18n("Multi Sync HowTo..."), 0,this ); |
902 | action->addTo( helpMenu ); | 910 | action->addTo( helpMenu ); |
903 | connect( action, SIGNAL( activated() ), | 911 | connect( action, SIGNAL( activated() ), |
904 | SLOT( multisynchowto() ) ); | 912 | SLOT( multisynchowto() ) ); |
905 | action = new QAction( "Auto saving", i18n("Auto saving..."), 0, this ); | 913 | action = new QAction( "Auto saving", i18n("Auto saving..."), 0, this ); |
906 | action->addTo( helpMenu ); | 914 | action->addTo( helpMenu ); |
907 | connect( action, SIGNAL( activated() ), | 915 | connect( action, SIGNAL( activated() ), |
908 | SLOT( aboutAutoSaving() ) ); | 916 | SLOT( aboutAutoSaving() ) ); |
909 | action = new QAction( "Problemd", i18n("Known Problems..."), 0,this ); | 917 | action = new QAction( "Problemd", i18n("Known Problems..."), 0,this ); |
910 | action->addTo( helpMenu ); | 918 | action->addTo( helpMenu ); |
911 | connect( action, SIGNAL( activated() ), | 919 | connect( action, SIGNAL( activated() ), |
912 | SLOT( aboutKnownBugs() ) ); | 920 | SLOT( aboutKnownBugs() ) ); |
913 | action = new QAction( "Translate Howto", i18n("User translation..."), 0,this ); | 921 | action = new QAction( "Translate Howto", i18n("User translation..."), 0,this ); |
914 | action->addTo( helpMenu ); | 922 | action->addTo( helpMenu ); |
915 | connect( action, SIGNAL( activated() ), | 923 | connect( action, SIGNAL( activated() ), |
916 | SLOT( usertrans() ) ); | 924 | SLOT( usertrans() ) ); |
917 | action = new QAction( "Frequently asked questions", i18n("FAQ..."), 0,this ); | 925 | action = new QAction( "Frequently asked questions", i18n("FAQ..."), 0,this ); |
918 | action->addTo( helpMenu ); | 926 | action->addTo( helpMenu ); |
919 | connect( action, SIGNAL( activated() ), | 927 | connect( action, SIGNAL( activated() ), |
920 | SLOT( faq() ) ); | 928 | SLOT( faq() ) ); |
921 | action = new QAction( "licence", i18n("Licence..."), 0, this ); | 929 | action = new QAction( "licence", i18n("Licence..."), 0, this ); |
922 | action->addTo( helpMenu ); | 930 | action->addTo( helpMenu ); |
923 | connect( action, SIGNAL( activated() ), | 931 | connect( action, SIGNAL( activated() ), |
924 | SLOT( licence() ) ); | 932 | SLOT( licence() ) ); |
925 | action = new QAction( "about", i18n("About..."), 0, this ); | 933 | action = new QAction( "about", i18n("About..."), 0, this ); |
926 | action->addTo( helpMenu ); | 934 | action->addTo( helpMenu ); |
927 | connect( action, SIGNAL( activated() ), | 935 | connect( action, SIGNAL( activated() ), |
928 | SLOT( about() ) ); | 936 | SLOT( about() ) ); |
929 | //menuBar->insertSeparator(); | 937 | //menuBar->insertSeparator(); |
930 | 938 | ||
931 | // ****************************************************** | 939 | // ****************************************************** |
932 | // menubar icons | 940 | // menubar icons |
933 | 941 | ||
934 | 942 | ||
935 | iconToolBar->setHorizontalStretchable (true ); | 943 | iconToolBar->setHorizontalStretchable (true ); |
936 | //menuBar->insertItem( iconToolBar ); | 944 | //menuBar->insertItem( iconToolBar ); |
937 | //xdays_action | 945 | //xdays_action |
938 | if (p-> mShowIconNewEvent) | 946 | if (p-> mShowIconNewEvent) |
939 | ne_action->addTo( iconToolBar ); | 947 | ne_action->addTo( iconToolBar ); |
940 | if (p->mShowIconNewTodo ) | 948 | if (p->mShowIconNewTodo ) |
941 | nt_action->addTo( iconToolBar ); | 949 | nt_action->addTo( iconToolBar ); |
942 | if (p-> mShowIconSearch) | 950 | if (p-> mShowIconSearch) |
943 | search_action->addTo( iconToolBar ); | 951 | search_action->addTo( iconToolBar ); |
944 | if (p-> mShowIconNext) | 952 | if (p-> mShowIconNext) |
945 | whatsnext_action->addTo( iconToolBar ); | 953 | whatsnext_action->addTo( iconToolBar ); |
946 | if (p-> mShowIconNextDays) | 954 | if (p-> mShowIconNextDays) |
947 | xdays_action->addTo( iconToolBar ); | 955 | xdays_action->addTo( iconToolBar ); |
948 | if (p-> mShowIconList) | 956 | if (p-> mShowIconList) |
949 | showlist_action->addTo( iconToolBar ); | 957 | showlist_action->addTo( iconToolBar ); |
950 | if (p-> mShowIconDay1) | 958 | if (p-> mShowIconDay1) |
951 | day1_action->addTo( iconToolBar ); | 959 | day1_action->addTo( iconToolBar ); |
952 | if (p-> mShowIconDay5) | 960 | if (p-> mShowIconDay5) |
953 | day5_action->addTo( iconToolBar ); | 961 | day5_action->addTo( iconToolBar ); |
954 | if (p-> mShowIconDay7) | 962 | if (p-> mShowIconDay7) |
955 | day7_action->addTo( iconToolBar ); | 963 | day7_action->addTo( iconToolBar ); |
956 | if (p-> mShowIconMonth) | 964 | if (p-> mShowIconMonth) |
957 | month_action->addTo( iconToolBar ); | 965 | month_action->addTo( iconToolBar ); |
958 | if (p-> mShowIconTodoview) | 966 | if (p-> mShowIconTodoview) |
959 | todoview_action->addTo( iconToolBar ); | 967 | todoview_action->addTo( iconToolBar ); |
960 | if (p-> mShowIconJournal) | 968 | if (p-> mShowIconJournal) |
961 | viewjournal_action->addTo( iconToolBar ); | 969 | viewjournal_action->addTo( iconToolBar ); |
962 | icon = loadPixmap( pathString + "2leftarrowB" ); | 970 | icon = loadPixmap( pathString + "2leftarrowB" ); |
963 | configureToolBarMenu->insertItem(icon, i18n("Prev. month"), 200, 14); | 971 | configureToolBarMenu->insertItem(icon, i18n("Prev. month"), 200, 14); |
964 | if (p-> mShowIconBackFast) { | 972 | if (p-> mShowIconBackFast) { |
965 | action = new QAction( i18n("Prev. month"), icon, i18n("Prev. month"),0 , this ); | 973 | action = new QAction( i18n("Prev. month"), icon, i18n("Prev. month"),0 , this ); |
966 | connect( action, SIGNAL( activated() ), | 974 | connect( action, SIGNAL( activated() ), |
967 | mView, SLOT( goPreviousMonth() ) ); | 975 | mView, SLOT( goPreviousMonth() ) ); |
968 | action->addTo( iconToolBar ); | 976 | action->addTo( iconToolBar ); |
969 | } | 977 | } |
970 | icon = loadPixmap( pathString + "1leftarrowB" ); | 978 | icon = loadPixmap( pathString + "1leftarrowB" ); |
971 | configureToolBarMenu->insertItem(icon, i18n("Go backward"), 210,15); | 979 | configureToolBarMenu->insertItem(icon, i18n("Go backward"), 210,15); |
972 | if (p-> mShowIconBack) { | 980 | if (p-> mShowIconBack) { |
973 | action = new QAction( i18n("Go backward"), icon, i18n("Go backward"),0 , this ); | 981 | action = new QAction( i18n("Go backward"), icon, i18n("Go backward"),0 , this ); |
974 | connect( action, SIGNAL( activated() ), | 982 | connect( action, SIGNAL( activated() ), |
975 | mView, SLOT( goPrevious() ) ); | 983 | mView, SLOT( goPrevious() ) ); |
976 | action->addTo( iconToolBar ); | 984 | action->addTo( iconToolBar ); |
977 | } | 985 | } |
986 | icon = loadPixmap( pathString + "today" ); | ||
987 | configureToolBarMenu->insertItem(icon, i18n("Go to Today"), 130); | ||
978 | if (p-> mShowIconToday) | 988 | if (p-> mShowIconToday) |
979 | today_action->addTo( iconToolBar ); | 989 | today_action->addTo( iconToolBar ); |
980 | icon = loadPixmap( pathString + "1rightarrowB" ); | 990 | icon = loadPixmap( pathString + "1rightarrowB" ); |
981 | configureToolBarMenu->insertItem(icon, i18n("Go forward"), 220); | 991 | configureToolBarMenu->insertItem(icon, i18n("Go forward"), 220); |
982 | if (p-> mShowIconForward) { | 992 | if (p-> mShowIconForward) { |
983 | action = new QAction( i18n("Go forward"), icon, i18n("Go forward"),0 , this ); | 993 | action = new QAction( i18n("Go forward"), icon, i18n("Go forward"),0 , this ); |
984 | connect( action, SIGNAL( activated() ), | 994 | connect( action, SIGNAL( activated() ), |
985 | mView, SLOT( goNext() ) ); | 995 | mView, SLOT( goNext() ) ); |
986 | action->addTo( iconToolBar ); | 996 | action->addTo( iconToolBar ); |
987 | } | 997 | } |
988 | icon = loadPixmap( pathString + "2rightarrowB" ); | 998 | icon = loadPixmap( pathString + "2rightarrowB" ); |
989 | configureToolBarMenu->insertItem(icon, i18n("Next month"), 230); | 999 | configureToolBarMenu->insertItem(icon, i18n("Next month"), 230); |
990 | if (p-> mShowIconForwardFast) { | 1000 | if (p-> mShowIconForwardFast) { |
991 | action = new QAction( i18n("Next month"), icon, i18n("Next month"),0 , this ); | 1001 | action = new QAction( i18n("Next month"), icon, i18n("Next month"),0 , this ); |
992 | connect( action, SIGNAL( activated() ), | 1002 | connect( action, SIGNAL( activated() ), |
993 | mView, SLOT( goNextMonth() ) ); | 1003 | mView, SLOT( goNextMonth() ) ); |
994 | action->addTo( iconToolBar ); | 1004 | action->addTo( iconToolBar ); |
995 | } | 1005 | } |
996 | 1006 | ||
997 | 1007 | ||
998 | configureToolBarMenu->insertItem(i18n("What's This?"), 300); | 1008 | configureToolBarMenu->insertItem(i18n("What's This?"), 300); |
999 | 1009 | ||
1000 | if (p-> mShowIconNewEvent) | 1010 | if (p-> mShowIconNewEvent) |
1001 | configureToolBarMenu->setItemChecked( 10, true ); | 1011 | configureToolBarMenu->setItemChecked( 10, true ); |
1002 | if (p->mShowIconNewTodo ) | 1012 | if (p->mShowIconNewTodo ) |
1003 | configureToolBarMenu->setItemChecked( 20, true ); | 1013 | configureToolBarMenu->setItemChecked( 20, true ); |
1004 | if (p-> mShowIconSearch) | 1014 | if (p-> mShowIconSearch) |
1005 | configureToolBarMenu->setItemChecked( 120, true ); | 1015 | configureToolBarMenu->setItemChecked( 120, true ); |
1006 | if (p-> mShowIconList) | 1016 | if (p-> mShowIconList) |
1007 | configureToolBarMenu->setItemChecked( 30, true ); | 1017 | configureToolBarMenu->setItemChecked( 30, true ); |
1008 | if (p-> mShowIconDay1) | 1018 | if (p-> mShowIconDay1) |
1009 | configureToolBarMenu->setItemChecked( 40, true ); | 1019 | configureToolBarMenu->setItemChecked( 40, true ); |
1010 | if (p-> mShowIconDay5) | 1020 | if (p-> mShowIconDay5) |
1011 | configureToolBarMenu->setItemChecked( 50, true ); | 1021 | configureToolBarMenu->setItemChecked( 50, true ); |
1012 | if (p-> mShowIconDay7) | 1022 | if (p-> mShowIconDay7) |
1013 | configureToolBarMenu->setItemChecked( 60, true ); | 1023 | configureToolBarMenu->setItemChecked( 60, true ); |
1014 | if (p-> mShowIconMonth) | 1024 | if (p-> mShowIconMonth) |
1015 | configureToolBarMenu->setItemChecked( 70, true ); | 1025 | configureToolBarMenu->setItemChecked( 70, true ); |
1016 | if (p-> mShowIconTodoview) | 1026 | if (p-> mShowIconTodoview) |
1017 | configureToolBarMenu->setItemChecked( 80, true ); | 1027 | configureToolBarMenu->setItemChecked( 80, true ); |
1018 | if (p-> mShowIconBackFast) | 1028 | if (p-> mShowIconBackFast) |
1019 | configureToolBarMenu->setItemChecked( 200, true ); | 1029 | configureToolBarMenu->setItemChecked( 200, true ); |
1020 | if (p-> mShowIconBack) | 1030 | if (p-> mShowIconBack) |
1021 | configureToolBarMenu->setItemChecked( 210, true ); | 1031 | configureToolBarMenu->setItemChecked( 210, true ); |
1022 | if (p-> mShowIconToday) | 1032 | if (p-> mShowIconToday) |
1023 | configureToolBarMenu->setItemChecked( 130, true ); | 1033 | configureToolBarMenu->setItemChecked( 130, true ); |
1024 | if (p-> mShowIconForward) | 1034 | if (p-> mShowIconForward) |
1025 | configureToolBarMenu->setItemChecked( 220, true ); | 1035 | configureToolBarMenu->setItemChecked( 220, true ); |
1026 | if (p-> mShowIconForwardFast) | 1036 | if (p-> mShowIconForwardFast) |
1027 | configureToolBarMenu->setItemChecked( 230, true ); | 1037 | configureToolBarMenu->setItemChecked( 230, true ); |
1028 | if (p-> mShowIconNextDays) | 1038 | if (p-> mShowIconNextDays) |
1029 | configureToolBarMenu->setItemChecked( 100, true ); | 1039 | configureToolBarMenu->setItemChecked( 100, true ); |
1030 | if (p-> mShowIconNext) | 1040 | if (p-> mShowIconNext) |
1031 | configureToolBarMenu->setItemChecked( 110, true ); | 1041 | configureToolBarMenu->setItemChecked( 110, true ); |
1032 | if (p-> mShowIconJournal) | 1042 | if (p-> mShowIconJournal) |
1033 | configureToolBarMenu->setItemChecked( 90, true ); | 1043 | configureToolBarMenu->setItemChecked( 90, true ); |
1034 | if (p-> mShowIconWhatsThis) | 1044 | if (p-> mShowIconWhatsThis) |
1035 | configureToolBarMenu->setItemChecked( 300, true ); | 1045 | configureToolBarMenu->setItemChecked( 300, true ); |
1036 | 1046 | ||
1037 | QLabel* dummy = new QLabel( iconToolBar ); | 1047 | QLabel* dummy = new QLabel( iconToolBar ); |
1038 | dummy->setBackgroundColor( iconToolBar->backgroundColor() ); | 1048 | dummy->setBackgroundColor( iconToolBar->backgroundColor() ); |
1039 | if (!p-> mShowIconStretch) | 1049 | if (!p-> mShowIconStretch) |
1040 | iconToolBar->setStretchableWidget ( dummy ) ; | 1050 | iconToolBar->setStretchableWidget ( dummy ) ; |
1041 | else | 1051 | else |
1042 | configureToolBarMenu->setItemChecked( 5, true ); | 1052 | configureToolBarMenu->setItemChecked( 5, true ); |
1043 | if (p-> mShowIconWhatsThis) | 1053 | if (p-> mShowIconWhatsThis) |
1044 | QWhatsThis::whatsThisButton ( iconToolBar ); | 1054 | QWhatsThis::whatsThisButton ( iconToolBar ); |
1045 | connect( configureToolBarMenu, SIGNAL( activated( int ) ),this, SLOT(configureToolBar( int ) ) ); | 1055 | connect( configureToolBarMenu, SIGNAL( activated( int ) ),this, SLOT(configureToolBar( int ) ) ); |
1046 | configureAgenda( p->mHourSize ); | 1056 | configureAgenda( p->mHourSize ); |
1047 | connect( configureAgendaMenu, SIGNAL( activated( int ) ),this, SLOT(configureAgenda( int ) ) ); | 1057 | connect( configureAgendaMenu, SIGNAL( activated( int ) ),this, SLOT(configureAgenda( int ) ) ); |
1048 | } | 1058 | } |
1049 | 1059 | ||
1050 | void MainWindow::exportToPhone( int mode ) | 1060 | void MainWindow::exportToPhone( int mode ) |
1051 | { | 1061 | { |
1052 | 1062 | ||
1053 | //ex2phone->insertItem(i18n("Complete calendar..."), 1 ); | 1063 | //ex2phone->insertItem(i18n("Complete calendar..."), 1 ); |
1054 | //ex2phone->insertItem(i18n("Filtered calendar..."), 2 ); | 1064 | //ex2phone->insertItem(i18n("Filtered calendar..."), 2 ); |
1055 | KOex2phonePrefs ex2phone; | 1065 | KOex2phonePrefs ex2phone; |
1056 | 1066 | ||
1057 | ex2phone.mPhoneConnection->setText( KPimGlobalPrefs::instance()->mEx2PhoneConnection ); | 1067 | ex2phone.mPhoneConnection->setText( KPimGlobalPrefs::instance()->mEx2PhoneConnection ); |
1058 | ex2phone.mPhoneDevice->setText( KPimGlobalPrefs::instance()->mEx2PhoneDevice ); | 1068 | ex2phone.mPhoneDevice->setText( KPimGlobalPrefs::instance()->mEx2PhoneDevice ); |
1059 | ex2phone.mPhoneModel->setText( KPimGlobalPrefs::instance()->mEx2PhoneModel ); | 1069 | ex2phone.mPhoneModel->setText( KPimGlobalPrefs::instance()->mEx2PhoneModel ); |
1060 | if ( mode == 1 ) | 1070 | if ( mode == 1 ) |
1061 | ex2phone.setCaption(i18n("Export complete calendar")); | 1071 | ex2phone.setCaption(i18n("Export complete calendar")); |
1062 | if ( mode == 2 ) | 1072 | if ( mode == 2 ) |
1063 | ex2phone.setCaption(i18n("Export filtered calendar")); | 1073 | ex2phone.setCaption(i18n("Export filtered calendar")); |
1064 | 1074 | ||
1065 | if ( !ex2phone.exec() ) { | 1075 | if ( !ex2phone.exec() ) { |
1066 | return; | 1076 | return; |
1067 | } | 1077 | } |
1068 | KPimGlobalPrefs::instance()->mEx2PhoneConnection = ex2phone.mPhoneConnection->text(); | 1078 | KPimGlobalPrefs::instance()->mEx2PhoneConnection = ex2phone.mPhoneConnection->text(); |
1069 | KPimGlobalPrefs::instance()->mEx2PhoneDevice = ex2phone.mPhoneDevice->text(); | 1079 | KPimGlobalPrefs::instance()->mEx2PhoneDevice = ex2phone.mPhoneDevice->text(); |
1070 | KPimGlobalPrefs::instance()->mEx2PhoneModel = ex2phone.mPhoneModel->text(); | 1080 | KPimGlobalPrefs::instance()->mEx2PhoneModel = ex2phone.mPhoneModel->text(); |
1071 | 1081 | ||
1072 | int inFuture = 0; | 1082 | int inFuture = 0; |
1073 | if ( ex2phone.mWriteBackFuture->isChecked() ) | 1083 | if ( ex2phone.mWriteBackFuture->isChecked() ) |