Salome HOME
0020319: EDF SMESH 1007: creation of a sub-mesh on face tries to assign Netgen3D...
authorptv <ptv@opencascade.com>
Wed, 22 Apr 2009 12:47:06 +0000 (12:47 +0000)
committerptv <ptv@opencascade.com>
Wed, 22 Apr 2009 12:47:06 +0000 (12:47 +0000)
src/SMESHGUI/SMESHGUI_MeshDlg.cxx
src/SMESHGUI/SMESHGUI_MeshDlg.h
src/SMESHGUI/SMESHGUI_MeshOp.cxx

index e293f887416821ce709a21f0ac9c62768466011b..b6e2da7037c14c8e759bcc3b8a63081e09339c21 100644 (file)
@@ -576,6 +576,16 @@ void SMESHGUI_MeshDlg::enableTab(const int theTabId) {
   myTabWg->setTabEnabled( myTabWg->indexOf( myTabs[ theTabId ] ), true );
 }
 
   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 )
 void SMESHGUI_MeshDlg::onGeomSelectionButton(bool isBtnOn)
 {
   if ( myGeomPopup && isBtnOn )
index 94eefd5d744a0ac00ea1b261aaca0fd893a072b5..cf6b775c40c2c3162bbed305d54844cb7627761e 100644 (file)
@@ -71,6 +71,7 @@ public:
   void                         setGeomPopupEnabled( const bool );
   void                         disableTab(const int);
   void                         enableTab(const int);
   void                         setGeomPopupEnabled( const bool );
   void                         disableTab(const int);
   void                         enableTab(const int);
+  bool                         isTabEnabled(const int) const;
   int                          getActiveObject();
 
 signals:
   int                          getActiveObject();
 
 signals:
index c578defe32fd16ceb86aeaaa112b1d0f55e73f8a..ae29fc4b167d01e90325338a9e9be1c321ee33c2 100644 (file)
@@ -1585,7 +1585,7 @@ int SMESHGUI_MeshOp::currentHyp( const int theDim, const int theHypType ) const
 //================================================================================
 bool SMESHGUI_MeshOp::isAccessibleDim( const int theDim ) const
 {
 //================================================================================
 bool SMESHGUI_MeshOp::isAccessibleDim( const int theDim ) const
 {
-  return myDlg->tab( theDim )->isEnabled();
+  return myDlg->isTabEnabled( theDim );
 }
 
 //================================================================================
 }
 
 //================================================================================