-<!-- 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 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 objects"
- 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>