]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
support of internal tool buttons manager
authorasl <asl@opencascade.com>
Thu, 14 Feb 2008 13:01:18 +0000 (13:01 +0000)
committerasl <asl@opencascade.com>
Thu, 14 Feb 2008 13:01:18 +0000 (13:01 +0000)
src/SUIT/SUIT_ViewWindow.cxx
src/SUIT/SUIT_ViewWindow.h

index 689a3a786c7374f24cfc2e9f753b0df3fb2023fb..66ce8b08cbffa10da078a9a230eb47bb1fbf643e 100755 (executable)
@@ -27,6 +27,7 @@
 #include "SUIT_MessageBox.h"
 #include "SUIT_Application.h"
 #include "SUIT_ViewManager.h"
+#include "QtxActionToolMgr.h"
 
 #include <QEvent>
 #include <QIcon>
@@ -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;
+}
index e5aaa5bc14aec2d56c4b443e61e3ef9beca56372..6ae1c5b19e7806a57b1c8d29fbe00a60d9aad871 100755 (executable)
 #include "SUIT.h"
 
 #include <QMainWindow>
-#include <QImage>
 
 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_)