Salome HOME
rebase fix
authorrraphael <raphael.raphael@c-s.fr>
Fri, 15 Jan 2021 11:29:20 +0000 (12:29 +0100)
committerrraphael <raphael.raphael@c-s.fr>
Fri, 15 Jan 2021 11:29:20 +0000 (12:29 +0100)
src/ExchangePlugin/doc/importFeature.rst
src/ExchangePlugin/plugin-Exchange.xml

index c939ae31d3393222d4af5c74a9a55b9272d95c26..e76131a4243cc7b440783eba1592813ca35c2d66 100644 (file)
@@ -68,7 +68,6 @@ The following property panel will be opened:
    **Import property panel**
 
 The first combobox provides the list of formats avalables (BREP, XAO, IGES or STEP).
-
 The **Import to** combobox provides the list of destinations (one of existing Parts or a new Part).
 
 In this panel it is possible to enter a file name directly or press **'...'** button and browse it with help of import file dialog box:
@@ -77,11 +76,10 @@ In this panel it is possible to enter a file name directly or press **'...'** bu
    :align: center
 
    **Dialog box to import CAD-neutral format**
-
 Import BREP, XAO, IGES
 """"""""""""""""""""""
 In case of first choice the format of imported file will be defined according to file extension.
-
+  
 **Apply** button imports the file.
   
 **Cancel** button cancels the operation.
@@ -103,20 +101,6 @@ The Result of the operation depends on the imported file content.
 
    Import of BREP file.
 
-Import pictures
------------------------
-
-It is possible to import pictures in the following image formats: GIF, TIFF, PNG, JPG, JPEG, BMP, PPM, JPE.
-To import a file into active part select in the Main Menu *File -> Import -> Picture...* item.
-
-Result
-""""""
-
-.. figure:: images/imageImported.png
-   :align: center
-
-   Import of PNG image file.
-
 **See Also** a sample TUI Script of :ref:`tui_import_file` operation.
 
 
@@ -160,3 +144,20 @@ The Result of the operation depends on the imported file content.
    Import of STEP file.
 
 **See Also** a sample TUI Script of :ref:`tui_import_file_step` operation.
+
+
+Import pictures
+"""""""""""""""
+
+It is possible to import pictures in the following image formats: GIF, TIFF, PNG, JPG, JPEG, BMP, PPM, JPE.
+To import a file into active part select in the Main Menu *File -> Import -> Picture...* item.
+
+Result
+""""""
+
+.. figure:: images/imageImported.png
+   :align: center
+
+   Import of PNG image file.
+
+**See Also** a sample TUI Script of :ref:`tui_import_file` operation.
index b553ded1872a5f8b16cc8ca332a7f3a32c3b6090..c6f58a196aa9842bbace3d4d88e2a2fa2f78deb6 100644 (file)
@@ -1,7 +1,7 @@
 <plugin>
   <workbench id="Part">
     <group id="Exchange">
-      <feature id="Import" title="Import" tooltip="Import a file" icon="icons/Exchange/import.png"
+      <feature id="ImportMacro" title="Import" tooltip="Import a file" icon="icons/Exchange/import.png"
                helpfile="importFeature.html"
                internal="1">
       <switch id="ImportType">
                 label="Import to"
                 tooltip="Select the image to import the document" />
       </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>
-        <choice id="target_part"
-                string_list_attribute="target_parts_list"
-                label="Import to"
-                tooltip="Select the image to import the document" />
-      </feature>
-      <feature id="ImportFeature" title="Import" tooltip="Import a file" icon="icons/Exchange/import.png"
+      <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">
           <validator id="ExchangePlugin_ImportFormat" parameters="GIF|TIFF|PNG|JPG|JPEG|BMP|PPM|JPE:Image" />
         </file_selector>
       </feature>
-      <feature id="ImportImageFeature" 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="exportFeature.html" internal="1">
         <source path="export_widget.xml" />