mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-03-04 08:15:36 +05:00
0020170: EDF SMESH: Selection behaviour in object browser from hypothesis editing windows
+ int getActiveObject();
This commit is contained in:
parent
77b3094310
commit
2e2429b291
@ -602,3 +602,12 @@ void SMESHGUI_MeshDlg::onGeomPopup( int index )
|
||||
{
|
||||
emit geomSelectionByMesh( index == GEOM_BY_MESH_INDEX );
|
||||
}
|
||||
|
||||
int SMESHGUI_MeshDlg::getActiveObject()
|
||||
{
|
||||
for (int i = 0; i < 3; ++i )
|
||||
if ( isObjectShown( i ) &&
|
||||
(( QToolButton* )objectWg( i, Btn ))->isOn())
|
||||
return i;
|
||||
return -1;
|
||||
}
|
||||
|
@ -78,7 +78,7 @@ public:
|
||||
void setGeomPopupEnabled( const bool );
|
||||
void disableTab(const int);
|
||||
void enableTab(const int);
|
||||
|
||||
int getActiveObject();
|
||||
|
||||
signals:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user