0020830: EDF 1357 GUI : Hide/Show Icon

This commit is contained in:
ptv 2010-11-17 08:46:02 +00:00
parent 6590c96b5c
commit 623cbedd39
2 changed files with 15 additions and 0 deletions

View File

@ -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 );
}

View File

@ -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 );