33#include <wx/tokenzr.h>
35#define ARG_EXCLUDE_DRAWING_SHEET "--exclude-drawing-sheet"
36#define ARG_PAGE_SIZE "--page-size-mode"
37#define ARG_DRILL_SHAPE_OPTION "--drill-shape-opt"
49 .help(
UTF8STDSTR(
_(
"Mirror the board (useful for trying to show bottom layers)" ) ) )
53 .default_value( std::string() )
54 .help(
UTF8STDSTR(
_(
"Color theme to use (will default to PCB editor settings)" ) ) )
55 .metavar(
"THEME_NAME" );
66 .help(
UTF8STDSTR(
_(
"Set page sizing mode (0 = page with frame and title block, 1 = "
67 "current page size, 2 = board area only)" ) ) )
77 .help(
UTF8STDSTR(
_(
"Set pad/via drill shape option (0 = no shape, 1 = "
78 "small shape, 2 = actual shape)" ) ) )
81 .metavar(
"SHAPE_OPTION" );
93 svgJob->m_mirror = m_argParser.get<
bool>(
ARG_MIRROR );
95 svgJob->m_pageSizeMode = m_argParser.get<
int>(
ARG_PAGE_SIZE );
96 svgJob->m_negative = m_argParser.get<
bool>(
ARG_NEGATIVE );
98 svgJob->m_drawingSheet = m_argDrawingSheet;
100 svgJob->m_filename = m_argInput;
101 svgJob->m_outputFile = m_argOutput;
102 svgJob->m_colorTheme =
From_UTF8( m_argParser.get<std::string>(
ARG_THEME ).c_str() );
104 svgJob->SetVarOverrides( m_argDefineVars );
106 if( !wxFile::Exists( svgJob->m_filename ) )
108 wxFprintf( stderr,
_(
"Board file does not exist or is not accessible\n" ) );
112 svgJob->m_printMaskLayer = m_selectedLayers;
argparse::ArgumentParser m_argParser
void addDefineArg()
Set up the drawing sheet arg used by many of the export commands.
void addDrawingSheetArg()
Set up the drawing sheet arg used by many of the export commands.
A minimalistic software bus for communications between various DLLs/DSOs (DSOs) within the same KiCad...
int ProcessJob(KIWAY::FACE_T aFace, JOB *job)
#define ARG_BLACKANDWHITE_DESC
#define ARG_NEGATIVE_SHORT
#define ARG_BLACKANDWHITE
#define ARG_NEGATIVE_DESC
#define ARG_DRILL_SHAPE_OPTION
#define ARG_EXCLUDE_DRAWING_SHEET
This file contains miscellaneous commonly used macros and functions.
static const int ERR_INVALID_INPUT_FILE
wxString From_UTF8(const char *cstring)
int doPerform(KIWAY &aKiway) override
The internal handler that should be overloaded to implement command specific processing and work.
void addLayerArg(bool aRequire)
int doPerform(KIWAY &aKiway) override
The internal handler that should be overloaded to implement command specific processing and work.