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