<!-- Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
<source>
+ <module_choice id="bool_type"
+ widget_type="radiobuttons"
+ buttons_dir="horizontal"
+ label="Operation type"
+ tooltip="Type of boolean operation"
+ string_list="Cut Fuse Common Fill Smash"
+ use_in_title="true"
+ icons_list="icons/Features/bool_cut.png icons/Features/bool_fuse.png icons/Features/bool_common.png icons/Features/bool_fill.png icons/Features/bool_smash.png"
+ default="0"
+ />
<multi_selector id="main_objects"
- label="Main object"
- icon=":icons/cut_shape.png"
- tooltip="Select an object solid"
- type_choice="Solids"
+ label="Main objects"
+ icon=""
+ tooltip="Select objects"
+ type_choice="solids compsolids edges faces"
+ use_choice="false"
concealment="true">
<validator id="PartSet_DifferentObjects"/>
- <validator id="GeomValidators_ShapeType" parameters="solid"/>
+ <validator id="FeaturesPlugin_ValidatorBooleanSelection"/>
</multi_selector>
- <multi_selector id="tool_objects"
- label="Tool object"
- icon=":icons/cut_tool.png"
- tooltip="Select a tool solid"
- type_choice="Solids"
+ <multi_selector id="tool_objects"
+ label="Tool objects"
+ icon=""
+ tooltip="Select tools"
+ type_choice="solids compsolids edges faces"
+ use_choice="false"
concealment="true" >
<validator id="PartSet_DifferentObjects"/>
- <validator id="GeomValidators_ShapeType" parameters="solid"/>
+ <validator id="FeaturesPlugin_ValidatorBooleanSelection"/>
</multi_selector>
- <!--<shape_selector id="main_object"
- label="Main object"
- icon=":icons/cut_shape.png"
- tooltip="Select an object solid"
- shape_types="solid"
- concealment="true"
- />
- <shape_selector id="tool_object"
- label="Tool object"
- icon=":icons/cut_tool.png"
- tooltip="Select a tool solid"
- shape_types="solid"
- concealment="true" >
- <validator id="PartSet_DifferentObjects"/>
- </shape_selector>-->
- <choice id="bool_type"
- label="Type"
- tooltip="Type of boolean operation"
- string_list="Cut Fuse Common"
- default="0"
- />
+ <validator id="GeomValidators_BooleanArguments" parameters="main_objects,tool_objects,bool_type"/>
</source>