KiCad PCB EDA Suite
dialog_export_svg.cpp File Reference
#include <fctsys.h>
#include <kiface_i.h>
#include <common.h>
#include <pcb_base_frame.h>
#include <wildcards_and_files_ext.h>
#include <reporter.h>
#include <confirm.h>
#include <pcbnew.h>
#include <pcbplot.h>
#include <class_board.h>
#include <dialog_export_svg_base.h>
#include <invoke_pcb_dialog.h>
#include <wx_html_report_panel.h>
#include <bitmaps.h>
#include <widgets/unit_binder.h>

Go to the source code of this file.

Classes

class  DIALOG_EXPORT_SVG
 

Macros

#define PLOTSVGMODECOLOR_KEY   wxT( "PlotSVGModeColor" )
 
#define PLOTSVGMODEMIRROR_KEY   wxT( "PlotSVGModeMirror" )
 
#define PLOTSVGMODEONEFILE_KEY   wxT( "PlotSVGModeOneFile" )
 
#define PLOTSVGPAGESIZEOPT_KEY   wxT( "PlotSVGPageOpt" )
 
#define PLOTSVGPLOT_BRD_EDGE_KEY   wxT( "PlotSVGBrdEdge" )
 
#define PLOTSVG_LAYERBASE   wxT( "PlotSVGLayer_%d" )
 
#define PLOTSVG_DIR_KEY   wxT( "PlotSVGDirectory" )
 
#define WIDTH_MAX_VALUE   (2 * IU_PER_MM)
 
#define WIDTH_MIN_VALUE   (0.05 * IU_PER_MM)
 

Functions

bool InvokeExportSVG (PCB_BASE_FRAME *aCaller, BOARD *aBoard)
 Function InvokeExportSVG shows the Export SVG dialog. More...
 

Macro Definition Documentation

#define PLOTSVG_DIR_KEY   wxT( "PlotSVGDirectory" )
#define PLOTSVG_LAYERBASE   wxT( "PlotSVGLayer_%d" )
#define PLOTSVGMODECOLOR_KEY   wxT( "PlotSVGModeColor" )
#define PLOTSVGMODEMIRROR_KEY   wxT( "PlotSVGModeMirror" )
#define PLOTSVGMODEONEFILE_KEY   wxT( "PlotSVGModeOneFile" )
#define PLOTSVGPAGESIZEOPT_KEY   wxT( "PlotSVGPageOpt" )
#define PLOTSVGPLOT_BRD_EDGE_KEY   wxT( "PlotSVGBrdEdge" )
#define WIDTH_MAX_VALUE   (2 * IU_PER_MM)

Definition at line 85 of file dialog_export_svg.cpp.

#define WIDTH_MIN_VALUE   (0.05 * IU_PER_MM)

Definition at line 86 of file dialog_export_svg.cpp.

Function Documentation

bool InvokeExportSVG ( PCB_BASE_FRAME aCaller,
BOARD aBoard 
)

Function InvokeExportSVG shows the Export SVG dialog.

Parameters
aCalleris the PCB_BASE_FRAME which is invoking the dialog.
aBoardis the currently edited board.
Returns
bool - true if user pressed OK (did not abort), else false.

Definition at line 370 of file dialog_export_svg.cpp.

Referenced by PCB_EDIT_FRAME::ExportSVG().

371 {
372  DIALOG_EXPORT_SVG dlg( aCaller, aBoard );
373 
374  dlg.ShowModal();
375 
376  return true;
377 }