Salome HOME
Update validator
[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       label="Sketch"
7       icon=":icons/sketch.png"
8       tooltip="Create or edit a sketch">
9     </sketch_launcher>
10     <toolbox id="CreationMethod">
11       <box id="ByAngles" title="By angles" icon=":icons/angle_up_down_32x32.png">
12         <shape_selector id="axis_object"
13                         icon=":icons/axis.png"
14                         label="Axis"
15                         tooltip="Select an edge for axis"
16                         shape_types="edge"
17                         default="">
18           <validator id="GeomValidators_ShapeType" parameters="line"/>
19         </shape_selector>
20         <groupbox>
21           <doublevalue
22             id="to_angle"
23             label="Angle"
24             step="1.0"
25             default="10"
26             icon=":icons/angle_up.png"
27             tooltip="To angle">
28           </doublevalue>
29         </groupbox>
30         <groupbox>
31           <doublevalue
32             id="from_angle"
33             label="Angle"
34             step="1.0"
35             default="0"
36             icon=":icons/angle_down.png"
37             tooltip="From angle">
38           </doublevalue>
39         </groupbox>
40       </box>
41       <box id="ByPlanesAndOffsets" title="By bounding planes and offsets" icon=":icons/plane_inverted_32x32.png">
42         <shape_selector id="axis_object"
43                         icon=":icons/axis.png"
44                         label="Axis"
45                         tooltip="Select an edge for axis"
46                         shape_types="edge"
47                         default="">
48           <validator id="GeomValidators_ShapeType" parameters="line"/>
49         </shape_selector>
50         <groupbox title="From">
51           <shape_selector id="from_object"
52                           icon=":icons/plane.png"
53                           label="Plane face"
54                           tooltip="Bounding plane (select a planar face)"
55                           shape_types="face"
56                           default="&lt;sketch&gt;">
57             <validator id="GeomValidators_Face" parameters="plane"/>
58           </shape_selector>
59           <doublevalue id="from_offset" label="Offset"
60             step="1.0" default="0"
61             icon=":icons/angle_up_down.png"
62             tooltip="Offset for bounding plane">
63           </doublevalue>
64         </groupbox>
65         <groupbox title="To">
66           <shape_selector id="to_object"
67                           icon=":icons/plane_inverted.png"
68                           label="Plane face"
69                           tooltip="Bounding plane (select a planar face)"
70                           shape_types="face"
71                           default="&lt;sketch&gt;">
72             <validator id="GeomValidators_Face" parameters="plane"/>
73           </shape_selector>
74           <doublevalue  id="to_offset" label="Offset"
75             step="1.0" default="0"
76             icon=":icons/angle_up_down.png"
77             tooltip="Offset for bounding plane">
78           </doublevalue>
79         </groupbox>
80       </box>
81     </toolbox>
82   </groupbox>
83   <multi_selector id="boolean_objects"
84     label="Cut from:"
85     icon=":icons/cut_shape.png"
86     tooltip="Objects to Cut"
87     type_choice="Solids"
88     concealment="true">
89     <validator id="GeomValidators_ShapeType" parameters="solid"/>
90   </multi_selector>
91   <validator id="GeomValidators_ZeroOffset" parameters="CreationMethod,ByAngles,sketch_selection,to_angle,from_angle,to_object,to_offset,from_object,from_offset"/>
92 </source>