korganizer
KOIncidenceEditor Class Reference
This is the base class for the calendar component editors. More...
#include <koincidenceeditor.h>

Public Slots | |
virtual void | editIncidence (Incidence *, const TQDate &, Calendar *)=0 |
virtual void | setIncidenceChanger (IncidenceChangerBase *changer) |
virtual void | init ()=0 |
void | addAttachments (const TQStringList &attachments, const TQStringList &mimeTypes=TQStringList(), bool inlineAttachment=false) |
void | addAttendees (const TQStringList &attendees) |
Signals | |
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) |
Public Member Functions | |
KOIncidenceEditor (const TQString &caption, Calendar *calendar, TQWidget *parent) | |
virtual void | modified () |
virtual void | reload ()=0 |
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 | 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 | |
virtual TQString | type () |
virtual TQStringList & | templates () const =0 |
virtual void | loadTemplate (CalendarLocal &)=0 |
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 bool | processInput () |
virtual void | processCancel () |
void | cancelRemovedAttendees (Incidence *incidence) |
Protected Attributes | |
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 is the base class for the calendar component editors.
Definition at line 57 of file koincidenceeditor.h.
Constructor & Destructor Documentation
KOIncidenceEditor::KOIncidenceEditor | ( | const TQString & | caption, | |
Calendar * | calendar, | |||
TQWidget * | parent | |||
) |
Construct new IncidenceEditor.
Definition at line 58 of file koincidenceeditor.cpp.
Member Function Documentation
void KOIncidenceEditor::addAttachments | ( | const TQStringList & | attachments, | |
const TQStringList & | mimeTypes = TQStringList() , |
|||
bool | inlineAttachment = false | |||
) | [slot] |
Adds attachments to the editor.
Definition at line 357 of file koincidenceeditor.cpp.
void KOIncidenceEditor::addAttendees | ( | const TQStringList & | attendees | ) | [slot] |
Adds attendees to the editor.
Definition at line 364 of file koincidenceeditor.cpp.
virtual void KOIncidenceEditor::editIncidence | ( | Incidence * | , | |
const TQDate & | , | |||
Calendar * | ||||
) | [pure virtual, slot] |
Edit an existing todo.
Implemented in KOEventEditor, KOJournalEditor, and KOTodoEditor.
virtual void KOIncidenceEditor::init | ( | ) | [pure virtual, slot] |
Initialize editor.
This function creates the tab widgets.
Implemented in KOEventEditor, KOJournalEditor, and KOTodoEditor.
virtual void KOIncidenceEditor::modified | ( | ) | [inline, virtual] |
This incidence has been modified externally.
Reimplemented in KOEventEditor, KOJournalEditor, and KOTodoEditor.
Definition at line 70 of file koincidenceeditor.h.
virtual bool KOIncidenceEditor::processInput | ( | ) | [inline, protected, virtual] |
Process user input and create or update event.
Returns false if input is invalid.
Reimplemented in KOEventEditor, KOJournalEditor, and KOTodoEditor.
Definition at line 158 of file koincidenceeditor.h.
void KOIncidenceEditor::setRecurringIncidence | ( | Incidence * | originalIncidence, | |
Incidence * | incAfterDissociation | |||
) |
This should be called when editing only one occurrence of a recurring incidence, before showing the editor.
It gives the editor a pointer to the original incidence, which contains all occurrences and a pointer to the original incidence already dissociated from the event (mEvent).
If the user presses ok/apply the changes made to the incAfterDissociation are commited to the callendar through mChanger.
If the user presses cancel we restore originalIncidence and all dissociations are discarded
Definition at line 410 of file koincidenceeditor.cpp.
The documentation for this class was generated from the following files: