-rw-r--r-- | korganizer/calendarview.cpp | 35 |
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 @@ -2399,6 +2399,41 @@ void CalendarView::showTodoEditor() 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() ); |