summaryrefslogtreecommitdiffabout
path: root/korganizer/mainwindow.cpp
Side-by-side diff
Diffstat (limited to 'korganizer/mainwindow.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/mainwindow.cpp25
1 files changed, 24 insertions, 1 deletions
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp
index 6a9a2f1..bd14fbf 100644
--- a/korganizer/mainwindow.cpp
+++ b/korganizer/mainwindow.cpp
@@ -639,2 +639,20 @@ void MainWindow::initActions()
+
+ mCloneAction = new QAction( "clone_incidence", i18n("Clone..."), 0, this );
+ mCloneAction->addTo( actionMenu );
+ connect( mCloneAction, SIGNAL( activated() ),
+ mView, SLOT( cloneIncidence() ) );
+ mMoveAction = new QAction( "Move_incidence", i18n("Move..."), 0, this );
+ mMoveAction->addTo( actionMenu );
+ connect( mMoveAction, SIGNAL( activated() ),
+ mView, SLOT( moveIncidence() ) );
+ mBeamAction = new QAction( "Beam_incidence", i18n("Beam..."), 0, this );
+ mBeamAction->addTo( actionMenu );
+ connect( mBeamAction, SIGNAL( activated() ),
+ mView, SLOT( beamIncidence() ) );
+ mCancelAction = new QAction( "Cancel_incidence", i18n("Toggle Cancel"), 0, this );
+ mCancelAction->addTo( actionMenu );
+ connect( mCancelAction, SIGNAL( activated() ),
+ mView, SLOT( toggleCancelIncidence() ) );
+
actionMenu->insertSeparator();
@@ -1188,3 +1206,3 @@ void MainWindow::exportToPhone( int mode )
while ( incidence ) {
- if ( incidence->type() != "journal" ) {
+ if ( incidence->type() != "Journal" ) {
bool add = true;
@@ -1500,2 +1518,7 @@ void MainWindow::enableIncidenceActions( bool enabled )
mDeleteAction->setEnabled( enabled );
+
+ mCloneAction->setEnabled( enabled );
+ mMoveAction->setEnabled( enabled );
+ mBeamAction->setEnabled( enabled );
+ mCancelAction->setEnabled( enabled );
}