Salome HOME
b553ded1872a5f8b16cc8ca332a7f3a32c3b6090
[modules/shaper.git] / src / ExchangePlugin / plugin-Exchange.xml
1 <plugin>
2   <workbench id="Part">
3     <group id="Exchange">
4       <feature id="Import" 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="ImportImage" title="Import" tooltip="Import a file" icon="icons/Exchange/import.png"
53                helpfile="importFeature.html"
54                internal="1">
55         <file_selector id="file_path" title="Import image file" path="">
56           <validator id="ExchangePlugin_ImportFormat" parameters="GIF|TIFF|PNG|JPG|JPEG|BMP|PPM|JPE:Image" />
57         </file_selector>
58         <choice id="target_part"
59                 string_list_attribute="target_parts_list"
60                 label="Import to"
61                 tooltip="Select the image to import the document" />
62       </feature>
63       <feature id="ImportFeature" title="Import" tooltip="Import a file" icon="icons/Exchange/import.png"
64                helpfile="importFeature.html" internal="1">
65         <switch id="ImportType">
66           <case id="Regular" title="BREP, XAO, IGES, STL">
67             <file_selector id="file_path" title="Import file" path="">
68                 <validator id="ExchangePlugin_ImportFormat" parameters="BREP|BRP:BREP,IGES|IGS:IGES,XAO:XAO,STL:STL" />
69             </file_selector>
70           </case>
71           <case id="STEP" title="STEP">
72             <file_selector id="step_file_path" title="Import file" path="">
73               <validator id="ExchangePlugin_ImportFormat" parameters="STEP|STP:STEP" />
74             </file_selector>
75             <groupbox title="STEP options">
76               <boolvalue id="step_scale_inter_units"
77                         label="Scale to International System of Units"
78                         default="true"/>
79               <groupbox title="Create groups from">
80                 <boolvalue id="step_materials"
81                           label="Materials"
82                           default="false"/>
83                 <boolvalue id="step_colors"
84                           label="Colors"
85                           default="false"/>
86               </groupbox>
87             </groupbox>
88           </case>
89         </switch>
90       </feature>
91       <feature id="ImportImage" title="Import" tooltip="Import a file" icon="icons/Exchange/import.png"
92                helpfile="importFeature.html"
93                internal="1">
94         <file_selector id="file_path" title="Import image file" path="">
95           <validator id="ExchangePlugin_ImportFormat" parameters="GIF|TIFF|PNG|JPG|JPEG|BMP|PPM|JPE:Image" />
96         </file_selector>
97       </feature>
98       <feature id="ImportImageFeature" title="Import" tooltip="Import a file" icon="icons/Exchange/import.png"
99                helpfile="importFeature.html"
100                internal="1">
101         <file_selector id="file_path" title="Import image file" path="">
102           <validator id="ExchangePlugin_ImportFormat" parameters="GIF|TIFF|PNG|JPG|JPEG|BMP|PPM|JPE:Image" />
103         </file_selector>
104       </feature>
105       <feature id="Export" title="Export" tooltip="Export to file" icon="icons/Exchange/export.png"
106                helpfile="exportFeature.html" internal="1">
107         <source path="export_widget.xml" />
108       </feature>
109       <feature id="Dump" title="Dump" tooltip="Dump Python script" icon="icons/Exchange/dump.png"
110                helpfile="dumpFeature.html" abort_confirmation="false">
111         <export_file_selector id="file_path"
112                               type="save"
113                               title="Dump to file"
114                               path="">
115           <validator id="ExchangePlugin_ExportFormat"
116                      parameters="py:Python" />
117         </export_file_selector>
118         <!--<boolvalue id="topological_naming"
119              label="Topological naming selection"
120              tooltip="To use standard topological naming selection identifier, used for parametric model"
121              default="true"/>
122         <boolvalue id="geometric_selection"
123              label="Geometric selection"
124              tooltip="To use geometrical point coordinates to identify selected shapes"
125              default="true"/>
126         <boolvalue id="weak_naming"
127              label="Weak naming selection"
128              tooltip="To use geometrical order for identification of selected shapes"
129              default="false"/> -->
130       </feature>
131
132       <feature id="ImportPart" title="Import part" tooltip="Import features from file" icon="icons/Exchange/import_part.png"
133                helpfile="importFeature.html"
134                internal="1">
135         <file_selector id="file_path" title="Import file" path="">
136           <validator id="ExchangePlugin_ImportFormat" parameters="shaperpart:Part" />
137         </file_selector>
138         <choice id="target_part"
139                 string_list_attribute="target_parts_list"
140                 label="Import to"
141                 tooltip="Select the part to import the document" />
142       </feature>
143       <feature id="ExportPart" title="Export part" tooltip="Export structure of the Part to file" icon="icons/Exchange/export_part.png"
144                helpfile="exportFeature.html"
145                internal="1">
146         <export_file_selector id="file_path"
147                               type="save"
148                               title="Export file"
149                               path="">
150           <validator id="ExchangePlugin_ExportFormat"
151                      parameters="shaperpart:Part" />
152         </export_file_selector>
153         <multi_selector id="selection_list"
154                         tooltip="Select features or results"
155                         shape_types="Vertices Edges Faces Solids Compsolids Objects">
156           <validator id="GeomValidators_GlobalSelection" />
157           <validator id="ExchangePlugin_InHistory" />
158         </multi_selector>
159       </feature>
160     </group>
161   </workbench>
162 </plugin>