25#ifndef KOINCIDENCEEDITOR_H
26#define KOINCIDENCEEDITOR_H
28#include <kdialogbase.h>
35class CategorySelectDialog;
40namespace KOrg {
class IncidenceChangerBase; }
72 virtual void reload() = 0;
75 virtual void selectInvitationCounterProposal(
bool enable );
76 virtual void selectCreateTask(
bool enable );
95 virtual void setIncidenceChanger( IncidenceChangerBase *changer ) {
103 const TQStringList& mimeTypes = TQStringList(),
104 bool inlineAttachment =
false );
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.
This is the base class for the calendar component editors.
virtual void modified()
This incidence has been modified externally.
KOIncidenceEditor(const TQString &caption, Calendar *calendar, TQWidget *parent)
Construct new IncidenceEditor.
void setRecurringIncidence(Incidence *originalIncidence, Incidence *incAfterDissociation)
This should be called when editing only one occurrence of a recurring incidence, before showing the e...
void addAttendees(const TQStringList &attendees)
Adds attendees to the editor.
void addAttachments(const TQStringList &attachments, const TQStringList &mimeTypes=TQStringList(), bool inlineAttachment=false)
Adds attachments to the editor.
virtual void editIncidence(Incidence *, const TQDate &, Calendar *)=0
Edit an existing todo.
virtual void init()=0
Initialize editor.
virtual bool processInput()
Process user input and create or update event.