From ff66a48df0596913fa78e61872c171bc11d366ae Mon Sep 17 00:00:00 2001 From: stefan schippers Date: Thu, 13 Jul 2023 14:26:42 +0200 Subject: [PATCH] doc updates about print command --- doc/xschem_man/developer_info.html | 7 ++++--- src/scheduler.c | 6 +++--- src/xschem.tcl | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/doc/xschem_man/developer_info.html b/doc/xschem_man/developer_info.html index d909d784..6fbe4c8c 100644 --- a/doc/xschem_man/developer_info.html +++ b/doc/xschem_man/developer_info.html @@ -497,6 +497,7 @@ C {verilog_timescale.sym} 1050 -100 0 0 {name=s1 timestep="1ns" precision="1ns" +
  • abort_operation
  •     Resets UI state, unselect all and abort any pending operation 
    @@ -936,12 +937,12 @@ C {verilog_timescale.sym} 1050 -100 0 0 {name=s1 timestep="1ns" precision="1ns" Start a GUI placement of a polygon
  • preview_window create|draw|destroy [winpath] [file]
  •     Used in fileselector to show a schematic preview.
    -
  • print png|svg|ps|pdf img_file img_x img_y [x1 y1 x2 y2]
  • +   
  • print png|svg|ps|pdf|ps_full|pdf_full img_file [img_x img_y] [x1 y1 x2 y2]
  •     Export current schematic to image.
                                 img x   y size    xschem area to export
           0     1    2    3         4   5             6    7   8   9
    -   xschem print png file.png   400 300        [ -300 -200 300 200 ]
    -   xschem print svg file.svg   400 300        [ -300 -200 300 200 ]
    +   xschem print png file.png  [400 300]       [ -300 -200 300 200 ]
    +   xschem print svg file.svg  [400 300]       [ -300 -200 300 200 ]
        xschem print ps  file.ps
        xschem print pdf file.pdf
        xschem print ps_full  file.ps
    diff --git a/src/scheduler.c b/src/scheduler.c
    index 2201cfb8..aa576991 100644
    --- a/src/scheduler.c
    +++ b/src/scheduler.c
    @@ -2546,12 +2546,12 @@ int xschem(ClientData clientdata, Tcl_Interp *interp, int argc, const char * arg
         }
     
     
    -    /* print png|svg|ps|pdf img_file img_x img_y [x1 y1 x2 y2]
    +    /* print png|svg|ps|pdf|ps_full|pdf_full img_file [img_x img_y] [x1 y1 x2 y2]
          *   Export current schematic to image.
          *                            img x   y size    xschem area to export
          *      0     1    2    3         4   5             6    7   8   9
    -     *   xschem print png file.png   400 300        [ -300 -200 300 200 ]
    -     *   xschem print svg file.svg   400 300        [ -300 -200 300 200 ]
    +     *   xschem print png file.png  [400 300]       [ -300 -200 300 200 ]
    +     *   xschem print svg file.svg  [400 300]       [ -300 -200 300 200 ]
          *   xschem print ps  file.ps
          *   xschem print pdf file.pdf
          *   xschem print ps_full  file.ps
    diff --git a/src/xschem.tcl b/src/xschem.tcl
    index 4ab8aec3..7abfbd1f 100644
    --- a/src/xschem.tcl
    +++ b/src/xschem.tcl
    @@ -5847,7 +5847,7 @@ proc build_widgets { {topwin {} } } {
          -command "xschem saveas {} symbol" -accelerator {Ctrl+Alt+S}
       # added svg, png 20171022
       $topwin.menubar.file.menu add command -label "PDF/PS Export" -command "xschem print pdf" -accelerator {*}
    -  $topwin.menubar.file.menu add command -label "PDF/PS Export Full" -command "xschem print pdf_full" -accelerator {*}
    +  $topwin.menubar.file.menu add command -label "PDF/PS Export Full" -command "xschem print pdf_full"
       $topwin.menubar.file.menu add command -label "Hierarchical PDF/PS Export" -command "xschem hier_psprint"
       $topwin.menubar.file.menu add command -label "PNG Export" -command "xschem print png" -accelerator {Ctrl+*}
       $topwin.menubar.file.menu add command -label "SVG Export" -command "xschem print svg" -accelerator {Alt+*}