From 623cbedd39abadf5ed66404a7ae56f318b6429fb Mon Sep 17 00:00:00 2001 From: ptv Date: Wed, 17 Nov 2010 08:46:02 +0000 Subject: [PATCH] 0020830: EDF 1357 GUI : Hide/Show Icon --- src/GEOMGUI/GeometryGUI.cxx | 13 +++++++++++++ src/GEOMGUI/GeometryGUI.h | 2 ++ 2 files changed, 15 insertions(+) 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 ); -- 2.39.2