Salome HOME
Hide source body on extrusion cut
[modules/shaper.git] / src / FeaturesPlugin / boolean_widget.xml
index d0ee131a4da8e6ab35d40ae617214f60898fdfaa..22d958ccaf8a05e841ab17ecff88b4354727955b 100644 (file)
@@ -1,16 +1,28 @@
+<!-- Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
+
 <source>
-  <selector id="main_object" 
-    label="Main object" 
-    icon=":icons/cut_shape.png" 
-    tooltip="Select an object to cut"
-    activate="true"
-    shape_types="solid,shell"
-  />
-  <selector id="tool_object" 
+  <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"
-    activate="false"
-    shape_types="solid"
+    tooltip="Select a tool solid"
+    type_choice="Solids"
+    concealment="true" >
+    <validator id="PartSet_DifferentObjects"/>
+    <validator id="GeomValidators_ShapeType" parameters="solid"/>
+  </multi_selector>
+  <choice id="bool_type" 
+    label="Type" 
+    tooltip="Type of boolean operation"
+    string_list="Cut Fuse Common"
+    default="0"
   />
 </source>