Salome HOME
Merge branch 'Dev_GroupsRevision'
[modules/shaper.git] / src / FeaturesPlugin / boolean_widget.xml
1 <!--
2 Copyright (C) 2014-2017  CEA/DEN, EDF R&D
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with this library; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
18 See http:##www.salome-platform.org/ or
19 email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
20 -->
21
22 <source>
23   <module_choice id="bool_type"
24     widget_type="radiobuttons"
25     buttons_dir="horizontal"
26     label="Operation type"
27     tooltip="Type of boolean operation"
28     string_list="Cut Fuse Common Fill Smash"
29     use_in_title="true"
30     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"
31     default="0"
32   />
33   <multi_selector id="main_objects"
34     label="Main objects"
35     icon=""
36     tooltip="Select objects"
37     type_choice="vertices edges wires faces shells solids compsolids"
38     use_choice="false"
39     concealment="true">
40     <validator id="PartSet_DifferentObjects"/>
41     <validator id="FeaturesPlugin_ValidatorBooleanSelection"/>
42   </multi_selector>
43   <multi_selector id="tool_objects"
44     label="Tool objects"
45     icon=""
46     tooltip="Select tools"
47     type_choice="vertices edges wires faces shells solids compsolids"
48     use_choice="false"
49     concealment="true" >
50     <validator id="PartSet_DifferentObjects"/>
51     <validator id="FeaturesPlugin_ValidatorBooleanSelection"/>
52   </multi_selector>
53   <validator id="GeomValidators_BooleanArguments" parameters="main_objects,tool_objects,bool_type"/>
54 </source>