summaryrefslogtreecommitdiff
path: root/core/pim/datebook2/mainwindow.h
Unidiff
Diffstat (limited to 'core/pim/datebook2/mainwindow.h') (more/less context) (ignore whitespace changes)
-rw-r--r--core/pim/datebook2/mainwindow.h24
1 files changed, 16 insertions, 8 deletions
diff --git a/core/pim/datebook2/mainwindow.h b/core/pim/datebook2/mainwindow.h
index 60ea4c4..3c22637 100644
--- a/core/pim/datebook2/mainwindow.h
+++ b/core/pim/datebook2/mainwindow.h
@@ -7,6 +7,7 @@
7 7
8#include "descriptionmanager.h" 8#include "descriptionmanager.h"
9#include "locationmanager.h" 9#include "locationmanager.h"
10#include "templatemanager.h"
10#include "view.h" 11#include "view.h"
11 12
12class QAction; 13class QAction;
@@ -14,14 +15,14 @@ class QWidgetStack;
14class QPopupMenu; 15class QPopupMenu;
15class QPEToolBar; 16class QPEToolBar;
16namespace Datebook { 17namespace Datebook {
17
18 class TemplateManager;
19 class BookManager; 18 class BookManager;
20 class Show; 19 class Show;
20 class Editor;
21 class MainWindow : public OPimMainWindow { 21 class MainWindow : public OPimMainWindow {
22 Q_OBJECT 22 Q_OBJECT
23 friend class Show; // to avoid QObject 23 friend class Show; // to avoid QObject
24 friend class View; // to avoid QObject 24 friend class View; // to avoid QObject
25 friend class Editor;
25 public: 26 public:
26 MainWindow(); 27 MainWindow();
27 ~MainWindow(); 28 ~MainWindow();
@@ -42,7 +43,10 @@ namespace Datebook {
42 void slotAction( QAction* ); // View changed 43 void slotAction( QAction* ); // View changed
43 void slotConfigureLocs(); // Configure the Locations 44 void slotConfigureLocs(); // Configure the Locations
44 void slotConfigureDesc(); // Configure the Desc 45 void slotConfigureDesc(); // Configure the Desc
46 void slotConfigureTemp();
47 void slotNewFromTemplate(int ); // called when someone chooses the template menu
45 48
49 void setTemplateMenu(); // updates the templateMenu
46 50
47 protected slots: 51 protected slots:
48 void populate(); 52 void populate();
@@ -64,10 +68,13 @@ namespace Datebook {
64 QPopupMenu* templateMenu(); 68 QPopupMenu* templateMenu();
65 View* currentView(); 69 View* currentView();
66 BookManager* manager(); 70 BookManager* manager();
67 TemplateManager* templateManager(); 71 TemplateManager templateManager();
68 LocationManager* locationManager(); 72 LocationManager locationManager();
69 DescriptionManager* descriptionManager(); 73 DescriptionManager descriptionManager();
74 void setLocationManager( const LocationManager& );
75 void setDescriptionManager( const DescriptionManager& );
70 Show* eventShow(); 76 Show* eventShow();
77 Editor* editor();
71 78
72 private: // friend functions for Show 79 private: // friend functions for Show
73 void hideShow(); // to hide the view 80 void hideShow(); // to hide the view
@@ -89,10 +96,11 @@ namespace Datebook {
89 QPopupMenu* m_popSetting; 96 QPopupMenu* m_popSetting;
90 QPopupMenu* m_popTemplate; 97 QPopupMenu* m_popTemplate;
91 BookManager* m_manager; 98 BookManager* m_manager;
92 TemplateManager* m_tempMan; 99 TemplateManager m_tempMan;
93 DescriptionManager* m_descMan; 100 DescriptionManager m_descMan;
94 LocationManager* m_locMan; 101 LocationManager m_locMan;
95 Show* m_show; 102 Show* m_show;
103 Editor* m_edit;
96 }; 104 };
97} 105}
98 106