mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-25 08:50:35 +05:00
0020170: EDF SMESH: Selection behaviour in object browser from hypothesis editing windows
+ int getActiveObject();
This commit is contained in:
parent
dae2f243b6
commit
2142c9f70f
@ -586,3 +586,12 @@ void SMESHGUI_MeshDlg::onGeomPopup( QAction* a )
|
||||
{
|
||||
emit geomSelectionByMesh( a->data().toInt() == GEOM_BY_MESH_INDEX );
|
||||
}
|
||||
|
||||
int SMESHGUI_MeshDlg::getActiveObject()
|
||||
{
|
||||
for (int i = 0; i < 3; ++i )
|
||||
if ( isObjectShown( i ) &&
|
||||
(( QToolButton* )objectWg( i, Btn ))->isChecked())
|
||||
return i;
|
||||
return -1;
|
||||
}
|
||||
|
@ -71,7 +71,7 @@ public:
|
||||
void setGeomPopupEnabled( const bool );
|
||||
void disableTab(const int);
|
||||
void enableTab(const int);
|
||||
|
||||
int getActiveObject();
|
||||
|
||||
signals:
|
||||
void hypoSet( const QString& );
|
||||
|
Loading…
Reference in New Issue
Block a user