Salome HOME
Fix for formula definition with '=' in an integer widget
[modules/shaper.git] / src / PrimitivesPlugin / box_widget.xml
1 <!--
2 Copyright (C) 2014-2017  CEA/DEN, EDF R&D
3
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
8
9 This library is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 Lesser General Public License for more details.
13
14 You should have received a copy of the GNU Lesser General Public
15 License along with this library; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
18 See http:##www.salome-platform.org/ or
19 email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
20 -->
21
22 <source>
23   <toolbox id="CreationMethod">
24     <box id="BoxByDimensions" title="By dimensions" icon="icons/Primitives/box_dxyz_32x32.png">
25       <doublevalue
26         id="dx"
27         label="DX"
28         step="1.0"
29         default="10.0"
30         icon=""
31         tooltip="Dimension in X">
32       </doublevalue>
33       <doublevalue
34         id="dy"
35         label="DY"
36         step="1.0"
37         default="10.0"
38         icon=""
39         tooltip="Dimension in Y">
40       </doublevalue>
41       <doublevalue
42         id="dz"
43         label="DZ"
44         step="1.0"
45         default="10.0"
46         icon=""
47         tooltip="Dimension in Z">
48       </doublevalue>
49     </box>
50     <box id="BoxByTwoPoints" title="By two points" icon="icons/Primitives/box_2pt_32x32.png">
51       <shape_selector id="FirstPoint"
52         label="First point"
53         icon="icons/Primitives/point.png"
54         tooltip="Select a first point"
55         shape_types="vertex">
56       </shape_selector>
57       <shape_selector id="SecondPoint"
58         label="Second point"
59         icon="icons/Primitives/point.png"
60         tooltip="Select a second point"
61         shape_types="vertex">
62       </shape_selector>
63     </box>
64   </toolbox>
65 </source>