kpilot

TodoWidget Class Reference

#include <todoWidget.h>

Inheritance diagram for TodoWidget:

List of all members.


Public Slots

void slotCreateNewRecord ()
void slotDeleteRecord ()
void slotEditCancelled ()
void slotEditRecord ()
void slotEditRecord (QListViewItem *item)
void slotShowTodo (QListViewItem *)
void slotUpdateButtons ()

Signals

void recordChanged (PilotTodoEntry *)

Public Member Functions

virtual void hideComponent ()
virtual void postHotSync ()
virtual bool preHotSync (QString &)
virtual void showComponent ()
 TodoWidget (QWidget *parent, const QString &dbpath)
 ~TodoWidget ()

Protected Slots

void slotAddRecord (PilotTodoEntry *)
void slotItemChecked (QCheckListItem *item, bool on)
void slotItemRenamed (QListViewItem *item, const QString &txt, int nr)
void slotSetCategory (int)
void slotUpdateRecord (PilotTodoEntry *)

Protected Attributes

int fPendingTodos

Detailed Description

Definition at line 66 of file todoWidget.h.


Constructor & Destructor Documentation

TodoWidget::TodoWidget ( QWidget parent,
const QString dbpath 
)

Definition at line 66 of file todoWidget.cc.

TodoWidget::~TodoWidget (  ) 

Definition at line 81 of file todoWidget.cc.


Member Function Documentation

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 195 of file todoWidget.cc.

void TodoWidget::postHotSync (  )  [virtual]

Reload data (possibly changed by the hotsync) etc.

etc.

Reimplemented from PilotComponent.

Definition at line 187 of file todoWidget.cc.

bool TodoWidget::preHotSync ( QString s  )  [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 160 of file todoWidget.cc.

void TodoWidget::recordChanged ( PilotTodoEntry  )  [signal]

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 127 of file todoWidget.cc.

void TodoWidget::slotAddRecord ( PilotTodoEntry todo  )  [protected, slot]

Pop up an edit window for a new record.

Definition at line 431 of file todoWidget.cc.

void TodoWidget::slotCreateNewRecord (  )  [slot]

Definition at line 381 of file todoWidget.cc.

void TodoWidget::slotDeleteRecord (  )  [slot]

Definition at line 483 of file todoWidget.cc.

void TodoWidget::slotEditCancelled (  )  [slot]

Definition at line 475 of file todoWidget.cc.

void TodoWidget::slotEditRecord (  )  [slot]

Definition at line 347 of file todoWidget.cc.

void TodoWidget::slotEditRecord ( QListViewItem item  )  [slot]

Definition at line 351 of file todoWidget.cc.

void TodoWidget::slotItemChecked ( QCheckListItem item,
bool  on 
) [protected, slot]

Definition at line 587 of file todoWidget.cc.

void TodoWidget::slotItemRenamed ( QListViewItem item,
const QString txt,
int  nr 
) [protected, slot]

Definition at line 597 of file todoWidget.cc.

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 340 of file todoWidget.cc.

void TodoWidget::slotShowTodo ( QListViewItem item  )  [slot]

Called when a particular todo is selected.

This slot displays it in the viewer widget.

Definition at line 515 of file todoWidget.cc.

void TodoWidget::slotUpdateButtons (  )  [slot]

Definition at line 328 of file todoWidget.cc.

void TodoWidget::slotUpdateRecord ( PilotTodoEntry todo  )  [protected, slot]

When an edit window is closed, the corresponding record is updated and possibly re-displayed.

Definition at line 457 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: