]> SALOME platform Git repositories - modules/shaper.git/blob - src/FeaturesPlugin/revolutionfuse_widget.xml
Salome HOME
Issue #3236: Add buttons for shape type choice to Extrusion/Revolution objects
[modules/shaper.git] / src / FeaturesPlugin / revolutionfuse_widget.xml
1 <source>
2   <groupbox title="Revolution">
3     <sketch_launcher id="sketch"
4       attribute_list_id="base"
5       label="Select:&lt;br /&gt;
6 1. Planar face of non-sketch object or a plane. Sketch creation will be started.&lt;br /&gt;
7 2. An existing sketch face or contour. Extrusion will be filled by it.&lt;br /&gt;
8 3. An existing result shape of kind: wires/edge/vertices. Extrusion will be filled by it."
9       shape_types="Vertices Edges Faces"
10       default_type = "2"
11       use_choice="true">
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/Features/sketch.png"
17       tooltip="Select a sketch face"
18       shape_types="Vertices Edges Faces"
19       default_type = "2"
20       use_choice="true"
21       concealment="true">
22       <validator id="FeaturesPlugin_ValidatorBaseForGeneration" parameters="vertex,edge,wire,face,shell,compound"/>
23     </multi_selector>
24     <shape_selector id="axis_object"
25                     icon="icons/Features/axis.png"
26                     label="Axis"
27                     tooltip="Select an edge for axis"
28                     shape_types="edge"
29                     geometrical_selection="true"
30                     default="">
31       <validator id="GeomValidators_ShapeType" parameters="line"/>
32     </shape_selector>
33     <toolbox id="CreationMethod">
34       <box id="ByAngles" title="By angles" icon="icons/Features/angle_up_down_32x32.png">
35         <groupbox>
36           <doublevalue
37             id="to_angle"
38             label="Angle"
39             step="1.0"
40             default="0"
41             icon="icons/Features/angle_up.png"
42             tooltip="To angle">
43           </doublevalue>
44         </groupbox>
45         <groupbox>
46           <doublevalue
47             id="from_angle"
48             label="Angle"
49             step="1.0"
50             default="10"
51             icon="icons/Features/angle_down.png"
52             tooltip="From angle">
53           </doublevalue>
54         </groupbox>
55       </box>
56       <box id="ByPlanesAndOffsets" title="By bounding planes and angles" icon="icons/Features/plane_inverted_32x32.png">
57         <groupbox title="From">
58           <shape_selector id="from_object"
59                           icon="icons/Features/plane.png"
60                           label="Plane face"
61                           tooltip="Bounding plane (select a planar face)"
62                           shape_types="face"
63                           geometrical_selection="true"
64                           default="&lt;sketch&gt;">
65             <validator id="GeomValidators_Face" parameters="plane"/>
66           </shape_selector>
67           <doublevalue id="from_offset" label="Angle"
68             step="1.0" default="0"
69             icon="icons/Features/angle_up_down.png"
70             tooltip="Angle for &quot;from&quot; bounding plane">
71           </doublevalue>
72         </groupbox>
73         <groupbox title="To">
74           <shape_selector id="to_object"
75                           icon="icons/Features/plane_inverted.png"
76                           label="Plane face"
77                           tooltip="Bounding plane (select a planar face)"
78                           shape_types="face"
79                           geometrical_selection="true"
80                           default="&lt;sketch&gt;">
81             <validator id="GeomValidators_Face" parameters="plane"/>
82           </shape_selector>
83           <doublevalue  id="to_offset" label="Angle"
84             step="1.0" default="0"
85             icon="icons/Features/angle_up_down.png"
86             tooltip="Angle for &quot;to&quot; bounding plane">
87           </doublevalue>
88         </groupbox>
89       </box>
90       <box id="ThroughAll" title="Through all" icon="icons/Features/revol_throughall_32x32.png">
91       </box>
92     </toolbox>
93   </groupbox>
94   <multi_selector id="main_objects"
95     label="Fuse with:"
96     icon="icons/Features/cut_shape.png"
97     tooltip="Objects to Fuse"
98     shape_types="Objects"
99     use_choice="false"
100     concealment="true"
101     main_argument="true">
102     <validator id="GeomValidators_ShapeType" parameters="solid"/>
103   </multi_selector>
104   <validator id="GeomValidators_ZeroOffset" parameters="CreationMethod,ByAngles,sketch_selection,to_angle,from_angle,to_object,to_offset,from_object,from_offset"/>
105   <validator id="FeaturesPlugin_ValidatorBaseForGenerationSketchOrSketchObjects" parameters="base"/>
106 </source>