Salome HOME
Issue #2593: CEA 2018-2 Geometrical Naming
[modules/shaper.git] / src / FeaturesPlugin / placement_widget.xml
index 0e6f3488ed79e275bba215df08f93b21c30151e1..684e8f394c41038ce08ef6b12f56c02f258399d6 100644 (file)
@@ -1,19 +1,56 @@
+<!--
+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>
-  <shape_selector id="placement_base_face" 
-    label="Select a face" 
-    icon=":icons/cut_shape.png" 
-    tooltip="Select a face a one object"
-    shape_types="face"
-    use_subshapes="true"
-  />
-  <shape_selector id="placement_attractable_face" 
-    label="Select a face" 
-    icon=":icons/cut_shape.png" 
-    tooltip="Select a face of another object"
-    shape_types="face"
-    use_subshapes="true"
-       concealment="true"
-  />
-  <!-- In order to avoid automatic closing of operation -->
-  <label id="" label="" internal="1"/>
+  <multi_selector id="placement_objects_list"
+    label="Select objects to move"
+    icon="icons/Features/cut_shape.png"
+    tooltip="Select objects"
+    type_choice="objects"
+    concealment="true" >
+    <validator id="FeaturesPlugin_ValidatorTransform"/>
+  </multi_selector>
+  <shape_selector id="placement_start_shape"
+    label="Select an object"
+    icon="icons/Features/placement_from.png"
+    tooltip="Select a start face, edge or vertex"
+    shape_types="face edge vertex"
+    geometrical_selection="true">
+    <validator id="GeomValidators_BodyShapes"/>
+  </shape_selector>
+  <shape_selector id="placement_end_shape"
+    label="Select an object"
+    icon="icons/Features/placement_to.png"
+    tooltip="Select an end face, edge or vertex"
+    shape_types="face edge vertex"
+    geometrical_selection="true">
+    <validator id="PartSet_DifferentObjects"/>
+    <validator id="GeomValidators_BodyShapes"/>
+  </shape_selector>
+  <boolvalue id="placement_reverse_direction"
+    label="Reverse"
+    default="false"
+    tooltip="Reverse placement direction"/>
+  <boolvalue id="placement_centering"
+    label="Centering"
+    default="false"
+    tooltip="Center faces under placement"/>
 </source>