Salome HOME
Merge remote-tracking branch 'origin/cbr/export_to_geom_via_xao'
[modules/shaper.git] / src / FeaturesPlugin / partition_widget.xml
index 9f4cfe3bb6f3fe46f0c899d3604e52d5c44d6fb0..05dec480ee480c649e3f2e28b7d05fcec1cd080a 100755 (executable)
@@ -1,28 +1,32 @@
-<!-- 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="main_objects"
-    label="Main objects"
-    icon=":icons/cut_shape.png"
-    tooltip="Select a solid objects"
-    type_choice="Solids"
-    concealment="true">
-    <validator id="PartSet_DifferentObjects"/>
-    <validator id="GeomValidators_ShapeType" parameters="solid"/>
-  </multi_selector>
-  <multi_selector id="tool_objects"
-    label="Tool object"
-    icon=":icons/cut_tool.png"
-    tooltip="Select a tool face or solid"
-    type_choice="Faces Solids"
-    use_choice="false"
-    concealment="true">
-    <validator id="PartSet_DifferentObjects"/>
-    <validator id="GeomValidators_ShapeType" parameters="solid,plane,empty"/>
+  <multi_selector id="base_objects"
+    label="Base objects:"
+    tooltip="Select objects for partitioning."
+    type_choice="objects"
+    concealment="true"
+    clear_in_neutral_point="false">
+    <validator id="FeaturesPlugin_ValidatorPartitionSelection" parameters="Plane"/>
   </multi_selector>
-  <boolvalue id="partition_combine"
-    label="Combine results"
-    default="true"
-    tooltip="If True combines all results to one. If False builds separate result for each object."/>
-  <validator id="GeomValidators_PartitionArguments" parameters="main_objects,tool_objects,partition_combine"/>
+  <validator id="GeomValidators_MinObjectsSelected" parameters="base_objects,1"/>
 </source>