Salome HOME
Merge branch 'csgroup_IS2'
[modules/shaper.git] / src / BuildPlugin / edge_widget.xml
index 3aa7d16c2538581dbd7aa993406f34983609caa4..0433b9bb9d2e3b9aa3fbfeef6ea8d01e6ffa517e 100644 (file)
@@ -1,9 +1,34 @@
 <source>
-  <multi_selector id="base_objects"
-                  label="Edges:"
-                  tooltip="Select edges on sketch or edges objects."
-                  type_choice="edges"
-                  concealment="true">
-    <validator id="BuildPlugin_ValidatorBaseForBuild" parameters="edge"/>
-  </multi_selector>
+  <toolbox id="creation_method">
+    <box id="by_segments" title="By segments" icon="icons/Build/edge_by_segments_32x32.png">
+      <multi_selector id="base_objects"
+                      label="Edges or sketches:"
+                      tooltip="Select edges on sketch or edges objects."
+                      shape_types="edges"
+                      concealment="true">
+        <validator id="BuildPlugin_ValidatorBaseForBuild" parameters="edge,compound"/>
+      </multi_selector>
+      <boolvalue id="intersect" label="Compute intersections" tooltip="Divide sketch edges in intersection points." default="false"/>
+      <validator id="BuildPlugin_ValidatorBaseForWire" parameters="base_objects,edge"/>
+    </box>
+    <box id="by_points" title="By two points" icon="icons/Build/edge_by_points_32x32.png">
+      <shape_selector id="first_point"
+                      label="First point"
+                      icon="icons/Construction/point.png"
+                      tooltip="Select a first point"
+                      shape_types="vertex">
+        <validator id="GeomValidators_ConstructionComposite"/>
+        <validator id="GeomValidators_ShapeType" parameters="vertex"/>
+      </shape_selector>
+      <shape_selector id="second_point"
+                      label="Second point"
+                      icon="icons/Construction/point.png"
+                      tooltip="Select a second point"
+                      shape_types="vertex">
+        <validator id="GeomValidators_ConstructionComposite"/>
+        <validator id="GeomValidators_ShapeType" parameters="vertex"/>
+        <validator id="GeomValidators_DifferentShapes"/>
+      </shape_selector>
+    </box>
+  </toolbox>
 </source>