Switching selecting the due date to displaying a popup calendar
[doneit] / src / rtm_view.py
index 6a0ab36..60a4680 100644 (file)
@@ -1,6 +1,15 @@
 """
 @todo Add an agenda view to the task list
        Tree of days, with each successive 7 days dropping the visibility of further lower priority items
+@todo Add a map view
+               Using new api widgets people are developing)
+               Integrate GPS w/ fallback to default location
+               Use locations for mapping
+@todo Add a quick search (OR within a property type, and between property types) view
+               Drop down for multi selecting priority
+               Drop down for multi selecting tags
+               Drop down for multi selecting locations
+               Calendar selector for choosing due date range
 @todo Remove blocking operations from UI thread
 """
 
@@ -278,12 +287,10 @@ class ItemListView(object):
                                        self._editDialog.disable()
                                self.reset_task_list(self._projId)
                        elif viewColumn is self._dueColumn:
-                               self._editDialog.enable(self._manager)
-                               try:
-                                       self._editDialog.request_task(self._manager, taskId)
-                               finally:
-                                       self._editDialog.disable()
-                               self.reset_task_list(self._projId)
+                               due = self._manager.get_task_details(taskId)["dueDate"]
+                               if due.is_good():
+                                       calendar = gtk_toolbox.PopupCalendar(None, due.get())
+                                       calendar.run()
                        elif viewColumn is self._linkColumn:
                                webbrowser.open(self._manager.get_task_details(taskId)["url"])
                        elif viewColumn is self._notesColumn: