author | zautrix <zautrix> | 2005-02-22 01:14:35 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-02-22 01:14:35 (UTC) |
commit | df40d77f7407326221ba2848163c4f61b7bb1d2f (patch) (unidiff) | |
tree | 1b46bf666f7371189ba421080f4dcd66dc9037f2 /korganizer/mainwindow.cpp | |
parent | ce261d6197d319d67f7b275813449f36ce42a730 (diff) | |
download | kdepimpi-df40d77f7407326221ba2848163c4f61b7bb1d2f.zip kdepimpi-df40d77f7407326221ba2848163c4f61b7bb1d2f.tar.gz kdepimpi-df40d77f7407326221ba2848163c4f61b7bb1d2f.tar.bz2 |
next
-rw-r--r-- | korganizer/mainwindow.cpp | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index a164fa4..4f2cccf 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp | |||
@@ -572,5 +572,6 @@ void MainWindow::initActions() | |||
572 | icon = mWeekPixmap; | 572 | icon = mWeekPixmap; |
573 | mWeekAction = new QAction( i18n("Select week number"),icon, i18n("Select week number"), 0, this ); | 573 | mWeekAction = new QAction( i18n("Select week number"),icon, i18n("Select week number"), 0, this ); |
574 | mWeekAction->addTo( iconToolBar ); | 574 | if ( p-> mShowIconWeekNum ) |
575 | mWeekAction->addTo( iconToolBar ); | ||
575 | mWeekFont = font(); | 576 | mWeekFont = font(); |
576 | 577 | ||
@@ -624,4 +625,5 @@ void MainWindow::initActions() | |||
624 | configureToolBarMenu->insertItem(i18n("Stretched TB"), 5 ); | 625 | configureToolBarMenu->insertItem(i18n("Stretched TB"), 5 ); |
625 | configureToolBarMenu->insertSeparator(); | 626 | configureToolBarMenu->insertSeparator(); |
627 | configureToolBarMenu->insertItem(i18n("Week Number"), 400); | ||
626 | configureToolBarMenu->insertItem(icon, i18n("New Event..."), 10 ); | 628 | configureToolBarMenu->insertItem(icon, i18n("New Event..."), 10 ); |
627 | QAction* ne_action = new QAction( i18n("New Event..."), icon, i18n("New Event..."), 0, this ); | 629 | QAction* ne_action = new QAction( i18n("New Event..."), icon, i18n("New Event..."), 0, this ); |
@@ -707,4 +709,11 @@ void MainWindow::initActions() | |||
707 | connect( day7_action, SIGNAL( activated() ), | 709 | connect( day7_action, SIGNAL( activated() ), |
708 | mView->viewManager(), SLOT( showWeekView() ) ); | 710 | mView->viewManager(), SLOT( showWeekView() ) ); |
711 | |||
712 | icon = loadPixmap( pathString + "workweek2" ); | ||
713 | configureToolBarMenu->insertItem(icon, i18n("List week view"), 75 ); | ||
714 | QAction* day6_action = new QAction( i18n("List week"), icon, i18n("List week"), 0, this ); | ||
715 | day6_action->addTo( viewMenu ); | ||
716 | connect( day6_action, SIGNAL( activated() ), | ||
717 | mView->viewManager(), SLOT( showMonthViewWeek() ) ); | ||
709 | 718 | ||
710 | icon = loadPixmap( pathString + "month" ); | 719 | icon = loadPixmap( pathString + "month" ); |
@@ -715,11 +724,4 @@ void MainWindow::initActions() | |||
715 | mView->viewManager(), SLOT( showMonthView() ) ); | 724 | mView->viewManager(), SLOT( showMonthView() ) ); |
716 | 725 | ||
717 | icon = loadPixmap( pathString + "workweek2" ); | ||
718 | configureToolBarMenu->insertItem(icon, i18n("List week view"), 75 ); | ||
719 | QAction* day6_action = new QAction( i18n("List week"), icon, i18n("List week"), 0, this ); | ||
720 | day6_action->addTo( viewMenu ); | ||
721 | connect( day6_action, SIGNAL( activated() ), | ||
722 | mView->viewManager(), SLOT( showMonthViewWeek() ) ); | ||
723 | |||
724 | icon = loadPixmap( pathString + "todo" ); | 726 | icon = loadPixmap( pathString + "todo" ); |
725 | configureToolBarMenu->insertItem(icon, i18n("Todo View"), 80 ); | 727 | configureToolBarMenu->insertItem(icon, i18n("Todo View"), 80 ); |
@@ -1002,8 +1004,8 @@ void MainWindow::initActions() | |||
1002 | if (p-> mShowIconDay7) | 1004 | if (p-> mShowIconDay7) |
1003 | day7_action->addTo( iconToolBar ); | 1005 | day7_action->addTo( iconToolBar ); |
1004 | if (p-> mShowIconMonth) | ||
1005 | month_action->addTo( iconToolBar ); | ||
1006 | if (p-> mShowIconDay6) | 1006 | if (p-> mShowIconDay6) |
1007 | day6_action->addTo( iconToolBar ); | 1007 | day6_action->addTo( iconToolBar ); |
1008 | if (p-> mShowIconMonth) | ||
1009 | month_action->addTo( iconToolBar ); | ||
1008 | if (p-> mShowIconTodoview) | 1010 | if (p-> mShowIconTodoview) |
1009 | todoview_action->addTo( iconToolBar ); | 1011 | todoview_action->addTo( iconToolBar ); |
@@ -1088,5 +1090,6 @@ void MainWindow::initActions() | |||
1088 | if (p-> mShowIconWhatsThis) | 1090 | if (p-> mShowIconWhatsThis) |
1089 | configureToolBarMenu->setItemChecked( 300, true ); | 1091 | configureToolBarMenu->setItemChecked( 300, true ); |
1090 | 1092 | if (p-> mShowIconWeekNum) | |
1093 | configureToolBarMenu->setItemChecked( 400, true ); | ||
1091 | QLabel* dummy = new QLabel( iconToolBar ); | 1094 | QLabel* dummy = new QLabel( iconToolBar ); |
1092 | dummy->setBackgroundColor( iconToolBar->backgroundColor() ); | 1095 | dummy->setBackgroundColor( iconToolBar->backgroundColor() ); |
@@ -1829,4 +1832,5 @@ void MainWindow::configureToolBar( int item ) | |||
1829 | p-> mShowIconJournal= configureToolBarMenu->isItemChecked( 90 ); | 1832 | p-> mShowIconJournal= configureToolBarMenu->isItemChecked( 90 ); |
1830 | p-> mShowIconWhatsThis= configureToolBarMenu->isItemChecked( 300 ); | 1833 | p-> mShowIconWhatsThis= configureToolBarMenu->isItemChecked( 300 ); |
1834 | p-> mShowIconWeekNum= configureToolBarMenu->isItemChecked( 400 ); | ||
1831 | // initActions(); | 1835 | // initActions(); |
1832 | } | 1836 | } |