From: nds Date: Wed, 27 Jul 2016 16:43:28 +0000 (+0300) Subject: Issue #1658 New widget supporting nested option buttons : correction compilation... X-Git-Tag: V_2.5.0~161 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=da41cd07eebab64e9329ef9771dc799d04cf7b16;p=modules%2Fshaper.git Issue #1658 New widget supporting nested option buttons : correction compilation on Linux --- diff --git a/src/InitializationPlugin/InitializationPlugin_Plugin.cpp b/src/InitializationPlugin/InitializationPlugin_Plugin.cpp index 5317f7d7e..c03eb38d1 100644 --- a/src/InitializationPlugin/InitializationPlugin_Plugin.cpp +++ b/src/InitializationPlugin/InitializationPlugin_Plugin.cpp @@ -16,6 +16,8 @@ #include +#define NESTED_WIDGETS_FIX + // the only created instance of this plugin static InitializationPlugin_Plugin* MY_INITIALIZATIONPLUGIN_INSTANCE = new InitializationPlugin_Plugin(); @@ -91,6 +93,10 @@ 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); @@ -149,6 +155,15 @@ 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) {