SVN_SILENT made messages (.desktop file) - always resolve ours
[kdepim.git] / korganizer / kodialogmanager.h
blob3614a81f659b22befc4a204899e86645b128087c
1 /*
2 This file is part of KOrganizer.
4 Copyright (c) 2001,2004 Cornelius Schumacher <schumacher@kde.org>
5 Copyright (C) 2003-2004 Reinhold Kainhofer <reinhold@kainhofer.com>
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License along
18 with this program; if not, write to the Free Software Foundation, Inc.,
19 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21 As a special exception, permission is given to link this program
22 with any edition of Qt, and distribute the resulting executable,
23 without including the source code for Qt in the source distribution.
26 #ifndef KORG_KODIALOGMANAGER_H
27 #define KORG_KODIALOGMANAGER_H
29 #include "koeventview.h"
31 class CalendarView;
32 class FilterEditDialog;
33 class SearchDialog;
35 namespace CalendarSupport
37 class ArchiveDialog;
40 namespace IncidenceEditorNG
42 class IncidenceDialog;
45 namespace KCalCore
47 class CalFilter;
49 namespace Akonadi
51 class TagManagementDialog;
54 class KCMultiDialog;
56 /**
57 This class manages the dialogs used by the calendar view. It owns the objects
58 and handles creation and selection.
60 class KODialogManager : public QObject
62 Q_OBJECT
63 public:
64 explicit KODialogManager(CalendarView *);
65 virtual ~KODialogManager();
67 IncidenceEditorNG::IncidenceDialog *createDialog(const Akonadi::Item &item);
69 // TODO_NG: see if editors-NG have the needed slots.
70 void connectEditor(IncidenceEditorNG::IncidenceDialog *editor);
72 void updateSearchDialog();
74 void connectTypeAhead(IncidenceEditorNG::IncidenceDialog *editor, KOEventView *view);
76 public Q_SLOTS:
77 void showOptionsDialog();
78 void showCategoryEditDialog();
79 void showSearchDialog();
80 void showArchiveDialog();
81 void showFilterEditDialog(QList<KCalCore::CalFilter *> *filters);
83 private Q_SLOTS:
84 void slotHelp();
86 private:
87 void createCategoryEditor();
88 class DialogManagerVisitor;
89 class EditorDialogVisitor;
91 CalendarView *mMainView;
92 KCMultiDialog *mOptionsDialog;
93 QPointer<Akonadi::TagManagementDialog> mCategoryEditDialog;
94 SearchDialog *mSearchDialog;
95 CalendarSupport::ArchiveDialog *mArchiveDialog;
96 FilterEditDialog *mFilterEditDialog;
99 #endif