From: asl Date: Thu, 14 Feb 2008 13:01:18 +0000 (+0000) Subject: support of internal tool buttons manager X-Git-Tag: V5_0_0a1~39 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1a48bc58f8712976faca609012dcec260bc6a0e5;p=modules%2Fgui.git support of internal tool buttons manager --- diff --git a/src/SUIT/SUIT_ViewWindow.cxx b/src/SUIT/SUIT_ViewWindow.cxx index 689a3a786..66ce8b08c 100755 --- a/src/SUIT/SUIT_ViewWindow.cxx +++ b/src/SUIT/SUIT_ViewWindow.cxx @@ -27,6 +27,7 @@ #include "SUIT_MessageBox.h" #include "SUIT_Application.h" #include "SUIT_ViewManager.h" +#include "QtxActionToolMgr.h" #include #include @@ -49,6 +50,8 @@ SUIT_ViewWindow::SUIT_ViewWindow( SUIT_Desktop* theDesktop ) setWindowIcon( myDesktop->windowIcon() ); setAttribute( Qt::WA_DeleteOnClose ); + + myToolMgr = new QtxActionToolMgr( this ); } /*! Destructor.*/ @@ -213,3 +216,11 @@ QString SUIT_ViewWindow::getVisualParameters() void SUIT_ViewWindow::setVisualParameters( const QString& /*parameters*/ ) { } + +/*! + \return associated tool bar manager +*/ +QtxActionToolMgr* SUIT_ViewWindow::toolMgr() const +{ + return myToolMgr; +} diff --git a/src/SUIT/SUIT_ViewWindow.h b/src/SUIT/SUIT_ViewWindow.h index e5aaa5bc1..6ae1c5b19 100755 --- a/src/SUIT/SUIT_ViewWindow.h +++ b/src/SUIT/SUIT_ViewWindow.h @@ -25,10 +25,11 @@ #include "SUIT.h" #include -#include class SUIT_Desktop; class SUIT_ViewManager; +class QtxActionToolMgr; +class QImage; class SUIT_EXPORT SUIT_ViewWindow: public QMainWindow { @@ -52,6 +53,8 @@ public: void setDestructiveClose( const bool ); + QtxActionToolMgr* toolMgr() const; + public slots: virtual void onDumpView(); @@ -75,6 +78,9 @@ protected: SUIT_Desktop* myDesktop; SUIT_ViewManager* myManager; + +private: + QtxActionToolMgr* myToolMgr; }; #endif // !defined(AFX_SUIT_VIEWWINDOW_H__82C3D51A_6F10_45B0_BCFE_3CB3EF596A4D__INCLUDED_)