Salome HOME
Make "Macro" menu be the last, not just after the Sketch. V9_3_0a1
authormpv <mpv@opencascade.com>
Fri, 22 Feb 2019 12:42:26 +0000 (15:42 +0300)
committermpv <mpv@opencascade.com>
Fri, 22 Feb 2019 12:42:26 +0000 (15:42 +0300)
src/Config/plugins.xml.in
src/SketchPlugin/CMakeLists.txt
src/SketchPlugin/plugin-Sketch.xml
src/SketchPlugin/plugin-SketchDrawer.xml [new file with mode: 0644]

index a86d9c178bfb140ab155fdf068c8a1cdf808cf45..7734d59d8eb55f740b2fc0ef20cada1863bb329b 100644 (file)
@@ -11,6 +11,7 @@
   <plugin library="CollectionPlugin" configuration="plugin-Collection.xml"/>
   <plugin library="ExchangePlugin" configuration="plugin-Exchange.xml"/>
   <plugin script="addons_Features" configuration="addons_Features.xml"/>
+  <plugin library="SketchPlugin" configuration="plugin-SketchDrawer.xml"/>
   <plugin script="ConnectorPlugin" configuration="plugin-Connector.xml" dependency="GEOM"/>
   <plugin library="ParametersPlugin" configuration="plugin-Parameters.xml"/>
 @DEFAULT_SOLVER@
index 66b34b90113c480b1d9b7b64fee10d863573d5b6..787ce8770eb96afd14451f1f7c864d7849b6b5b4 100644 (file)
@@ -125,6 +125,7 @@ SET(PROJECT_LIBRARIES
 
 SET(XML_RESOURCES
   plugin-Sketch.xml
+  plugin-SketchDrawer.xml
 )
 
 SET(TEXT_RESOURCES
index 1042d1802583844117e41aeb9840fcd9c9086417..e44cc0171af97a581976aa6f2ea8de897435034e 100644 (file)
         </sketch_shape_selector>
         <validator id="PartSet_CollinearSelection"/>
       </feature>
-
-    </group>
-
-  </workbench>
-  <workbench id="Macros" document="Part">
-    <group id="Samples">
-
-      <feature id="SketchDrawer" title="Sketch drawer" tooltip="Creates sketch using elements of selected shape belonging to selected plane"
-            icon="icons/Sketch/drawer.png"
-            helpfile="sketchDrawer.html">
-        <shape_selector id="base_shape" label="Shape:" tooltip="Select a shape for extraction to sketch."
-            shape_types="objects" concealment="false"/>
-        <shape_selector id="plane" label="Plane:" tooltip="Select plane for sketch" shape_types="face">
-          <validator id="GeomValidators_Face" parameters="plane"/>
-        </shape_selector>
-        <boolvalue id="add_dimensions" label="Create dimensions" default="true" tooltip="To add dimensions into created sketch" obligatory="0"/>
-      </feature>
     </group>
   </workbench>
 </plugin>
diff --git a/src/SketchPlugin/plugin-SketchDrawer.xml b/src/SketchPlugin/plugin-SketchDrawer.xml
new file mode 100644 (file)
index 0000000..44a6bf7
--- /dev/null
@@ -0,0 +1,17 @@
+<plugin>
+  <workbench id="Macros" document="Part">
+    <group id="Samples">
+
+      <feature id="SketchDrawer" title="Sketch drawer" tooltip="Creates sketch using elements of selected shape belonging to selected plane"
+            icon="icons/Sketch/drawer.png"
+            helpfile="sketchDrawer.html">
+        <shape_selector id="base_shape" label="Shape:" tooltip="Select a shape for extraction to sketch."
+            shape_types="objects" concealment="false"/>
+        <shape_selector id="plane" label="Plane:" tooltip="Select plane for sketch" shape_types="face">
+          <validator id="GeomValidators_Face" parameters="plane"/>
+        </shape_selector>
+        <boolvalue id="add_dimensions" label="Create dimensions" default="true" tooltip="To add dimensions into created sketch" obligatory="0"/>
+      </feature>
+    </group>
+  </workbench>
+</plugin>