Salome HOME
enable/desable size boundaries
authoreap <eap@opencascade.com>
Mon, 5 May 2008 14:30:40 +0000 (14:30 +0000)
committereap <eap@opencascade.com>
Mon, 5 May 2008 14:30:40 +0000 (14:30 +0000)
src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx

index 3ecd9a9c4637785806a8146356da4a964cf10bf8..4ff7305ce6028141ca1f98a1c354380397345112 100644 (file)
@@ -345,11 +345,15 @@ void BLSURFPluginGUI_HypothesisCreator::retrieveParams() const
 
   bool isPhysicalCustom = (myPhysicalMesh->currentItem() == PhysicalUserDefined);
   myPhySize->setEnabled(isPhysicalCustom);
+  myPhyMax->setEnabled(isPhysicalCustom);
+  myPhyMin->setEnabled(isPhysicalCustom);
 
   bool isCustom = (myGeometricMesh->currentItem() == UserDefined);
   myAngleMeshS->setEnabled(isCustom);
   myAngleMeshC->setEnabled(isCustom);
   myGradation->setEnabled(isCustom);
+  myGeoMax->setEnabled(isCustom);
+  myGeoMin->setEnabled(isCustom);
 }
 
 QString BLSURFPluginGUI_HypothesisCreator::storeParams() const
@@ -544,6 +548,8 @@ QString BLSURFPluginGUI_HypothesisCreator::readParamsFromWidgets( BlsurfHypothes
 void BLSURFPluginGUI_HypothesisCreator::onPhysicalMeshChanged() {
   bool isCustom = (myPhysicalMesh->currentItem() == PhysicalUserDefined);
   myPhySize->setEnabled(isCustom);
+  myPhyMax->setEnabled(isCustom);
+  myPhyMin->setEnabled(isCustom);
 
   if ( ! isCustom ) {
     double aPhySize;
@@ -567,6 +573,8 @@ void BLSURFPluginGUI_HypothesisCreator::onGeometricMeshChanged() {
   myAngleMeshS->setEnabled(isCustom);
   myAngleMeshC->setEnabled(isCustom);
   myGradation->setEnabled(isCustom);
+  myGeoMax->setEnabled(isCustom);
+  myGeoMin->setEnabled(isCustom);
 
   if ( ! isCustom ) {
     double aAngleMeshS, aGradation;