korganizer
KOJournalEditor Class Reference
#include <kojournaleditor.h>

Detailed Description
This class provides a dialog for editing a Journal.Definition at line 46 of file kojournaleditor.h.
Public Member Functions | |
| void | editIncidence (Incidence *, Calendar *) |
| void | init () |
| KOJournalEditor (Calendar *calendar, QWidget *parent) | |
| void | modified (int change=0) |
| int | msgItemDelete () |
| void | newJournal () |
| bool | processInput () |
| void | readJournal (Journal *) |
| void | reload () |
| void | setDate (const QDate &date) |
| void | setTexts (const QString &summary, const QString &description=QString(), bool richDescription=false) |
| void | setTime (const QTime &time) |
| bool | validateInput () |
| void | writeJournal (Journal *) |
| virtual | ~KOJournalEditor () |
Protected Slots | |
| void | deleteJournal () |
| void | loadDefaults () |
| void | slotSaveTemplate (const QString &) |
Protected Member Functions | |
| void | loadTemplate (CalendarLocal &) |
| void | setupGeneral () |
| QStringList & | templates () const |
| QString | type () |
Constructor & Destructor Documentation
| KOJournalEditor::KOJournalEditor | ( | Calendar * | calendar, | |
| QWidget * | parent | |||
| ) |
| KOJournalEditor::~KOJournalEditor | ( | ) | [virtual] |
Definition at line 54 of file kojournaleditor.cpp.
Member Function Documentation
| void KOJournalEditor::deleteJournal | ( | ) | [protected, slot] |
Definition at line 160 of file kojournaleditor.cpp.
| void KOJournalEditor::editIncidence | ( | Incidence * | incidence, | |
| Calendar * | ||||
| ) | [virtual] |
Edit an existing Journal.
Implements KOIncidenceEditor.
Definition at line 93 of file kojournaleditor.cpp.
| void KOJournalEditor::init | ( | ) | [virtual] |
Initialize editor.
This function creates the tab widgets.
Implements KOIncidenceEditor.
Definition at line 59 of file kojournaleditor.cpp.
| void KOJournalEditor::loadDefaults | ( | ) | [protected, slot] |
Definition at line 125 of file kojournaleditor.cpp.
| void KOJournalEditor::loadTemplate | ( | CalendarLocal & | cal | ) | [protected, virtual] |
| void KOJournalEditor::modified | ( | int | change = 0 |
) | [virtual] |
This Journal has been modified externally.
Reimplemented from KOIncidenceEditor.
Definition at line 206 of file kojournaleditor.cpp.
| int KOJournalEditor::msgItemDelete | ( | ) |
Definition at line 197 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 131 of file kojournaleditor.cpp.
| void KOJournalEditor::readJournal | ( | Journal * | journal | ) |
Read event object and setup widgets accordingly.
Definition at line 180 of file kojournaleditor.cpp.
| void KOJournalEditor::reload | ( | ) | [virtual] |
| void KOJournalEditor::setDate | ( | const QDate & | date | ) |
| void KOJournalEditor::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.
- Parameters:
-
summary The summary of the new journal. If description is empty and summary contains newlines, the summary will only be the first line of the string. description The extensive contents of the new journal. If empty and summary contains line breaks, the summary will be used as description and only the first line will be the summary.
Definition at line 111 of file kojournaleditor.cpp.
| void KOJournalEditor::setTime | ( | const QTime & | time | ) |
| void KOJournalEditor::setupGeneral | ( | ) | [protected] |
Definition at line 72 of file kojournaleditor.cpp.
| void KOJournalEditor::slotSaveTemplate | ( | const QString & | templateName | ) | [protected, virtual, slot] |
| QStringList & KOJournalEditor::templates | ( | ) | const [protected, virtual] |
| QString KOJournalEditor::type | ( | ) | [inline, protected, virtual] |
| bool KOJournalEditor::validateInput | ( | ) |
| void KOJournalEditor::writeJournal | ( | Journal * | journal | ) |
The documentation for this class was generated from the following files:
KDE 4.2 API Reference