0020319: EDF SMESH 1007: creation of a sub-mesh on face tries to assign Netgen3D algorithm

This commit is contained in:
ptv 2009-04-22 12:47:06 +00:00
parent 103c6cfb67
commit 0b8a0a7ce8
3 changed files with 12 additions and 1 deletions

View File

@ -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 )

View File

@ -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:

View File

@ -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 );
}
//================================================================================