]> SALOME platform Git repositories - modules/shaper.git/blob - src/FeaturesPlugin/extrusion_widget.xml
Salome HOME
Issue #3236: Add buttons for shape type choice
[modules/shaper.git] / src / FeaturesPlugin / extrusion_widget.xml
1 <source>
2   <sketch_launcher id="sketch"
3                    attribute_list_id="base"
4                    label="Select:&lt;br /&gt;
5 1. Planar face of non-sketch object or a plane. Sketch creation will be started.&lt;br /&gt;
6 2. An existing sketch face or contour. Extrusion will be filled by it.&lt;br /&gt;
7 3. An existing result shape of kind: wires/edge/vertices. Extrusion will be filled by it."
8                    shape_types="vertices edges wires faces shells solids compsolids compounds">
9     <validator id="FeaturesPlugin_ValidatorCompositeLauncher" parameters="base,Sketch"/>
10   </sketch_launcher>
11   <choice id="use_sapes"
12     widget_type="radiobuttons"
13     buttons_dir="horizontal"
14     label="Type"
15     tooltip="Using shapes type"
16     string_list="Vertices Edges Faces"
17     icons_list=":pictures/vertex32.png :pictures/edge32.png :pictures/face32.png"
18     default="2">
19   </choice>
20   <multi_selector id="base"
21                   label="Base objects:"
22                   tooltip="Select a base objects"
23                   shape_types="vertices edges wires faces shells compounds"
24                   concealment="true">
25     <validator id="FeaturesPlugin_ValidatorBaseForGeneration" parameters="vertex,edge,wire,face,shell,compound"/>
26   </multi_selector>
27   <shape_selector id="direction_object"
28                   icon="icons/Features/axis.png"
29                   label="Direction"
30                   tooltip="Select an edge for direction"
31                   shape_types="edge"
32                   geometrical_selection="true"
33                   default="&lt;base normal&gt;">
34     <validator id="GeomValidators_ShapeType" parameters="empty,line"/>
35   </shape_selector>
36   <toolbox id="CreationMethod">
37     <box id="BySizes"
38          title="By sizes"
39          icon="icons/Features/dimension_up_down_32x32.png">
40       <groupbox>
41         <doublevalue id="to_size"
42                      label="Size"
43                      step="1.0"
44                      default="10"
45                      icon="icons/Features/dimension_up.png"
46                      tooltip="To size"/>
47       </groupbox>
48       <groupbox>
49         <doublevalue id="from_size"
50                      label="Size"
51                      step="1.0"
52                      default="0"
53                      icon="icons/Features/dimension_down.png"
54                      tooltip="From size"/>
55       </groupbox>
56     </box>
57     <box id="ByPlanesAndOffsets"
58          title="By bounding faces and offsets"
59          icon="icons/Features/plane_inverted_32x32.png">
60       <groupbox title="From">
61         <shape_selector id="from_object"
62                         icon="icons/Features/plane.png"
63                         label="From face"
64                         tooltip="From face"
65                         shape_types="face"
66                         geometrical_selection="true"
67                         default="&lt;base sketch&gt;">
68           <validator id="FeaturesPlugin_ValidatorExtrusionBoundary"/>
69         </shape_selector>
70         <doublevalue id="from_offset"
71                      label="Offset"
72                      step="1.0"
73                      default="0"
74                      icon="icons/Features/dimension_up_down.png"
75                      tooltip="Offset for &quot;from&quot; bounding plane"/>
76       </groupbox>
77       <groupbox title="To">
78         <shape_selector id="to_object"
79                         icon="icons/Features/plane_inverted.png"
80                         label="To face"
81                         tooltip="To face"
82                         shape_types="face"
83                         geometrical_selection="true"
84                         default="&lt;base sketch&gt;">
85           <validator id="FeaturesPlugin_ValidatorExtrusionBoundary"/>
86         </shape_selector>
87         <doublevalue id="to_offset"
88                      label="Offset"
89                      step="1.0"
90                      default="0"
91                      icon="icons/Features/dimension_up_down.png"
92                      tooltip="Offset for &quot;to&quot; bounding plane"/>
93       </groupbox>
94     </box>
95   </toolbox>
96   <validator id="GeomValidators_ZeroOffset" parameters="CreationMethod,BySizes,base,to_size,from_size,to_object,to_offset,from_object,from_offset"/>
97   <validator id="FeaturesPlugin_ValidatorExtrusionDir" parameters="base,direction_object"/>
98   <validator id="FeaturesPlugin_ValidatorBaseForGenerationSketchOrSketchObjects" parameters="base"/>
99 </source>