Closed Bug 135896 Opened 22 years ago Closed 22 years ago

Add To Do events to calendar sidebar

Categories

(Calendar :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: chris, Assigned: mikeypotter)

References

Details

Attachments

(4 files)

With the sidebar tab for To Do, should show name, priority, and a check box for
when it's completed. We could have a pref to hide completed To Do items on the
sidebar, too (perhaps that should be another bug).
Blocks: cal-todo
it should be possible to make subitems of another item. Please see the todo-part
of the Korganizer-screenshot at
http://korganizer.kde.org/screenshots/mainshot_big.png

Is there any code for the TODO list already?
rfe?
We aren't doing a sidebar to do for calendar, so yes, its an RFE. What I hope it
to be is a an add on application to the calendar itself.
Sending this to nobody@mozilla.org, marking as RFE. Someone, please feel free to
take this on and start it.
Assignee: mikep → nobody
Severity: normal → enhancement
Summary: Add tab for To Do events to calendar sidebar → [RFE] Add tab for To Do events to calendar sidebar
No longer blocks: cal-todo
Blocks: 145981
changing summary; i'm now figuring how to show to-do events in the 'sidebar' at
the left in calendar (with a checkbox instead of an icon). If anyone wants this,
take it, but for now I'm assigning to myself.
Assignee: nobody → coldacid
Summary: [RFE] Add tab for To Do events to calendar sidebar → Add To Do events to calendar sidebar
Just an idea... I pulled this out with DOM Inspector and tailored it a bit. I'm
thinking this is what should be used for incomplete to-do events:

    <listitem id="search-unifinder-treeitem-..."
ondblclick="unifinderDoubleClickEvent(...)">
      <listcell flex="1" crop="right">
        <hbox flex="1" class="unifinder-treecell-box-class" crop="right"
align="center">
          <image class="unifinder-calendar-todo-incomplete-class"
onclick="todoClickEvent(...)/>
          <vbox crop="right" flex="1">
            <label crop="right" value="Add patches to bug 135896"/>
            <label crop="right" value="Deadline: May 23, 2002 3:00 PM"/>
          </vbox>
        </hbox>
      </listcell>
    </listitem>

and for completed ones:

    <listitem id="search-unifinder-treeitem-..."
ondblclick="unifinderDoubleClickEvent(...)">
      <listcell flex="1" crop="right">
        <hbox flex="1" class="unifinder-treecell-box-class" crop="right"
align="center">
          <image class="unifinder-calendar-todo-complete-class"
onclick="todoClickEvent(...)/>
          <vbox crop="right" flex="1">
            <label crop="right" value="Add patches to bug 135896"/>
            <label crop="right" value="Deadline: May 23, 2002 3:00 PM"/>
          </vbox>
        </hbox>
      </listcell>
    </listitem>

(note the class for the image in each of those)

The task of todoClickEvent() would be to check if an event is complete or not.
When the image is clicked, todoClickEvent checks to see if the the event is
complete. If not, the function sets the event as complete, and changes the image
class to reflect this change. If it is complete, then hey, todoClickEvent just
returns since there's nothing that it has to do. Since a to-do event should
really only needed to be checked as complete once (unlike bugs, items on a to-do
list don't regress), I don't see any problems. And later on if we want to allow
to-do events to be toggleable, we can simply edit todoClickEvent() to reflect
this rather than use a checkbox (which, IMHO, wouldn't fit in with the look of
the images for events at the side).
To reiterate from IRC, don't change the class of the images, just add an
attribute on them.  Change the list-style-image in CSS based on the attributes
on the image.
Attached patch skin edit β€” β€” Splinter Review
The three new icons added here don't exist. We'll need todo.png (normal to-do
icon), todo_late.png (for overdue items), and todo_done.png (for completed
items).
Attached patch skin changes -- classic β€” β€” Splinter Review
Same as last but for Classic.
Status: NEW → ASSIGNED
Bugspam: Transferring to mikep. Good luck with them...
Assignee: ccharabaruk → mikep
Status: ASSIGNED → NEW
Bugspam: I can't believe I didn't catch this a while ago... :P
Severity: enhancement → normal
I'm going to mark this as fixed, since To Dos are now in CVS.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
verified
Status: RESOLVED → VERIFIED
The bugspam monkeys have been set free and are feeding on Calendar :: General. Be afraid for your sanity!
QA Contact: colint → general
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: