From 4375f11f2b090795df64b74ba27e37b4f41a7ceb Mon Sep 17 00:00:00 2001 From: vsv Date: Tue, 15 May 2018 18:13:06 +0300 Subject: [PATCH] Issue #2476: Replace double inputs by double spin boxes input --- src/ConstructionPlugin/ConstructionPlugin_Plugin.cpp | 4 ++-- src/ModelAPI/ModelAPI_Session.cpp | 4 ++-- src/PartSet/PartSet_Module.cpp | 2 +- src/SketchPlugin/SketchPlugin_Plugin.cpp | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/ConstructionPlugin/ConstructionPlugin_Plugin.cpp b/src/ConstructionPlugin/ConstructionPlugin_Plugin.cpp index 9f18a3318..a9f231b82 100644 --- a/src/ConstructionPlugin/ConstructionPlugin_Plugin.cpp +++ b/src/ConstructionPlugin/ConstructionPlugin_Plugin.cpp @@ -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"); diff --git a/src/ModelAPI/ModelAPI_Session.cpp b/src/ModelAPI/ModelAPI_Session.cpp index 3d5a95917..b079468f3 100644 --- a/src/ModelAPI/ModelAPI_Session.cpp +++ b/src/ModelAPI/ModelAPI_Session.cpp @@ -73,12 +73,12 @@ std::shared_ptr 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()); } diff --git a/src/PartSet/PartSet_Module.cpp b/src/PartSet/PartSet_Module.cpp index 70f6736b5..e2b9c43e3 100755 --- a/src/PartSet/PartSet_Module.cpp +++ b/src/PartSet/PartSet_Module.cpp @@ -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"); } diff --git a/src/SketchPlugin/SketchPlugin_Plugin.cpp b/src/SketchPlugin/SketchPlugin_Plugin.cpp index 3181dd460..aaf1402ed 100644 --- a/src/SketchPlugin/SketchPlugin_Plugin.cpp +++ b/src/SketchPlugin/SketchPlugin_Plugin.cpp @@ -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) -- 2.39.2