summaryrefslogtreecommitdiffabout
path: root/korganizer/calendarview.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/calendarview.cpp
parent8ac1973bfa65844df80d74c482559470bc704041 (diff)
downloadkdepimpi-3e949ed97c7a65eeaddecb1048872cd8595b3caf.zip
kdepimpi-3e949ed97c7a65eeaddecb1048872cd8595b3caf.tar.gz
kdepimpi-3e949ed97c7a65eeaddecb1048872cd8595b3caf.tar.bz2
added missing actions in kopi
Diffstat (limited to 'korganizer/calendarview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/calendarview.cpp35
1 files changed, 35 insertions, 0 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp
index b1da144..38b55f7 100644
--- a/korganizer/calendarview.cpp
+++ b/korganizer/calendarview.cpp
@@ -2398,8 +2398,43 @@ void CalendarView::showTodoEditor()
#else
mTodoEditor->showMaximized();
#endif
}
+
+void CalendarView::cloneIncidence()
+{
+ Incidence *incidence = currentSelection();
+ if ( !incidence ) incidence = mTodoList->selectedIncidences().first();
+ if ( incidence ) {
+ cloneIncidence(incidence);
+ }
+}
+void CalendarView::moveIncidence()
+{
+ Incidence *incidence = currentSelection();
+ if ( !incidence ) incidence = mTodoList->selectedIncidences().first();
+ if ( incidence ) {
+ moveIncidence(incidence);
+ }
+}
+void CalendarView::beamIncidence()
+{
+ Incidence *incidence = currentSelection();
+ if ( !incidence ) incidence = mTodoList->selectedIncidences().first();
+ if ( incidence ) {
+ beamIncidence(incidence);
+ }
+}
+void CalendarView::toggleCancelIncidence()
+{
+ Incidence *incidence = currentSelection();
+ if ( !incidence ) incidence = mTodoList->selectedIncidences().first();
+ if ( incidence ) {
+ cancelIncidence(incidence);
+ }
+}
+
+
void CalendarView::cancelIncidence(Incidence * inc )
{
inc->setCancelled( ! inc->cancelled() );
changeIncidenceDisplay( inc,KOGlobals::EVENTEDITED );