Salome HOME
Issue #2593: CEA 2018-2 Geometrical Naming
[modules/shaper.git] / src / FeaturesPlugin / placement_widget.xml
index 109d0d62cf7f4fa3f97fefe89734e455fa5a12c1..684e8f394c41038ce08ef6b12f56c02f258399d6 100644 (file)
@@ -1,19 +1,49 @@
-<!-- Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
+<!--
+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_object" 
-    label="Select an object" 
-    icon=":icons/cut_shape.png" 
-    tooltip="Select a destination element"
-    shape_types="face edge vertex"
-  />
-  <shape_selector id="placement_attractable_object" 
-    label="Select an object" 
-    icon=":icons/cut_shape.png" 
-    tooltip="Select an element of moved object" 
-    shape_types="face edge vertex" 
+  <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"