Salome HOME
Issue #1343 Improvement of Extrusion and Revolution operations: preview planes visual...
[modules/shaper.git] / src / FeaturesPlugin / extrusion_widget.xml
1 <!-- Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
2
3 <source>
4   <sketch_launcher id="sketch"
5     attribute_list_id="base"
6     label="Select: 1. Planar face of non-sketch object or a plane. Sketch creation will be started.
7 2. An existing sketch face or contour. Extrusion will be filled with them. 3.A shape on existing result: wires/edge/vertices.
8 Extrusion will be filled with them"
9     icon=":icons/sketch.png"
10     tooltip="Create or edit a sketch"
11     shape_types="face objects">
12   </sketch_launcher>
13   <composite_multi_selector id="base"
14     label="Select a sketch face"
15     icon=":icons/sketch.png"
16     tooltip="Select a sketch face"
17     type_choice="Faces Objects">
18     <validator id="FeaturesPlugin_ValidatorExtrusionBase" parameters="Sketch"/>
19   </composite_multi_selector>
20   <toolbox id="CreationMethod">
21     <box id="BySizes" title="By sizes" icon=":icons/dimension_up_down_32x32.png">
22       <groupbox>
23         <doublevalue
24           id="to_size"
25           label="Size"
26           step="1.0"
27           default="10"
28           icon=":icons/dimension_up.png"
29           tooltip="To size">
30         </doublevalue>
31       </groupbox>
32       <groupbox>
33         <doublevalue
34           id="from_size"
35           label="Size"
36           step="1.0"
37           default="0"
38           icon=":icons/dimension_down.png"
39           tooltip="From size">
40         </doublevalue>
41       </groupbox>
42     </box>
43     <box id="ByPlanesAndOffsets" title="By bounding planes and offsets" icon=":icons/plane_inverted_32x32.png">
44       <groupbox title="From">
45         <shape_selector id="from_object"
46                         icon=":icons/plane.png"
47                         label="Plane face"
48                         tooltip="Bounding plane (select a planar face)"
49                         shape_types="face"
50                         default="&lt;base sketch&gt;">
51           <validator id="GeomValidators_Face" parameters="plane"/>
52         </shape_selector>
53         <doublevalue
54           id="from_offset"
55           label="Offset"
56           step="1.0"
57           default="0"
58           icon=":icons/dimension_up_down.png"
59           tooltip="Offset for bounding plane">
60         </doublevalue>
61       </groupbox>
62       <groupbox title="To">
63         <shape_selector id="to_object"
64                         icon=":icons/plane_inverted.png"
65                         label="Plane face"
66                         tooltip="Bounding plane (select a planar face)"
67                         shape_types="face"
68                         default="&lt;base sketch&gt;">
69           <validator id="GeomValidators_Face" parameters="plane"/>
70         </shape_selector>
71         <doublevalue
72           id="to_offset"
73           label="Offset"
74           step="1.0"
75           default="0"
76           icon=":icons/dimension_up_down.png"
77           tooltip="Offset for bounding plane">
78         </doublevalue>
79       </groupbox>
80     </box>
81   </toolbox>
82   <validator id="GeomValidators_ZeroOffset" parameters="CreationMethod,BySizes,base,to_size,from_size,to_object,to_offset,from_object,from_offset"/>
83 </source>