korganizer Library API Documentation

KOTodoEditor Class Reference

This class provides a dialog for editing a Todo. More...

#include <kotodoeditor.h>

Inheritance diagram for KOTodoEditor:

KOIncidenceEditor List of all members.

Signals

void todoChanged (Todo *oldTodo, Todo *newTodo)
void todoAdded (Todo *)
void todoToBeDeleted (Todo *)
void todoDeleted ()

Public Member Functions

 KOTodoEditor (Calendar *calendar, QWidget *parent)
void init ()
void reload ()
void newTodo (QDateTime due, Todo *relatedTodo=0, bool allDay=false)
void newTodo (const QString &)
void newTodo (const QString &summary, const QString &description, const QString &attachment)
void editTodo (Todo *)
void setDefaults (QDateTime due, Todo *relatedTodo, bool allDay)
void readTodo (Todo *)
void writeTodo (Todo *)
bool validateInput ()
bool processInput ()
void processCancel ()
void modified (int)

Protected Slots

void loadDefaults ()
void deleteTodo ()
void slotLoadTemplate ()
void saveTemplate (const QString &)

Protected Member Functions

QString type ()
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

KOTodoEditor::KOTodoEditor Calendar *  calendar,
QWidget *  parent
 

Constructs a new todo editor.

Definition at line 47 of file kotodoeditor.cpp.

References KOTodoEditor().

Referenced by KOTodoEditor().


Member Function Documentation

void KOTodoEditor::init  )  [virtual]
 

Initialize editor.

This function creates the tab widgets.

Implements KOIncidenceEditor.

Definition at line 59 of file kotodoeditor.cpp.

Referenced by editTodo(), and newTodo().

void KOTodoEditor::newTodo QDateTime  due,
Todo *  relatedTodo = 0,
bool  allDay = false
 

Clear editor for new todo, and preset the dates and times with hint.

Definition at line 135 of file kotodoeditor.cpp.

References init(), newTodo(), and setDefaults().

Referenced by CalendarView::newSubTodo(), newTodo(), and CalendarView::newTodo().

void KOTodoEditor::newTodo const QString &   ) 
 

Edit new todo.

Set summary and description from given text.

Definition at line 143 of file kotodoeditor.cpp.

References init(), and newTodo().

void KOTodoEditor::newTodo const QString &  summary,
const QString &  description,
const QString &  attachment
 

Edit new todo.

Definition at line 162 of file kotodoeditor.cpp.

References init(), and newTodo().

void KOTodoEditor::editTodo Todo *   ) 
 

Edit an existing todo.

Definition at line 127 of file kotodoeditor.cpp.

References editTodo(), init(), and readTodo().

Referenced by editTodo(), and CalendarView::editTodo().

void KOTodoEditor::setDefaults QDateTime  due,
Todo *  relatedTodo,
bool  allDay
 

Set widgets to default values.

Definition at line 251 of file kotodoeditor.cpp.

References setDefaults().

Referenced by newTodo(), and setDefaults().

void KOTodoEditor::readTodo Todo *   ) 
 

Read event object and setup widgets accordingly.

Definition at line 260 of file kotodoeditor.cpp.

References readTodo().

Referenced by editTodo(), and readTodo().

void KOTodoEditor::writeTodo Todo *   ) 
 

Write event settings to event object.

Definition at line 272 of file kotodoeditor.cpp.

References writeTodo().

Referenced by processInput(), and writeTodo().

bool KOTodoEditor::validateInput  ) 
 

Check if the input is valid.

Definition at line 284 of file kotodoeditor.cpp.

Referenced by processInput().

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 185 of file kotodoeditor.cpp.

References validateInput(), and writeTodo().

void KOTodoEditor::modified int   ) 
 

This todo has been modified externally.

Definition at line 298 of file kotodoeditor.cpp.

References modified().

Referenced by modified(), and CalendarView::todoModified().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for korganizer Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Jul 28 23:58:14 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003