Salome HOME
Preselection problem for extrusion
[modules/shaper.git] / src / FeaturesPlugin / extrusion_widget.xml
1 <!-- Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
2
3 <source>
4   <multi_selector id="base"
5     label="Select a sketch face"
6     icon=":icons/sketch.png"
7     tooltip="Select a sketch face"
8     use_choice="false"
9     type_choice="Faces Compound">
10     <validator id="PartSet_SketchEntityValidator" parameters="Sketch"/>
11   </multi_selector>
12   <toolbox id="CreationMethod">
13     <box id="BySizes" title="By sizes">
14       <groupbox>
15         <doublevalue
16           id="to_size"
17           label="Size"
18           min="0"
19           step="1.0"
20           default="10"
21           icon=":icons/dimension_up.png"
22           tooltip="Size">
23         </doublevalue>
24       </groupbox>
25       <groupbox>
26         <doublevalue
27           id="from_size"
28           label="Size"
29           min="0"
30           step="1.0"
31           default="0"
32           icon=":icons/dimension_down.png"
33           tooltip="Size">
34         </doublevalue>
35       </groupbox>
36     </box>
37     <box id="ByPlanesAndOffsets" title="By bounding planes and offsets">
38       <groupbox title="To">
39         <shape_selector id="to_object"
40                         icon=":icons/plane_inverted.png"
41                         label="Plane face"
42                         tooltip="Select a planar face"
43                         shape_types="face"
44                         default="&lt;base sketch&gt;">
45           <validator id="GeomValidators_Face" parameters="plane"/>
46         </shape_selector>
47         <doublevalue
48           id="to_offset"
49           label="Offset"
50           min="0"
51           step="1.0"
52           default="0"
53           icon=":icons/dimension_up.png"
54           tooltip="Offset">
55         </doublevalue>
56       </groupbox>
57       <groupbox title="From">
58         <shape_selector id="from_object"
59                         icon=":icons/plane.png"
60                         label="Plane face"
61                         tooltip="Select a planar face"
62                         shape_types="face"
63                         default="&lt;base sketch&gt;">
64           <validator id="GeomValidators_Face" parameters="plane"/>
65         </shape_selector>
66         <doublevalue
67           id="from_offset"
68           label="Offset"
69           min="0"
70           step="1.0"
71           default="0"
72           icon=":icons/dimension_down.png"
73           tooltip="Offset">
74         </doublevalue>
75       </groupbox>
76     </box>    
77   </toolbox>
78   <validator id="GeomValidators_ZeroOffset" parameters="CreationMethod,BySizes,to_size,from_size,to_object,to_offset,from_object,from_offset"/>
79 </source>