]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Method setShown( bool ) was added. This method allow to show or hide all views.
authorstv <stv@opencascade.com>
Mon, 21 Nov 2005 13:38:25 +0000 (13:38 +0000)
committerstv <stv@opencascade.com>
Mon, 21 Nov 2005 13:38:25 +0000 (13:38 +0000)
src/SUIT/SUIT_ViewManager.cxx
src/SUIT/SUIT_ViewManager.h

index 66ebcf7c079036bb7b2dae27355ed883cfe46d1b..1243289014de9bbd52d3bc60c3232c5da24cb9ee 100755 (executable)
@@ -38,8 +38,9 @@ myStudy( NULL )
 /*!Destructor.*/
 SUIT_ViewManager::~SUIT_ViewManager()
 {
-  if (myViewModel) {
-    myViewModel->setViewManager(0);
+  if ( myViewModel )
+  {
+    myViewModel->setViewManager( 0 );
     delete myViewModel;
   }
 }
@@ -169,6 +170,15 @@ void SUIT_ViewManager::removeView(SUIT_ViewWindow* theView)
     emit lastViewClosed(this);
 }
 
+/*!
+  Show or hide all views (view windows)
+*/
+void SUIT_ViewManager::setShown( const bool on )
+{
+  for ( uint i = 0; i < myViews.count(); i++ )
+    myViews.at( i )->setShown( on );
+}
+
 /*!Emit on \a theEvent mouse pressed in \a theView.*/
 void SUIT_ViewManager::onMousePressed(SUIT_ViewWindow* theView, QMouseEvent* theEvent)
 {
index eb82e0b7a1acd98b05be3168626013a35526f5c3..af358d1d72a74b75ad138cdfa1946a4e26309b95 100755 (executable)
@@ -46,6 +46,8 @@ public:
 
   SUIT_ViewWindow* createViewWindow();
 
+  virtual void     setShown( const bool );
+
 public slots:
   void             createView();
   void             closeAllViews();