author | zautrix <zautrix> | 2005-07-08 12:15:38 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-07-08 12:15:38 (UTC) |
commit | 3e94cf2e8a14c7d40aea28a0fe5538abcd211746 (patch) (side-by-side diff) | |
tree | 04b5095d96824d5c3d4e01c144e2968dc99e46d8 /korganizer/mainwindow.cpp | |
parent | e1ed9342934d027f8b72a97eb710a52abe53b719 (diff) | |
download | kdepimpi-3e94cf2e8a14c7d40aea28a0fe5538abcd211746.zip kdepimpi-3e94cf2e8a14c7d40aea28a0fe5538abcd211746.tar.gz kdepimpi-3e94cf2e8a14c7d40aea28a0fe5538abcd211746.tar.bz2 |
fixes
-rw-r--r-- | korganizer/mainwindow.cpp | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index bfae1b5..5249300 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp @@ -1118,6 +1118,7 @@ void MainWindow::initActions() exportMenu_X->insertItem( i18n("Export to phone"), ex2phone ); importMenu->insertItem( i18n("Export"), exportMenu_X ); + mPrintSelAction = 0; #ifndef DESKTOP_VERSION //importMenu->insertSeparator(); brAction = new QAction( "beam toggle", i18n("Beam receive enabled"), 0, @@ -1144,28 +1145,30 @@ void MainWindow::initActions() connect( action, SIGNAL( activated() ), this, SLOT( printCal() ) ); - icon = loadPixmap( pathString + "print" ); + icon = loadPixmap( pathString + "week" ); action = new QAction( i18n("Print agenda selection..."),icon,i18n("Print agenda selection..."), 0, this ); action->addTo( beamMenu_X ); connect( action, SIGNAL( activated() ), this, SLOT( printSel() ) ); + icon = loadPixmap( pathString + "whatsnext" ); action = new QAction( i18n("Print What's Next View..."),icon,i18n("Print What's Next View..."), 0, this ); action->addTo( beamMenu_X ); connect( action, SIGNAL( activated() ), mView->viewManager(), SLOT( slotprintWNV() ) ); - icon = loadPixmap( pathString + "print" ); + icon = loadPixmap( pathString + "list" ); action = new QAction( i18n("Print List View..."),icon,i18n("Print List View..."), 0, this ); action->addTo( beamMenu_X ); connect( action, SIGNAL( activated() ), this, SLOT( printListView() ) ); + icon = loadPixmap( pathString + "newevent" ); action = new QAction( i18n("Print selected event / todo..."),icon,i18n("Print selected event / todo..."), 0, this ); action->addTo( beamMenu_X ); connect( action, SIGNAL( activated() ), mView, SLOT( slotprintSelInc() ) ); - + mPrintSelAction = action; importMenu->insertItem( i18n("Print"), beamMenu_X ); #endif @@ -1740,6 +1743,19 @@ void MainWindow::processIncidenceSelection( Incidence *incidence ) mShowAction->setMenuText( i18n("Show") ); mNewSubTodoAction->setEnabled( false ); } + static QPixmap jP = SmallIcon( "journal" ); + static QPixmap eP = SmallIcon( "newevent" ); + static QPixmap tP = SmallIcon( "newtodo" ); +#ifdef DESKTOP_VERSION + QIconSet icon; + if ( incidence->typeID() == todoID ) + icon = QIconSet ( tP ); + else if ( incidence->typeID() == eventID ) + icon = QIconSet ( eP ); + else if ( incidence->typeID() == journalID ) + icon = QIconSet ( jP ); + mPrintSelAction->setIconSet ( icon ); +#endif } void MainWindow::enableIncidenceActions( bool enabled ) @@ -1752,6 +1768,8 @@ void MainWindow::enableIncidenceActions( bool enabled ) mMoveAction->setEnabled( enabled ); #ifndef DESKTOP_VERSION mBeamAction->setEnabled( enabled ); +#else + mPrintSelAction->setEnabled( enabled ); #endif mCancelAction->setEnabled( enabled ); } |