]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
#1657 In the Sketcher, disable all coordinate and lenght inputs
authornds <nds@opencascade.com>
Fri, 2 Sep 2016 07:21:53 +0000 (10:21 +0300)
committernds <nds@opencascade.com>
Fri, 2 Sep 2016 07:21:53 +0000 (10:21 +0300)
Correction of preferences

src/ModuleBase/ModuleBase_ModelWidget.cpp
src/PartSet/PartSet_Module.cpp

index 713adea890d132a12a0b4b231bf6a3190eb14d7e..f961d0f95d76cc908a0d3857f4bad71276c0f811 100644 (file)
@@ -32,6 +32,7 @@
 //#define DEBUG_VALUE_STATE
 
 //#define DEBUG_WIDGET_INSTANCE
+//#define DEBUG_ENABLE_SKETCH_INPUT_FIELDS\r
 
 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\r
+    bool aCanDisable = true;//Config_PropManager::boolean(SKETCH_TAB_NAME, "disable_input_fields", "true");\r
+#else\r
+    bool aCanDisable = Config_PropManager::boolean(SKETCH_TAB_NAME, "disable_input_fields", "true");\r
+#endif\r
     if (aCanDisable)
       anEnabled = false;
   }
index 82f73391f6cc5a29422cca24cdea6094ca278362..b35aaf442d332bf922a924764eca4f2ebb804005 100755 (executable)
@@ -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()