Salome HOME
Issue #19190: group filter "on a solid"
[modules/shaper.git] / src / BuildPlugin / edge_widget.xml
index ca65f6eadfd3e634e7af9c07d53d7fb35a8f3155..0433b9bb9d2e3b9aa3fbfeef6ea8d01e6ffa517e 100644 (file)
@@ -1,30 +1,34 @@
-<!--
-Copyright (C) 2014-2017  CEA/DEN, EDF R&D
-
-This library is free software; you can redistribute it and/or
-modify it under the terms of the GNU Lesser General Public
-License as published by the Free Software Foundation; either
-version 2.1 of the License, or (at your option) any later version.
-
-This library is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-Lesser General Public License for more details.
-
-You should have received a copy of the GNU Lesser General Public
-License along with this library; if not, write to the Free Software
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
-See http:##www.salome-platform.org/ or
-email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
--->
-
 <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>