Salome HOME
6f0faf6104e04b91309f3cdb869f543a6fb7218a
[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     use_body="false"
11     tooltip="Create or edit a sketch"
12     shape_types="face objects">
13   </sketch_launcher>
14   <composite_multi_selector id="base"
15     label="Select a sketch face"
16     icon=":icons/sketch.png"
17     tooltip="Select a sketch face"
18     type_choice="Faces Objects">
19     <validator id="FeaturesPlugin_ValidatorExtrusionBase" parameters="Sketch"/>
20   </composite_multi_selector>
21   <toolbox id="CreationMethod">
22     <box id="BySizes" title="By sizes" icon=":icons/dimension_up_down_32x32.png">
23       <groupbox>
24         <doublevalue
25           id="to_size"
26           label="Size"
27           step="1.0"
28           default="10"
29           icon=":icons/dimension_up.png"
30           tooltip="To size">
31         </doublevalue>
32       </groupbox>
33       <groupbox>
34         <doublevalue
35           id="from_size"
36           label="Size"
37           step="1.0"
38           default="0"
39           icon=":icons/dimension_down.png"
40           tooltip="From size">
41         </doublevalue>
42       </groupbox>
43     </box>
44     <box id="ByPlanesAndOffsets" title="By bounding planes and offsets" icon=":icons/plane_inverted_32x32.png">
45       <groupbox title="From">
46         <shape_selector id="from_object"
47                         icon=":icons/plane.png"
48                         label="Plane face"
49                         tooltip="Bounding plane (select a planar face)"
50                         shape_types="face"
51                         default="&lt;base sketch&gt;">
52           <validator id="GeomValidators_Face" parameters="plane"/>
53         </shape_selector>
54         <doublevalue
55           id="from_offset"
56           label="Offset"
57           step="1.0"
58           default="0"
59           icon=":icons/dimension_up_down.png"
60           tooltip="Offset for bounding plane">
61         </doublevalue>
62       </groupbox>
63       <groupbox title="To">
64         <shape_selector id="to_object"
65                         icon=":icons/plane_inverted.png"
66                         label="Plane face"
67                         tooltip="Bounding plane (select a planar face)"
68                         shape_types="face"
69                         default="&lt;base sketch&gt;">
70           <validator id="GeomValidators_Face" parameters="plane"/>
71         </shape_selector>
72         <doublevalue
73           id="to_offset"
74           label="Offset"
75           step="1.0"
76           default="0"
77           icon=":icons/dimension_up_down.png"
78           tooltip="Offset for bounding plane">
79         </doublevalue>
80       </groupbox>
81     </box>
82   </toolbox>
83   <validator id="GeomValidators_ZeroOffset" parameters="CreationMethod,BySizes,base,to_size,from_size,to_object,to_offset,from_object,from_offset"/>
84 </source>