From e0c2e855261bc5a0ab733a9e7f4a78b73a8ae3bb Mon Sep 17 00:00:00 2001 From: eap Date: Mon, 5 May 2008 14:30:40 +0000 Subject: [PATCH] enable/desable size boundaries --- src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx b/src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx index 3ecd9a9..4ff7305 100644 --- a/src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx +++ b/src/GUI/BLSURFPluginGUI_HypothesisCreator.cxx @@ -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; -- 2.39.2