Salome HOME
Add ModelAPI_AttributeIntArray to SWIG
[modules/shaper.git] / src / FeaturesPlugin / extrusioncut_widget.xml
index 7e510b16deb2d701cbac28752078dfe6b45df1da..5a1c29076f2b548acc73f87ae60ec9570ebe86e3 100755 (executable)
@@ -1,65 +1,76 @@
 <!-- Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
 
 <source>
-  <groupbox title="Revolution">
-    <shape_selector id="main_objects"
-    label="Select an object"
-    icon=":icons/sketch.png"
-    tooltip="Select a destination element"
-    shape_types="face edge vertex"
-    default="&lt;sketch&gt;"
-  />
-  <shape_selector id="axis_object"
-                    icon=":icons/axis.png"
-                    label="Axis"
-                    tooltip="Select an edge for axis"
-                    shape_types="edge"
-                    default="">
-    <validator id="GeomValidators_ShapeType" parameters="line"/>
-    </shape_selector>
-    <groupbox title="From">
-    <shape_selector id="from_object"
-                    icon=":icons/plane.png"
-                    label="Plane face"
-                    tooltip="Select a planar face"
-                    shape_types="face"
-                    default="&lt;sketch&gt;">
-      <validator id="GeomValidators_Face" parameters="plane"/>
-    </shape_selector>
-    <doublevalue
-      id="from_size"
-      label="Angle"
-      min="0"
-      step="1.0"
-      default="0"
-      icon=":icons/angle_down.png"
-      tooltip="Height">
-    </doublevalue>
+  <groupbox title="Extrusion">
+    <sketch_launcher id="sketch"
+      label="Sketch"
+      icon=":icons/sketch.png"
+      tooltip="Create or edit a sketch">
+    </sketch_launcher>
+    <toolbox id="CreationMethod">
+      <box id="BySizes" title="By sizes" icon=":icons/dimension_up_down_32x32.png">
+        <groupbox>
+          <doublevalue
+            id="to_size"
+            label="Size"
+            step="1.0"
+            default="0"
+            icon=":icons/dimension_up.png"
+            tooltip="To size">
+          </doublevalue>
+        </groupbox>
+        <groupbox>
+          <doublevalue
+            id="from_size"
+            label="Size"
+            step="1.0"
+            default="10"
+            icon=":icons/dimension_down.png"
+            tooltip="From size">
+          </doublevalue>
+        </groupbox>
+      </box>
+      <box id="ByPlanesAndOffsets" title="By bounding planes and offsets" icon=":icons/plane_inverted_32x32.png">
+        <groupbox title="From">
+          <shape_selector id="from_object"
+                          icon=":icons/plane.png"
+                          label="Plane face"
+                          tooltip="Bounding plane (select a planar face)"
+                          shape_types="face"
+                          default="&lt;base sketch&gt;">
+            <validator id="GeomValidators_Face" parameters="plane"/>
+          </shape_selector>
+          <doublevalue id="from_offset"
+            label="Offset" step="1.0" default="0"
+            icon=":icons/dimension_up_down.png"
+            tooltip="Offset for bounding plane">
+          </doublevalue>
+        </groupbox>
+        <groupbox title="To">
+          <shape_selector id="to_object"
+                          icon=":icons/plane_inverted.png"
+                          label="Plane face"
+                          tooltip="Bounding plane (select a planar face)"
+                          shape_types="face"
+                          default="&lt;base sketch&gt;">
+            <validator id="GeomValidators_Face" parameters="plane"/>
+          </shape_selector>
+          <doublevalue  id="to_offset"
+            label="Offset" step="1.0" default="0"
+            icon=":icons/dimension_up_down.png"
+            tooltip="Offset for bounding plane">
+          </doublevalue>
+        </groupbox>
+      </box>
+    </toolbox>
   </groupbox>
-  <groupbox title="To">
-    <shape_selector id="to_object"
-                    icon=":icons/plane_inverted.png"
-                    label="Plane face"
-                    tooltip="Select a planar face"
-                    shape_types="face"
-                    default="&lt;sketch&gt;">
-      <validator id="GeomValidators_Face" parameters="plane"/>
-    </shape_selector>
-    <doublevalue
-      id="to_size"
-      label="Angle"
-      min="0"
-      step="1.0"
-      default="0"
-      icon=":icons/angle_down.png"
-      tooltip="Height">
-    </doublevalue>
-  </groupbox>
-  </groupbox>
-  <multi_selector id="main_objects"
+  <multi_selector id="boolean_objects"
     label="Cut from:"
     icon=":icons/cut_shape.png"
-    tooltip="Select a sketch face"
-    type_choice="Solids">
+    tooltip="Objects to Cut"
+    type_choice="Solids"
+    concealment="true">
+    <validator id="GeomValidators_ShapeType" parameters="solid"/>
   </multi_selector>
+  <validator id="GeomValidators_ZeroOffset" parameters="CreationMethod,BySizes,sketch_selection,to_size,from_size,to_object,to_offset,from_object,from_offset"/>
 </source>