korganizer

kodialogmanager.h
1 /*
2  This file is part of KOrganizer.
3 
4  Copyright (c) 2001,2004 Cornelius Schumacher <schumacher@kde.org>
5  Copyright (C) 2003-2004 Reinhold Kainhofer <reinhold@kainhofer.com>
6 
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.
11 
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.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program; if not, write to the Free Software
19  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 
21  As a special exception, permission is given to link this program
22  with any edition of TQt, and distribute the resulting executable,
23  without including the source code for TQt in the source distribution.
24 */
25 #ifndef KODIALOGMANAGER_H
26 #define KODIALOGMANAGER_H
27 
28 #include <tqobject.h>
29 #include <tqptrlist.h>
30 
31 namespace KCal{class CalFilter; }
32 class CalendarView;
33 class KCMultiDialog;
34 class TDEConfigureDialog;
35 namespace KPIM { class CategoryEditDialog; }
36 class KOIncidenceEditor;
37 class KOEventEditor;
38 class KOTodoEditor;
39 class KOJournalEditor;
40 class SearchDialog;
41 class ArchiveDialog;
42 class FilterEditDialog;
43 namespace KOrg { class AgendaView; }
44 
45 using namespace KCal;
46 
51 class KODialogManager : public TQObject
52 {
53  TQ_OBJECT
54 
55  public:
57  virtual ~KODialogManager();
58 
60  KOIncidenceEditor *getEditor( Incidence * );
62  KOEventEditor *getEventEditor();
64  KOTodoEditor *getTodoEditor();
66  KOJournalEditor *getJournalEditor();
67  void connectEditor( KOIncidenceEditor*editor );
68 
69  void updateSearchDialog();
70 
71  void connectTypeAhead( KOEventEditor *editor, KOrg::AgendaView *agenda );
72 
73  static void errorSaveIncidence( TQWidget *parent, Incidence *incidence );
74 
75  public slots:
76  void showOptionsDialog();
77  void showCategoryEditDialog();
78  void showSearchDialog();
79  void showArchiveDialog();
80  void showFilterEditDialog(TQPtrList<CalFilter> *filters);
81 
82  private:
83  class DialogManagerVisitor;
84  class EditorDialogVisitor;
85 
86  CalendarView *mMainView;
87 
88  KCMultiDialog *mOptionsDialog;
89 // TDEConfigureDialog *mOptionsDialog;
90  KPIM::CategoryEditDialog *mCategoryEditDialog;
91  SearchDialog *mSearchDialog;
92  ArchiveDialog *mArchiveDialog;
93  FilterEditDialog *mFilterEditDialog;
94 };
95 
96 #endif
This is the main calendar widget.
Definition: calendarview.h:82
This is the class to add/edit a calendar filter.
This class manages the dialogs used by the calendar view.
This class provides a dialog for editing an event.
Definition: koeventeditor.h:49
This is the base class for the calendar component editors.
This class provides a dialog for editing a Journal.
This class provides a dialog for editing a Todo.
Definition: kotodoeditor.h:38
Base class for single/multi agenda views.
Definition: agendaview.h:28