mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-13 10:10:34 +05:00
0020830: EDF 1357 GUI : Hide/Show Icon
This commit is contained in:
parent
6590c96b5c
commit
623cbedd39
@ -2111,3 +2111,16 @@ void GeometryGUI::onViewAboutToShow()
|
|||||||
a->setEnabled(false);
|
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 );
|
||||||
|
}
|
||||||
|
@ -56,6 +56,7 @@ class QMenu;
|
|||||||
class GEOMGUI_OCCSelector;
|
class GEOMGUI_OCCSelector;
|
||||||
class LightApp_VTKSelector;
|
class LightApp_VTKSelector;
|
||||||
class LightApp_Selection;
|
class LightApp_Selection;
|
||||||
|
class SUIT_DataObject;
|
||||||
class SUIT_ViewManager;
|
class SUIT_ViewManager;
|
||||||
class SalomeApp_Study;
|
class SalomeApp_Study;
|
||||||
|
|
||||||
@ -144,6 +145,7 @@ signals :
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual LightApp_Selection* createSelection() const;
|
virtual LightApp_Selection* createSelection() const;
|
||||||
|
virtual void initVisibilityState( SUIT_DataObject* );
|
||||||
|
|
||||||
private:
|
private:
|
||||||
GEOMGUI* getLibrary( const QString& libraryName );
|
GEOMGUI* getLibrary( const QString& libraryName );
|
||||||
|
Loading…
Reference in New Issue
Block a user