From df98a4752151156c4735421881b7cdf4478ed5b0 Mon Sep 17 00:00:00 2001 From: NATHALIE GORE Date: Tue, 27 Aug 2019 15:21:27 +0200 Subject: [PATCH] Some modifs to edit macro --- src/PythonAddons/addons_Features.py | 3 --- src/PythonAddons/addons_Features.xml.in | 1 - .../macros/compoundVertices/feature.py | 2 +- .../macros/compoundVertices/icons/import.png | Bin 0 -> 856 bytes .../macros/compoundVertices/widget.xml | 2 +- .../macros/importParameters/icons/paper_roll.png | Bin 0 -> 381 bytes .../macros/importParameters/widget.xml | 2 +- 7 files changed, 3 insertions(+), 7 deletions(-) create mode 100644 src/PythonAddons/macros/compoundVertices/icons/import.png create mode 100644 src/PythonAddons/macros/importParameters/icons/paper_roll.png diff --git a/src/PythonAddons/addons_Features.py b/src/PythonAddons/addons_Features.py index 3da8b8f1e..bdafa1517 100644 --- a/src/PythonAddons/addons_Features.py +++ b/src/PythonAddons/addons_Features.py @@ -24,7 +24,6 @@ import ModelAPI from macros.rectangle.feature import SketchPlugin_Rectangle from macros.compoundVertices.feature import compoundVertices from macros.importParameters.feature import importParameters -from macros.box.feature import BoxFeature class PythonFeaturesPlugin(ModelAPI.ModelAPI_Plugin): @@ -50,8 +49,6 @@ class PythonFeaturesPlugin(ModelAPI.ModelAPI_Plugin): aFeature = compoundVertices().__disown__() elif theFeatureID == importParameters.ID(): aFeature = importParameters().__disown__() - elif theFeatureID == BoxFeature.ID(): - aFeature = BoxFeature().__disown__() else: raise Exception("No such feature %s" % theFeatureID) diff --git a/src/PythonAddons/addons_Features.xml.in b/src/PythonAddons/addons_Features.xml.in index 1bbec0675..3f3b7666d 100644 --- a/src/PythonAddons/addons_Features.xml.in +++ b/src/PythonAddons/addons_Features.xml.in @@ -2,5 +2,4 @@ - diff --git a/src/PythonAddons/macros/compoundVertices/feature.py b/src/PythonAddons/macros/compoundVertices/feature.py index 224a21313..9b33c7fb5 100644 --- a/src/PythonAddons/macros/compoundVertices/feature.py +++ b/src/PythonAddons/macros/compoundVertices/feature.py @@ -98,4 +98,4 @@ class compoundVertices(model.Feature): compoundVertices feature is macro: removes itself on the creation transaction finish. """ - return True + return False diff --git a/src/PythonAddons/macros/compoundVertices/icons/import.png b/src/PythonAddons/macros/compoundVertices/icons/import.png new file mode 100644 index 0000000000000000000000000000000000000000..b9c993cbf44fba1c9dfde6858f3237fa7edbff82 GIT binary patch literal 856 zcmV-e1E>6nP)z_8BqIUnEozH^9~@h?S4VcL*?=oO4E%%AdE;jj+#5W%^r{E z!-N68CIb>W69Tzc)8O}x9=$kkagH&mv8PPPPicoq|Aa-)N@s(UTaI#4rHB5N;>p2);)W zVCEA<)F4Rfh{lYFDQ2V?Gz$RegwzYk)B*t6#=v-v&knW!I9l)b%8r426m4M`^wH#> z*Ag_EdE&A^_Zmto=IY88b&@GLw4Rt54u>P>xc$6e(<`{zRu<|T%1#AX0%WOLeJ%Lz zQ+`5cJH&?EG6Dee@DWV=auEggZ$ES3@p$|*H!<=z#Ni*CUh_MYR;x9bp87ShFmDJc zmSO^ck%1m=yrgmCgK{4c5lvPmm&;{SRn-@bM$^*_q4p$IX0BP6vm%{(PTzf~EO{Ns zQho(+4*kE4RZeDh13>A*Zd#t#g?66}Ew4)Y;+nptzP^61g8zVsnuuhlAlBV~S)8@) iz_Z~z0F}Vp-<%)wK}NCsuv?4(0000 - + diff --git a/src/PythonAddons/macros/importParameters/icons/paper_roll.png b/src/PythonAddons/macros/importParameters/icons/paper_roll.png new file mode 100644 index 0000000000000000000000000000000000000000..fc7a124c95c850132d2c628ed7dbe98cd61d3316 GIT binary patch literal 381 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`oCO|{#S9GG!XV7ZFl&wkP*AeO zHKHUqKdq!Zu_%?nF(p4KRlzeiF+DXXH8G{K@MNkD0|O(Mr;B4q#jT`2|Nq-J@5o-j z#LRq{RpD8>0$&YFQuFlP*Xl~TqF^|lVH+8bFKk{C?P%pL?(Gh{e2D(crTBq=IPYjwNIzG8=p z05^kS8>3G~97E;>=11Qh&Tt-KbTFK-nvdzDaL&0TC-DZUM=Ve0u~czSNx0K+qfLW( zL0f}RsJ*~u#zKL84o9*WE?m=52<1DH-q?1vF@}*hfz7Fr - + -- 2.39.2