Salome HOME
Log desktop actions
[modules/shaper.git] / src / ExchangePlugin / plugin-Exchange.xml
old mode 100755 (executable)
new mode 100644 (file)
index 5bd7fb9..6637952
-<!--
-Copyright (C) 2014-2017  CEA/DEN, EDF R&D
-
-This library is free software; you can redistribute it and/or
-modify it under the terms of the GNU Lesser General Public
-License as published by the Free Software Foundation; either
-version 2.1 of the License, or (at your option) any later version.
-
-This library is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-Lesser General Public License for more details.
-
-You should have received a copy of the GNU Lesser General Public
-License along with this library; if not, write to the Free Software
-Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
-See http:##www.salome-platform.org/ or
-email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
--->
-
 <plugin>
   <workbench id="Part">
     <group id="Exchange">
-      <feature id="Import" title="Import" tooltip="Import a file" icon="icons/Exchange/import.png" document="Part"
-               helpfile="ExchangePlugin/importFeature.html">
-        <file_selector id="file_path" title="Import file" path="">
-          <validator id="ExchangePlugin_ImportFormat" parameters="BREP|BRP:BREP,STEP|STP:STEP,IGES|IGS:IGES,XAO:XAO" />
+      <feature id="ImportMacro" title="Import" tooltip="Import a file" icon="icons/Exchange/import.png"
+               helpfile="importFeature.html"
+               internal="1">
+        <switch id="ImportType">
+          <case id="Regular" title="BREP, XAO, IGES, STL">
+            <file_selector id="file_path" title="Import file" path="">
+              <validator id="ExchangePlugin_ImportFormat" parameters="BREP|BRP:BREP,IGES|IGS:IGES,XAO:XAO,STL:STL" />
+            </file_selector>
+            <choice id="target_part"
+                    string_list_attribute="target_parts_list"
+                    label="Import to"
+                    tooltip="Select the part to import the document" />
+          </case>
+          <case id="STEP" title="STEP">
+            <file_selector id="step_file_path" title="Import file" path="">
+              <validator id="ExchangePlugin_ImportFormat" parameters="STEP|STP:STEP" />
+            </file_selector>
+            <choice id="step_target_part"
+                    string_list_attribute="step_target_parts_list"
+                    label="Import to"
+                    tooltip="Select the part to import the document" />
+            <groupbox title="STEP options">
+              <boolvalue id="step_scale_inter_units"
+                         label="Scale to International System of Units"
+                         default="true"/>
+              <groupbox title="Create groups from">
+                <boolvalue id="step_materials"
+                           label="Materials"
+                           default="false"/>
+                <boolvalue id="step_colors"
+                           label="Colors"
+                           default="false"/>
+              </groupbox>
+            </groupbox>
+          </case>
+          <case id="XAOMem" title="XAOMem" internal="1">
+          </case>
+        </switch>
+      </feature>
+
+      <feature id="ImportImageMacro" title="Import" tooltip="Import a file" icon="icons/Exchange/import.png"
+               helpfile="importFeature.html"
+               internal="1">
+        <file_selector id="file_path" title="Import image file" path="">
+          <validator id="ExchangePlugin_ImportFormat" parameters="GIF|TIFF|PNG|JPG|JPEG|BMP|PPM|JPE:Image" />
+        </file_selector>
+        <choice id="target_part"
+                string_list_attribute="target_parts_list"
+                label="Import to"
+                tooltip="Select the image to import the document" />
+      </feature>
+
+      <feature id="Import" title="Import" tooltip="Import a file" icon="icons/Exchange/import.png"
+               helpfile="importFeature.html" internal="1">
+        <switch id="ImportType">
+          <case id="Regular" title="BREP, XAO, IGES, STL">
+            <file_selector id="file_path" title="Import file" path="">
+                <validator id="ExchangePlugin_ImportFormat" parameters="BREP|BRP:BREP,IGES|IGS:IGES,XAO:XAO,STL:STL" />
+            </file_selector>
+          </case>
+          <case id="STEP" title="STEP">
+            <file_selector id="step_file_path" title="Import file" path="">
+              <validator id="ExchangePlugin_ImportFormat" parameters="STEP|STP:STEP" />
+            </file_selector>
+            <groupbox title="STEP options">
+              <boolvalue id="step_scale_inter_units"
+                         label="Scale to International System of Units"
+                         default="true"/>
+              <groupbox title="Create groups from">
+                <boolvalue id="step_materials"
+                           label="Materials"
+                           default="false"/>
+                <boolvalue id="step_colors"
+                           label="Colors"
+                           default="false"/>
+              </groupbox>
+            </groupbox>
+          </case>
+          <case id="XAOMem" title="XAOMem" internal="1">
+          </case>
+        </switch>
+      </feature>
+      <feature id="ImportImage" title="Import" tooltip="Import a file" icon="icons/Exchange/import.png"
+               helpfile="importFeature.html"
+               internal="1">
+        <file_selector id="file_path" title="Import image file" path="">
+          <validator id="ExchangePlugin_ImportFormat" parameters="GIF|TIFF|PNG|JPG|JPEG|BMP|PPM|JPE:Image" />
         </file_selector>
       </feature>
       <feature id="Export" title="Export" tooltip="Export to file" icon="icons/Exchange/export.png"
