Salome HOME
CEA - Lot3 : Add LOFT Feature
[modules/shaper.git] / src / ExchangePlugin / plugin-Exchange.xml
1 <plugin>
2   <workbench id="Part">
3     <group id="Exchange">
4       <feature id="ImportMacro" title="Import" tooltip="Import a file" icon="icons/Exchange/import.png"
5                helpfile="importFeature.html"
6                internal="1">
7       <switch id="ImportType">
8         <case id="Regular" title="BREP, XAO, IGES, STL">
9           <file_selector id="file_path" title="Import file" path="">
10               <validator id="ExchangePlugin_ImportFormat" parameters="BREP|BRP:BREP,IGES|IGS:IGES,XAO:XAO,STL:STL" />
11           </file_selector>
12         <choice id="target_part"
13                 string_list_attribute="target_parts_list"
14                 label="Import to"
15                 tooltip="Select the part to import the document" />
16         </case>
17         <case id="STEP" title="STEP">
18             <file_selector id="step_file_path" title="Import file" path="">
19               <validator id="ExchangePlugin_ImportFormat" parameters="STEP|STP:STEP" />
20             </file_selector>
21             <choice id="step_target_part"
22                 string_list_attribute="step_target_parts_list"
23                 label="Import to"
24                 tooltip="Select the part to import the document" />
25             <groupbox title="STEP options">
26               <boolvalue id="step_scale_inter_units"
27                         label="Scale to International System of Units"
28                         default="true"/>
29               <groupbox title="Create groups from">
30                 <boolvalue id="step_materials"
31                           label="Materials"
32                           default="false"/>
33                 <boolvalue id="step_colors"
34                           label="Colors"
35                           default="false"/>
36               </groupbox>
37             </groupbox>
38           </case>
39         </switch>
40 </feature>
41       <feature id="ImportImageMacro" title="Import" tooltip="Import a file" icon="icons/Exchange/import.png"
42                helpfile="importFeature.html"
43                internal="1">
44         <file_selector id="file_path" title="Import image file" path="">
45           <validator id="ExchangePlugin_ImportFormat" parameters="GIF|TIFF|PNG|JPG|JPEG|BMP|PPM|JPE:Image" />
46         </file_selector>
47         <choice id="target_part"
48                 string_list_attribute="target_parts_list"
49                 label="Import to"
50                 tooltip="Select the image to import the document" />
51       </feature>
52       <feature id="Import" title="Import" tooltip="Import a file" icon="icons/Exchange/import.png"
53                helpfile="importFeature.html" internal="1">
54         <switch id="ImportType">
55           <case id="Regular" title="BREP, XAO, IGES, STL">
56             <file_selector id="file_path" title="Import file" path="">
57                 <validator id="ExchangePlugin_ImportFormat" parameters="BREP|BRP:BREP,IGES|IGS:IGES,XAO:XAO,STL:STL" />
58             </file_selector>
59           </case>
60           <case id="STEP" title="STEP">
61             <file_selector id="step_file_path" title="Import file" path="">
62               <validator id="ExchangePlugin_ImportFormat" parameters="STEP|STP:STEP" />
63             </file_selector>
64             <groupbox title="STEP options">
65               <boolvalue id="step_scale_inter_units"
66                         label="Scale to International System of Units"
67                         default="true"/>
68               <groupbox title="Create groups from">
69                 <boolvalue id="step_materials"
70                           label="Materials"
71                           default="false"/>
72                 <boolvalue id="step_colors"
73                           label="Colors"
74                           default="false"/>
75               </groupbox>
76             </groupbox>
77           </case>
78         </switch>
79       </feature>
80       <feature id="ImportImage" title="Import" tooltip="Import a file" icon="icons/Exchange/import.png"
81                helpfile="importFeature.html"
82                internal="1">
83         <file_selector id="file_path" title="Import image file" path="">
84           <validator id="ExchangePlugin_ImportFormat" parameters="GIF|TIFF|PNG|JPG|JPEG|BMP|PPM|JPE:Image" />
85         </file_selector>
86       </feature>
87       <feature id="Export" title="Export" tooltip="Export to file" icon="icons/Exchange/export.png"
88                helpfile="exportFeature.html" internal="1">
89         <source path="export_widget.xml" />
90       </feature>
91       <feature id="Dump" title="Dump" tooltip="Dump Python script" icon="icons/Exchange/dump.png"
92                helpfile="dumpFeature.html" abort_confirmation="false">
93         <export_file_selector id="file_path"
94                               type="save"
95                               title="Dump to file"
96                               path="">
97           <validator id="ExchangePlugin_ExportFormat"
98                      parameters="py:Python" />
99         </export_file_selector>
100         <!--<boolvalue id="topological_naming"
101              label="Topological naming selection"
102              tooltip="To use standard topological naming selection identifier, used for parametric model"
103              default="true"/>-->
104         <boolvalue id="geometric_selection"
105              label="Dump by coordinates"
106              tooltip="To use geometrical point coordinates to identify selected shapes"
107              default="false"/>
108         <!--<boolvalue id="weak_naming"
109              label="Weak naming selection"
110              tooltip="To use geometrical order for identification of selected shapes"
111              default="false"/> -->
112       </feature>
113
114       <feature id="ImportPart" title="Import part" tooltip="Import features from file" icon="icons/Exchange/import_part.png"
115                helpfile="importFeature.html"
116                internal="1">
117         <file_selector id="file_path" title="Import file" path="">
118           <validator id="ExchangePlugin_ImportFormat" parameters="shaperpart:Part" />
119         </file_selector>
120         <choice id="target_part"
121                 string_list_attribute="target_parts_list"
122                 label="Import to"
123                 tooltip="Select the part to import the document" />
124       </feature>
125       <feature id="ExportPart" title="Export part" tooltip="Export structure of the Part to file" icon="icons/Exchange/export_part.png"
126                helpfile="exportFeature.html"
127                internal="1">
128         <export_file_selector id="file_path"
129                               type="save"
130                               title="Export file"
131                               path="">
132           <validator id="ExchangePlugin_ExportFormat"
133                      parameters="shaperpart:Part" />
134         </export_file_selector>
135         <multi_selector id="selection_list"
136                         tooltip="Select features or results"
137                         shape_types="Vertices Edges Faces Solids Compsolids Objects">
138           <validator id="GeomValidators_GlobalSelection" />
139           <validator id="ExchangePlugin_InHistory" />
140         </multi_selector>
141       </feature>
142     </group>
143   </workbench>
144 </plugin>