#include <kojournaleditor.h>
Public Member Functions | |
KOJournalEditor (Calendar *calendar, TQWidget *parent) | |
void | init () |
void | reload () |
void | newJournal () |
void | setTexts (const TQString &summary, const TQString &description=TQString()) |
void | editIncidence (Incidence *, const TQDate &date, Calendar *) |
void | setDate (const TQDate &date) |
void | readJournal (Journal *, const TQDate &date) |
void | writeJournal (Journal *) |
int | msgItemDelete () |
bool | validateInput () |
bool | processInput () |
void | modified () |
Public Member Functions inherited from KOIncidenceEditor | |
KOIncidenceEditor (const TQString &caption, Calendar *calendar, TQWidget *parent) | |
virtual void | setResource (ResourceCalendar *res, const TQString &subRes) |
virtual void | selectInvitationCounterProposal (bool enable) |
virtual void | selectCreateTask (bool enable) |
void | setRecurringIncidence (Incidence *originalIncidence, Incidence *incAfterDissociation) |
Protected Slots | |
void | loadDefaults () |
void | deleteJournal () |
void | slotSaveTemplate (const TQString &) |
Protected Slots inherited from KOIncidenceEditor | |
void | slotApply () |
void | slotOk () |
void | slotCancel () |
void | openURL (const KURL &url) |
virtual void | slotManageTemplates () |
virtual void | slotSaveTemplate (const TQString &)=0 |
virtual void | slotLoadTemplate (const TQString &) |
virtual void | slotTemplatesChanged (const TQStringList &) |
Protected Member Functions | |
TQString | type () |
void | setupGeneral () |
void | loadTemplate (CalendarLocal &) |
TQStringList & | templates () const |
Protected Member Functions inherited from KOIncidenceEditor | |
void | setupAttendeesTab () |
void | setupDesignerTabs (const TQString &type) |
void | saveAsTemplate (Incidence *, const TQString &name) |
void | readDesignerFields (Incidence *i) |
void | writeDesignerFields (Incidence *i) |
TQWidget * | addDesignerTab (const TQString &uifile) |
void | setupEmbeddedURLPage (const TQString &label, const TQString &url, const TQString &mimetype) |
void | createEmbeddedURLPages (Incidence *i) |
virtual void | processCancel () |
void | cancelRemovedAttendees (Incidence *incidence) |
Additional Inherited Members | |
Public Slots inherited from KOIncidenceEditor | |
virtual void | setIncidenceChanger (IncidenceChangerBase *changer) |
void | addAttachments (const TQStringList &attachments, const TQStringList &mimeTypes=TQStringList(), bool inlineAttachment=false) |
void | addAttendees (const TQStringList &attendees) |
Signals inherited from KOIncidenceEditor | |
void | deleteAttendee (Incidence *) |
void | editCategories () |
void | updateCategoryConfig () |
void | dialogClose (Incidence *) |
void | editCanceled (Incidence *) |
void | deleteIncidenceSignal (Incidence *) |
void | signalAddAttachments (const TQStringList &attachments, const TQStringList &mimeTypes=TQStringList(), bool inlineAttachment=false) |
Protected Attributes inherited from KOIncidenceEditor | |
Calendar * | mCalendar |
KOEditorDetails * | mDetails |
KOAttendeeEditor * | mAttendeeEditor |
KOrg::IncidenceChangerBase * | mChanger |
TQPtrList< KPIM::DesignerFields > | mDesignerFields |
TQMap< TQWidget *, KPIM::DesignerFields * > | mDesignerFieldForWidget |
TQPtrList< TQWidget > | mEmbeddedURLPages |
TQPtrList< TQWidget > | mAttachedDesignerFields |
ResourceCalendar * | mResource |
TQString | mSubResource |
bool | mIsCounter |
bool | mIsCreateTask |
Incidence * | mRecurIncidence |
Incidence * | mRecurIncidenceAfterDissoc |
Detailed Description
This class provides a dialog for editing a Journal.
Definition at line 46 of file kojournaleditor.h.
Constructor & Destructor Documentation
◆ KOJournalEditor()
KOJournalEditor::KOJournalEditor | ( | Calendar * | calendar, |
TQWidget * | parent | ||
) |
Constructs a new Journal editor.
Definition at line 46 of file kojournaleditor.cpp.
Member Function Documentation
◆ editIncidence()
|
virtual |
Edit an existing Journal.
Implements KOIncidenceEditor.
Definition at line 99 of file kojournaleditor.cpp.
◆ init()
|
virtual |
Initialize editor.
This function creates the tab widgets.
Implements KOIncidenceEditor.
Definition at line 57 of file kojournaleditor.cpp.
◆ modified()
|
virtual |
This Journal has been modified externally.
Reimplemented from KOIncidenceEditor.
Definition at line 205 of file kojournaleditor.cpp.
◆ newJournal()
void KOJournalEditor::newJournal | ( | ) |
Clear editor for new Journal.
Definition at line 112 of file kojournaleditor.cpp.
◆ processInput()
|
virtual |
Process user input and create or update event.
Returns false if input is not valid
Reimplemented from KOIncidenceEditor.
Definition at line 138 of file kojournaleditor.cpp.
◆ readJournal()
void KOJournalEditor::readJournal | ( | Journal * | journal, |
const TQDate & | date | ||
) |
Read event object and setup widgets accordingly.
Definition at line 180 of file kojournaleditor.cpp.
◆ setDate()
void KOJournalEditor::setDate | ( | const TQDate & | date | ) |
Set widgets to default values.
Definition at line 174 of file kojournaleditor.cpp.
◆ setTexts()
void KOJournalEditor::setTexts | ( | const TQString & | summary, |
const TQString & | description = TQString() |
||
) |
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 119 of file kojournaleditor.cpp.
◆ validateInput()
bool KOJournalEditor::validateInput | ( | ) |
Check if the input is valid.
Definition at line 193 of file kojournaleditor.cpp.
◆ writeJournal()
void KOJournalEditor::writeJournal | ( | Journal * | journal | ) |
Write event settings to event object.
Definition at line 187 of file kojournaleditor.cpp.
The documentation for this class was generated from the following files: