Salome HOME
Issue #3236: Add buttons for shape type choice to Extrusion/Revolution objects
[modules/shaper.git] / src / FeaturesPlugin / extrusionfuse_widget.xml
1 <source>
2   <groupbox title="Extrusion">
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="direction_object"
25                     icon="icons/Features/axis.png"
26                     label="Direction"
27                     tooltip="Select an edge for direction"
28                     shape_types="edge"
29                     geometrical_selection="true"
30                     default="&lt;base normal&gt;">
31       <validator id="GeomValidators_ShapeType" parameters="empty,line"/>
32     </shape_selector>
33     <toolbox id="CreationMethod">
34       <box id="BySizes" title="By sizes" icon="icons/Features/dimension_up_down_32x32.png">
35         <groupbox>
36           <doublevalue
37             id="to_size"
38             label="Size"
39             step="1.0"
40             default="10"
41             icon="icons/Features/dimension_up.png"
42             tooltip="To size">
43           </doublevalue>
44         </groupbox>
45         <groupbox>
46           <doublevalue
47             id="from_size"
48             label="Size"
49             step="1.0"
50             default="0"
51             icon="icons/Features/dimension_down.png"
52             tooltip="From size">
53           </doublevalue>
54         </groupbox>
55       </box>
56       <box id="ByPlanesAndOffsets" title="By bounding faces and offsets" 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="From face"
61                           tooltip="From face"
62                           shape_types="face"
63                           geometrical_selection="true"
64                           default="&lt;base sketch&gt;">
65             <validator id="FeaturesPlugin_ValidatorExtrusionBoundary"/>
66           </shape_selector>
67           <doublevalue id="from_offset"
68             label="Offset" step="1.0" default="0"
69             icon="icons/Features/dimension_up_down.png"
70             tooltip="Offset for 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="To face"
77                           tooltip="To face"
78                           shape_types="face"
79                           geometrical_selection="true"
80                           default="&lt;base sketch&gt;">
81             <validator id="FeaturesPlugin_ValidatorExtrusionBoundary"/>
82           </shape_selector>
83           <doublevalue  id="to_offset"
84             label="Offset" step="1.0" default="0"
85             icon="icons/Features/dimension_up_down.png"
86             tooltip="Offset for bounding plane">
87           </doublevalue>
88         </groupbox>
89       </box>
90       <box id="ThroughAll" title="Through all" icon="icons/Features/extrusion_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,BySizes,sketch_selection,to_size,from_size,to_object,to_offset,from_object,from_offset"/>
105   <validator id="FeaturesPlugin_ValidatorExtrusionDir" parameters="base,direction_object"/>
106   <validator id="FeaturesPlugin_ValidatorBaseForGenerationSketchOrSketchObjects" parameters="base"/>
107 </source>