25 #ifndef KOINCIDENCEEDITOR_H
26 #define KOINCIDENCEEDITOR_H
28 #include <kdialogbase.h>
35 class CategorySelectDialog;
37 class EmbeddedURLPage;
40 namespace KOrg {
class IncidenceChangerBase; }
42 class KOEditorDetails;
72 virtual void reload() = 0;
75 virtual void selectInvitationCounterProposal(
bool enable );
76 virtual void selectCreateTask(
bool enable );
90 void setRecurringIncidence(
Incidence *originalIncidence,
Incidence *incAfterDissociation );
95 virtual void setIncidenceChanger( IncidenceChangerBase *changer ) {
98 virtual void init() = 0;
102 void addAttachments(
const TQStringList &attachments,
103 const TQStringList& mimeTypes = TQStringList(),
104 bool inlineAttachment =
false );
108 void addAttendees(
const TQStringList &attendees );
113 void editCategories();
114 void updateCategoryConfig();
118 void deleteIncidenceSignal(
Incidence * );
119 void signalAddAttachments(
const TQStringList &attachments,
120 const TQStringList& mimeTypes = TQStringList(),
121 bool inlineAttachment =
false );
128 void openURL(
const KURL &url );
130 virtual void slotManageTemplates();
132 virtual void slotSaveTemplate(
const TQString & ) = 0;
133 virtual void slotLoadTemplate(
const TQString& );
134 virtual void slotTemplatesChanged(
const TQStringList& );
137 virtual TQString type() {
return TQString(); }
138 virtual TQStringList& templates()
const = 0;
141 void setupAttendeesTab();
142 void setupDesignerTabs(
const TQString &type );
144 void saveAsTemplate(
Incidence *,
const TQString &name );
147 void writeDesignerFields(
Incidence *i );
149 TQWidget *addDesignerTab(
const TQString &uifile );
151 void setupEmbeddedURLPage(
const TQString &label,
const TQString &url,
152 const TQString &mimetype );
153 void createEmbeddedURLPages(
Incidence *i );
160 virtual void processCancel() {}
162 void cancelRemovedAttendees(
Incidence *incidence );
166 KOEditorDetails *mDetails;
168 KOrg::IncidenceChangerBase *mChanger;
170 TQPtrList<KPIM::DesignerFields> mDesignerFields;
171 TQMap<TQWidget*, KPIM::DesignerFields*> mDesignerFieldForWidget;
172 TQPtrList<TQWidget> mEmbeddedURLPages;
173 TQPtrList<TQWidget> mAttachedDesignerFields;
175 TQString mSubResource;
Common base class for attendee editor and free busy view.
virtual void modified()
This incidence has been modified externally.
virtual bool processInput()
Process user input and create or update event.
This is the base class for the calendar component editors.