-               helpfile="ExchangePlugin/exportFeature.html">
+               helpfile="exportFeature.html" internal="1">
         <source path="export_widget.xml" />
       </feature>
-      <feature id="Dump" title="Dump" tooltip="Dump python script" icon="icons/Exchange/dump.png"
-               helpfile="ExchangePlugin/dumpFeature.html">
+
+      <feature id="Dump" title="Dump" tooltip="Dump Python script" icon="icons/Exchange/dump.png"
+               helpfile="dumpFeature.html" abort_confirmation="false">
         <export_file_selector id="file_path"
                               type="save"
                               title="Dump to file"
@@ -41,8 +104,49 @@ email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com
           <validator id="ExchangePlugin_ExportFormat"
                      parameters="py:Python" />
         </export_file_selector>
-        <boolvalue id="geometric_dump" label="By geometric selection"/>
+        <!--<boolvalue id="topological_naming"
+             label="Topological naming selection"
+             tooltip="To use standard topological naming selection identifier, used for parametric model"
+             default="true"/>-->
+        <boolvalue id="geometric_selection"
+             label="Dump by coordinates"
+             tooltip="To use geometrical point coordinates to identify selected shapes"
+             default="false"/>
+        <!--<boolvalue id="weak_naming"
+             label="Weak naming selection"
+             tooltip="To use geometrical order for identification of selected shapes"
+             default="false"/> -->
+      </feature>
+
+      <feature id="ImportPart" title="Import part" tooltip="Import features from file" icon="icons/Exchange/import_part.png"
+               helpfile="importFeature.html"
+               internal="1">
+        <file_selector id="file_path" title="Import file" path="">
+          <validator id="ExchangePlugin_ImportFormat" parameters="shaperpart:Part" />
+        </file_selector>
+        <choice id="target_part"
+                string_list_attribute="target_parts_list"
+                label="Import to"
+                tooltip="Select the part to import the document" />
+      </feature>
+
+      <feature id="ExportPart" title="Export part" tooltip="Export structure of the Part to file" icon="icons/Exchange/export_part.png"
+               helpfile="exportFeature.html"
+               internal="1">
+        <export_file_selector id="file_path"
+                              type="save"
+                              title="Export file"
+                              path="">
+          <validator id="ExchangePlugin_ExportFormat"
+                     parameters="shaperpart:Part" />
+        </export_file_selector>
+        <multi_selector id="selection_list"
+                        tooltip="Select features or results"
+                        shape_types="Vertices Edges Faces Solids Compsolids Objects">
+          <validator id="GeomValidators_GlobalSelection" />
+          <validator id="ExchangePlugin_InHistory" />
+        </multi_selector>
       </feature>
     </group>
   </workbench>
-</plugin>
\ No newline at end of file
+</plugin>