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

Public Member Functions | |
KOTodoEditor (Calendar *calendar, TQWidget *parent) | |
void | init () |
void | reload () |
void | newTodo () |
void | setTexts (const TQString &summary, const TQString &description=TQString::null) |
void | editIncidence (Incidence *incidence, const TQDate &date, Calendar *calendar) |
void | setDates (const TQDateTime &due, bool allDay=true, Todo *relatedTodo=0) |
void | readTodo (Todo *todo, Calendar *calendar, const TQDate &date) |
void | writeTodo (Todo *) |
bool | validateInput () |
bool | processInput () |
void | modified () |
Protected Slots | |
void | loadDefaults () |
void | deleteTodo () |
void | slotSaveTemplate (const TQString &) |
void | updateRecurrenceSummary () |
Protected Member Functions | |
void | loadTemplate (CalendarLocal &) |
TQStringList & | templates () const |
TQString | type () |
void | setupGeneral () |
void | setupRecurrence () |
int | msgItemDelete () |
Detailed Description
This class provides a dialog for editing a Todo.Definition at line 37 of file kotodoeditor.h.
Constructor & Destructor Documentation
KOTodoEditor::KOTodoEditor | ( | Calendar * | calendar, | |
TQWidget * | parent | |||
) |
Member Function Documentation
void KOTodoEditor::init | ( | ) | [virtual] |
Initialize editor.
This function creates the tab widgets.
Implements KOIncidenceEditor.
Definition at line 65 of file kotodoeditor.cpp.
void KOTodoEditor::newTodo | ( | ) |
Edit new todo.
Use the set* methods to set appropriate default values if needed
Definition at line 163 of file kotodoeditor.cpp.
void KOTodoEditor::setTexts | ( | const TQString & | summary, | |
const TQString & | description = TQString::null | |||
) |
Sets the given summary and description.
If description is empty and the summary contains multiple lines, the summary will be used as description and only the first line of summary will be used as the summary.
Definition at line 173 of file kotodoeditor.cpp.
void KOTodoEditor::editIncidence | ( | Incidence * | incidence, | |
const TQDate & | date, | |||
Calendar * | calendar | |||
) | [virtual] |
Edit an existing todo.
Implements KOIncidenceEditor.
Definition at line 149 of file kotodoeditor.cpp.
void KOTodoEditor::setDates | ( | const TQDateTime & | due, | |
bool | allDay = true , |
|||
Todo * | relatedTodo = 0 | |||
) |
void KOTodoEditor::writeTodo | ( | Todo * | todo | ) |
bool KOTodoEditor::validateInput | ( | ) |
bool KOTodoEditor::processInput | ( | ) | [virtual] |
Process user input and create or update event.
Returns false if input is not valid
Reimplemented from KOIncidenceEditor.
Definition at line 192 of file kotodoeditor.cpp.
void KOTodoEditor::modified | ( | ) | [virtual] |
This todo has been modified externally.
Reimplemented from KOIncidenceEditor.
Definition at line 332 of file kotodoeditor.cpp.
The documentation for this class was generated from the following files: