Salome HOME
Issue #1343. Improvement of Extrusion and Revolution operations: transaction correcti...
[modules/shaper.git] / src / FeaturesPlugin / revolutionfuse_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       <validator id="FeaturesPlugin_ValidatorCompositeLauncher" parameters="base,Sketch"/>
13     </sketch_launcher>
14     <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_ValidatorBaseForGeneration" parameters="vertex,edge,wire,face,shell"/>
20     </multi_selector>
21     <shape_selector id="axis_object"
22                     icon=":icons/axis.png"
23                     label="Axis"
24                     tooltip="Select an edge for axis"
25                     shape_types="edge"
26                     default="">
27       <validator id="GeomValidators_ShapeType" parameters="line"/>
28     </shape_selector>
29     <toolbox id="CreationMethod">
30       <box id="ByAngles" title="By angles" icon=":icons/angle_up_down_32x32.png">
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         <groupbox>
42           <doublevalue
43             id="from_angle"
44             label="Angle"
45             step="1.0"
46             default="10"
47             icon=":icons/angle_down.png"
48             tooltip="From angle">
49           </doublevalue>
50         </groupbox>
51       </box>
52       <box id="ByPlanesAndOffsets" title="By bounding planes and angles" icon=":icons/plane_inverted_32x32.png">
53         <groupbox title="From">
54           <shape_selector id="from_object"
55                           icon=":icons/plane.png"
56                           label="Plane face"
57                           tooltip="Bounding plane (select a planar face)"
58                           shape_types="face"
59                           default="&lt;sketch&gt;">
60             <validator id="GeomValidators_Face" parameters="plane"/>
61           </shape_selector>
62           <doublevalue id="from_offset" label="Angle"
63             step="1.0" default="0"
64             icon=":icons/angle_up_down.png"
65             tooltip="Angle for &quot;from&quot; for bounding plane">
66           </doublevalue>
67         </groupbox>
68         <groupbox title="To">
69           <shape_selector id="to_object"
70                           icon=":icons/plane_inverted.png"
71                           label="Plane face"
72                           tooltip="Bounding plane (select a planar face)"
73                           shape_types="face"
74                           default="&lt;sketch&gt;">
75             <validator id="GeomValidators_Face" parameters="plane"/>
76           </shape_selector>
77           <doublevalue  id="to_offset" label="Angle"
78             step="1.0" default="0"
79             icon=":icons/angle_up_down.png"
80             tooltip="Angle for &quot;to&quot; bounding plane">
81           </doublevalue>
82         </groupbox>
83       </box>
84     </toolbox>
85   </groupbox>
86   <multi_selector id="main_objects"
87     label="Fuse with:"
88     icon=":icons/cut_shape.png"
89     tooltip="Objects to Fuse"
90     type_choice="Solids"
91     concealment="true">
92     <validator id="GeomValidators_ShapeType" parameters="solid"/>
93   </multi_selector>
94   <validator id="GeomValidators_ZeroOffset" parameters="CreationMethod,ByAngles,sketch_selection,to_angle,from_angle,to_object,to_offset,from_object,from_offset"/>
95   <validator id="FeaturesPlugin_ValidatorCanBeEmpty" parameters="CreationMethod,ByAngles,base,to_object,from_object"/>
96 </source>