kpilot/kpilot
MemoWidget Class Reference
Inheritance diagram for MemoWidget:

Detailed Description
Definition at line 42 of file memoWidget.h.
Public Types | |
enum | Constants { MAX_MEMO_LEN = 8192 } |
Public Slots | |
void | slotShowMemo (int) |
void | slotUpdateButtons () |
void | slotImportMemo () |
void | slotExportMemo () |
void | slotDeleteMemo () |
void | slotAddMemo () |
void | slotSetCategory (int) |
Public Member Functions | |
MemoWidget (QWidget *parent, const QString &dbpath) | |
virtual | ~MemoWidget () |
void | showComponent () |
void | hideComponent () |
bool | preHotSync (QString &) |
void | postHotSync () |
bool | saveAsXML (const QString &fileName, const QPtrList< PilotListItem > &menu_item) |
bool | saveAsText (const QString &fileName, const QPtrList< PilotListItem > &menu_item) |
Protected Member Functions | |
void | initializeCategories (PilotDatabase *) |
void | initializeMemos (PilotDatabase *) |
void | saveChangedMemo () |
bool | addMemo (const QString &text, int category) |
void | showMemo (const PilotMemo *) |
Member Function Documentation
|
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 196 of file memoWidget.cc. |
|
Reload data (possibly changed by the hotsync) etc. etc. Reimplemented from PilotComponent. Definition at line 207 of file memoWidget.cc. |
|
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 Reimplemented from PilotComponent. Definition at line 555 of file memoWidget.cc. |
|
Called when the component is shown in kpilot. It should load the database and populate the widgets. Reimplemented from PilotComponent. Definition at line 164 of file memoWidget.cc. |
|
Called whenever the selected memo changes in order to:
Definition at line 493 of file memoWidget.cc. |
The documentation for this class was generated from the following files: