]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2476: Replace double inputs by double spin boxes input
authorvsv <vsv@opencascade.com>
Tue, 15 May 2018 15:13:06 +0000 (18:13 +0300)
committervsv <vsv@opencascade.com>
Tue, 15 May 2018 15:13:31 +0000 (18:13 +0300)
src/ConstructionPlugin/ConstructionPlugin_Plugin.cpp
src/ModelAPI/ModelAPI_Session.cpp
src/PartSet/PartSet_Module.cpp
src/SketchPlugin/SketchPlugin_Plugin.cpp

index 9f18a33189327e9f0087eb70356275be36520717..a9f231b8246e11fa14ab5eb9b98677a2b53b0707 100644 (file)
@@ -53,10 +53,10 @@ ConstructionPlugin_Plugin::ConstructionPlugin_Plugin()
   aFactory->registerValidator("ConstructionPlugin_ValidatorAxisTwoNotParallelPlanes",
                               new ConstructionPlugin_ValidatorAxisTwoNotParallelPlanes());
 
-  Config_PropManager::registerProp(SKETCH_TAB_NAME, "planes_size", "Size", Config_Prop::Double,
+  Config_PropManager::registerProp(SKETCH_TAB_NAME, "planes_size", "Size", Config_Prop::DblSpin,
                                    PLANE_SIZE);
   Config_PropManager::registerProp(SKETCH_TAB_NAME, "planes_thickness", "Thickness",
-                                   Config_Prop::Integer, SKETCH_WIDTH);
+    Config_Prop::IntSpin, SKETCH_WIDTH);
   Config_PropManager::registerProp(SKETCH_TAB_NAME, "rotate_to_plane",
     "Rotate to plane when selected", Config_Prop::Boolean, "false");
 
index 3d5a9591799236facb99edc59e218d634f4367de..b079468f38169dcc0c263bd910946e286275f836 100644 (file)
@@ -73,12 +73,12 @@ std::shared_ptr<ModelAPI_Session> ModelAPI_Session::get()
 
     Config_PropManager::registerProp("Visualization", "body_deflection",
                                      "Body deflection coefficient",
-                                     Config_Prop::Double,
+                                     Config_Prop::DblSpin,
                                      ModelAPI_ResultBody::DEFAULT_DEFLECTION());
 
     Config_PropManager::registerProp("Visualization", "construction_deflection",
                                      "Construction deflection coefficient",
-                                     Config_Prop::Double,
+                                     Config_Prop::DblSpin,
                                      ModelAPI_ResultConstruction::DEFAULT_DEFLECTION());
 
   }
index 70f6736b51f0c3c955c7b406c42ba577904ef242..e2b9c43e3406f2e606ae9d8c75b1b1b0e5ca2134 100755 (executable)
@@ -201,7 +201,7 @@ PartSet_Module::PartSet_Module(ModuleBase_IWorkshop* theWshop)
 
   Config_PropManager::registerProp("Visualization", "hidden_face_transparency",
                                    "Hidden faces transparency",
-                                   Config_Prop::Double,
+                                   Config_Prop::DblSpin,
                                    "0.8");
 }
 
index 3181dd460568fbba944963df8f1977325c95e539..aaf1402ed22edbaf8b10c74c7759cc21d29227fc 100644 (file)
@@ -182,12 +182,12 @@ SketchPlugin_Plugin::SketchPlugin_Plugin()
   aStream << SketcherPrs_Tools::getDefaultTextHeight();
 
   Config_PropManager::registerProp(SKETCH_TAB_NAME, "dimension_value_size",
-    "Dimension value size", Config_Prop::Integer, aStream.str());
+    "Dimension value size", Config_Prop::IntSpin, aStream.str());
   aStream.str("");
   aStream.clear();
   aStream << SketcherPrs_Tools::getDefaultArrowSize();
   Config_PropManager::registerProp(SKETCH_TAB_NAME, "dimension_arrow_size",
-    "Dimension arrow size", Config_Prop::Integer, aStream.str());
+    "Dimension arrow size", Config_Prop::IntSpin, aStream.str());
 }
 
 FeaturePtr SketchPlugin_Plugin::createFeature(std::string theFeatureID)