Salome HOME
Merge branch 'master' into cgt/devCEA
[modules/shaper.git] / src / PythonAddons / macros / 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   <workbench id="Macros" document="Part">
24     <group id="Samples">
25
26       <feature id="Box_script" title="Box" tooltip="Create a box parallel to xyz by extruding a rectangular" icon="icons/Addons/box_ico.png">
27         <doublevalue id="width"  label="Width: " min="0" step="1.0" default="50" tooltip="Box width">
28           <validator id="GeomValidators_Positive"/>
29         </doublevalue>
30         <doublevalue id="length" label="Length: " min="0" step="1.0" default="50" tooltip="Box length">
31           <validator id="GeomValidators_Positive"/>
32         </doublevalue>
33         <doublevalue id="height" label="Height: " min="0" step="1.0" default="50" tooltip="Box height">
34           <validator id="GeomValidators_Positive"/>
35         </doublevalue>
36       </feature>
37
38     </group>
39   </workbench>
40 </source>