return myTabWg->isTabEnabled( myTabWg->indexOf( myTabs[ theTabId ] ) );
}
+//================================================================================
+/*!
+ * \brief Return index of a current tab
+ * \return tab ID
+ */
+//================================================================================
+int SMESHGUI_MeshDlg::currentTab() const
+{
+ return Dim3D - myTabWg->currentIndex();
+}
+
//================================================================================
/*!
* \brief SLOT called when a Geom selection button is clicked
//================================================================================
void SMESHGUI_MeshDlg::setCurrentMeshType( const int theIndex )
{
- myMeshType->setCurrentIndex( theIndex );
+ if ( theIndex < myMeshType->count() )
+ myMeshType->setCurrentIndex( theIndex );
+ else
+ myMeshType->setCurrentIndex( 0 );
}