30#include <wx/tokenzr.h>
34#define ARG_DRILL_SHAPE_OPTION "--drill-shape-opt"
46 .help(
UTF8STDSTR(
_(
"Mirror the board (useful for trying to show bottom layers)" ) ) )
47 .implicit_value(
true )
48 .default_value(
false );
51 .help(
UTF8STDSTR(
_(
"Exclude the reference designator text" ) ) )
52 .implicit_value(
true )
53 .default_value(
false );
56 .help(
UTF8STDSTR(
_(
"Exclude the value text" ) ) )
57 .implicit_value(
true )
58 .default_value(
false );
61 .help(
UTF8STDSTR(
_(
"Include the border and title block" ) ) )
62 .implicit_value(
true )
63 .default_value(
false );
67 .implicit_value(
true )
68 .default_value(
false );
72 .implicit_value(
true )
73 .default_value(
false );
76 .default_value( std::string() )
77 .help(
UTF8STDSTR(
_(
"Color theme to use (will default to PCB Editor settings)" ) ) )
78 .metavar(
"THEME_NAME" );
81 .help(
UTF8STDSTR(
_(
"Set pad/via drill shape option (0 = no shape, 1 = "
82 "small shape, 2 = actual shape)" ) ) )
97 pdfJob->m_filename = m_argInput;
98 pdfJob->m_outputFile = m_argOutput;
99 pdfJob->m_drawingSheet = m_argDrawingSheet;
100 pdfJob->SetVarOverrides( m_argDefineVars );
102 if( !wxFile::Exists( pdfJob->m_filename ) )
104 wxFprintf( stderr,
_(
"Board file does not exist or is not accessible\n" ) );
113 pdfJob->m_mirror = m_argParser.get<
bool>(
ARG_MIRROR );
115 pdfJob->m_colorTheme =
From_UTF8( m_argParser.get<std::string>(
ARG_THEME ).c_str() );
116 pdfJob->m_negative = m_argParser.get<
bool>(
ARG_NEGATIVE );
120 pdfJob->m_printMaskLayer = m_selectedLayers;
argparse::ArgumentParser m_argParser
void addDefineArg()
Sets up the drawing sheet arg used by many of the export commands.
void addDrawingSheetArg()
Sets up the drawing sheet arg used by many of the export commands.
int doPerform(KIWAY &aKiway) override
The internal handler that should be overloaded to implement command specific processing and work.
A minimalistic software bus for communications between various DLLs/DSOs (DSOs) within the same KiCad...
int ProcessJob(KIWAY::FACE_T aFace, JOB *job)
Instantiate the current locale within a scope in which you are expecting exceptions to be thrown.
#define ARG_INCLUDE_BORDER_TITLE
#define ARG_EXCLUDE_REFDES
#define ARG_BLACKANDWHITE_DESC
#define ARG_NEGATIVE_SHORT
#define ARG_EXCLUDE_VALUE
#define ARG_BLACKANDWHITE
#define ARG_NEGATIVE_DESC
#define ARG_DRILL_SHAPE_OPTION
This file contains miscellaneous commonly used macros and functions.
static const int ERR_INVALID_INPUT_FILE
std::vector< FAB_LAYER_COLOR > dummy
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)