korganizer
KOJournalEditor Class Reference
This class provides a dialog for editing a Journal. More...
#include <kojournaleditor.h>

Public Member Functions | |
KOJournalEditor (Calendar *calendar, QWidget *parent) | |
void | init () |
void | reload () |
void | newJournal () |
void | setTexts (const QString &summary, const QString &description=QString::null) |
void | editIncidence (Incidence *, Calendar *) |
void | setDate (const QDate &date) |
void | readJournal (Journal *) |
void | writeJournal (Journal *) |
int | msgItemDelete () |
bool | validateInput () |
bool | processInput () |
void | modified (int change=0) |
Protected Slots | |
void | loadDefaults () |
void | deleteJournal () |
void | slotSaveTemplate (const QString &) |
Protected Member Functions | |
QString | type () |
void | setupGeneral () |
void | loadTemplate (CalendarLocal &) |
QStringList & | templates () const |
Detailed Description
This class provides a dialog for editing a Journal.Definition at line 46 of file kojournaleditor.h.
Constructor & Destructor Documentation
KOJournalEditor::KOJournalEditor | ( | Calendar * | calendar, | |
QWidget * | parent | |||
) |
Member Function Documentation
Edit an existing Journal.
Implements KOIncidenceEditor.
Definition at line 97 of file kojournaleditor.cpp.
void KOJournalEditor::init | ( | ) | [virtual] |
Initialize editor.
This function creates the tab widgets.
Implements KOIncidenceEditor.
Definition at line 57 of file kojournaleditor.cpp.
void KOJournalEditor::modified | ( | int | change = 0 |
) | [virtual] |
This Journal has been modified externally.
Reimplemented from KOIncidenceEditor.
Definition at line 204 of file kojournaleditor.cpp.
void KOJournalEditor::newJournal | ( | ) |
bool KOJournalEditor::processInput | ( | ) | [virtual] |
Process user input and create or update event.
Returns false if input is not valid
Reimplemented from KOIncidenceEditor.
Definition at line 136 of file kojournaleditor.cpp.
void KOJournalEditor::readJournal | ( | Journal * | journal | ) |
Read event object and setup widgets accordingly.
Definition at line 179 of file kojournaleditor.cpp.
void KOJournalEditor::setDate | ( | const QDate & | date | ) |
void KOJournalEditor::setTexts | ( | const QString & | summary, | |
const QString & | description = QString::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 117 of file kojournaleditor.cpp.
bool KOJournalEditor::validateInput | ( | ) |
void KOJournalEditor::writeJournal | ( | Journal * | journal | ) |
The documentation for this class was generated from the following files: