Salome HOME
Move MakeBrick*.py to examples module for availability for testing.
[modules/shaper.git] / src / FeaturesPlugin / revolutionsketch_widget.xml
1 <!-- Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
2
3 <source>
4   <groupbox title="Revolution">
5     <sketch_launcher id="sketch"
6       label="Sketch"
7       icon=":icons/sketch.png"
8       use_body="false"
9       tooltip="Create or edit a sketch">
10     </sketch_launcher>
11     <toolbox id="CreationMethod">
12       <box id="ByAngles" title="By angles" icon=":icons/angle_up_down_32x32.png">
13         <shape_selector id="axis_object"
14                         icon=":icons/axis.png"
15                         label="Axis"
16                         tooltip="Select an edge for axis"
17                         shape_types="edge"
18                         default="">
19           <validator id="GeomValidators_ShapeType" parameters="line"/>
20         </shape_selector>
21         <groupbox>
22           <doublevalue
23             id="from_angle"
24             label="Angle"
25             step="1.0"
26             default="10"
27             icon=":icons/angle_down.png"
28             tooltip="From angle">
29           </doublevalue>
30         </groupbox>
31         <groupbox>
32           <doublevalue
33             id="to_angle"
34             label="Angle"
35             step="1.0"
36             default="0"
37             icon=":icons/angle_up.png"
38             tooltip="To angle">
39           </doublevalue>
40         </groupbox>
41       </box>
42       <box id="ByPlanesAndOffsets" title="By bounding planes and offsets" icon=":icons/plane_inverted_32x32.png">
43         <shape_selector id="axis_object"
44                         icon=":icons/axis.png"
45                         label="Axis"
46                         tooltip="Select an edge for axis"
47                         shape_types="edge"
48                         default="">
49           <validator id="GeomValidators_ShapeType" parameters="line"/>
50         </shape_selector>
51         <groupbox title="From">
52           <shape_selector id="from_object"
53                           icon=":icons/plane.png"
54                           label="Plane face"
55                           tooltip="Bounding plane (select a planar face)"
56                           shape_types="face"
57                           default="&lt;sketch&gt;">
58             <validator id="GeomValidators_Face" parameters="plane"/>
59           </shape_selector>
60           <doublevalue id="from_offset" label="Offset"
61             step="1.0" default="0"
62             icon=":icons/angle_up_down.png"
63             tooltip="Offset for bounding plane">
64           </doublevalue>
65         </groupbox>
66         <groupbox title="To">
67           <shape_selector id="to_object"
68                           icon=":icons/plane_inverted.png"
69                           label="Plane face"
70                           tooltip="Bounding plane (select a planar face)"
71                           shape_types="face"
72                           default="&lt;sketch&gt;">
73             <validator id="GeomValidators_Face" parameters="plane"/>
74           </shape_selector>
75           <doublevalue  id="to_offset" label="Offset"
76             step="1.0" default="0"
77             icon=":icons/angle_up_down.png"
78             tooltip="Offset for bounding plane">
79           </doublevalue>
80         </groupbox>
81       </box>
82     </toolbox>
83   </groupbox>
84   <validator id="GeomValidators_ZeroOffset" parameters="CreationMethod,ByAngles,to_angle,from_angle,to_object,to_offset,from_object,from_offset"/>
85 </source>