From b04ced09167d910e5cab1981bde295e2e8185fee Mon Sep 17 00:00:00 2001 From: zecke Date: Mon, 24 Feb 2003 13:34:03 +0000 Subject: Add Implementation for Templates, Locations, Descriptions add some more stuff --- (limited to 'core/pim/datebook2/mainwindow.h') 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 @@ #include "descriptionmanager.h" #include "locationmanager.h" +#include "templatemanager.h" #include "view.h" class QAction; @@ -14,14 +15,14 @@ class QWidgetStack; class QPopupMenu; class QPEToolBar; namespace Datebook { - - class TemplateManager; class BookManager; class Show; + class Editor; class MainWindow : public OPimMainWindow { Q_OBJECT friend class Show; // to avoid QObject friend class View; // to avoid QObject + friend class Editor; public: MainWindow(); ~MainWindow(); @@ -42,7 +43,10 @@ namespace Datebook { void slotAction( QAction* ); // View changed void slotConfigureLocs(); // Configure the Locations void slotConfigureDesc(); // Configure the Desc + void slotConfigureTemp(); + void slotNewFromTemplate(int ); // called when someone chooses the template menu + void setTemplateMenu(); // updates the templateMenu protected slots: void populate(); @@ -64,10 +68,13 @@ namespace Datebook { QPopupMenu* templateMenu(); View* currentView(); BookManager* manager(); - TemplateManager* templateManager(); - LocationManager* locationManager(); - DescriptionManager* descriptionManager(); + TemplateManager templateManager(); + LocationManager locationManager(); + DescriptionManager descriptionManager(); + void setLocationManager( const LocationManager& ); + void setDescriptionManager( const DescriptionManager& ); Show* eventShow(); + Editor* editor(); private: // friend functions for Show void hideShow(); // to hide the view @@ -89,10 +96,11 @@ namespace Datebook { QPopupMenu* m_popSetting; QPopupMenu* m_popTemplate; BookManager* m_manager; - TemplateManager* m_tempMan; - DescriptionManager* m_descMan; - LocationManager* m_locMan; + TemplateManager m_tempMan; + DescriptionManager m_descMan; + LocationManager m_locMan; Show* m_show; + Editor* m_edit; }; } -- cgit v0.9.0.2