summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-01-27 10:51:32 (UTC)
committer zautrix <zautrix>2005-01-27 10:51:32 (UTC)
commit9ff00e650e32d6f348a2333c9cf21da9c9a137ff (patch) (unidiff)
treeefabd55edbaf0be0129c54b3fcd156c028085530
parent1501a5d8a25e3474fb450d7e0b272feb14821d1c (diff)
downloadkdepimpi-9ff00e650e32d6f348a2333c9cf21da9c9a137ff.zip
kdepimpi-9ff00e650e32d6f348a2333c9cf21da9c9a137ff.tar.gz
kdepimpi-9ff00e650e32d6f348a2333c9cf21da9c9a137ff.tar.bz2
fix
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--bin/kdepim/WhatsNew.txt3
-rw-r--r--korganizer/mainwindow.cpp24
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,57 +1,60 @@
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.0 ************ 3********** VERSION 2.0.0 ************
4 4
5Stable release 2.0.0!
6
5KO/Pi: 7KO/Pi:
6Fixed problem in edit dialog recreation at startup. 8Fixed problem in edit dialog recreation at startup.
7Made "toggle view*" menu items enabled context sensitive. 9Made "toggle view*" menu items enabled context sensitive.
8Changed agenda size menu to items 1-10. 10Changed agenda size menu to items 1-10.
9Made it possible to change agenda size quickly by pressing mouse on timelabels in agenda view and move mouse up/down. 11Made it possible to change agenda size quickly by pressing mouse on timelabels in agenda view and move mouse up/down.
12Usebility enhancements in the KO/Pi menus.
10OM/Pi: 13OM/Pi:
11Added three info lines to display subject, from and to of selected mails. 14Added 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
15KO/Pi: 18KO/Pi:
16Added for the "dislplay one day" agenda mode 19Added for the "dislplay one day" agenda mode
17info in the caption and in the day lables: 20info in the caption and in the day lables:
18Now it is displayed, if the selected day is from "day before yesterday" 21Now it is displayed, if the selected day is from "day before yesterday"
19to "day after tomorrow". 22to "day after tomorrow".
20Made it possible to delete a Todo, which has sub-todos. 23Made it possible to delete a Todo, which has sub-todos.
21Fixed two small problems in the todo view. 24Fixed two small problems in the todo view.
22Added missing German translation for filter edit and print dialog. 25Added missing German translation for filter edit and print dialog.
23Made search dialog closeable by cancel key. 26Made search dialog closeable by cancel key.
24 27
25Made it possible to select in the date picker the (ligt grey ) 28Made it possible to select in the date picker the (ligt grey )
26dates of the prev./next month with the mouse. 29dates of the prev./next month with the mouse.
27 30
28OM/Pi: 31OM/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.
30Fixed the problem, that the state flag of imap mails was ignored. 33Fixed the problem, that the state flag of imap mails was ignored.
31Now mails with "FLAG_SEEN" on the imap server get no icon in the list view 34Now mails with "FLAG_SEEN" on the imap server get no icon in the list view
32to indecate that they are already seen. 35to indecate that they are already seen.
33Fixed the problem that the body of some mails was not displayed in the 36Fixed the problem that the body of some mails was not displayed in the
34mail viewer when fetching them from the imap server directly to read them. 37mail viewer when fetching them from the imap server directly to read them.
35Made it (configurable) possible to show the "To:" field in the list view. 38Made it (configurable) possible to show the "To:" field in the list view.
36Added to the mail viewer the option "View Source" to make it possible to see the raw mail data. 39Added to the mail viewer the option "View Source" to make it possible to see the raw mail data.
37Added a "Download Mail" button to the mail viewer to quickly download the viewed mail to the 40Added a "Download Mail" button to the mail viewer to quickly download the viewed mail to the
38local storage folder (specified in account settings) of the account of the mail. 41local storage folder (specified in account settings) of the account of the mail.
39Removed some memory leaks in OM/Pi. 42Removed some memory leaks in OM/Pi.
40 43
41 44
42********** VERSION 1.9.19 ************ 45********** VERSION 1.9.19 ************
43 46
44Added a lot of missing translations to KA/Pi, 47Added a lot of missing translations to KA/Pi,
45Added some missing translations to KO/Pi and OM/Pi. 48Added some missing translations to KO/Pi and OM/Pi.
46 49
47Fixed some minor problems in KA/Pi + KO/Pi. 50Fixed some minor problems in KA/Pi + KO/Pi.
48 51
49Fixed a crash when closing PwM/Pi. 52Fixed a crash when closing PwM/Pi.
50Added German translation for PwM/Pi. 53Added German translation for PwM/Pi.
51 54
52Made view change and Month View update faster in KO/Pi. 55Made 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
57FYI: The VERSION 1.9.17 was a testing release only. 60FYI: The VERSION 1.9.17 was a testing release only.
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp
index 950d2ec..3feb4ab 100644
--- a/korganizer/mainwindow.cpp
+++ b/korganizer/mainwindow.cpp
@@ -478,169 +478,182 @@ void MainWindow::recieve( const QCString& cmsg, const QByteArray& data )
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
499QPixmap MainWindow::loadPixmap( QString name ) 499QPixmap MainWindow::loadPixmap( QString name )
500{ 500{
501 return SmallIcon( name ); 501 return SmallIcon( name );
502 502
503} 503}
504void MainWindow::initActions() 504void 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 );
@@ -713,102 +726,97 @@ void MainWindow::initActions()
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();
@@ -929,97 +937,99 @@ void MainWindow::initActions()
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 );