summaryrefslogtreecommitdiffabout
path: root/korganizer/mainwindow.cpp
authorzautrix <zautrix>2005-02-22 01:14:35 (UTC)
committer zautrix <zautrix>2005-02-22 01:14:35 (UTC)
commitdf40d77f7407326221ba2848163c4f61b7bb1d2f (patch) (side-by-side diff)
tree1b46bf666f7371189ba421080f4dcd66dc9037f2 /korganizer/mainwindow.cpp
parentce261d6197d319d67f7b275813449f36ce42a730 (diff)
downloadkdepimpi-df40d77f7407326221ba2848163c4f61b7bb1d2f.zip
kdepimpi-df40d77f7407326221ba2848163c4f61b7bb1d2f.tar.gz
kdepimpi-df40d77f7407326221ba2848163c4f61b7bb1d2f.tar.bz2
next
Diffstat (limited to 'korganizer/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/mainwindow.cpp26
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
@@ -571,7 +571,8 @@ void MainWindow::initActions()
mWeekPixmap.fill( mWeekBgColor );
icon = mWeekPixmap;
mWeekAction = new QAction( i18n("Select week number"),icon, i18n("Select week number"), 0, this );
- mWeekAction->addTo( iconToolBar );
+ if ( p-> mShowIconWeekNum )
+ mWeekAction->addTo( iconToolBar );
mWeekFont = font();
int fontPoint = mWeekFont.pointSize();
@@ -623,6 +624,7 @@ void MainWindow::initActions()
icon = loadPixmap( pathString + "newevent" );
configureToolBarMenu->insertItem(i18n("Stretched TB"), 5 );
configureToolBarMenu->insertSeparator();
+ configureToolBarMenu->insertItem(i18n("Week Number"), 400);
configureToolBarMenu->insertItem(icon, i18n("New Event..."), 10 );
QAction* ne_action = new QAction( i18n("New Event..."), icon, i18n("New Event..."), 0, this );
ne_action->addTo( actionMenu );
@@ -706,6 +708,13 @@ void MainWindow::initActions()
day7_action->addTo( viewMenu );
connect( day7_action, SIGNAL( activated() ),
mView->viewManager(), SLOT( showWeekView() ) );
+
+ icon = loadPixmap( pathString + "workweek2" );
+ configureToolBarMenu->insertItem(icon, i18n("List week view"), 75 );
+ QAction* day6_action = new QAction( i18n("List week"), icon, i18n("List week"), 0, this );
+ day6_action->addTo( viewMenu );
+ connect( day6_action, SIGNAL( activated() ),
+ mView->viewManager(), SLOT( showMonthViewWeek() ) );
icon = loadPixmap( pathString + "month" );
configureToolBarMenu->insertItem(icon, i18n("Month"), 70 );
@@ -714,13 +723,6 @@ void MainWindow::initActions()
connect( month_action, SIGNAL( activated() ),
mView->viewManager(), SLOT( showMonthView() ) );
- icon = loadPixmap( pathString + "workweek2" );
- configureToolBarMenu->insertItem(icon, i18n("List week view"), 75 );
- QAction* day6_action = new QAction( i18n("List week"), icon, i18n("List week"), 0, this );
- day6_action->addTo( viewMenu );
- connect( day6_action, SIGNAL( activated() ),
- mView->viewManager(), SLOT( showMonthViewWeek() ) );
-
icon = loadPixmap( pathString + "todo" );
configureToolBarMenu->insertItem(icon, i18n("Todo View"), 80 );
QAction* todoview_action = new QAction( i18n("Todo View"), icon, i18n("Todo View"), 0, this );
@@ -1001,10 +1003,10 @@ void MainWindow::initActions()
day5_action->addTo( iconToolBar );
if (p-> mShowIconDay7)
day7_action->addTo( iconToolBar );
- if (p-> mShowIconMonth)
- month_action->addTo( iconToolBar );
if (p-> mShowIconDay6)
day6_action->addTo( iconToolBar );
+ if (p-> mShowIconMonth)
+ month_action->addTo( iconToolBar );
if (p-> mShowIconTodoview)
todoview_action->addTo( iconToolBar );
if (p-> mShowIconJournal)
@@ -1087,7 +1089,8 @@ void MainWindow::initActions()
configureToolBarMenu->setItemChecked( 90, true );
if (p-> mShowIconWhatsThis)
configureToolBarMenu->setItemChecked( 300, true );
-
+ if (p-> mShowIconWeekNum)
+ configureToolBarMenu->setItemChecked( 400, true );
QLabel* dummy = new QLabel( iconToolBar );
dummy->setBackgroundColor( iconToolBar->backgroundColor() );
if (!p-> mShowIconStretch)
@@ -1828,6 +1831,7 @@ void MainWindow::configureToolBar( int item )
p-> mShowIconNext= configureToolBarMenu->isItemChecked( 110 );
p-> mShowIconJournal= configureToolBarMenu->isItemChecked( 90 );
p-> mShowIconWhatsThis= configureToolBarMenu->isItemChecked( 300 );
+ p-> mShowIconWeekNum= configureToolBarMenu->isItemChecked( 400 );
// initActions();
}