0020170: EDF SMESH: Selection behaviour in object browser from hypothesis editing windows

+  int                          getActiveObject();
This commit is contained in:
eap 2009-02-24 09:23:25 +00:00
parent dae2f243b6
commit 2142c9f70f
2 changed files with 10 additions and 1 deletions

View File

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

View File

@ -71,7 +71,7 @@ public:
void setGeomPopupEnabled( const bool );
void disableTab(const int);
void enableTab(const int);
int getActiveObject();
signals:
void hypoSet( const QString& );