summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--bin/kdepim/korganizer/allday.pngbin279 -> 657 bytes
-rw-r--r--bin/kdepim/korganizer/navi.pngbin518 -> 667 bytes
-rw-r--r--korganizer/koprefs.cpp10
-rw-r--r--korganizer/koprefs.h4
-rw-r--r--korganizer/mainwindow.cpp30
5 files changed, 44 insertions, 0 deletions
diff --git a/bin/kdepim/korganizer/allday.png b/bin/kdepim/korganizer/allday.png
index 735eae2..41cefd5 100644
--- a/bin/kdepim/korganizer/allday.png
+++ b/bin/kdepim/korganizer/allday.png
Binary files differ
diff --git a/bin/kdepim/korganizer/navi.png b/bin/kdepim/korganizer/navi.png
index 9cb0fab..93c6aaa 100644
--- a/bin/kdepim/korganizer/navi.png
+++ b/bin/kdepim/korganizer/navi.png
Binary files differ
diff --git a/korganizer/koprefs.cpp b/korganizer/koprefs.cpp
index 1e68a44..97ab4e8 100644
--- a/korganizer/koprefs.cpp
+++ b/korganizer/koprefs.cpp
@@ -93,4 +93,14 @@ KOPrefs::KOPrefs() :
addItemBool("ShowIconFilter",&mShowIconFilter,false);
addItemBool("ShowIconOnetoolbar",&mShowIconOnetoolbar,true);
+
+ bool addIcons = false;
+#ifdef DESKTOP_VERSION
+ addIcons = true;
+#endif
+ addItemBool("ShowIconNavigator",&mShowIconNavigator,addIcons);
+ addItemBool("ShowIconAllday",&mShowIconAllday,addIcons);
+ addItemBool("ShowIconFilterview",&mShowIconFilterview,addIcons);
+ addItemBool("ShowIconToggleFull",&mShowIconToggleFull,addIcons);
+
addItemInt("LastLoadedLanguage",&mOldLanguage,0);
diff --git a/korganizer/koprefs.h b/korganizer/koprefs.h
index fbce6ea..3a07348 100644
--- a/korganizer/koprefs.h
+++ b/korganizer/koprefs.h
@@ -188,4 +188,8 @@ class KOPrefs : public KPimPrefs
bool mShowIconFilter;
bool mShowIconOnetoolbar;
+ bool mShowIconNavigator;
+ bool mShowIconAllday;
+ bool mShowIconFilterview;
+ bool mShowIconToggleFull;
bool mShowIconStretch;
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp
index 8e52968..8a4c7eb 100644
--- a/korganizer/mainwindow.cpp
+++ b/korganizer/mainwindow.cpp
@@ -726,5 +726,17 @@ void MainWindow::initActions()
viewMenu->insertSeparator();
+ // ***********************
+ if ( KOPrefs::instance()->mVerticalScreen ) {
+ icon = SmallIcon( "1updownarrow" );
+ } else {
+ icon = SmallIcon("1leftrightarrow" );
+ }
+ configureToolBarMenu->insertItem(icon, i18n("Toggle Fullscreen"), 28 );
+ QAction* FSaction = new QAction( i18n("Toggle Fullscreen"), icon, i18n("Toggle Fullscreen"), 0, this );
+ FSaction->addTo( viewMenu );
+ connect( FSaction, SIGNAL( activated() ), mView, SLOT( toggleExpand() ));
+
icon = loadPixmap( pathString + "navi" );
+ configureToolBarMenu->insertItem(icon, i18n("Toggle DateNavigator"), 22 );
action = new QAction( i18n("Toggle DateNavigator"), icon, i18n("Toggle DateNavigator"), 0, this );
action->addTo( viewMenu );
@@ -733,4 +745,5 @@ void MainWindow::initActions()
mToggleNav = action ;
icon = loadPixmap( pathString + "filter" );
+ configureToolBarMenu->insertItem(icon, i18n("Toggle FilterView"), 26 );
action = new QAction( i18n("Toggle FilterView"), icon, i18n("Toggle FilterView"), 0, this );
action->addTo( viewMenu );
@@ -739,4 +752,5 @@ void MainWindow::initActions()
mToggleFilter = action;
icon = loadPixmap( pathString + "allday" );
+ configureToolBarMenu->insertItem(icon, i18n("Toggle Allday"), 24 );
action = new QAction( i18n("Toggle Allday"), icon,i18n("Toggle Allday"), 0, this );
action->addTo( viewMenu );
@@ -762,4 +776,10 @@ void MainWindow::initActions()
viewMenu->insertSeparator();
+ if ( p-> mShowIconToggleFull )
+ FSaction->addTo( iconToolBar );
+ if ( p->mShowIconNavigator ) mToggleNav ->addTo( iconToolBar );
+ if ( p->mShowIconFilterview ) mToggleFilter->addTo( iconToolBar );
+ if ( p->mShowIconAllday ) mToggleAllday->addTo( iconToolBar );
+
icon = loadPixmap( pathString + "whatsnext" );
@@ -1153,4 +1173,10 @@ void MainWindow::initActions()
configureToolBarMenu->insertItem(i18n("What's This?"), 300, 6);
+
+ if ( p->mShowIconNavigator ) configureToolBarMenu->setItemChecked( 22 , true);
+ if ( p->mShowIconAllday ) configureToolBarMenu->setItemChecked( 24 , true);
+ if ( p->mShowIconFilterview ) configureToolBarMenu->setItemChecked( 26 , true);
+ if ( p->mShowIconToggleFull ) configureToolBarMenu->setItemChecked( 28 , true);
+
if (p-> mShowIconNewEvent)
configureToolBarMenu->setItemChecked( 10, true );
@@ -2019,4 +2045,8 @@ void MainWindow::configureToolBar( int item )
p-> mShowIconNewEvent= configureToolBarMenu->isItemChecked( 10 );
p->mShowIconNewTodo = configureToolBarMenu->isItemChecked( 20 );
+ p->mShowIconNavigator = configureToolBarMenu->isItemChecked( 22 );
+ p->mShowIconAllday = configureToolBarMenu->isItemChecked( 24 );
+ p->mShowIconFilterview = configureToolBarMenu->isItemChecked( 26 );
+ p->mShowIconToggleFull = configureToolBarMenu->isItemChecked( 28 );
p-> mShowIconSearch= configureToolBarMenu->isItemChecked( 120 );
p-> mShowIconList= configureToolBarMenu->isItemChecked( 30 );