koeventeditor.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef KOEVENTEDITOR_H
00025 #define KOEVENTEDITOR_H
00026
00027 #include <kdialogbase.h>
00028
00029 #include <qdatetime.h>
00030
00031 #include <libkcal/calendar.h>
00032
00033 #include "koeditorgeneralevent.h"
00034 #include "koeditordetails.h"
00035 #include "koeditorrecurrence.h"
00036 #include "koincidenceeditor.h"
00037
00038 class SaveTemplateDialog;
00039
00040 class KOEditorGantt;
00041
00042 using namespace KCal;
00043
00047 class KOEventEditor : public KOIncidenceEditor
00048 {
00049 Q_OBJECT
00050 public:
00054 KOEventEditor( Calendar *calendar, QWidget *parent );
00055 virtual ~KOEventEditor(void);
00056
00057 void init();
00058
00059 void reload();
00060
00064 void newEvent( QDateTime from, QDateTime to, bool allDay = false );
00068 void newEvent( const QString & );
00072 void newEvent( const QString &summary, const QString &description,
00073 const QString &attachment );
00077 void editEvent( Event * );
00078
00082 void setDefaults( QDateTime from, QDateTime to, bool allDay );
00083
00088 void readEvent( Event *, bool tmpl = false );
00092 void writeEvent( Event * );
00093
00094 QObject *typeAheadReceiver() const;
00095
00096 signals:
00097 void eventAdded( Event * );
00098 void eventChanged( Event *oldEvent, Event *newEvent );
00099 void eventToBeDeleted( Event * );
00100 void eventDeleted( Event * );
00101 void deleteAttendee( Incidence * );
00102
00103 void focusReceivedSignal();
00104
00105 protected slots:
00106 void loadDefaults();
00107 void deleteEvent();
00108
00109 void slotLoadTemplate();
00110
00111 void saveTemplate( const QString & );
00112
00113 protected:
00114 QString type() { return "Event"; }
00115 void setupGeneral();
00116 void setupRecurrence();
00117 void setupGanttTab();
00118
00120 bool validateInput();
00123 bool processInput();
00124 void processCancel();
00125 int msgItemDelete();
00126
00127 private:
00128 Event *mEvent;
00129
00130 KOEditorGeneralEvent *mGeneral;
00131 KOEditorRecurrence *mRecurrence;
00132 KOEditorGantt *mGantt;
00133 };
00134
00135 #endif
This file is part of the documentation for korganizer Library Version 3.2.2.