Salome HOME
Issue #2643: Extend optional box with possibility to work without frame. Avoid using...
[modules/shaper.git] / src / BuildPlugin / interpolation_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   <multi_selector id="base_objects"
24                   label="Points and vertices:"
25                   tooltip="Select points or vertices objects."
26                   type_choice="vertices"
27                   concealment="true">
28     <validator id="GeomValidators_DifferentShapes"/>
29   </multi_selector>
30   <boolvalue id="reorder" label="Reorder" tooltip="Changes the order of points to construct the shortest curve." default="false"/>
31   <optionalbox id="closed" title="Closed" tooltip="Makes the curve closed or not." default="false"
32                has_frame="false" enable_on_check="false">
33     <optionalbox id="use_tangents" title="Tangents" default="false">
34       <shape_selector id="tangent_start"
35                       icon="icons/Features/axis.png"
36                       label="Start"
37                       tooltip="Select vector tangent to the start of curve"
38                       shape_types="edge"
39                       default="&lt;start&gt;">
40         <validator id="GeomValidators_ShapeType" parameters="empty,line"/>
41       </shape_selector>
42       <shape_selector id="tangent_end"
43                       icon="icons/Features/axis.png"
44                       label="End"
45                       tooltip="Select vector tangent to the end of curve"
46                       shape_types="edge"
47                       default="&lt;end&gt;">
48         <validator id="GeomValidators_ShapeType" parameters="empty,line"/>
49       </shape_selector>
50     </optionalbox>
51   </optionalbox>
52   <validator id="GeomValidators_MinObjectsSelected" parameters="base_objects,2"/>
53 </source>