Salome HOME
[CEA] Select text in Measurement
[modules/shaper.git] / src / FeaturesPlugin / extrusioncut_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/edges/vertices. Extrusion will be filled by it."
9       shape_types="wires faces shells">
10       <validator id="FeaturesPlugin_ValidatorCompositeLauncher" parameters="base,Sketch"/>
11     </sketch_launcher>
12     <multi_selector id="base"
13       label="Select a sketch face"
14       icon="icons/Features/sketch.png"
15       tooltip="Select a sketch face"
16       shape_types="wires faces shells"
17       concealment="true">
18       <validator id="FeaturesPlugin_ValidatorBaseForGeneration" parameters="face,shell"/>
19     </multi_selector>
20     <shape_selector id="direction_object"
21                     icon="icons/Features/axis.png"
22                     label="Direction"
23                     tooltip="Select an edge for direction"
24                     shape_types="edge"
25                     geometrical_selection="true"
26                     default="&lt;base normal&gt;">
27       <validator id="GeomValidators_ShapeType" parameters="empty,line"/>
28     </shape_selector>
29     <toolbox id="CreationMethod">
30       <box id="BySizes" title="By sizes" icon="icons/Features/dimension_up_down_32x32.png">
31         <groupbox>
32           <doublevalue
33             id="to_size"
34             label="Size"
35             step="1.0"
36             default="0"
37             icon="icons/Features/dimension_up.png"
38             tooltip="To size">
39           </doublevalue>
40         </groupbox>
41         <groupbox>
42           <doublevalue
43             id="from_size"
44             label="Size"
45             step="1.0"
46             default="10"
47             icon="icons/Features/dimension_down.png"
48             tooltip="From size">
49           </doublevalue>
50         </groupbox>
51       </box>
52       <box id="ByPlanesAndOffsets" title="By bounding faces and offsets" icon="icons/Features/plane_inverted_32x32.png">
53         <groupbox title="From">
54           <shape_selector id="from_object"
55                           icon="icons/Features/plane.png"
56                           label="From face"
57                           tooltip="From face"
58                           shape_types="face"
59                           geometrical_selection="true"
60                           default="&lt;base sketch&gt;">
61             <validator id="FeaturesPlugin_ValidatorExtrusionBoundary"/>
62           </shape_selector>
63           <doublevalue id="from_offset"
64             label="Offset" step="1.0" default="0"
65             icon="icons/Features/dimension_up_down.png"
66             tooltip="Offset for bounding plane">
67           </doublevalue>
68         </groupbox>
69         <groupbox title="To">
70           <shape_selector id="to_object"
71                           icon="icons/Features/plane_inverted.png"
72                           label="To face"
73                           tooltip="To face"
74                           shape_types="face"
75                           geometrical_selection="true"
76                           default="&lt;base sketch&gt;">
77             <validator id="FeaturesPlugin_ValidatorExtrusionBoundary"/>
78           </shape_selector>
79           <doublevalue  id="to_offset"
80             label="Offset" step="1.0" default="0"
81             icon="icons/Features/dimension_up_down.png"
82             tooltip="Offset for bounding plane">
83           </doublevalue>
84         </groupbox>
85       </box>
86       <box id="ThroughAll" title="Through all" icon="icons/Features/extrusion_throughall_32x32.png">
87       </box>
88     </toolbox>
89   </groupbox>
90   <multi_selector id="main_objects"
91     label="Cut from:"
92     icon="icons/Features/cut_shape.png"
93     tooltip="Objects to Cut"
94     shape_types="Objects"
95     use_choice="false"
96     concealment="true"
97     main_argument="true">
98     <validator id="GeomValidators_ShapeType" parameters="solid"/>
99   </multi_selector>
100   <validator id="GeomValidators_ZeroOffset" parameters="CreationMethod,BySizes,sketch_selection,to_size,from_size,to_object,to_offset,from_object,from_offset"/>
101   <validator id="FeaturesPlugin_ValidatorExtrusionDir" parameters="base,direction_object"/>
102   <validator id="FeaturesPlugin_ValidatorBaseForGenerationSketchOrSketchObjects" parameters="base"/>
103 </source>