• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

korganizer

KOTodoEditor Class Reference

#include <kotodoeditor.h>

Inheritance diagram for KOTodoEditor:

Inheritance graph
[legend]

List of all members.


Detailed Description

This class provides a dialog for editing a Todo.

Definition at line 39 of file kotodoeditor.h.


Public Member Functions

void editIncidence (Incidence *incidence, Calendar *calendar)
void init ()
 KOTodoEditor (Calendar *calendar, QWidget *parent)
void modified (int change=0)
void newTodo ()
bool processInput ()
void readTodo (Todo *todo, Calendar *calendar)
void reload ()
void setDates (const QDateTime &due, bool allDay=true, Todo *relatedTodo=0)
void setTexts (const QString &summary, const QString &description=QString(), bool richDescription=false)
bool validateInput ()
void writeTodo (Todo *)
virtual ~KOTodoEditor ()

Protected Slots

void deleteTodo ()
void loadDefaults ()
void slotSaveTemplate (const QString &)

Protected Member Functions

void loadTemplate (CalendarLocal &)
int msgItemDelete ()
void setupGeneral ()
void setupRecurrence ()
QStringList & templates () const
QString type ()

Constructor & Destructor Documentation

KOTodoEditor::KOTodoEditor ( Calendar *  calendar,
QWidget *  parent 
)

Constructs a new todo editor.

Definition at line 53 of file kotodoeditor.cpp.

KOTodoEditor::~KOTodoEditor (  )  [virtual]

Definition at line 61 of file kotodoeditor.cpp.


Member Function Documentation

void KOTodoEditor::deleteTodo (  )  [protected, slot]

Definition at line 263 of file kotodoeditor.cpp.

void KOTodoEditor::editIncidence ( Incidence *  incidence,
Calendar *  calendar 
) [virtual]

Edit an existing todo.

Implements KOIncidenceEditor.

Definition at line 172 of file kotodoeditor.cpp.

void KOTodoEditor::init (  )  [virtual]

Initialize editor.

This function creates the tab widgets.

Implements KOIncidenceEditor.

Definition at line 66 of file kotodoeditor.cpp.

void KOTodoEditor::loadDefaults (  )  [protected, slot]

Definition at line 210 of file kotodoeditor.cpp.

void KOTodoEditor::loadTemplate ( CalendarLocal &  cal  )  [protected, virtual]

Implements KOIncidenceEditor.

Definition at line 369 of file kotodoeditor.cpp.

void KOTodoEditor::modified ( int  change = 0  )  [virtual]

This todo has been modified externally.

Reimplemented from KOIncidenceEditor.

Definition at line 360 of file kotodoeditor.cpp.

int KOTodoEditor::msgItemDelete (  )  [protected]

Definition at line 351 of file kotodoeditor.cpp.

void KOTodoEditor::newTodo (  ) 

Edit new todo.

Use setter methods to set appropriate default values, as needed.

Definition at line 187 of file kotodoeditor.cpp.

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

void KOTodoEditor::readTodo ( Todo *  todo,
Calendar *  calendar 
)

Read event object and setup widgets accordingly.

Definition at line 297 of file kotodoeditor.cpp.

void KOTodoEditor::reload (  )  [virtual]

Implements KOIncidenceEditor.

Definition at line 86 of file kotodoeditor.cpp.

void KOTodoEditor::setDates ( const QDateTime &  due,
bool  allDay = true,
Todo *  relatedTodo = 0 
)

Set widgets to default values.

Definition at line 272 of file kotodoeditor.cpp.

void KOTodoEditor::setTexts ( const QString &  summary,
const QString &  description = QString(),
bool  richDescription = false 
)

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

void KOTodoEditor::setupGeneral (  )  [protected]

Definition at line 93 of file kotodoeditor.cpp.

void KOTodoEditor::setupRecurrence (  )  [protected]

Definition at line 157 of file kotodoeditor.cpp.

void KOTodoEditor::slotSaveTemplate ( const QString &  templateName  )  [protected, virtual, slot]

Implements KOIncidenceEditor.

Definition at line 379 of file kotodoeditor.cpp.

QStringList & KOTodoEditor::templates (  )  const [protected, virtual]

Implements KOIncidenceEditor.

Definition at line 386 of file kotodoeditor.cpp.

QString KOTodoEditor::type (  )  [inline, protected, virtual]

Reimplemented from KOIncidenceEditor.

Definition at line 99 of file kotodoeditor.h.

bool KOTodoEditor::validateInput (  ) 

Check if the input is valid.

Definition at line 337 of file kotodoeditor.cpp.

void KOTodoEditor::writeTodo ( Todo *  todo  ) 

Write event settings to event object.

Definition at line 313 of file kotodoeditor.cpp.


The documentation for this class was generated from the following files:
  • kotodoeditor.h
  • kotodoeditor.cpp

korganizer

Skip menu "korganizer"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal