From: ptv Date: Wed, 17 Nov 2010 08:46:02 +0000 (+0000) Subject: 0020830: EDF 1357 GUI : Hide/Show Icon X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=623cbedd39abadf5ed66404a7ae56f318b6429fb;p=modules%2Fgeom.git 0020830: EDF 1357 GUI : Hide/Show Icon --- diff --git a/src/GEOMGUI/GeometryGUI.cxx b/src/GEOMGUI/GeometryGUI.cxx index 3ee06d2df..4ddb94d52 100644 --- a/src/GEOMGUI/GeometryGUI.cxx +++ b/src/GEOMGUI/GeometryGUI.cxx @@ -2111,3 +2111,16 @@ void GeometryGUI::onViewAboutToShow() a->setEnabled(false); } } + +/*! + * \brief Virtual public slot + * + * This method updates visibility state + * Redefined to make visible geometry objects + */ +void GeometryGUI::initVisibilityState( SUIT_DataObject* theObject ) +{ + // in fact, here we assume that all geometry objects presentable + if ( theObject && theObject->visibilityState() == SUIT_DataObject::Unpresentable ) + theObject->setVisibilityState( SUIT_DataObject::Hidden ); +} diff --git a/src/GEOMGUI/GeometryGUI.h b/src/GEOMGUI/GeometryGUI.h index 4e4dd3921..1d3311f22 100644 --- a/src/GEOMGUI/GeometryGUI.h +++ b/src/GEOMGUI/GeometryGUI.h @@ -56,6 +56,7 @@ class QMenu; class GEOMGUI_OCCSelector; class LightApp_VTKSelector; class LightApp_Selection; +class SUIT_DataObject; class SUIT_ViewManager; class SalomeApp_Study; @@ -144,6 +145,7 @@ signals : protected: virtual LightApp_Selection* createSelection() const; + virtual void initVisibilityState( SUIT_DataObject* ); private: GEOMGUI* getLibrary( const QString& libraryName );