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

+  int                          getActiveObject();
This commit is contained in:
eap 2009-02-24 10:51:35 +00:00
parent 77b3094310
commit 2e2429b291
2 changed files with 10 additions and 1 deletions

View File

@ -602,3 +602,12 @@ void SMESHGUI_MeshDlg::onGeomPopup( int index )
{ {
emit geomSelectionByMesh( index == GEOM_BY_MESH_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;
}

View File

@ -78,7 +78,7 @@ public:
void setGeomPopupEnabled( const bool ); void setGeomPopupEnabled( const bool );
void disableTab(const int); void disableTab(const int);
void enableTab(const int); void enableTab(const int);
int getActiveObject();
signals: signals: