X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FXGUI%2FXGUI_MainWindow.h;h=010f9e309530b3cb12289015b259a85908bfdcee;hb=572b3ab8d9923f505722d9a11e570b2136180205;hp=2a71a876a00327a14758f54812ef941a43be002f;hpb=dcc3de2b3137a37fc2ecbc3bc856079877a1c1c7;p=modules%2Fshaper.git diff --git a/src/XGUI/XGUI_MainWindow.h b/src/XGUI/XGUI_MainWindow.h index 2a71a876a..010f9e309 100644 --- a/src/XGUI/XGUI_MainWindow.h +++ b/src/XGUI/XGUI_MainWindow.h @@ -6,9 +6,12 @@ class XGUI_MainMenu; class XGUI_Viewer; -class XGUI_ObjectsBrowser; +class XGUI_ActionsMgr; +class XGUI_ViewWindow; class QMdiArea; +class QMdiSubWindow; class PyConsole_EnhConsole; +class QCloseEvent; /**\class XGUI_MainWindow * \ingroup GUI @@ -29,12 +32,6 @@ public: return myMenuBar; } - //! Returns Object browser - XGUI_ObjectsBrowser* objectBrowser() const - { - return myObjectBrowser; - } - //! Returns MDI area QMdiArea* mdiArea() const; @@ -44,26 +41,27 @@ public: return myViewer; } - // Creates Dock widgets: Object broewser and Property panel - void createDockWidgets(); - void setPropertyPannelTitle(const QString& theTitle); - public slots: void showPythonConsole(); void hidePythonConsole(); - void showPropertyPanel(); - void hidePropertyPanel(); - void showObjectBrowser(); - void hideObjectBrowser(); -private: - QDockWidget* createObjectBrowser(); - QDockWidget* createPropertyPanel(); + void createSubWindow(); + +private slots: + void cascadeWindows(); + void onViewCreated(XGUI_ViewWindow* theWindow); + void onDeleteView(XGUI_ViewWindow* theWindow); + void activateView(); + void onViewActivated(QMdiSubWindow* theSubWnd); - XGUI_MainMenu* myMenuBar; - XGUI_ObjectsBrowser* myObjectBrowser; - QDockWidget* myPropertyPanelDock; +signals: + void exitKeySequence(); + +protected: + void closeEvent(QCloseEvent* event); +private: + XGUI_MainMenu* myMenuBar; XGUI_Viewer* myViewer; PyConsole_EnhConsole* myPythonConsole;