summaryrefslogtreecommitdiffabout
path: root/korganizer/mainwindow.cpp
authorzautrix <zautrix>2004-10-06 12:40:40 (UTC)
committer zautrix <zautrix>2004-10-06 12:40:40 (UTC)
commit3e949ed97c7a65eeaddecb1048872cd8595b3caf (patch) (side-by-side diff)
treea964f4f0ac4d0390655f72aec71185c3f26f04de /korganizer/mainwindow.cpp
parent8ac1973bfa65844df80d74c482559470bc704041 (diff)
downloadkdepimpi-3e949ed97c7a65eeaddecb1048872cd8595b3caf.zip
kdepimpi-3e949ed97c7a65eeaddecb1048872cd8595b3caf.tar.gz
kdepimpi-3e949ed97c7a65eeaddecb1048872cd8595b3caf.tar.bz2
added missing actions in kopi
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
@@ -637,6 +637,24 @@ void MainWindow::initActions()
connect( mDeleteAction, SIGNAL( activated() ),
mView, SLOT( deleteIncidence() ) );
+
+ 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();
action = new QAction( "purge_completed", i18n("Purge Completed"), 0,
@@ -1186,7 +1204,7 @@ void MainWindow::exportToPhone( int mode )
QDateTime cur = QDateTime::currentDateTime().addDays( -7 );
QDateTime end = cur.addDays( ( inFuture +1 ) *7 );
while ( incidence ) {
- if ( incidence->type() != "journal" ) {
+ if ( incidence->type() != "Journal" ) {
bool add = true;
if ( inFuture ) {
QDateTime dt;
@@ -1498,6 +1516,11 @@ void MainWindow::enableIncidenceActions( bool enabled )
mShowAction->setEnabled( enabled );
mEditAction->setEnabled( enabled );
mDeleteAction->setEnabled( enabled );
+
+ mCloneAction->setEnabled( enabled );
+ mMoveAction->setEnabled( enabled );
+ mBeamAction->setEnabled( enabled );
+ mCancelAction->setEnabled( enabled );
}
void MainWindow::importOL()