author | zecke <zecke> | 2003-02-24 13:34:03 (UTC) |
---|---|---|
committer | zecke <zecke> | 2003-02-24 13:34:03 (UTC) |
commit | b04ced09167d910e5cab1981bde295e2e8185fee (patch) (unidiff) | |
tree | 2623e1553968654b133343ce7333995243216201 /core/pim/datebook2/mainwindow.h | |
parent | cfecfd53c433a3b530e4abcef51e81feae3c8641 (diff) | |
download | opie-b04ced09167d910e5cab1981bde295e2e8185fee.zip opie-b04ced09167d910e5cab1981bde295e2e8185fee.tar.gz opie-b04ced09167d910e5cab1981bde295e2e8185fee.tar.bz2 |
Add Implementation for Templates, Locations, Descriptions
add some more stuff
Diffstat (limited to 'core/pim/datebook2/mainwindow.h') (more/less context) (show whitespace changes)
-rw-r--r-- | core/pim/datebook2/mainwindow.h | 24 |
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 | ||
12 | class QAction; | 13 | class QAction; |
@@ -14,14 +15,14 @@ class QWidgetStack; | |||
14 | class QPopupMenu; | 15 | class QPopupMenu; |
15 | class QPEToolBar; | 16 | class QPEToolBar; |
16 | namespace Datebook { | 17 | namespace 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 | ||