author | zautrix <zautrix> | 2005-03-26 23:47:43 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-03-26 23:47:43 (UTC) |
commit | 1ec37e1988d32ed65fa1afa001eff8fc105fbbbc (patch) (unidiff) | |
tree | 40fa9c3e68692a71c32169efb679ce3f0717610c | |
parent | 9963563126c91d721406f24a49548b1d8f3dc415 (diff) | |
download | kdepimpi-1ec37e1988d32ed65fa1afa001eff8fc105fbbbc.zip kdepimpi-1ec37e1988d32ed65fa1afa001eff8fc105fbbbc.tar.gz kdepimpi-1ec37e1988d32ed65fa1afa001eff8fc105fbbbc.tar.bz2 |
fix
-rw-r--r-- | bin/kdepim/WhatsNew.txt | 4 | ||||
-rw-r--r-- | korganizer/mainwindow.cpp | 63 |
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 | |||
@@ -13,5 +13,7 @@ Made first datenavigator repainting faster. | |||
13 | Changed the title of the event/todo edit dialogs. | 13 | Changed the title of the event/todo edit dialogs. |
14 | Timelabels in agenga changed from 22:00 to 22 oo. ( the oo higher, of course). | 14 | Timelabels in agenga changed from 22:00 to 22 oo. ( the oo higher, of course). |
15 | Please report, if there are layout problems with the new timelabels. | 15 | Many small usebility fixes in KO/Pi. |
16 | Pressing the "Calendar" button on the Z switches now to the next view in KO/Pi. | ||
17 | The set of possible "next views" are the views you have toolbar buttons for. | ||
16 | 18 | ||
17 | 19 | ||
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index 24055af..95b836c 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp | |||
@@ -687,10 +687,27 @@ void MainWindow::initActions() | |||
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 | ||
@@ -731,4 +748,11 @@ void MainWindow::initActions() | |||
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 ); |
@@ -738,24 +762,5 @@ void MainWindow::initActions() | |||
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 |
@@ -816,5 +821,5 @@ void MainWindow::initActions() | |||
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() ), |
@@ -1028,5 +1033,5 @@ void MainWindow::initActions() | |||
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 ); |
@@ -1036,5 +1041,5 @@ void MainWindow::initActions() | |||
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 ); |
@@ -1065,5 +1070,5 @@ void MainWindow::initActions() | |||
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) |