Salome HOME
Improvement coding style
[modules/shaper.git] / src / ExchangePlugin / export_widget.xml
1 <source>
2   <switch id="ExportType">
3     <case id="Regular" title="BREP, STEP, IGES">
4       <export_file_selector id="file_path"
5                             type="save"
6                             title="Export file"
7                             path="">
8         <validator id="ExchangePlugin_ExportFormat"
9                    parameters="brep|brp:BREP,step|stp:STEP,iges|igs:IGES-5.1,iges|igs:IGES-5.3" />
10       </export_file_selector>
11       <multi_selector id="selection_list"
12                       tooltip="Select a set of objects"
13                       shape_types="Vertices Edges Faces Solids Compsolids Objects">
14         <validator id="GeomValidators_Finite"/>
15       </multi_selector>
16     </case>
17     <case id="XAO" title="XAO">
18       <export_file_selector id="xao_file_path"
19                             type="save"
20                             title="Export file"
21                             path="">
22         <validator id="ExchangePlugin_ExportFormat"
23                    parameters="xao:XAO" />
24       </export_file_selector>
25       <stringvalue id="xao_author"
26                    label="Author"
27                    placeholder="Please input the author">
28       </stringvalue>
29       <stringvalue id="xao_geometry_name"
30                    label="Geometry name"
31                    placeholder="Please input the geometry name">
32       </stringvalue>
33     </case>
34     <case id="STL" title="STL">
35       <export_file_selector id="stl_file_path"
36                             type="save"
37                             title="Export file"
38                             path="">
39         <validator id="ExchangePlugin_ExportFormat"
40                    parameters="stl:STL" />
41       </export_file_selector>
42       <shape_selector id="stl_object_selected"
43                           label="Object"
44                           tooltip="Object to export."
45                           shape_types="faces shells solids compsolids compounds">
46             <validator id="GeomValidators_Finite"/>
47       </shape_selector>
48       <groupbox title="Deflection">
49         <radiobox id="stl_deflection_type">
50           <radio id="stl_deflection_type_relative"
51               title="Relative"
52               tooltip="Calculate by size of shape">
53             <doublevalue id="stl_relative"
54               tooltip="Relative value."
55               min="0.0"
56               step="0.001"
57               default="0.001">
58             </doublevalue>
59           </radio>
60           <radio id="stl_deflection_type_absolute"
61               title="Absolute"
62               tooltip="Value indicate by user">
63             <doublevalue id="stl_absolute"
64               tooltip="Absolute value."
65               min="1e-12"
66               step="0.1"
67               default="0.5">
68             </doublevalue>
69           </radio>
70         </radiobox>
71       </groupbox >
72       <groupbox title="File type">
73         <radiobox id="stl_file_type">
74           <radio id="stl_file_type_binary"
75               title="Binary">
76           </radio>
77           <radio id="stl_file_type_acii"
78               title="ASCII">
79           </radio>
80         </radiobox>
81       </groupbox >
82     </case>
83   </switch>
84 </source>