Salome HOME
Merge branch 'master' of https://codev-tuleap.cea.fr/plugins/git/salome/shaper
[modules/shaper.git] / src / FeaturesPlugin / scale_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="ByFactor"
25          title="By one common factor for the three directions"
26          icon="icons/Features/scale_factor_32x32.png">
27       <multi_selector id="main_objects"
28                       label="Main objects"
29                       icon=""
30                       tooltip="Select objects"
31                       type_choice="objects"
32                       concealment="true">
33         <validator id="FeaturesPlugin_ValidatorTransform"/>
34       </multi_selector>
35       <shape_selector id="center_point"
36                       icon=""
37                       label="Center point"
38                       tooltip="Select the center point"
39                       shape_types="vertex"
40                       default="">
41         <validator id="GeomValidators_ShapeType" parameters="vertex"/>
42         <validator id="GeomValidators_ConstructionComposite"/>
43       </shape_selector>
44       <doublevalue
45           id="scale_factor"
46           label="Scale factor"
47           step="1."
48           default="2."
49           tooltip="Scale factor">
50       </doublevalue>
51     </box>
52     <box id="ByDimensions"
53          title="Different factors for the three directions"
54          icon="icons/Features/scale_dimensions_32x32.png">
55       <multi_selector id="main_objects"
56                       label="Main objects"
57                       icon=""
58                       tooltip="Select objects"
59                       type_choice="objects"
60                       concealment="true">
61         <validator id="FeaturesPlugin_ValidatorTransform"/>
62       </multi_selector>
63       <shape_selector id="center_point"
64                       icon=""
65                       label="Center point"
66                       tooltip="Select the center point"
67                       shape_types="vertex"
68                       default="">
69         <validator id="GeomValidators_ShapeType" parameters="vertex"/>
70         <validator id="GeomValidators_ConstructionComposite"/>
71       </shape_selector>
72       <doublevalue
73           id="scale_factor_x"
74           label="Scale factor in X"
75           step="1."
76           default="2."
77           tooltip="Scale factor in X">
78       </doublevalue>
79       <doublevalue
80           id="scale_factor_y"
81           label="Scale factor in Y"
82           step="1."
83           default="2."
84           tooltip="Scale factor in Y">
85       </doublevalue>
86       <doublevalue
87           id="scale_factor_z"
88           label="Scale factor in Z"
89           step="1."
90           default="2."
91           tooltip="Scale factor in Z">
92       </doublevalue>
93       </box>
94   </toolbox>
95 </source>