From f0c7b38301088ac4962c83e28498a52cccd4dff0 Mon Sep 17 00:00:00 2001 From: nds Date: Wed, 27 Jul 2016 19:31:46 +0300 Subject: [PATCH] Issue #1658 New widget supporting nested option buttons : icons size corection (to be redrawn later) --- .../icons/plane_by_coincident_to_point_24x24.png | Bin 0 -> 1203 bytes .../icons/plane_by_distance_from_other_24x24.png | Bin 0 -> 1173 bytes .../icons/plane_by_rotation_24x24.png | Bin 0 -> 1211 bytes src/ConstructionPlugin/plane_widget.xml | 6 +++--- .../InitializationPlugin_Plugin.cpp | 15 --------------- 5 files changed, 3 insertions(+), 18 deletions(-) create mode 100755 src/ConstructionPlugin/icons/plane_by_coincident_to_point_24x24.png create mode 100755 src/ConstructionPlugin/icons/plane_by_distance_from_other_24x24.png create mode 100755 src/ConstructionPlugin/icons/plane_by_rotation_24x24.png 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 0000000000000000000000000000000000000000..13896b3101cea5ca6b6510cde958bde656d5f358 GIT binary patch literal 1203 zcmV;k1WfyhP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGvt^fcVt^tf)bNB!N02*{fSaefwW^{L9 za%BKeVQFr3E>1;MAa*k@H7+qQF!XYv000CcNklCa3P@}4LwuUxS1e@Jcj|I#_D|JNQ zk{j7H;nT`9cmE-4$ep?v?1Svd3;wGG#s5$3oAbYZ>6ZV+vsR)QyzR!z|I>G$`KuZf zw;jcB?a)w0S>G`KfU1r+i;iAHF&u=``se;n?40r6tEBP2yl>=x_rkjW(Jhle!GNM} z`tH+z9kMI0%X)H~{qaq5re?o%^pBmHvOy zwqyT$fqalSOwHos*Z+E#Ha}7hj17UB3;|01(O%AZH83wtmgXH`w+P(pUB}v9Tloe_$0sxbwlcZ;` zx3pJ?H;@g)AR2+i-2!~XT>U-7Tml?`I78GWV4|37pd*wI#!?<3Hc~FWY)~Uf2ciz4 zOybV|`ar|Z0`W_6mwUPV-Z#n$T@D-82uqcM8ixv`JcET?3hVNdx@T1Z zi|tAv2GLcCT{CJDI%m|v`1o)_*NkfWoT?V6kq98_;Kyf{oR`|O=}^n+bN8x&xC)A4 zY-AcMd)3*y)eXzG0xPWYLa4D2pcEJ<;Fw#T+_GkO8?fjtBNumV*xw8+o3d2>VuYYZ z1B1oam&G=tG_rER`u6pg9#>-1NDQ92_gte#Nn^2UaGWf#q=uSqoW`UTmh4nGV|mxw z3lGUQe8J%>^u?>002ovPDHLkV1oPkM-%`6 literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..33fef45587a5fcf3ff6489bf6185542025c9e313 GIT binary patch literal 1173 zcmV;G1Zw+Px#1ZP1_K>z@;j|==^1poj532;bRa{vGvt^fcVt^tf)bNB!N02*{fSaefwW^{L9 za%BKeVQFr3E>1;MAa*k@H7+qQF!XYv000C8NklqZt^aJVWJ`17a4{E!pyW>-85{H50-h!zXP&_7@mOmu0-d zjG;y|Fi3cWh{*XyPRXCX?DLju&#`JI2G2Qg;jd#(B>{0@J3){gCca^p^JY_6LU`k>3~l!$22n11-1!v|ziKlRqD^7-}3UkoF80b{Yv{`gt?$VQt?NmL;gH(yjKHeSOuNkT0;rJ)Amb4%Xq{G? z)wlU@%aY^Q>tMKj&7L0BptxuH(HS=v9KBkPhUaZIR>yZv?^O*=)D?B`Vg?(o797K6nOYQFGG|pMx&|2Ddi{BMOzY&8(w?E;6#Syz z7S3Eg3ti39lQ(M;yJxj%N2QyC4Tb@;lzi{psY_Z{pSxd$t_c|fE0ji~xa=!#1$BFY zl|PEwO;?|lXHJ;kW|ENSD(Mx>1~nQ29CNFtq)(VPrC`Rg350N1L+_%5t{Jn?#gltx nPd19n^p*FH;(!_p1q=)T$jF6_Xvsvz00000NkvXXu0mjfJ!Tek literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..5a95ef625bbcdf5b6e26596c876e71aece0efc5c GIT binary patch literal 1211 zcmV;s1VsCZP)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGvt^fcVt^tf)bNB!N02*{fSaefwW^{L9 za%BKeVQFr3E>1;MAa*k@H7+qQF!XYv000CkNklTFsT%+Af;&y4{xz~ z5BN{LKl$>zW52NVuG+Z<0C*EgGgnDkWqFWdroMi;l$pO)SD9q+28IuZ$A1f5{r+}$ zcy0k=TD=I&0{koRakyU*c|cNm3)U7@NXlP0F!1X6iQjqny#+8ld>nj=q?jol&}0q~a*IL)M^P@AY_`w0Mo$u9gd^9CH#A&j9G_v zJ_z?25txvQUH;*okG~ZR$g?_|VC*&kT>` zT@wsY)HHi|5I`oue}I1lUm_^x8eE6PGDf&8GX()7(E`+UZB~*}J&Mz+d;sB62z8``(2)GUoAWU>Y4?gJq zmT`1+tT4*qb+{~!7qcuJbb0Jcs@7=r{s%b zH|8w8o8va-F2%FhW%yI^FtoqIXHStX>HlJu4r2VK-Zw1hryCmwn((8+?=0d zc5Kh7bv&=MIIGzP&knB9Qx)Cboz(V*-5AvRO6!TYzm`=sHpR)+ivg%W@DPk>N>cuF zB2`_Ru_F|2hF;aq#&9xNT2Bnx=^c%Q*yajLm%_ZaB3)Z1Lhwjgcz7yT5}#w$-%ZPh(iP_i8UVr7Y`T6hjAQ+B`COg0DTh7m!%h+ochexSarR}v>$dZ1Q9ZvXO@n>uuZXRkMW`P z+?^vHm$M7tG&BJ?D3+;`0FEmydy4n>&mPX(H!xz;Gr?61H-bs3rga002ovPDHLkV1hcVE4Kgu literal 0 HcmV?d00001 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) { -- 2.39.2