From: ptv Date: Wed, 22 Apr 2009 12:47:06 +0000 (+0000) Subject: 0020319: EDF SMESH 1007: creation of a sub-mesh on face tries to assign Netgen3D... X-Git-Tag: V5_1_2rc1~52 X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=commitdiff_plain;h=0b8a0a7ce82ccf644201a9cdb72d0bc420631db3 0020319: EDF SMESH 1007: creation of a sub-mesh on face tries to assign Netgen3D algorithm --- diff --git a/src/SMESHGUI/SMESHGUI_MeshDlg.cxx b/src/SMESHGUI/SMESHGUI_MeshDlg.cxx index e293f8874..b6e2da703 100644 --- a/src/SMESHGUI/SMESHGUI_MeshDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_MeshDlg.cxx @@ -576,6 +576,16 @@ void SMESHGUI_MeshDlg::enableTab(const int theTabId) { myTabWg->setTabEnabled( myTabWg->indexOf( myTabs[ theTabId ] ), true ); } +//================================================================================ +/*! + * \brief Check if tab enabled + * \param int - tab ID + */ +//================================================================================ +bool SMESHGUI_MeshDlg::isTabEnabled(const int theTabId) const { + myTabWg->isTabEnabled( myTabWg->indexOf( myTabs[ theTabId ] ) ); +} + void SMESHGUI_MeshDlg::onGeomSelectionButton(bool isBtnOn) { if ( myGeomPopup && isBtnOn ) diff --git a/src/SMESHGUI/SMESHGUI_MeshDlg.h b/src/SMESHGUI/SMESHGUI_MeshDlg.h index 94eefd5d7..cf6b775c4 100644 --- a/src/SMESHGUI/SMESHGUI_MeshDlg.h +++ b/src/SMESHGUI/SMESHGUI_MeshDlg.h @@ -71,6 +71,7 @@ public: void setGeomPopupEnabled( const bool ); void disableTab(const int); void enableTab(const int); + bool isTabEnabled(const int) const; int getActiveObject(); signals: diff --git a/src/SMESHGUI/SMESHGUI_MeshOp.cxx b/src/SMESHGUI/SMESHGUI_MeshOp.cxx index c578defe3..ae29fc4b1 100644 --- a/src/SMESHGUI/SMESHGUI_MeshOp.cxx +++ b/src/SMESHGUI/SMESHGUI_MeshOp.cxx @@ -1585,7 +1585,7 @@ int SMESHGUI_MeshOp::currentHyp( const int theDim, const int theHypType ) const //================================================================================ bool SMESHGUI_MeshOp::isAccessibleDim( const int theDim ) const { - return myDlg->tab( theDim )->isEnabled(); + return myDlg->isTabEnabled( theDim ); } //================================================================================