From: nds Date: Fri, 2 Sep 2016 07:21:53 +0000 (+0300) Subject: #1657 In the Sketcher, disable all coordinate and lenght inputs X-Git-Tag: V_2.5.0~78 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b88b9e022deab39c7c0a111f9a906f1e5cdf1d0c;p=modules%2Fshaper.git #1657 In the Sketcher, disable all coordinate and lenght inputs Correction of preferences --- diff --git a/src/ModuleBase/ModuleBase_ModelWidget.cpp b/src/ModuleBase/ModuleBase_ModelWidget.cpp index 713adea89..f961d0f95 100644 --- a/src/ModuleBase/ModuleBase_ModelWidget.cpp +++ b/src/ModuleBase/ModuleBase_ModelWidget.cpp @@ -32,6 +32,7 @@ //#define DEBUG_VALUE_STATE //#define DEBUG_WIDGET_INSTANCE +//#define DEBUG_ENABLE_SKETCH_INPUT_FIELDS ModuleBase_ModelWidget::ModuleBase_ModelWidget(QWidget* theParent, const Config_WidgetAPI* theData) @@ -90,7 +91,11 @@ bool ModuleBase_ModelWidget::isValueEnabled() const { bool anEnabled = true; if (myIsValueEnabled == DefinedInPreferences) { - bool aCanDisable = Config_PropManager::boolean(SKETCH_TAB_NAME, "disable_input_fields", "true"); +#ifdef DEBUG_ENABLE_SKETCH_INPUT_FIELDS + bool aCanDisable = true;//Config_PropManager::boolean(SKETCH_TAB_NAME, "disable_input_fields", "true"); +#else + bool aCanDisable = Config_PropManager::boolean(SKETCH_TAB_NAME, "disable_input_fields", "true"); +#endif if (aCanDisable) anEnabled = false; } diff --git a/src/PartSet/PartSet_Module.cpp b/src/PartSet/PartSet_Module.cpp index 82f73391f..b35aaf442 100755 --- a/src/PartSet/PartSet_Module.cpp +++ b/src/PartSet/PartSet_Module.cpp @@ -165,9 +165,8 @@ PartSet_Module::PartSet_Module(ModuleBase_IWorkshop* theWshop) "Multi selector item color in operation", Config_Prop::Color, PartSet_CustomPrs::OPERATION_HIGHLIGHT_COLOR()); - - Config_PropManager::registerProp(SKETCH_TAB_NAME, "disable_input_fields", "Disable input fields", - Config_Prop::Boolean, "true"); + //Config_PropManager::registerProp(SKETCH_TAB_NAME, "disable_input_fields", "Disable input fields", + // Config_Prop::Boolean, "true"); } PartSet_Module::~PartSet_Module()