korganizer
kotodoeditor.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026 #ifndef _KOTODOEDITOR_H
00027 #define _KOTODOEDITOR_H
00028
00029 #include "koincidenceeditor.h"
00030
00031 class TQDateTime;
00032 class KOEditorGeneralTodo;
00033 class KOEditorRecurrence;
00037 class KOTodoEditor : public KOIncidenceEditor
00038 {
00039 Q_OBJECT
00040 public:
00044 KOTodoEditor( Calendar *calendar, TQWidget *parent );
00045 virtual ~KOTodoEditor();
00046
00047 void init();
00048
00049 void reload();
00050
00054 void newTodo();
00055
00061 void setTexts( const TQString &summary, const TQString &description = TQString::null );
00063 void editIncidence(Incidence *incidence, const TQDate &date, Calendar* calendar);
00064
00066 void setDates( const TQDateTime &due, bool allDay = true, Todo *relatedTodo = 0 );
00068 void readTodo(Todo *todo, Calendar *calendar, const TQDate &date);
00070 void writeTodo(Todo *);
00071
00073 bool validateInput();
00076 bool processInput();
00077
00079 void modified();
00080
00081 protected slots:
00082 void loadDefaults();
00083 void deleteTodo();
00084
00085 void slotSaveTemplate( const TQString & );
00086 void updateRecurrenceSummary();
00087
00088 protected:
00089 void loadTemplate( CalendarLocal& );
00090 TQStringList& templates() const;
00091 TQString type() { return "Todo"; }
00092 void setupGeneral();
00093 void setupRecurrence();
00094 int msgItemDelete();
00095
00096 private:
00097 Todo *mTodo;
00098 Calendar *mCalendar;
00099
00100 Todo *mRelatedTodo;
00101
00102 KOEditorGeneralTodo *mGeneral;
00103 KOEditorRecurrenceDialog *mRecurrenceDialog;
00104 KOEditorRecurrence *mRecurrence;
00105 };
00106
00107 #endif
|