korganizer
kodialogmanager.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 #ifndef KODIALOGMANAGER_H
00026 #define KODIALOGMANAGER_H
00027
00028 #include <qobject.h>
00029 #include <qptrlist.h>
00030
00031 namespace KCal{class CalFilter; }
00032 class CalendarView;
00033 class KCMultiDialog;
00034 class KConfigureDialog;
00035 namespace KPIM { class CategoryEditDialog; }
00036 class KOIncidenceEditor;
00037 class KOEventEditor;
00038 class KOTodoEditor;
00039 class KOJournalEditor;
00040 class SearchDialog;
00041 class ArchiveDialog;
00042 class FilterEditDialog;
00043 class KOAgendaView;
00044
00045 using namespace KCal;
00046
00051 class KODialogManager : public QObject
00052 {
00053 Q_OBJECT
00054 public:
00055 KODialogManager( CalendarView * );
00056 virtual ~KODialogManager();
00057
00059 KOIncidenceEditor *getEditor( Incidence * );
00061 KOEventEditor *getEventEditor();
00063 KOTodoEditor *getTodoEditor();
00065 KOJournalEditor *getJournalEditor();
00066 void connectEditor( KOIncidenceEditor*editor );
00067
00068 void updateSearchDialog();
00069
00070 void connectTypeAhead( KOEventEditor *editor, KOAgendaView *agenda );
00071
00072 static void errorSaveIncidence( QWidget *parent, Incidence *incidence );
00073
00074 public slots:
00075 void showOptionsDialog();
00076 void showCategoryEditDialog();
00077 void showSearchDialog();
00078 void showArchiveDialog();
00079 void showFilterEditDialog(QPtrList<CalFilter> *filters);
00080
00081 private:
00082 class DialogManagerVisitor;
00083 class EditorDialogVisitor;
00084
00085 CalendarView *mMainView;
00086
00087 KCMultiDialog *mOptionsDialog;
00088
00089 KPIM::CategoryEditDialog *mCategoryEditDialog;
00090 SearchDialog *mSearchDialog;
00091 ArchiveDialog *mArchiveDialog;
00092 FilterEditDialog *mFilterEditDialog;
00093 };
00094
00095 #endif
|