summaryrefslogtreecommitdiffabout
path: root/korganizer/kodialogmanager.h
Unidiff
Diffstat (limited to 'korganizer/kodialogmanager.h') (more/less context) (show whitespace changes)
-rw-r--r--korganizer/kodialogmanager.h100
1 files changed, 100 insertions, 0 deletions
diff --git a/korganizer/kodialogmanager.h b/korganizer/kodialogmanager.h
new file mode 100644
index 0000000..a6cc621
--- a/dev/null
+++ b/korganizer/kodialogmanager.h
@@ -0,0 +1,100 @@
1/*
2 This file is part of KOrganizer.
3 Copyright (c) 2001
4 Cornelius Schumacher <schumacher@kde.org>
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19
20 As a special exception, permission is given to link this program
21 with any edition of Qt, and distribute the resulting executable,
22 without including the source code for Qt in the source distribution.
23*/
24#ifndef KODIALOGMANAGER_H
25#define KODIALOGMANAGER_H
26
27#include <qobject.h>
28#include <qptrlist.h>
29
30#include <libkcal/calfilter.h>
31
32class CalendarView;
33class OutgoingDialog;
34class IncomingDialog;
35class KOPrefsDialog;
36//namespace KPIM { class CategoryEditDialog; }
37class KOEventEditor;
38class KOTodoEditor;
39class SearchDialog;
40class ArchiveDialog;
41class PluginDialog;
42class KConfig;
43class FilterEditDialog;
44
45using namespace KCal;
46
47/**
48 This class manages the dialogs used by the calendar view. It owns the objects
49 and handles creation and selection.
50*/
51class KODialogManager : public QObject
52{
53 Q_OBJECT
54 public:
55 KODialogManager( CalendarView * );
56 virtual ~KODialogManager();
57
58 /** Get an editor dialog for an Event. */
59 KOEventEditor *getEventEditor();
60
61 /** Get an editor dialog for a Todo. */
62 KOTodoEditor *getTodoEditor();
63
64 OutgoingDialog *outgoingDialog();
65
66 IncomingDialog *incomingDialog();
67 void writeSettings( KConfig *config);
68 void updateSearchDialog();
69 SearchDialog * getSearchDialog();
70 void setDocumentId( const QString &id );
71
72 public slots:
73 void showOptionsDialog( bool showSync = false);
74 void showSyncOptions();
75 void showIncomingDialog();
76 void showOutgoingDialog();
77 // void showCategoryEditDialog();
78 void showSearchDialog();
79 void showArchiveDialog();
80 void showFilterEditDialog(QPtrList<CalFilter> *filters);
81 void showPluginDialog();
82 void hideSearchDialog();
83
84 private:
85 void createOutgoingDialog();
86 void createIncomingDialog();
87
88 CalendarView *mMainView;
89
90 OutgoingDialog *mOutgoingDialog;
91 IncomingDialog *mIncomingDialog;
92 KOPrefsDialog *mOptionsDialog;
93 // KPIM::CategoryEditDialog *mCategoryEditDialog;
94 SearchDialog *mSearchDialog;
95 ArchiveDialog *mArchiveDialog;
96 FilterEditDialog *mFilterEditDialog;
97 PluginDialog *mPluginDialog;
98};
99
100#endif