From: nds Date: Wed, 27 Jul 2016 16:31:46 +0000 (+0300) Subject: Issue #1658 New widget supporting nested option buttons : icons size corection (to... X-Git-Tag: V_2.5.0~162 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f0c7b38301088ac4962c83e28498a52cccd4dff0;p=modules%2Fshaper.git Issue #1658 New widget supporting nested option buttons : icons size corection (to be redrawn later) --- diff --git a/src/ConstructionPlugin/icons/plane_by_coincident_to_point_24x24.png b/src/ConstructionPlugin/icons/plane_by_coincident_to_point_24x24.png new file mode 100755 index 000000000..13896b310 Binary files /dev/null and b/src/ConstructionPlugin/icons/plane_by_coincident_to_point_24x24.png differ diff --git a/src/ConstructionPlugin/icons/plane_by_distance_from_other_24x24.png b/src/ConstructionPlugin/icons/plane_by_distance_from_other_24x24.png new file mode 100755 index 000000000..33fef4558 Binary files /dev/null and b/src/ConstructionPlugin/icons/plane_by_distance_from_other_24x24.png differ diff --git a/src/ConstructionPlugin/icons/plane_by_rotation_24x24.png b/src/ConstructionPlugin/icons/plane_by_rotation_24x24.png new file mode 100755 index 000000000..5a95ef625 Binary files /dev/null and b/src/ConstructionPlugin/icons/plane_by_rotation_24x24.png differ diff --git a/src/ConstructionPlugin/plane_widget.xml b/src/ConstructionPlugin/plane_widget.xml index 9085e2c76..be0311360 100644 --- a/src/ConstructionPlugin/plane_widget.xml +++ b/src/ConstructionPlugin/plane_widget.xml @@ -63,7 +63,7 @@ + icon="icons/Construction/plane_by_distance_from_other_24x24.png"> + icon="icons/Construction/plane_by_coincident_to_point_24x24.png"> + icon="icons/Construction/plane_by_rotation_24x24.png"> -#define NESTED_WIDGETS_FIX - // the only created instance of this plugin static InitializationPlugin_Plugin* MY_INITIALIZATIONPLUGIN_INSTANCE = new InitializationPlugin_Plugin(); @@ -93,10 +91,6 @@ FeaturePtr InitializationPlugin_Plugin::createPlane(DocumentPtr theDoc, double t { FeaturePtr aPlane = theDoc->addFeature("Plane"); aPlane->string("creation_method")->setValue("by_general_equation"); -#ifdef NESTED_WIDGETS_FIX - aPlane->string("by_other_plane_option")->setValue("by_distance_from_other"); - aPlane->real("distance")->setValue(0); -#endif aPlane->real("A")->setValue(theX); aPlane->real("B")->setValue(theY); aPlane->real("C")->setValue(theZ); @@ -155,15 +149,6 @@ FeaturePtr InitializationPlugin_Plugin::createAxis(DocumentPtr theDoc, FeaturePt aAxis->real("Y_Direction")->setValue(theY); aAxis->real("Z_Direction")->setValue(theZ); -#ifdef NESTED_WIDGETS_FIX - aAxis->string("use_offset1")->setValue(""); - aAxis->real("offset1")->setValue(0); - aAxis->boolean("reverse_offset1")->setValue(false); - aAxis->string("use_offset2")->setValue(""); - aAxis->real("offset2")->setValue(0); - aAxis->boolean("reverse_offset2")->setValue(false); -#endif - if (theX != 0) { aAxis->data()->setName("OX"); } else if (theY != 0) {