kpilot/kpilot
TodoWidget Class Reference
Inheritance diagram for TodoWidget:

Detailed Description
Definition at line 66 of file todoWidget.h.
Public Slots | |
void | slotShowTodo (QListViewItem *) |
void | slotEditRecord (QListViewItem *item) |
void | slotEditRecord () |
void | slotCreateNewRecord () |
void | slotDeleteRecord () |
void | slotEditCancelled () |
void | slotUpdateButtons () |
Signals | |
void | recordChanged (PilotTodoEntry *) |
Public Member Functions | |
TodoWidget (QWidget *parent, const QString &dbpath) | |
~TodoWidget () | |
virtual bool | preHotSync (QString &) |
virtual void | postHotSync () |
virtual void | showComponent () |
virtual void | hideComponent () |
Protected Slots | |
void | slotUpdateRecord (PilotTodoEntry *) |
void | slotAddRecord (PilotTodoEntry *) |
void | slotSetCategory (int) |
void | slotItemChecked (QCheckListItem *item, bool on) |
void | slotItemRenamed (QListViewItem *item, const QString &txt, int nr) |
Protected Attributes | |
int | fPendingTodos |
Member Function Documentation
bool TodoWidget::preHotSync | ( | QString & | ) | [virtual] |
Get ready for a hotsync -- write any unflushed records to disk, close windows, whatever.
Returns false if it is impossible to go into a sync now (due to open windows or strange state.).
The default implementation returns true.
If the function returns false, it can also put a string stating the reason why into s
. This string will be displayed to the user: "Can't start HotSync. %1" where 1 is replaced by s.
Reimplemented from PilotComponent.
Definition at line 162 of file todoWidget.cc.
void TodoWidget::postHotSync | ( | ) | [virtual] |
Reload data (possibly changed by the hotsync) etc.
etc.
Reimplemented from PilotComponent.
Definition at line 189 of file todoWidget.cc.
void TodoWidget::showComponent | ( | ) | [virtual] |
Called when the component is shown in kpilot.
It should load the database and populate the widgets.
Reimplemented from PilotComponent.
Definition at line 128 of file todoWidget.cc.
void TodoWidget::hideComponent | ( | ) | [virtual] |
Called when the component is hidden in kpilot.
It should unload the databases and clean up to save memory. This method can be called even if the component is not visible. If there are some editing dlgs open, this needs to be deferred until they are all closed. Then, one can explicitly call hideComponent().
Reimplemented from PilotComponent.
Definition at line 197 of file todoWidget.cc.
void TodoWidget::slotShowTodo | ( | QListViewItem * | ) | [slot] |
Called when a particular todo is selected.
This slot displays it in the viewer widget.
Definition at line 517 of file todoWidget.cc.
void TodoWidget::slotUpdateRecord | ( | PilotTodoEntry * | ) | [protected, slot] |
When an edit window is closed, the corresponding record is updated and possibly re-displayed.
Definition at line 459 of file todoWidget.cc.
void TodoWidget::slotAddRecord | ( | PilotTodoEntry * | ) | [protected, slot] |
void TodoWidget::slotSetCategory | ( | int | ) | [protected, slot] |
Change category.
This means that the display should be cleared and that the list should be repopulated.
Definition at line 342 of file todoWidget.cc.
Member Data Documentation
int TodoWidget::fPendingTodos [protected] |
Keep track of how many open todo editing windows there are.
You can't sync when there are open windows.
Definition at line 163 of file todoWidget.h.
The documentation for this class was generated from the following files: