Bug 57921 - wishlist: recurring to-do items
Summary: wishlist: recurring to-do items
Status: RESOLVED FIXED
Alias: None
Product: korganizer
Classification: Applications
Component: general (show other bugs)
Version: 3.1
Platform: RedHat Enterprise Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: Cornelius Schumacher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-30 22:59 UTC by eddie.sturgis
Modified: 2004-04-27 19:41 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description eddie.sturgis 2003-04-30 22:59:14 UTC
Version:           3.1 (using KDE KDE 3.1)
Installed from:    RedHat RPMs
OS:          Linux

Would like to be able to have recurring to-do items, such that reminders will continue to appear until the to-do is complete.  For example, a mortgage payment to-do that would automatically occur near the end of each month.

This is a very useful Ical feature that doesn't seem to be duplicated elsewhere.
Comment 1 Shannon Fields 2003-05-05 15:37:57 UTC
This feature would be nice to have.  There are lots of to-do items that are
recurring such as maintenance tasks.  
Comment 2 eddie.sturgis 2003-05-05 17:13:46 UTC
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.
Comment 3 gjditchfield 2003-08-09 05:36:18 UTC
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"! 
Comment 4 Bram Schoenmakers 2004-04-23 17:20:49 UTC
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



Comment 5 Bram Schoenmakers 2004-04-25 19:37:17 UTC
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



Comment 6 Bram Schoenmakers 2004-04-25 22:52:58 UTC
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);


Comment 7 Bram Schoenmakers 2004-04-27 19:41:55 UTC
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 )