Salome HOME
Issue #1834: Fix length of lines
[modules/shaper.git] / src / PrimitivesPlugin / box_widget.xml
1 <!-- Copyright (C) 2015-20xx CEA/DEN, EDF R&D -->
2
3 <source>
4   <toolbox id="CreationMethod">
5     <box id="BoxByDimensions" title="By dimensions" icon="icons/Primitives/box_dxyz_32x32.png">
6       <doublevalue
7         id="dx"
8         label="DX"
9         step="1.0"
10         default="10.0"
11         min = "0.0"
12         icon=""
13         tooltip="Dimension in X">
14         <validator id="GeomValidators_Positive"/>
15       </doublevalue>
16       <doublevalue
17         id="dy"
18         label="DY"
19         step="1.0"
20         default="10.0"
21         min = "0.0"
22         icon=""
23         tooltip="Dimension in Y">
24         <validator id="GeomValidators_Positive"/>
25       </doublevalue>
26       <doublevalue
27         id="dz"
28         label="DZ"
29         step="1.0"
30         default="10.0"
31         min = "0.0"
32         icon=""
33         tooltip="Dimension in Z">
34         <validator id="GeomValidators_Positive"/>
35       </doublevalue>
36     </box>
37     <box id="BoxByTwoPoints" title="By two points" icon="icons/Primitives/box_2pt_32x32.png">
38       <shape_selector id="FirstPoint"
39         label="First point"
40         icon="icons/Primitives/point.png"
41         tooltip="Select a first point"
42         shape_types="vertex">
43         <validator id="GeomValidators_ShapeType" parameters="vertex"/>
44       </shape_selector>
45       <shape_selector id="SecondPoint"
46         label="Second point"
47         icon="icons/Primitives/point.png"
48         tooltip="Select a second point"
49         shape_types="vertex">
50         <validator id="GeomValidators_ShapeType" parameters="vertex"/>
51         <validator id="GeomValidators_DifferentShapes"/>
52       </shape_selector>
53     </box>
54   </toolbox>
55 </source>