KOTodoEditor Class Reference
This class provides a dialog for editing a Todo. More...
#include <kotodoeditor.h>
Inheritance diagram for KOTodoEditor:

Signals | |
void | todoChanged (Todo *) |
void | todoAdded (Todo *) |
void | todoToBeDeleted (Todo *) |
void | todoDeleted () |
Public Member Functions | |
KOTodoEditor (Calendar *calendar, QWidget *parent) | |
Constructs a new todo editor. | |
void | init () |
Initialize editor. | |
void | reload () |
void | newTodo (QDateTime due, Todo *relatedTodo=0, bool allDay=false) |
Clear editor for new todo, and preset the dates and times with hint. | |
void | editTodo (Todo *) |
Edit an existing todo. | |
void | setDefaults (QDateTime due, Todo *relatedTodo, bool allDay) |
Set widgets to default values. | |
void | readTodo (Todo *) |
Read event object and setup widgets accordingly. | |
void | writeTodo (Todo *) |
Write event settings to event object. | |
bool | validateInput () |
Check if the input is valid. | |
bool | processInput () |
Process user input and create or update event. | |
void | modified (int) |
This todo has been modified externally. | |
Protected Slots | |
void | loadDefaults () |
void | deleteTodo () |
void | slotLoadTemplate () |
void | slotSaveTemplate () |
void | saveTemplate (const QString &) |
Protected Member Functions | |
void | setupGeneral () |
int | msgItemDelete () |
Detailed Description
This class provides a dialog for editing a Todo.
Definition at line 38 of file kotodoeditor.h.
Constructor & Destructor Documentation
|
Constructs a new todo editor.
Definition at line 43 of file kotodoeditor.cpp. |
Member Function Documentation
|
Initialize editor. This function creates the tab widgets. Implements KOIncidenceEditor. Definition at line 55 of file kotodoeditor.cpp. Referenced by editTodo(), and newTodo(). |
|
Clear editor for new todo, and preset the dates and times with hint.
Definition at line 130 of file kotodoeditor.cpp. References init(), and setDefaults(). Referenced by CalendarView::newSubTodo(), and CalendarView::newTodo(). |
|
Edit an existing todo.
Definition at line 122 of file kotodoeditor.cpp. References init(), and readTodo(). Referenced by CalendarView::editTodo(). |
|
Set widgets to default values.
Definition at line 195 of file kotodoeditor.cpp. Referenced by newTodo(). |
|
Read event object and setup widgets accordingly.
Definition at line 203 of file kotodoeditor.cpp. Referenced by editTodo(). |
|
Write event settings to event object.
Definition at line 214 of file kotodoeditor.cpp. Referenced by processInput(). |
|
Check if the input is valid.
Definition at line 225 of file kotodoeditor.cpp. Referenced by processInput(). |
|
Process user input and create or update event. Returns false if input is not valid Reimplemented from KOIncidenceEditor. Definition at line 143 of file kotodoeditor.cpp. References validateInput(), and writeTodo(). |
|
This todo has been modified externally.
Definition at line 239 of file kotodoeditor.cpp. Referenced by CalendarView::todoModified(). |
The documentation for this class was generated from the following files: