Salome HOME
a42e01027b7a87e65256265e60334504840a979c
[modules/shaper.git] / src / FeaturesPlugin / revolutioncut_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       attribute_list_id="base"
7       label="Select:&lt;br /&gt;
8 1. Planar face of non-sketch object or a plane. Sketch creation will be started.&lt;br /&gt;
9 2. An existing sketch face or contour. Extrusion will be filled by it.&lt;br /&gt;
10 3. An existing result shape of kind: wires/edge/vertices.Extrusion will be filled by it."
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     <shape_selector id="axis_object"
21                     icon=":icons/axis.png"
22                     label="Axis"
23                     tooltip="Select an edge for axis"
24                     shape_types="edge"
25                     default="">
26       <validator id="GeomValidators_ShapeType" parameters="line"/>
27     </shape_selector>
28     <toolbox id="CreationMethod">
29       <box id="ByAngles" title="By angles" icon=":icons/angle_up_down_32x32.png">
30         <groupbox>
31           <doublevalue
32             id="to_angle"
33             label="Angle"
34             step="1.0"
35             default="10"
36             icon=":icons/angle_up.png"
37             tooltip="To angle">
38           </doublevalue>
39         </groupbox>
40         <groupbox>
41           <doublevalue
42             id="from_angle"
43             label="Angle"
44             step="1.0"
45             default="0"
46             icon=":icons/angle_down.png"
47             tooltip="From angle">
48           </doublevalue>
49         </groupbox>
50       </box>
51       <box id="ByPlanesAndOffsets" title="By bounding planes and angles" icon=":icons/plane_inverted_32x32.png">
52         <groupbox title="From">
53           <shape_selector id="from_object"
54                           icon=":icons/plane.png"
55                           label="Plane face"
56                           tooltip="Bounding plane (select a planar face)"
57                           shape_types="face"
58                           default="&lt;sketch&gt;">
59             <validator id="GeomValidators_Face" parameters="plane"/>
60           </shape_selector>
61           <doublevalue id="from_offset" label="Angle"
62             step="1.0" default="0"
63             icon=":icons/angle_up_down.png"
64             tooltip="Angle for &quot;from&quot; bounding plane">
65           </doublevalue>
66         </groupbox>
67         <groupbox title="To">
68           <shape_selector id="to_object"
69                           icon=":icons/plane_inverted.png"
70                           label="Plane face"
71                           tooltip="Bounding plane (select a planar face)"
72                           shape_types="face"
73                           default="&lt;sketch&gt;">
74             <validator id="GeomValidators_Face" parameters="plane"/>
75           </shape_selector>
76           <doublevalue  id="to_offset" label="Angle"
77             step="1.0" default="0"
78             icon=":icons/angle_up_down.png"
79             tooltip="Angle for &quot;to&quot; bounding plane">
80           </doublevalue>
81         </groupbox>
82       </box>
83     </toolbox>
84   </groupbox>
85   <multi_selector id="main_objects"
86     label="Cut from:"
87     icon=":icons/cut_shape.png"
88     tooltip="Objects to Cut"
89     type_choice="Solids"
90     concealment="true">
91     <validator id="GeomValidators_ShapeType" parameters="solid"/>
92   </multi_selector>
93   <validator id="GeomValidators_ZeroOffset" parameters="CreationMethod,ByAngles,sketch_selection,to_angle,from_angle,to_object,to_offset,from_object,from_offset"/>
94 </source>