Summary: | wishlist: recurring to-do items | ||
---|---|---|---|
Product: | [Applications] korganizer | Reporter: | eddie.sturgis |
Component: | general | Assignee: | Cornelius Schumacher <schumacher> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | ||
Priority: | NOR | ||
Version: | 3.1 | ||
Target Milestone: | --- | ||
Platform: | RedHat Enterprise Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
eddie.sturgis
2003-04-30 22:59:14 UTC
This feature would be nice to have. There are lots of to-do items that are recurring such as maintenance tasks. Note that this Ical feature is actually accessed from the appointment dialog box. You create an appointment and then check the box to make that appointment a to-do item. Imagine you have a recurring event: yearly, on June 30, "our anniversary". You really want a recurring to-do to go with it: yearly, starting June 15, due June 30, "buy chocolates"! CVS commit by bram: Implemented KOrganizer's most wanted feature: recurring todo's (#57921) From now it's possible to assign recurrence-information to todo's. Checking a recurring todo will add a new todo with the next date, while leaving the original marked as complete. I also tryed to implement this for the todo-editordialog, but somehow this didn't work. I'll have a look at it later. GUI: Tab "Recurrence" added to todo-editor. CCMAIL: 57921-done@bugs.kde.org M +32 -0 calendarview.cpp 1.243 M +3 -1 calendarview.h 1.116 M +2 -0 kodialogmanager.cpp 1.39 M +1 -1 koeditorgeneraltodo.cpp 1.43 M +4 -1 koeditorgeneraltodo.h 1.25 M +19 -19 koeditorrecurrence.cpp 1.61 M +3 -3 koeditorrecurrence.h 1.23 M +2 -2 koeventeditor.cpp 1.71 M +22 -0 kotodoeditor.cpp 1.55 M +5 -1 kotodoeditor.h 1.27 M +8 -4 kotodoview.cpp 1.146 M +2 -0 kotodoview.h 1.65 M +2 -1 kotodoviewitem.cpp 1.29 M +3 -1 koviewmanager.cpp 1.50 CVS commit by bram: Finishing touch for recurrent todo's (#57921). Most quirks should be fixed now: o Support for "Occur x times" and "Occur until <date>". o Support for exceptions. o Support for completing recurrent todo's from the todo-editor. o It's impossible now to enable recurrence when the due date is disabled. (Therefore I had to rename KOEditorRecurrence::setEnabled() to KOEditorRecurrence::setRecurrenceEnabled(). o Minor code cleanup There is still one (unimportant) thingy left. The recurrence acts strange when an exception has the same date as the ending date of an occurence. CCMAIL: 57921@bugs.kde.org M +22 -10 calendarview.cpp 1.244 M +1 -1 calendarview.h 1.117 M +6 -2 koeditorgeneraltodo.cpp 1.44 M +3 -0 koeditorgeneraltodo.h 1.26 M +9 -5 koeditorrecurrence.cpp 1.62 M +1 -1 koeditorrecurrence.h 1.24 M +5 -1 kotodoeditor.cpp 1.56 CVS commit by bram: Display recurrence-symbol in front of recurrent todo. CCMAIL: 57921@bugs.kde.org M +3 -0 kotodoviewitem.cpp 1.30 --- kdepim/korganizer/kotodoviewitem.cpp #1.29:1.30 @@ -106,4 +106,7 @@ void KOTodoViewItem::construct() setText(4,""); } + static const QPixmap recurPxmp = KOGlobals::self()->smallIcon("recur"); + if (mTodo->doesRecur()) + setPixmap(0,recurPxmp); setSortKey(3,keyd); setSortKey(4,keyt); CVS commit by bram: Update todo's startdate too when recurring. CCMAIL: 57921@bugs.kde.org M +7 -1 calendarview.cpp 1.247 --- kdepim/korganizer/calendarview.cpp #1.246:1.247 @@ -1994,4 +1994,8 @@ void CalendarView::recurTodo( Todo *todo copyTodo->setPercentComplete(0); + int length = 0; + if (todo->hasStartDate()) + length = todo->dtDue().daysTo( todo->dtStart() ); + // find next date if ( todo->dtDue() > QDateTime::currentDateTime() ) { @@ -2012,4 +2016,6 @@ void CalendarView::recurTodo( Todo *todo } + copyTodo->setDtStart( copyTodo->dtDue().addDays( length ) ); + copyTodo->recurrence()->setRecurStart( copyTodo->dtDue() ); if ( duration > 1 ) |