Salome HOME
Merge commit 'refs/tags/V9_2_0^{}'
[modules/shaper.git] / src / FeaturesPlugin / placement_widget.xml
index d74132c6ec00a9c8121bf7227d3ff681dc3e28d0..684e8f394c41038ce08ef6b12f56c02f258399d6 100644 (file)
@@ -1,27 +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>
   <multi_selector id="placement_objects_list"
-    label="Select a solid objects"
-    icon=":icons/cut_shape.png"
-    tooltip="Select a solid objects"
-    type_choice="Objects Solids"
-    use_choice="false"
+    label="Select objects to move"
+    icon="icons/Features/cut_shape.png"
+    tooltip="Select objects"
+    type_choice="objects"
     concealment="true" >
-    <validator id="GeomValidators_PartSet"/>
+    <validator id="FeaturesPlugin_ValidatorTransform"/>
   </multi_selector>
-  <shape_selector id="placement_start_face"
-    label="Select an object" 
-    icon=":icons/placement_from.png"
-    tooltip="Select a start face"
-    shape_types="face"
-  />
-  <shape_selector id="placement_end_face"
-    label="Select an object" 
-    icon=":icons/placement_to.png"
-    tooltip="Select an end face"
-    shape_types="face" >
+  <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"