Salome HOME
updated copyright message
[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/edges/vertices. Extrusion will be filled by it."
8                   shape_types="Vertices Edges Faces|Wires"
9                   type_icons=":/icons/extrusion_vertex32.png :/icons/extrusion_edge32.png :/icons/extrusion_face32.png"
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="Base objects:"
16                   tooltip="Select a base objects"
17                   shape_types="Vertices Edges Faces|Wires"
18                   type_icons=":/icons/extrusion_vertex32.png :/icons/extrusion_edge32.png :/icons/extrusion_face32.png"
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"
35          title="By sizes"
36          icon="icons/Features/dimension_up_down_32x32.png">
37       <groupbox>
38         <doublevalue id="to_size"
39                      label="Size"
40                      step="1.0"
41                      default="10"
42                      icon="icons/Features/dimension_up.png"
43                      tooltip="To size"/>
44       </groupbox>
45       <groupbox>
46         <doublevalue id="from_size"
47                      label="Size"
48                      step="1.0"
49                      default="0"
50                      icon="icons/Features/dimension_down.png"
51                      tooltip="From size"/>
52       </groupbox>
53     </box>
54     <box id="ByPlanesAndOffsets"
55          title="By bounding faces and offsets"
56          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"
69                      step="1.0"
70                      default="0"
71                      icon="icons/Features/dimension_up_down.png"
72                      tooltip="Offset for &quot;from&quot; bounding plane"/>
73       </groupbox>
74       <groupbox title="To">
75         <shape_selector id="to_object"
76                         icon="icons/Features/plane_inverted.png"
77                         label="To face"
78                         tooltip="To face"
79                         shape_types="face"
80                         geometrical_selection="true"
81                         default="&lt;base sketch&gt;">
82           <validator id="FeaturesPlugin_ValidatorExtrusionBoundary"/>
83         </shape_selector>
84         <doublevalue id="to_offset"
85                      label="Offset"
86                      step="1.0"
87                      default="0"
88                      icon="icons/Features/dimension_up_down.png"
89                      tooltip="Offset for &quot;to&quot; bounding plane"/>
90       </groupbox>
91     </box>
92   </toolbox>
93   <validator id="GeomValidators_ZeroOffset" parameters="CreationMethod,BySizes,base,to_size,from_size,to_object,to_offset,from_object,from_offset"/>
94   <validator id="FeaturesPlugin_ValidatorExtrusionDir" parameters="base,direction_object"/>
95   <validator id="FeaturesPlugin_ValidatorBaseForGenerationSketchOrSketchObjects" parameters="base"/>
96 </source>