summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--bin/kdepim/WhatsNew.txt4
-rw-r--r--korganizer/mainwindow.cpp63
2 files changed, 37 insertions, 30 deletions
diff --git a/bin/kdepim/WhatsNew.txt b/bin/kdepim/WhatsNew.txt
index d5d1f76..d4ec863 100644
--- a/bin/kdepim/WhatsNew.txt
+++ b/bin/kdepim/WhatsNew.txt
@@ -1,79 +1,81 @@
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.21 ************ 3********** VERSION 2.0.21 ************
4 4
5Fixed another SMTP problem in OM/Pi. 5Fixed another SMTP problem in OM/Pi.
6Some small changed in the new datenavigator in KO/Pi. 6Some small changed in the new datenavigator in KO/Pi.
7Changed default setting for new filter in KA/Pi to "exclude categories". 7Changed default setting for new filter in KA/Pi to "exclude categories".
8Changed the default font size for 640x480 display . 8Changed the default font size for 640x480 display .
9Changed popup menu behaviour in agenda and list view. 9Changed popup menu behaviour in agenda and list view.
10Fixed some layout problems of the date label size in the month view. 10Fixed some layout problems of the date label size in the month view.
11Made month view update faster. 11Made month view update faster.
12Made first datenavigator repainting faster. 12Made first datenavigator repainting faster.
13Changed the title of the event/todo edit dialogs. 13Changed the title of the event/todo edit dialogs.
14Timelabels in agenga changed from 22:00 to 22 oo. ( the oo higher, of course). 14Timelabels in agenga changed from 22:00 to 22 oo. ( the oo higher, of course).
15Please report, if there are layout problems with the new timelabels. 15Many small usebility fixes in KO/Pi.
16Pressing the "Calendar" button on the Z switches now to the next view in KO/Pi.
17The set of possible "next views" are the views you have toolbar buttons for.
16 18
17 19
18********** VERSION 2.0.20 ************ 20********** VERSION 2.0.20 ************
19 21
20Two small fixes in OM/Pi. 22Two small fixes in OM/Pi.
21 23
22Better resizing of the new datenavigator in KO/Pi. 24Better resizing of the new datenavigator in KO/Pi.
23 25
24********** VERSION 2.0.19 ************ 26********** VERSION 2.0.19 ************
25KO/Pi: 27KO/Pi:
26Enhancements and bugfixes in the new datenavigator. 28Enhancements and bugfixes in the new datenavigator.
27Bugfix in this changelog: 29Bugfix in this changelog:
28The datenavigator was changed in version 2.0.18, not the datepicker. 30The datenavigator was changed in version 2.0.18, not the datepicker.
29 31
30********** VERSION 2.0.18 ************ 32********** VERSION 2.0.18 ************
31KO/Pi: 33KO/Pi:
32Fixed some minor problems. 34Fixed some minor problems.
33Cleaned up the KO/Pi config dialog. 35Cleaned up the KO/Pi config dialog.
34Fixed problem moving events in aganda view. 36Fixed problem moving events in aganda view.
35Made datepicker scaleable, i.e. if the datenavigator shows now a 37Made datepicker scaleable, i.e. if the datenavigator shows now a
36datenavigator matrix depending on its size. 38datenavigator matrix depending on its size.
37Birthdays are now displayed green in the datenavigator. 39Birthdays are now displayed green in the datenavigator.
38What'sThis Help in datenavigator shows all events of the day. 40What'sThis Help in datenavigator shows all events of the day.
39 41
40OM/Pi: 42OM/Pi:
41Updated the backend mail library to the latest version. 43Updated the backend mail library to the latest version.
42Please backup your mail before using this version. 44Please backup your mail before using this version.
43 45
44********** VERSION 2.0.17 ************ 46********** VERSION 2.0.17 ************
45 47
46KO/Pi: 48KO/Pi:
47Tooltips in month view were not sorted. Fixed. 49Tooltips in month view were not sorted. Fixed.
48Daylabel in agenda view ( for display of one day ) was too short. Fixed. 50Daylabel in agenda view ( for display of one day ) was too short. Fixed.
49Conflict display dialog for syncing was not on top of other windows. Fixed. 51Conflict display dialog for syncing was not on top of other windows. Fixed.
50Fixed some minor problems. 52Fixed some minor problems.
51 53
52Fixed an endless loop when importing vcs file with RESOURCES entry. 54Fixed an endless loop when importing vcs file with RESOURCES entry.
53 55
54********** VERSION 2.0.16 ************ 56********** VERSION 2.0.16 ************
55OM/Pi: 57OM/Pi:
56Fixed the SMTP account setting the option. 58Fixed the SMTP account setting the option.
57Fixed something in mail sending. 59Fixed something in mail sending.
58 60
59KO/Pi: 61KO/Pi:
60Added possibility to export selected events/todos as vcal file. 62Added possibility to export selected events/todos as vcal file.
61 63
62********** VERSION 2.0.15 ************ 64********** VERSION 2.0.15 ************
63 65
64PwM/Pi: 66PwM/Pi:
65Added keyboard shorcuts for 67Added keyboard shorcuts for
66- toggling summary view (space bar) 68- toggling summary view (space bar)
67- delete item (delete + backspace key) 69- delete item (delete + backspace key)
68- add new item ( i + n key) 70- add new item ( i + n key)
69Fixed length of info in the title. 71Fixed length of info in the title.
70 72
71KO/Pi-KA/Pi: 73KO/Pi-KA/Pi:
72Changed "ME" menu bar entry to an icon. 74Changed "ME" menu bar entry to an icon.
73 75
74KO/Pi: 76KO/Pi:
75Fixed two minor bugs in displaying todos. 77Fixed two minor bugs in displaying todos.
76If in month view a cell is selected, the key shortcut "d" shows now that date. 78If in month view a cell is selected, the key shortcut "d" shows now that date.
77Added complete info for a todo in month view as an icon left of the text. 79Added complete info for a todo in month view as an icon left of the text.
78Fixed problems of displaying data when "<" or ">" are used in summary/location/description. 80Fixed problems of displaying data when "<" or ">" are used in summary/location/description.
79Fixed problem of search dialog size when switching displays. 81Fixed problem of search dialog size when switching displays.
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp
index 24055af..95b836c 100644
--- a/korganizer/mainwindow.cpp
+++ b/korganizer/mainwindow.cpp
@@ -625,258 +625,263 @@ void MainWindow::initActions()
625 action = new QAction( i18n("Undo Delete"), i18n("Undo Delete..."), 0, this ); 625 action = new QAction( i18n("Undo Delete"), i18n("Undo Delete..."), 0, this );
626 action->addTo( actionMenu ); 626 action->addTo( actionMenu );
627 connect( action, SIGNAL( activated() ), 627 connect( action, SIGNAL( activated() ),
628 mView, SLOT( undo_delete() ) ); 628 mView, SLOT( undo_delete() ) );
629 actionMenu->insertSeparator(); 629 actionMenu->insertSeparator();
630 630
631 icon = loadPixmap( pathString + "newevent" ); 631 icon = loadPixmap( pathString + "newevent" );
632 configureToolBarMenu->insertItem(i18n("Stretched TB"), 5 ); 632 configureToolBarMenu->insertItem(i18n("Stretched TB"), 5 );
633 configureToolBarMenu->insertSeparator(); 633 configureToolBarMenu->insertSeparator();
634 configureToolBarMenu->insertItem(i18n("Week Number"), 400); 634 configureToolBarMenu->insertItem(i18n("Week Number"), 400);
635 configureToolBarMenu->insertItem(icon, i18n("New Event..."), 10 ); 635 configureToolBarMenu->insertItem(icon, i18n("New Event..."), 10 );
636 QAction* ne_action = new QAction( i18n("New Event..."), icon, i18n("New Event..."), 0, this ); 636 QAction* ne_action = new QAction( i18n("New Event..."), icon, i18n("New Event..."), 0, this );
637 ne_action->addTo( actionMenu ); 637 ne_action->addTo( actionMenu );
638 connect( ne_action, SIGNAL( activated() ), 638 connect( ne_action, SIGNAL( activated() ),
639 mView, SLOT( newEvent() ) ); 639 mView, SLOT( newEvent() ) );
640 icon = loadPixmap( pathString + "newtodo" ); 640 icon = loadPixmap( pathString + "newtodo" );
641 configureToolBarMenu->insertItem(icon, i18n("New Todo..."), 20 ); 641 configureToolBarMenu->insertItem(icon, i18n("New Todo..."), 20 );
642 QAction* nt_action = new QAction( i18n("New Todo..."), icon, i18n("New Todo..."), 0, this ); 642 QAction* nt_action = new QAction( i18n("New Todo..."), icon, i18n("New Todo..."), 0, this );
643 nt_action->addTo( actionMenu ); 643 nt_action->addTo( actionMenu );
644 connect( nt_action, SIGNAL( activated() ), 644 connect( nt_action, SIGNAL( activated() ),
645 mView, SLOT( newTodo() ) ); 645 mView, SLOT( newTodo() ) );
646 646
647 icon = loadPixmap( pathString + "today" ); 647 icon = loadPixmap( pathString + "today" );
648 QAction* today_action = new QAction( i18n("Go to Today"), icon, i18n("Go to Today"), 0, this ); 648 QAction* today_action = new QAction( i18n("Go to Today"), icon, i18n("Go to Today"), 0, this );
649 today_action->addTo( viewMenu ); 649 today_action->addTo( viewMenu );
650 connect( today_action, SIGNAL( activated() ), 650 connect( today_action, SIGNAL( activated() ),
651 mView, SLOT( goToday() ) ); 651 mView, SLOT( goToday() ) );
652 viewMenu->insertSeparator(); 652 viewMenu->insertSeparator();
653 653
654 icon = loadPixmap( pathString + "navi" ); 654 icon = loadPixmap( pathString + "navi" );
655 action = new QAction( i18n("Toggle DateNavigator"), icon, i18n("Toggle DateNavigator"), 0, this ); 655 action = new QAction( i18n("Toggle DateNavigator"), icon, i18n("Toggle DateNavigator"), 0, this );
656 action->addTo( viewMenu ); 656 action->addTo( viewMenu );
657 connect( action, SIGNAL( activated() ), 657 connect( action, SIGNAL( activated() ),
658 mView, SLOT( toggleDateNavigatorWidget() ) ); 658 mView, SLOT( toggleDateNavigatorWidget() ) );
659 mToggleNav = action ; 659 mToggleNav = action ;
660 icon = loadPixmap( pathString + "filter" ); 660 icon = loadPixmap( pathString + "filter" );
661 action = new QAction( i18n("Toggle FilterView"), icon, i18n("Toggle FilterView"), 0, this ); 661 action = new QAction( i18n("Toggle FilterView"), icon, i18n("Toggle FilterView"), 0, this );
662 action->addTo( viewMenu ); 662 action->addTo( viewMenu );
663 connect( action, SIGNAL( activated() ), 663 connect( action, SIGNAL( activated() ),
664 mView, SLOT( toggleFilter() ) ); 664 mView, SLOT( toggleFilter() ) );
665 mToggleFilter = action; 665 mToggleFilter = action;
666 icon = loadPixmap( pathString + "allday" ); 666 icon = loadPixmap( pathString + "allday" );
667 action = new QAction( i18n("Toggle Allday"), icon,i18n("Toggle Allday"), 0, this ); 667 action = new QAction( i18n("Toggle Allday"), icon,i18n("Toggle Allday"), 0, this );
668 action->addTo( viewMenu ); 668 action->addTo( viewMenu );
669 connect( action, SIGNAL( activated() ), 669 connect( action, SIGNAL( activated() ),
670 mView, SLOT( toggleAllDaySize() ) ); 670 mView, SLOT( toggleAllDaySize() ) );
671 mToggleAllday = action; 671 mToggleAllday = action;
672 672
673 673
674 connect( mView->viewManager(), SIGNAL( signalFullScreen( bool ) ), 674 connect( mView->viewManager(), SIGNAL( signalFullScreen( bool ) ),
675 mToggleNav, SLOT( setEnabled ( bool ) ) ); 675 mToggleNav, SLOT( setEnabled ( bool ) ) );
676 connect( mView->viewManager(), SIGNAL( signalFullScreen( bool ) ), 676 connect( mView->viewManager(), SIGNAL( signalFullScreen( bool ) ),
677 mToggleFilter, SLOT( setEnabled ( bool ) ) ); 677 mToggleFilter, SLOT( setEnabled ( bool ) ) );
678 connect( mView->viewManager(), SIGNAL( signalAgendaView( bool ) ), 678 connect( mView->viewManager(), SIGNAL( signalAgendaView( bool ) ),
679 mToggleAllday, SLOT( setEnabled ( bool ) ) ); 679 mToggleAllday, SLOT( setEnabled ( bool ) ) );
680 680
681 viewMenu->insertSeparator(); 681 viewMenu->insertSeparator();
682 icon = loadPixmap( pathString + "picker" ); 682 icon = loadPixmap( pathString + "picker" );
683 action = new QAction( i18n("Date Picker"), icon, i18n("Date Picker"), 0, this ); 683 action = new QAction( i18n("Date Picker"), icon, i18n("Date Picker"), 0, this );
684 action->addTo( viewMenu ); 684 action->addTo( viewMenu );
685 connect( action, SIGNAL( activated() ), 685 connect( action, SIGNAL( activated() ),
686 mView, SLOT( showDatePicker() ) ); 686 mView, SLOT( showDatePicker() ) );
687 action->addTo( iconToolBar ); 687 action->addTo( iconToolBar );
688 viewMenu->insertSeparator(); 688 viewMenu->insertSeparator();
689 icon = loadPixmap( pathString + "list" ); 689
690 configureToolBarMenu->insertItem(icon, i18n("List View"), 30 ); 690
691 QAction* showlist_action = new QAction( i18n("List View"), icon, i18n("List View"), 0, this ); 691 icon = loadPixmap( pathString + "whatsnext" );
692 showlist_action->addTo( viewMenu ); 692 configureToolBarMenu->insertItem(icon, i18n("What's Next"), 110 );
693 connect( showlist_action, SIGNAL( activated() ), 693 QAction* whatsnext_action = new QAction( i18n("What's Next"), icon, i18n("What's Next"), 0, this );
694 mView->viewManager(), SLOT( showListView() ) ); 694 whatsnext_action->addTo( viewMenu );
695 connect( whatsnext_action, SIGNAL( activated() ),
696 mView->viewManager(), SLOT( showWhatsNextView() ) );
697
698 icon = loadPixmap( pathString + "xdays" );
699 configureToolBarMenu->insertItem(icon, i18n("Next days"), 100 );
700 QAction* xdays_action = new QAction( i18n("Next days"), icon, i18n("Next days"), 0, this );
701 xdays_action->addTo( viewMenu );
702 connect( xdays_action, SIGNAL( activated() ),
703 mView->viewManager(), SLOT( showNextXView() ) );
704
705
706 icon = loadPixmap( pathString + "journal" );
707 configureToolBarMenu->insertItem(icon, i18n("Journal"), 90 );
708 QAction* viewjournal_action = new QAction( i18n("Journal"), icon, i18n("Journal"), 0, this );
709 viewjournal_action->addTo( viewMenu );
710 connect( viewjournal_action, SIGNAL( activated() ),
711 mView->viewManager(), SLOT( showJournalView() ) );
695 712
696 713
697 icon = loadPixmap( pathString + "day" ); 714 icon = loadPixmap( pathString + "day" );
698 configureToolBarMenu->insertItem(icon, i18n("Day View"), 40 ); 715 configureToolBarMenu->insertItem(icon, i18n("Day View"), 40 );
699 QAction* day1_action = new QAction( i18n("Day View"), icon, i18n("Day View"), 0, this ); 716 QAction* day1_action = new QAction( i18n("Day View"), icon, i18n("Day View"), 0, this );
700 day1_action->addTo( viewMenu ); 717 day1_action->addTo( viewMenu );
701 // action->addTo( toolBar ); 718 // action->addTo( toolBar );
702 connect( day1_action, SIGNAL( activated() ), 719 connect( day1_action, SIGNAL( activated() ),
703 mView->viewManager(), SLOT( showDayView() ) ); 720 mView->viewManager(), SLOT( showDayView() ) );
704 721
705 icon = loadPixmap( pathString + "workweek" ); 722 icon = loadPixmap( pathString + "workweek" );
706 configureToolBarMenu->insertItem(icon, i18n("Work Week"), 50 ); 723 configureToolBarMenu->insertItem(icon, i18n("Work Week"), 50 );
707 QAction* day5_action = new QAction( i18n("Work Week"), icon, i18n("Work Week"), 0, this ); 724 QAction* day5_action = new QAction( i18n("Work Week"), icon, i18n("Work Week"), 0, this );
708 day5_action->addTo( viewMenu ); 725 day5_action->addTo( viewMenu );
709 connect( day5_action, SIGNAL( activated() ), 726 connect( day5_action, SIGNAL( activated() ),
710 mView->viewManager(), SLOT( showWorkWeekView() ) ); 727 mView->viewManager(), SLOT( showWorkWeekView() ) );
711 728
712 icon = loadPixmap( pathString + "week" ); 729 icon = loadPixmap( pathString + "week" );
713 configureToolBarMenu->insertItem(icon, i18n("Week"), 60 ); 730 configureToolBarMenu->insertItem(icon, i18n("Week"), 60 );
714 QAction* day7_action = new QAction( i18n("Week"), icon, i18n("Week"), 0, this ); 731 QAction* day7_action = new QAction( i18n("Week"), icon, i18n("Week"), 0, this );
715 day7_action->addTo( viewMenu ); 732 day7_action->addTo( viewMenu );
716 connect( day7_action, SIGNAL( activated() ), 733 connect( day7_action, SIGNAL( activated() ),
717 mView->viewManager(), SLOT( showWeekView() ) ); 734 mView->viewManager(), SLOT( showWeekView() ) );
718 735
719 icon = loadPixmap( pathString + "workweek2" ); 736 icon = loadPixmap( pathString + "workweek2" );
720 configureToolBarMenu->insertItem(icon, i18n("List week view"), 75 ); 737 configureToolBarMenu->insertItem(icon, i18n("List week view"), 75 );
721 QAction* day6_action = new QAction( i18n("List week"), icon, i18n("List week"), 0, this ); 738 QAction* day6_action = new QAction( i18n("List week"), icon, i18n("List week"), 0, this );
722 day6_action->addTo( viewMenu ); 739 day6_action->addTo( viewMenu );
723 connect( day6_action, SIGNAL( activated() ), 740 connect( day6_action, SIGNAL( activated() ),
724 mView->viewManager(), SLOT( showMonthViewWeek() ) ); 741 mView->viewManager(), SLOT( showMonthViewWeek() ) );
725 742
726 icon = loadPixmap( pathString + "month" ); 743 icon = loadPixmap( pathString + "month" );
727 configureToolBarMenu->insertItem(icon, i18n("Month"), 70 ); 744 configureToolBarMenu->insertItem(icon, i18n("Month"), 70 );
728 QAction* month_action = new QAction( i18n("Month"), icon, i18n("Month"), 0, this ); 745 QAction* month_action = new QAction( i18n("Month"), icon, i18n("Month"), 0, this );
729 month_action->addTo( viewMenu ); 746 month_action->addTo( viewMenu );
730 connect( month_action, SIGNAL( activated() ), 747 connect( month_action, SIGNAL( activated() ),
731 mView->viewManager(), SLOT( showMonthView() ) ); 748 mView->viewManager(), SLOT( showMonthView() ) );
732 749
750 icon = loadPixmap( pathString + "list" );
751 configureToolBarMenu->insertItem(icon, i18n("List View"), 30 );
752 QAction* showlist_action = new QAction( i18n("List View"), icon, i18n("List View"), 0, this );
753 showlist_action->addTo( viewMenu );
754 connect( showlist_action, SIGNAL( activated() ),
755 mView->viewManager(), SLOT( showListView() ) );
756
733 icon = loadPixmap( pathString + "todo" ); 757 icon = loadPixmap( pathString + "todo" );
734 configureToolBarMenu->insertItem(icon, i18n("Todo View"), 80 ); 758 configureToolBarMenu->insertItem(icon, i18n("Todo View"), 80 );
735 QAction* todoview_action = new QAction( i18n("Todo View"), icon, i18n("Todo View"), 0, this ); 759 QAction* todoview_action = new QAction( i18n("Todo View"), icon, i18n("Todo View"), 0, this );
736 todoview_action->addTo( viewMenu ); 760 todoview_action->addTo( viewMenu );
737 connect( todoview_action, SIGNAL( activated() ), 761 connect( todoview_action, SIGNAL( activated() ),
738 mView->viewManager(), SLOT( showTodoView() ) ); 762 mView->viewManager(), SLOT( showTodoView() ) );
739 763
740 icon = loadPixmap( pathString + "journal" );
741 configureToolBarMenu->insertItem(icon, i18n("Journal"), 90 );
742 QAction* viewjournal_action = new QAction( i18n("Journal"), icon, i18n("Journal"), 0, this );
743 viewjournal_action->addTo( viewMenu );
744 connect( viewjournal_action, SIGNAL( activated() ),
745 mView->viewManager(), SLOT( showJournalView() ) );
746
747 icon = loadPixmap( pathString + "xdays" );
748 configureToolBarMenu->insertItem(icon, i18n("Next days"), 100,4 );
749 QAction* xdays_action = new QAction( i18n("Next days"), icon, i18n("Next days"), 0, this );
750 xdays_action->addTo( viewMenu );
751 connect( xdays_action, SIGNAL( activated() ),
752 mView->viewManager(), SLOT( showNextXView() ) );
753 764
754 icon = loadPixmap( pathString + "whatsnext" );
755 configureToolBarMenu->insertItem(icon, i18n("What's Next"), 110, 4 );
756 QAction* whatsnext_action = new QAction( i18n("What's Next"), icon, i18n("What's Next"), 0, this );
757 whatsnext_action->addTo( viewMenu );
758 connect( whatsnext_action, SIGNAL( activated() ),
759 mView->viewManager(), SLOT( showWhatsNextView() ) );
760 765
761#if 0 766#if 0
762 action = new QAction( "view_timespan", "Time Span", 0, this ); 767 action = new QAction( "view_timespan", "Time Span", 0, this );
763 action->addTo( viewMenu ); 768 action->addTo( viewMenu );
764 connect( action, SIGNAL( activated() ), 769 connect( action, SIGNAL( activated() ),
765 mView->viewManager(), SLOT( showTimeSpanView() ) ); 770 mView->viewManager(), SLOT( showTimeSpanView() ) );
766#endif 771#endif
767 772
768 mNewSubTodoAction = new QAction( "new_subtodo", i18n("New Sub-Todo..."), 0, 773 mNewSubTodoAction = new QAction( "new_subtodo", i18n("New Sub-Todo..."), 0,
769 this ); 774 this );
770 mNewSubTodoAction->addTo( actionMenu ); 775 mNewSubTodoAction->addTo( actionMenu );
771 connect( mNewSubTodoAction, SIGNAL( activated() ), 776 connect( mNewSubTodoAction, SIGNAL( activated() ),
772 mView, SLOT( newSubTodo() ) ); 777 mView, SLOT( newSubTodo() ) );
773 778
774 actionMenu->insertSeparator(); 779 actionMenu->insertSeparator();
775 780
776 mShowAction = new QAction( "show_incidence", i18n("Show..."), 0, this ); 781 mShowAction = new QAction( "show_incidence", i18n("Show..."), 0, this );
777 mShowAction->addTo( actionMenu ); 782 mShowAction->addTo( actionMenu );
778 connect( mShowAction, SIGNAL( activated() ), 783 connect( mShowAction, SIGNAL( activated() ),
779 mView, SLOT( showIncidence() ) ); 784 mView, SLOT( showIncidence() ) );
780 785
781 mEditAction = new QAction( "edit_incidence", i18n("Edit..."), 0, this ); 786 mEditAction = new QAction( "edit_incidence", i18n("Edit..."), 0, this );
782 mEditAction->addTo( actionMenu ); 787 mEditAction->addTo( actionMenu );
783 connect( mEditAction, SIGNAL( activated() ), 788 connect( mEditAction, SIGNAL( activated() ),
784 mView, SLOT( editIncidence() ) ); 789 mView, SLOT( editIncidence() ) );
785 790
786 mDeleteAction = new QAction( "delete_incidence", i18n("Delete..."), 0, this ); 791 mDeleteAction = new QAction( "delete_incidence", i18n("Delete..."), 0, this );
787 mDeleteAction->addTo( actionMenu ); 792 mDeleteAction->addTo( actionMenu );
788 connect( mDeleteAction, SIGNAL( activated() ), 793 connect( mDeleteAction, SIGNAL( activated() ),
789 mView, SLOT( deleteIncidence() ) ); 794 mView, SLOT( deleteIncidence() ) );
790 795
791 796
792 mCloneAction = new QAction( "clone_incidence", i18n("Clone..."), 0, this ); 797 mCloneAction = new QAction( "clone_incidence", i18n("Clone..."), 0, this );
793 mCloneAction->addTo( actionMenu ); 798 mCloneAction->addTo( actionMenu );
794 connect( mCloneAction, SIGNAL( activated() ), 799 connect( mCloneAction, SIGNAL( activated() ),
795 mView, SLOT( cloneIncidence() ) ); 800 mView, SLOT( cloneIncidence() ) );
796 mMoveAction = new QAction( "Move_incidence", i18n("Move..."), 0, this ); 801 mMoveAction = new QAction( "Move_incidence", i18n("Move..."), 0, this );
797 mMoveAction->addTo( actionMenu ); 802 mMoveAction->addTo( actionMenu );
798 connect( mMoveAction, SIGNAL( activated() ), 803 connect( mMoveAction, SIGNAL( activated() ),
799 mView, SLOT( moveIncidence() ) ); 804 mView, SLOT( moveIncidence() ) );
800 mBeamAction = new QAction( "Beam_incidence", i18n("Beam..."), 0, this ); 805 mBeamAction = new QAction( "Beam_incidence", i18n("Beam..."), 0, this );
801 mBeamAction->addTo( actionMenu ); 806 mBeamAction->addTo( actionMenu );
802 connect( mBeamAction, SIGNAL( activated() ), 807 connect( mBeamAction, SIGNAL( activated() ),
803 mView, SLOT( beamIncidence() ) ); 808 mView, SLOT( beamIncidence() ) );
804 mCancelAction = new QAction( "Cancel_incidence", i18n("Toggle Cancel"), 0, this ); 809 mCancelAction = new QAction( "Cancel_incidence", i18n("Toggle Cancel"), 0, this );
805 mCancelAction->addTo( actionMenu ); 810 mCancelAction->addTo( actionMenu );
806 connect( mCancelAction, SIGNAL( activated() ), 811 connect( mCancelAction, SIGNAL( activated() ),
807 mView, SLOT( toggleCancelIncidence() ) ); 812 mView, SLOT( toggleCancelIncidence() ) );
808 813
809 actionMenu->insertSeparator(); 814 actionMenu->insertSeparator();
810 815
811 action = new QAction( "purge_completed", i18n("Purge Completed"), 0, 816 action = new QAction( "purge_completed", i18n("Purge Completed"), 0,
812 this ); 817 this );
813 action->addTo( actionMenu ); 818 action->addTo( actionMenu );
814 connect( action, SIGNAL( activated() ), mView, SLOT( purgeCompleted() ) ); 819 connect( action, SIGNAL( activated() ), mView, SLOT( purgeCompleted() ) );
815 820
816 icon = loadPixmap( pathString + "search" ); 821 icon = loadPixmap( pathString + "search" );
817 QAction* search_action = new QAction( i18n("Search"), icon, i18n("Search..."), 0, this ); 822 QAction* search_action = new QAction( i18n("Search"), icon, i18n("Search..."), 0, this );
818 configureToolBarMenu->insertItem(icon, i18n("Search"), 120 , 4); 823 configureToolBarMenu->insertItem(icon, i18n("Search"), 120 , 5);
819 search_action->addTo( actionMenu ); 824 search_action->addTo( actionMenu );
820 connect( search_action, SIGNAL( activated() ), 825 connect( search_action, SIGNAL( activated() ),
821 mView->dialogManager(), SLOT( showSearchDialog() ) ); 826 mView->dialogManager(), SLOT( showSearchDialog() ) );
822 827
823 828
824 829
825 if ( KOPrefs::instance()->mShowFullMenu ) { 830 if ( KOPrefs::instance()->mShowFullMenu ) {
826 actionMenu->insertSeparator(); 831 actionMenu->insertSeparator();
827 actionMenu->insertItem( i18n("Configure Toolbar"),configureToolBarMenu ); 832 actionMenu->insertItem( i18n("Configure Toolbar"),configureToolBarMenu );
828 833
829 } 834 }
830 // actionMenu->insertSeparator(); 835 // actionMenu->insertSeparator();
831 action = new QAction( "import_qtopia", i18n("Import (*.ics/*.vcs) file"), 0, 836 action = new QAction( "import_qtopia", i18n("Import (*.ics/*.vcs) file"), 0,
832 this ); 837 this );
833 action->addTo( importMenu_X ); 838 action->addTo( importMenu_X );
834 connect( action, SIGNAL( activated() ), SLOT( importIcal() ) ); 839 connect( action, SIGNAL( activated() ), SLOT( importIcal() ) );
835 action = new QAction( "import_quick", i18n("Import last file"), 0, 840 action = new QAction( "import_quick", i18n("Import last file"), 0,
836 this ); 841 this );
837 action->addTo( importMenu_X ); 842 action->addTo( importMenu_X );
838 connect( action, SIGNAL( activated() ), SLOT( quickImportIcal() ) ); 843 connect( action, SIGNAL( activated() ), SLOT( quickImportIcal() ) );
839 importMenu_X->insertSeparator(); 844 importMenu_X->insertSeparator();
840 action = new QAction( "import_bday", i18n("Import Birthdays (KA/Pi)"), 0, 845 action = new QAction( "import_bday", i18n("Import Birthdays (KA/Pi)"), 0,
841 this ); 846 this );
842 action->addTo( importMenu_X ); 847 action->addTo( importMenu_X );
843 connect( action, SIGNAL( activated() ), SLOT( importBday() ) ); 848 connect( action, SIGNAL( activated() ), SLOT( importBday() ) );
844 //#ifndef DESKTOP_VERSION 849 //#ifndef DESKTOP_VERSION
845 importMenu_X->insertSeparator(); 850 importMenu_X->insertSeparator();
846 action = new QAction( "import_qtopia", i18n("Import Opie/Qtopia Cal."), 0, 851 action = new QAction( "import_qtopia", i18n("Import Opie/Qtopia Cal."), 0,
847 this ); 852 this );
848 action->addTo( importMenu_X ); 853 action->addTo( importMenu_X );
849 connect( action, SIGNAL( activated() ), SLOT( importQtopia() ) ); 854 connect( action, SIGNAL( activated() ), SLOT( importQtopia() ) );
850 //#else 855 //#else
851#ifdef _OL_IMPORT_ 856#ifdef _OL_IMPORT_
852 importMenu_X->insertSeparator(); 857 importMenu_X->insertSeparator();
853 action = new QAction( "import_ol", i18n("Import from OL"), 0, 858 action = new QAction( "import_ol", i18n("Import from OL"), 0,
854 this ); 859 this );
855 action->addTo( importMenu_X ); 860 action->addTo( importMenu_X );
856 connect( action, SIGNAL( activated() ), SLOT( importOL() ) ); 861 connect( action, SIGNAL( activated() ), SLOT( importOL() ) );
857#endif 862#endif
858 //#endif 863 //#endif
859 864
860 //importMenu->insertSeparator(); 865 //importMenu->insertSeparator();
861 action = new QAction( "load_cal", i18n("Load Calendar Backup"), 0, 866 action = new QAction( "load_cal", i18n("Load Calendar Backup"), 0,
862 this ); 867 this );
863 action->addTo( importMenu ); 868 action->addTo( importMenu );
864 connect( action, SIGNAL( activated() ), SLOT( loadCalendar() ) ); 869 connect( action, SIGNAL( activated() ), SLOT( loadCalendar() ) );
865 870
866 action = new QAction( "save_cal", i18n("Save Calendar Backup"), 0, 871 action = new QAction( "save_cal", i18n("Save Calendar Backup"), 0,
867 this ); 872 this );
868 action->addTo( importMenu ); 873 action->addTo( importMenu );
869 connect( action, SIGNAL( activated() ), SLOT( saveCalendar() ) ); 874 connect( action, SIGNAL( activated() ), SLOT( saveCalendar() ) );
870 importMenu->insertSeparator(); 875 importMenu->insertSeparator();
871 importMenu->insertItem( i18n("Import"), importMenu_X ); 876 importMenu->insertItem( i18n("Import"), importMenu_X );
872 //importMenu->insertSeparator(); 877 //importMenu->insertSeparator();
873 action = new QAction( "import_qtopia", i18n("Export VCalendar"), 0, 878 action = new QAction( "import_qtopia", i18n("Export VCalendar"), 0,
874 this ); 879 this );
875 action->addTo( exportMenu_X ); 880 action->addTo( exportMenu_X );
876 connect( action, SIGNAL( activated() ), SLOT( exportVCalendar() ) ); 881 connect( action, SIGNAL( activated() ), SLOT( exportVCalendar() ) );
877 882
878 883
879 //LR 884 //LR
880 QPopupMenu *ex2phone = new QPopupMenu( this ); 885 QPopupMenu *ex2phone = new QPopupMenu( this );
881 ex2phone->insertItem(i18n("Complete calendar..."), 1 ); 886 ex2phone->insertItem(i18n("Complete calendar..."), 1 );
882 ex2phone->insertItem(i18n("Filtered calendar..."), 2 ); 887 ex2phone->insertItem(i18n("Filtered calendar..."), 2 );
@@ -966,166 +971,166 @@ void MainWindow::initActions()
966 SLOT( multisynchowto() ) ); 971 SLOT( multisynchowto() ) );
967 action = new QAction( "Auto saving", i18n("Auto saving..."), 0, this ); 972 action = new QAction( "Auto saving", i18n("Auto saving..."), 0, this );
968 action->addTo( helpMenu ); 973 action->addTo( helpMenu );
969 connect( action, SIGNAL( activated() ), 974 connect( action, SIGNAL( activated() ),
970 SLOT( aboutAutoSaving() ) ); 975 SLOT( aboutAutoSaving() ) );
971 action = new QAction( "Problemd", i18n("Known Problems..."), 0,this ); 976 action = new QAction( "Problemd", i18n("Known Problems..."), 0,this );
972 action->addTo( helpMenu ); 977 action->addTo( helpMenu );
973 connect( action, SIGNAL( activated() ), 978 connect( action, SIGNAL( activated() ),
974 SLOT( aboutKnownBugs() ) ); 979 SLOT( aboutKnownBugs() ) );
975 action = new QAction( "Translate Howto", i18n("User translation..."), 0,this ); 980 action = new QAction( "Translate Howto", i18n("User translation..."), 0,this );
976 action->addTo( helpMenu ); 981 action->addTo( helpMenu );
977 connect( action, SIGNAL( activated() ), 982 connect( action, SIGNAL( activated() ),
978 SLOT( usertrans() ) ); 983 SLOT( usertrans() ) );
979 action = new QAction( "Frequently asked questions", i18n("FAQ..."), 0,this ); 984 action = new QAction( "Frequently asked questions", i18n("FAQ..."), 0,this );
980 action->addTo( helpMenu ); 985 action->addTo( helpMenu );
981 connect( action, SIGNAL( activated() ), 986 connect( action, SIGNAL( activated() ),
982 SLOT( faq() ) ); 987 SLOT( faq() ) );
983 action = new QAction( "licence", i18n("Licence..."), 0, this ); 988 action = new QAction( "licence", i18n("Licence..."), 0, this );
984 action->addTo( helpMenu ); 989 action->addTo( helpMenu );
985 connect( action, SIGNAL( activated() ), 990 connect( action, SIGNAL( activated() ),
986 SLOT( licence() ) ); 991 SLOT( licence() ) );
987 action = new QAction( "about", i18n("About..."), 0, this ); 992 action = new QAction( "about", i18n("About..."), 0, this );
988 action->addTo( helpMenu ); 993 action->addTo( helpMenu );
989 connect( action, SIGNAL( activated() ), 994 connect( action, SIGNAL( activated() ),
990 SLOT( about() ) ); 995 SLOT( about() ) );
991 //menuBar->insertSeparator(); 996 //menuBar->insertSeparator();
992 997
993 // ****************************************************** 998 // ******************************************************
994 // menubar icons 999 // menubar icons
995 1000
996 1001
997 iconToolBar->setHorizontalStretchable (true ); 1002 iconToolBar->setHorizontalStretchable (true );
998 //menuBar->insertItem( iconToolBar ); 1003 //menuBar->insertItem( iconToolBar );
999 //xdays_action 1004 //xdays_action
1000 if (p-> mShowIconNewEvent) 1005 if (p-> mShowIconNewEvent)
1001 ne_action->addTo( iconToolBar ); 1006 ne_action->addTo( iconToolBar );
1002 if (p->mShowIconNewTodo ) 1007 if (p->mShowIconNewTodo )
1003 nt_action->addTo( iconToolBar ); 1008 nt_action->addTo( iconToolBar );
1004 if (p-> mShowIconSearch) 1009 if (p-> mShowIconSearch)
1005 search_action->addTo( iconToolBar ); 1010 search_action->addTo( iconToolBar );
1006 if (p-> mShowIconWhatsThis) 1011 if (p-> mShowIconWhatsThis)
1007 QWhatsThis::whatsThisButton ( iconToolBar ); 1012 QWhatsThis::whatsThisButton ( iconToolBar );
1008 if (p-> mShowIconNext) 1013 if (p-> mShowIconNext)
1009 whatsnext_action->addTo( iconToolBar ); 1014 whatsnext_action->addTo( iconToolBar );
1010 if (p-> mShowIconNextDays) 1015 if (p-> mShowIconNextDays)
1011 xdays_action->addTo( iconToolBar ); 1016 xdays_action->addTo( iconToolBar );
1012 if (p-> mShowIconJournal) 1017 if (p-> mShowIconJournal)
1013 viewjournal_action->addTo( iconToolBar ); 1018 viewjournal_action->addTo( iconToolBar );
1014 if (p-> mShowIconDay1) 1019 if (p-> mShowIconDay1)
1015 day1_action->addTo( iconToolBar ); 1020 day1_action->addTo( iconToolBar );
1016 if (p-> mShowIconDay5) 1021 if (p-> mShowIconDay5)
1017 day5_action->addTo( iconToolBar ); 1022 day5_action->addTo( iconToolBar );
1018 if (p-> mShowIconDay7) 1023 if (p-> mShowIconDay7)
1019 day7_action->addTo( iconToolBar ); 1024 day7_action->addTo( iconToolBar );
1020 if (p-> mShowIconDay6) 1025 if (p-> mShowIconDay6)
1021 day6_action->addTo( iconToolBar ); 1026 day6_action->addTo( iconToolBar );
1022 if (p-> mShowIconMonth) 1027 if (p-> mShowIconMonth)
1023 month_action->addTo( iconToolBar ); 1028 month_action->addTo( iconToolBar );
1024 if (p-> mShowIconList) 1029 if (p-> mShowIconList)
1025 showlist_action->addTo( iconToolBar ); 1030 showlist_action->addTo( iconToolBar );
1026 if (p-> mShowIconTodoview) 1031 if (p-> mShowIconTodoview)
1027 todoview_action->addTo( iconToolBar ); 1032 todoview_action->addTo( iconToolBar );
1028 1033
1029 icon = loadPixmap( pathString + "2leftarrowB" ); 1034 icon = loadPixmap( pathString + "2leftarrowB" );
1030 configureToolBarMenu->insertItem(icon, i18n("Prev. month"), 200, 14); 1035 configureToolBarMenu->insertItem(icon, i18n("Prev. month"), 200);
1031 if (p-> mShowIconBackFast) { 1036 if (p-> mShowIconBackFast) {
1032 action = new QAction( i18n("Prev. month"), icon, i18n("Prev. month"),0 , this ); 1037 action = new QAction( i18n("Prev. month"), icon, i18n("Prev. month"),0 , this );
1033 connect( action, SIGNAL( activated() ), 1038 connect( action, SIGNAL( activated() ),
1034 mView, SLOT( goPreviousMonth() ) ); 1039 mView, SLOT( goPreviousMonth() ) );
1035 action->addTo( iconToolBar ); 1040 action->addTo( iconToolBar );
1036 } 1041 }
1037 icon = loadPixmap( pathString + "1leftarrowB" ); 1042 icon = loadPixmap( pathString + "1leftarrowB" );
1038 configureToolBarMenu->insertItem(icon, i18n("Go backward"), 210,15); 1043 configureToolBarMenu->insertItem(icon, i18n("Go backward"), 210);
1039 if (p-> mShowIconBack) { 1044 if (p-> mShowIconBack) {
1040 action = new QAction( i18n("Go backward"), icon, i18n("Go backward"),0 , this ); 1045 action = new QAction( i18n("Go backward"), icon, i18n("Go backward"),0 , this );
1041 connect( action, SIGNAL( activated() ), 1046 connect( action, SIGNAL( activated() ),
1042 mView, SLOT( goPrevious() ) ); 1047 mView, SLOT( goPrevious() ) );
1043 action->addTo( iconToolBar ); 1048 action->addTo( iconToolBar );
1044 } 1049 }
1045 icon = loadPixmap( pathString + "today" ); 1050 icon = loadPixmap( pathString + "today" );
1046 configureToolBarMenu->insertItem(icon, i18n("Go to Today"), 130); 1051 configureToolBarMenu->insertItem(icon, i18n("Go to Today"), 130);
1047 if (p-> mShowIconToday) 1052 if (p-> mShowIconToday)
1048 today_action->addTo( iconToolBar ); 1053 today_action->addTo( iconToolBar );
1049 icon = loadPixmap( pathString + "1rightarrowB" ); 1054 icon = loadPixmap( pathString + "1rightarrowB" );
1050 configureToolBarMenu->insertItem(icon, i18n("Go forward"), 220); 1055 configureToolBarMenu->insertItem(icon, i18n("Go forward"), 220);
1051 if (p-> mShowIconForward) { 1056 if (p-> mShowIconForward) {
1052 action = new QAction( i18n("Go forward"), icon, i18n("Go forward"),0 , this ); 1057 action = new QAction( i18n("Go forward"), icon, i18n("Go forward"),0 , this );
1053 connect( action, SIGNAL( activated() ), 1058 connect( action, SIGNAL( activated() ),
1054 mView, SLOT( goNext() ) ); 1059 mView, SLOT( goNext() ) );
1055 action->addTo( iconToolBar ); 1060 action->addTo( iconToolBar );
1056 } 1061 }
1057 icon = loadPixmap( pathString + "2rightarrowB" ); 1062 icon = loadPixmap( pathString + "2rightarrowB" );
1058 configureToolBarMenu->insertItem(icon, i18n("Next month"), 230); 1063 configureToolBarMenu->insertItem(icon, i18n("Next month"), 230);
1059 if (p-> mShowIconForwardFast) { 1064 if (p-> mShowIconForwardFast) {
1060 action = new QAction( i18n("Next month"), icon, i18n("Next month"),0 , this ); 1065 action = new QAction( i18n("Next month"), icon, i18n("Next month"),0 , this );
1061 connect( action, SIGNAL( activated() ), 1066 connect( action, SIGNAL( activated() ),
1062 mView, SLOT( goNextMonth() ) ); 1067 mView, SLOT( goNextMonth() ) );
1063 action->addTo( iconToolBar ); 1068 action->addTo( iconToolBar );
1064 } 1069 }
1065 1070
1066 1071
1067 configureToolBarMenu->insertItem(i18n("What's This?"), 300); 1072 configureToolBarMenu->insertItem(i18n("What's This?"), 300, 6);
1068 1073
1069 if (p-> mShowIconNewEvent) 1074 if (p-> mShowIconNewEvent)
1070 configureToolBarMenu->setItemChecked( 10, true ); 1075 configureToolBarMenu->setItemChecked( 10, true );
1071 if (p->mShowIconNewTodo ) 1076 if (p->mShowIconNewTodo )
1072 configureToolBarMenu->setItemChecked( 20, true ); 1077 configureToolBarMenu->setItemChecked( 20, true );
1073 if (p-> mShowIconSearch) 1078 if (p-> mShowIconSearch)
1074 configureToolBarMenu->setItemChecked( 120, true ); 1079 configureToolBarMenu->setItemChecked( 120, true );
1075 if (p-> mShowIconList) 1080 if (p-> mShowIconList)
1076 configureToolBarMenu->setItemChecked( 30, true ); 1081 configureToolBarMenu->setItemChecked( 30, true );
1077 if (p-> mShowIconDay1) 1082 if (p-> mShowIconDay1)
1078 configureToolBarMenu->setItemChecked( 40, true ); 1083 configureToolBarMenu->setItemChecked( 40, true );
1079 if (p-> mShowIconDay5) 1084 if (p-> mShowIconDay5)
1080 configureToolBarMenu->setItemChecked( 50, true ); 1085 configureToolBarMenu->setItemChecked( 50, true );
1081 if (p-> mShowIconDay6) 1086 if (p-> mShowIconDay6)
1082 configureToolBarMenu->setItemChecked( 75, true ); 1087 configureToolBarMenu->setItemChecked( 75, true );
1083 if (p-> mShowIconDay7) 1088 if (p-> mShowIconDay7)
1084 configureToolBarMenu->setItemChecked( 60, true ); 1089 configureToolBarMenu->setItemChecked( 60, true );
1085 if (p-> mShowIconMonth) 1090 if (p-> mShowIconMonth)
1086 configureToolBarMenu->setItemChecked( 70, true ); 1091 configureToolBarMenu->setItemChecked( 70, true );
1087 if (p-> mShowIconTodoview) 1092 if (p-> mShowIconTodoview)
1088 configureToolBarMenu->setItemChecked( 80, true ); 1093 configureToolBarMenu->setItemChecked( 80, true );
1089 if (p-> mShowIconBackFast) 1094 if (p-> mShowIconBackFast)
1090 configureToolBarMenu->setItemChecked( 200, true ); 1095 configureToolBarMenu->setItemChecked( 200, true );
1091 if (p-> mShowIconBack) 1096 if (p-> mShowIconBack)
1092 configureToolBarMenu->setItemChecked( 210, true ); 1097 configureToolBarMenu->setItemChecked( 210, true );
1093 if (p-> mShowIconToday) 1098 if (p-> mShowIconToday)
1094 configureToolBarMenu->setItemChecked( 130, true ); 1099 configureToolBarMenu->setItemChecked( 130, true );
1095 if (p-> mShowIconForward) 1100 if (p-> mShowIconForward)
1096 configureToolBarMenu->setItemChecked( 220, true ); 1101 configureToolBarMenu->setItemChecked( 220, true );
1097 if (p-> mShowIconForwardFast) 1102 if (p-> mShowIconForwardFast)
1098 configureToolBarMenu->setItemChecked( 230, true ); 1103 configureToolBarMenu->setItemChecked( 230, true );
1099 if (p-> mShowIconNextDays) 1104 if (p-> mShowIconNextDays)
1100 configureToolBarMenu->setItemChecked( 100, true ); 1105 configureToolBarMenu->setItemChecked( 100, true );
1101 if (p-> mShowIconNext) 1106 if (p-> mShowIconNext)
1102 configureToolBarMenu->setItemChecked( 110, true ); 1107 configureToolBarMenu->setItemChecked( 110, true );
1103 if (p-> mShowIconJournal) 1108 if (p-> mShowIconJournal)
1104 configureToolBarMenu->setItemChecked( 90, true ); 1109 configureToolBarMenu->setItemChecked( 90, true );
1105 if (p-> mShowIconWhatsThis) 1110 if (p-> mShowIconWhatsThis)
1106 configureToolBarMenu->setItemChecked( 300, true ); 1111 configureToolBarMenu->setItemChecked( 300, true );
1107 if (p-> mShowIconWeekNum) 1112 if (p-> mShowIconWeekNum)
1108 configureToolBarMenu->setItemChecked( 400, true ); 1113 configureToolBarMenu->setItemChecked( 400, true );
1109 QLabel* dummy = new QLabel( iconToolBar ); 1114 QLabel* dummy = new QLabel( iconToolBar );
1110 dummy->setBackgroundColor( iconToolBar->backgroundColor() ); 1115 dummy->setBackgroundColor( iconToolBar->backgroundColor() );
1111 if (!p-> mShowIconStretch) 1116 if (!p-> mShowIconStretch)
1112 iconToolBar->setStretchableWidget ( dummy ) ; 1117 iconToolBar->setStretchableWidget ( dummy ) ;
1113 else 1118 else
1114 configureToolBarMenu->setItemChecked( 5, true ); 1119 configureToolBarMenu->setItemChecked( 5, true );
1115 connect( configureToolBarMenu, SIGNAL( activated( int ) ),this, SLOT(configureToolBar( int ) ) ); 1120 connect( configureToolBarMenu, SIGNAL( activated( int ) ),this, SLOT(configureToolBar( int ) ) );
1116 configureAgenda( p->mHourSize ); 1121 configureAgenda( p->mHourSize );
1117 connect( configureAgendaMenu, SIGNAL( activated( int ) ),this, SLOT(configureAgenda( int ) ) ); 1122 connect( configureAgendaMenu, SIGNAL( activated( int ) ),this, SLOT(configureAgenda( int ) ) );
1118} 1123}
1119 1124
1120void MainWindow::exportToPhone( int mode ) 1125void MainWindow::exportToPhone( int mode )
1121{ 1126{
1122 1127
1123 //ex2phone->insertItem(i18n("Complete calendar..."), 1 ); 1128 //ex2phone->insertItem(i18n("Complete calendar..."), 1 );
1124 //ex2phone->insertItem(i18n("Filtered calendar..."), 2 ); 1129 //ex2phone->insertItem(i18n("Filtered calendar..."), 2 );
1125 KOex2phonePrefs ex2phone; 1130 KOex2phonePrefs ex2phone;
1126 1131
1127 ex2phone.mPhoneConnection->setText( KPimGlobalPrefs::instance()->mEx2PhoneConnection ); 1132 ex2phone.mPhoneConnection->setText( KPimGlobalPrefs::instance()->mEx2PhoneConnection );
1128 ex2phone.mPhoneDevice->setText( KPimGlobalPrefs::instance()->mEx2PhoneDevice ); 1133 ex2phone.mPhoneDevice->setText( KPimGlobalPrefs::instance()->mEx2PhoneDevice );
1129 ex2phone.mPhoneModel->setText( KPimGlobalPrefs::instance()->mEx2PhoneModel ); 1134 ex2phone.mPhoneModel->setText( KPimGlobalPrefs::instance()->mEx2PhoneModel );
1130 if ( mode == 1 ) 1135 if ( mode == 1 )
1131 ex2phone.setCaption(i18n("Export complete calendar")); 1136 ex2phone.setCaption(i18n("Export complete calendar"));