24#include <wx/bmpbuttn.h>
25#include <wx/clntdata.h>
26#include <wx/rearrangectrl.h>
102 m_editFrame( aEditFrame ),
103 m_defaultPenSize( m_editFrame, m_hpglPenLabel, m_hpglPenCtrl, m_hpglPenUnits ),
104 m_trackWidthCorrection( m_editFrame, m_widthAdjustLabel, m_widthAdjustCtrl, m_widthAdjustUnits ),
138 wxArrayInt plotAllLayersOrder;
139 wxArrayString plotAllLayersChoicesStrings;
140 std::vector<PCB_LAYER_ID> layersIdChoiceList;
150 plotAllLayersChoicesStrings.Add( layerName );
151 layersIdChoiceList.push_back( layer );
154 plotAllLayersOrder.push_back( order );
156 plotAllLayersOrder.push_back( ~order );
161 int checkColSize = 22;
162 int layerColSize = textWidth + 15;
174 wxStaticBox* allLayersLabel =
new wxStaticBox(
this, wxID_ANY,
_(
"Plot on All Layers" ) );
175 wxStaticBoxSizer* sbSizer =
new wxStaticBoxSizer( allLayersLabel, wxVERTICAL );
178 wxDefaultPosition, wxDefaultSize,
179 plotAllLayersOrder, plotAllLayersChoicesStrings, 0 );
187 for(
size_t idx = 0; idx < layersIdChoiceList.size(); idx++ )
189 wxString& txt = plotAllLayersChoicesStrings[idx];
198 wxBoxSizer* bButtonSizer;
199 bButtonSizer =
new wxBoxSizer( wxHORIZONTAL );
202 wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW | 0 );
203 m_bpMoveUp->SetToolTip(
_(
"Move current selection up" ) );
206 bButtonSizer->Add(
m_bpMoveUp, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 3 );
209 wxDefaultPosition, wxDefaultSize, wxBU_AUTODRAW | 0 );
210 m_bpMoveDown->SetToolTip(
_(
"Move current selection down" ) );
213 bButtonSizer->Add(
m_bpMoveDown, 0, wxALIGN_CENTER_VERTICAL | wxRIGHT, 5 );
215 sbSizer->Add( bButtonSizer, 0, wxALL | wxEXPAND, 3 );
217 bmiddleSizer->Insert( 1, sbSizer, 1, wxALL | wxEXPAND, 5 );
228 { wxID_APPLY,
_(
"Generate Drill Files..." ) },
229 { wxID_CANCEL,
_(
"Close" ) } } );
232 GetSizer()->Fit(
this );
233 GetSizer()->SetSizeHints(
this );
401 == PLOT_TEXT_MODE::DEFAULT );
422 wxCommandEvent cmd_event;
501 case DRILL_MARKS::NO_DRILL_SHAPE:
504 case DRILL_MARKS::SMALL_DRILL_SHAPE:
508 case DRILL_MARKS::FULL_DRILL_SHAPE:
528 int knownViolations = 0;
539 if( !
m_job && ( knownViolations || exclusions ) )
568 [&]( wxRearrangeList* aList,
PCB_LAYER_ID aLayer ) ->
int
570 for(
int ii = 0; ii < (int) aList->GetCount(); ++ii )
585 while( currentPos > idx )
597#define ID_LAYER_FAB 13001
598#define ID_SELECT_COPPER_LAYERS 13002
599#define ID_DESELECT_COPPER_LAYERS 13003
600#define ID_SELECT_ALL_LAYERS 13004
601#define ID_DESELECT_ALL_LAYERS 13005
602#define ID_STACKUP_ORDER 13006
612 menu.Append(
new wxMenuItem( &menu,
ID_LAYER_FAB,
_(
"Select Fab Layers" ) ) );
614 menu.AppendSeparator();
618 menu.AppendSeparator();
622 menu.Bind( wxEVT_COMMAND_MENU_SELECTED,
623 [&]( wxCommandEvent& aCmd )
625 switch( aCmd.GetId() )
633 if( ( layermask & fab_layer_set ).any() )
687 menu.AppendSeparator();
688 menu.Append(
new wxMenuItem( &menu,
ID_STACKUP_ORDER,
_(
"Order as Board Stackup" ) ) );
690 menu.Bind( wxEVT_COMMAND_MENU_SELECTED,
691 [&]( wxCommandEvent& aCmd )
693 switch( aCmd.GetId() )
695 case ID_SELECT_ALL_LAYERS:
696 for( unsigned i = 0; i < m_plotAllLayersList->GetCount(); i++ )
697 m_plotAllLayersList->Check( i, true );
701 case ID_DESELECT_ALL_LAYERS:
702 for( unsigned i = 0; i < m_plotAllLayersList->GetCount(); i++ )
703 m_plotAllLayersList->Check( i, false );
707 case ID_STACKUP_ORDER:
709 LSEQ stackup = m_editFrame->GetBoard()->GetEnabledLayers().SeqStackupForPlotting();
710 arrangeAllLayersList( stackup );
711 m_plotAllLayersList->Select( -1 );
754 bool scale1 = (
m_scaleOpt->GetSelection() == 1 );
766 std::function<bool( wxString* )> textResolver =
767 [&]( wxString* token ) ->
bool
777 wxDirDialog dirDialog(
this,
_(
"Select Output Directory" ),
path );
779 if( dirDialog.ShowModal() == wxID_CANCEL )
782 wxFileName dirName = wxFileName::DirName( dirDialog.GetPath() );
785 wxString defaultPath = fn.GetPathWithSep();
787 wxFileName relPathTest;
789 relPathTest.Assign( dirDialog.GetPath() );
792 if( relPathTest.MakeRelativeTo( defaultPath ) )
794 msg.Printf(
_(
"Do you want to use a path relative to\n'%s'?" ), defaultPath );
796 wxMessageDialog dialog(
this, msg,
_(
"Plot Output Directory" ),
797 wxYES_NO | wxICON_QUESTION | wxYES_DEFAULT );
799 if( dialog.ShowModal() == wxID_YES )
800 dirName.MakeRelativeTo( defaultPath );
844 case PLOT_FORMAT::SVG:
845 case PLOT_FORMAT::PDF:
878 case PLOT_FORMAT::POST:
900 case PLOT_FORMAT::GERBER:
927 case PLOT_FORMAT::HPGL:
950 case PLOT_FORMAT::DXF:
978 case PLOT_FORMAT::UNDEFINED:
993static bool setDouble(
double* aResult,
double aValue,
double aMin,
double aMax )
1000 else if( aValue > aMax )
1011static bool setInt(
int* aResult,
int aValue,
int aMin,
int aMax )
1018 else if( aValue > aMax )
1055 tempOptions.
SetDXFPlotUnits( sel == 0 ? DXF_UNITS::INCH : DXF_UNITS::MM );
1058 tempOptions.
SetTextMode( PLOT_TEXT_MODE::DEFAULT );
1061 PLOT_TEXT_MODE::NATIVE );
1093 msg.Printf(
_(
"HPGL pen size constrained." ) );
1105 msg.ToDouble( &tmpDouble );
1111 msg.Printf(
_(
"X scale constrained." ) );
1117 msg.ToDouble( &tmpDouble );
1123 msg.Printf(
_(
"Y scale constrained." ) );
1132 cfg->m_Plot.check_zones_before_plotting =
m_zoneFillCheck->GetValue();
1139 msg.Printf(
_(
"Width correction constrained. The width correction value must be in the"
1140 " range of [%s; %s] for the current design rules." ),
1161 LSET selectedLayers;
1163 for(
unsigned i = 0; i <
m_layerList.size(); i++ )
1170 LSET disabledCopperLayers =
LSET::AllCuMask() & ~m_editFrame->GetBoard()->GetEnabledLayers();
1173 wxArrayInt plotOnAllLayers;
1178 size_t count = plotOnAllLayers.GetCount();
1180 for(
size_t i = 0; i < count; i++ )
1182 int index = plotOnAllLayers.Item( i );
1185 commonLayers.push_back( client_layer );
1193 selectedLayers = selectedLayers | disabledCopperLayers;
1202 dirStr.Replace( wxT(
"\\" ), wxT(
"/" ) );
1231 EndModal( wxID_OK );
1250 DisplayError(
this,
_(
"No layer selected, Nothing to plot" ) );
1257 std::function<bool( wxString* )> textResolver =
1258 [&]( wxString* token ) ->
bool
1268 wxFileName outputDir = wxFileName::DirName(
path );
1275 msg.Printf(
_(
"Could not write plot files to folder '%s'." ), outputDir.GetPath() );
1327 wxArrayInt plotOnAllLayers;
1332 size_t count = plotOnAllLayers.GetCount();
1334 for(
size_t i = 0; i < count; i++ )
1336 int index = plotOnAllLayers.Item( i );
1340 commonLayers.push_back( client_layer );
1344 pcbPlotter.
Plot( outputDir.GetPath(), layersToPlot, commonLayers,
1374 std::function<bool( wxString* )> textResolver = [&]( wxString* token ) ->
bool
1384 if( !wxDirExists(
path ) )
1386 DisplayError(
this, wxString::Format(
_(
"Directory '%s' does not exist." ),
path ) );
1390 wxLaunchDefaultApplication(
path );
1424 m_hideDNP->Enable( aEvent.IsChecked() );
constexpr EDA_IU_SCALE pcbIUScale
constexpr EDA_IU_SCALE unityScale
wxBitmapBundle KiBitmapBundle(BITMAPS aBitmap, int aMinHeight)
constexpr BOX2I KiROUND(const BOX2D &aBoxD)
wxString m_ColorTheme
Active color theme name.
BASE_SET & set(size_t pos)
Container for design settings for a BOARD object.
int GetSmallestClearanceValue() const
int m_SolderMaskExpansion
int GetLineThickness(PCB_LAYER_ID aLayer) const
Return the default graphic segment thickness from the layer class for the given layer.
Information pertinent to a Pcbnew printed circuit board.
LSET GetEnabledLayers() const
A proxy function that calls the corresponding function in m_BoardSettings.
bool ResolveTextVar(wxString *token, int aDepth) const
const MARKERS & Markers() const
const wxString & GetFileName() const
const wxString GetLayerName(PCB_LAYER_ID aLayer) const
Return the name of a aLayer.
PROJECT * GetProject() const
BOARD_DESIGN_SETTINGS & GetDesignSettings() const
wxCheckBox * m_frontFPPropertyPopups
wxStaticText * m_DRCExclusionsWarning
wxCheckBox * m_backFPPropertyPopups
wxTextCtrl * m_fineAdjustXCtrl
wxBoxSizer * bmiddleSizer
wxStaticBoxSizer * m_PDFOptionsSizer
wxCheckBox * m_disableApertMacros
wxChoice * m_coordFormatCtrl
wxCheckBox * m_DXF_plotModeOpt
wxChoice * m_SVGColorChoice
wxStaticText * m_staticTextPlotFmt
STD_BITMAP_BUTTON * m_browseButton
wxTextCtrl * m_outputDirectoryName
wxSpinCtrl * m_svgPrecsision
wxTextCtrl * m_fineAdjustYCtrl
wxCheckBox * m_plotPadNumbers
wxStaticBoxSizer * m_HPGLOptionsSizer
wxCheckBox * m_useAuxOriginCheckBox
wxStaticBoxSizer * m_PSOptionsSizer
STD_BITMAP_BUTTON * m_openDirButton
wxCheckBox * m_plotPSNegativeOpt
wxCheckBox * m_SVG_fitPageToBoard
wxCheckBox * m_DXF_plotTextStrokeFontOpt
wxCheckBox * m_useGerberExtensions
wxCheckBox * m_plotSheetRef
wxBoxSizer * m_SizerSolderMaskAlert
wxCheckBox * m_generateGerberJobFile
wxRadioButton * m_crossoutDNP
wxButton * m_sdbSizer1Apply
wxCheckBox * m_useGerberX2Format
wxCheckListBox * m_layerCheckListBox
wxCheckBox * m_plotMirrorOpt
wxStaticBoxSizer * m_svgOptionsSizer
wxCheckBox * m_forcePSA4OutputOpt
wxCheckBox * m_useGerberNetAttributes
wxCheckBox * m_sketchPadsOnFabLayers
wxCheckBox * m_subtractMaskFromSilk
wxBoxSizer * m_PlotOptionsSizer
wxChoice * m_DXF_plotUnits
wxStaticBoxSizer * m_SizerDXF_options
wxCheckBox * m_pdfMetadata
wxChoice * m_drillShapeOpt
wxRadioButton * m_hideDNP
wxCheckBox * m_zoneFillCheck
wxStaticBoxSizer * m_GerberOptionsSizer
WX_HTML_REPORT_PANEL * m_messagesPanel
wxChoice * m_PDFColorChoice
wxChoice * m_plotFormatOpt
A dialog to set the plot options and create plot files in various formats.
static LSET s_lastAllLayersSet
DIALOG_PLOT(PCB_EDIT_FRAME *aEditFrame)
void OnRightClickLayers(wxMouseEvent &event)
static LSEQ s_lastAllLayersOrder
The plot on all layers ordering the last time the dialog was opened.
JOB_EXPORT_PCB_PLOT * m_job
PCB_PLOT_PARAMS m_plotOpts
STD_BITMAP_BUTTON * m_bpMoveUp
void onPlotAllListMoveUp(wxCommandEvent &aEvent)
void OnChangeDXFPlotMode(wxCommandEvent &event) override
int m_widthAdjustMinValue
UNIT_BINDER m_trackWidthCorrection
void onBoardSetup(wxHyperlinkEvent &aEvent) override
void OnRightClickAllLayers(wxMouseEvent &event)
void onSketchPads(wxCommandEvent &event) override
void Plot(wxCommandEvent &event) override
wxString m_DRCWarningTemplate
void setPlotModeChoiceSelection(OUTLINE_MODE aPlotMode)
wxRearrangeList * m_plotAllLayersList
void onPlotAllListMoveDown(wxCommandEvent &aEvent)
void onRunDRC(wxCommandEvent &event) override
void arrangeAllLayersList(const LSEQ &aSeq)
void onOpenOutputDirectory(wxCommandEvent &event) override
void OnSetScaleOpt(wxCommandEvent &event) override
PCB_EDIT_FRAME * m_editFrame
STD_BITMAP_BUTTON * m_bpMoveDown
void CreateDrillFile(wxCommandEvent &event) override
void onDNPCheckbox(wxCommandEvent &event) override
UNIT_BINDER m_defaultPenSize
PLOT_FORMAT getPlotFormat()
static LSET s_lastLayerSet
The plot layer set that last time the dialog was opened.
void transferPlotParamsToJob()
int m_widthAdjustMaxValue
void onOutputDirectoryBrowseClicked(wxCommandEvent &event) override
void OnGerberX2Checked(wxCommandEvent &event) override
void SetPlotFormat(wxCommandEvent &event) override
void SetupStandardButtons(std::map< int, wxString > aLabels={})
bool m_plotGraphicItemsUsingContours
bool m_useBoardPlotParams
bool m_useProtelFileExtension
bool m_includeNetlistAttributes
bool m_disableApertureMacros
bool m_pdfFrontFPPropertyPopups
@ ALL_LAYERS_SEPARATE_FILE
@ ONE_PAGE_PER_LAYER_ONE_FILE
The most traditional output mode KiCad has had.
bool m_pdfSingle
This is a hack to deal with cli having the wrong behavior We will deprecate out the wrong behavior,...
bool m_pdfBackFPPropertyPopups
bool m_sketchDNPFPsOnFabLayers
LSEQ m_plotOnAllLayersSequence
bool m_sketchPadsOnFabLayers
DRILL_MARKS m_drillShapeOption
Used by SVG/DXF/PDF/Gerbers.
bool m_crossoutDNPFPsOnFabLayers
bool m_hideDNPFPsOnFabLayers
bool m_mirror
Common Options.
bool m_subtractSolderMaskFromSilk
LSEQ m_plotLayerSequence
Layers to include on all individual layer prints.
void SetConfiguredOutputPath(const wxString &aPath)
Sets the configured output path for the job, this path is always saved to file.
virtual wxString GetSettingsDialogTitle() const
PROJECT & Prj() const
Return a reference to the PROJECT associated with this KIWAY.
Instantiate the current locale within a scope in which you are expecting exceptions to be thrown.
LSEQ is a sequence (and therefore also a set) of PCB_LAYER_IDs.
LSET is a set of PCB_LAYER_IDs.
LSEQ UIOrder() const
Return the copper, technical and user layers in the order shown in layer widget.
LSEQ SeqStackupForPlotting() const
Return the sequence that is typical for a bottom-to-top stack-up.
static LSET AllTechMask()
Return a mask holding all technical layers (no CU layer) on both side.
static LSET AllCuMask(int aCuLayerCount=MAX_CU_LAYERS)
Return a mask holding the requested number of Cu PCB_LAYER_IDs.
virtual const PCB_PLOT_PARAMS & GetPlotSettings() const
Return the PCB_PLOT_PARAMS for the BOARD owned by this frame.
PCBNEW_SETTINGS * GetPcbNewSettings() const
virtual void SetPlotSettings(const PCB_PLOT_PARAMS &aSettings)
The main frame for Pcbnew.
void ShowBoardSetupDialog(const wxString &aInitialPage=wxEmptyString)
void OnModify() override
Must be called after a board change to set the modified flag.
A helper wxWidgets control client data object to store layer IDs.
PCB_LAYER_ID Layer() const
void SetData(PCB_LAYER_ID aId)
PCB_LAYER_ID_CLIENT_DATA()
PCB_LAYER_ID_CLIENT_DATA(PCB_LAYER_ID aId)
bool Plot(const wxString &aOutputPath, const LSEQ &aLayersToPlot, const LSEQ &aCommonLayers, bool aUseGerberFileExtensions, bool aOutputPathIsSingle=false, std::optional< wxString > aLayerName=std::nullopt, std::optional< wxString > aSheetName=std::nullopt, std::optional< wxString > aSheetPath=std::nullopt)
static void PlotJobToPlotOpts(PCB_PLOT_PARAMS &aOpts, JOB_EXPORT_PCB_PLOT *aJob, REPORTER &aReporter)
Translate a JOB to PCB_PLOT_PARAMS.
Parameters and options when plotting/printing a board.
PLOT_FORMAT GetFormat() const
void SetDrillMarksType(DRILL_MARKS aVal)
bool GetUseAuxOrigin() const
LSEQ GetPlotOnAllLayersSequence() const
bool GetHideDNPFPsOnFabLayers() const
void SetLayerSelection(LSET aSelection)
void SetOutputDirectory(const wxString &aDir)
void SetSketchPadsOnFabLayers(bool aFlag)
void SetUseGerberX2format(bool aUse)
DXF_UNITS GetDXFPlotUnits() const
void SetA4Output(int aForce)
PLOT_TEXT_MODE GetTextMode() const
bool GetCrossoutDNPFPsOnFabLayers() const
bool GetSketchDNPFPsOnFabLayers() const
void SetPlotOnAllLayersSequence(LSEQ aSeq)
void SetDXFPlotPolygonMode(bool aFlag)
void SetAutoScale(bool aFlag)
double GetHPGLPenDiameter() const
unsigned GetSvgPrecision() const
void SetPlotFrameRef(bool aFlag)
void SetSketchDNPFPsOnFabLayers(bool aFlag)
bool m_PDFMetadata
Generate PDF metadata for SUBJECT and AUTHOR.
unsigned GetBlackAndWhite() const
bool GetCreateGerberJobFile() const
void SetPlotPadNumbers(bool aFlag)
bool GetDXFPlotPolygonMode() const
void SetSketchPadLineWidth(int aWidth)
bool GetSvgFitPagetoBoard() const
LSET GetLayerSelection() const
wxString GetOutputDirectory() const
int GetScaleSelection() const
bool SetHPGLPenDiameter(double aValue)
bool m_PDFFrontFPPropertyPopups
Generate PDF property popup menus for footprints.
void SetScale(double aVal)
void SetDisableGerberMacros(bool aDisable)
void SetScaleSelection(int aSelection)
void SetFineScaleAdjustX(double aVal)
void SetMirror(bool aFlag)
void SetBlackAndWhite(bool blackAndWhite)
void SetGerberPrecision(int aPrecision)
void SetSubtractMaskFromSilk(bool aSubtract)
bool GetSketchPadsOnFabLayers() const
void SetHideDNPFPsOnFabLayers(bool aFlag)
bool GetSubtractMaskFromSilk() const
int GetGerberPrecision() const
void SetUseGerberProtelExtensions(bool aUse)
bool GetPlotPadNumbers() const
DRILL_MARKS GetDrillMarksType() const
bool GetUseGerberX2format() const
void SetDXFPlotUnits(DXF_UNITS aUnit)
void SetColorSettings(COLOR_SETTINGS *aSettings)
bool IsSameAs(const PCB_PLOT_PARAMS &aPcbPlotParams) const
Compare current settings to aPcbPlotParams, including not saved parameters in brd file.
void SetIncludeGerberNetlistInfo(bool aUse)
void SetCreateGerberJobFile(bool aCreate)
bool GetIncludeGerberNetlistInfo() const
bool m_PDFSingle
Generate a single PDF file for all layers.
void SetNegative(bool aFlag)
void SetPlotMode(OUTLINE_MODE aPlotMode)
void SetUseAuxOrigin(bool aAux)
bool m_PDFBackFPPropertyPopups
on front and/or back of board
void SetTextMode(PLOT_TEXT_MODE aVal)
void SetSvgFitPageToBoard(int aSvgFitPageToBoard)
bool GetUseGerberProtelExtensions() const
void SetSvgPrecision(unsigned aPrecision)
bool GetPlotFrameRef() const
void SetCrossoutDNPFPsOnFabLayers(bool aFlag)
void SetFormat(PLOT_FORMAT aFormat)
bool GetDisableGerberMacros() const
void SetFineScaleAdjustY(double aVal)
OUTLINE_MODE GetPlotMode() const
void SetWidthAdjust(int aVal)
virtual SETTINGS_MANAGER & GetSettingsManager() const
The backing store for a PROJECT, in JSON format.
wxString m_PcbLastPath[LAST_PATH_SIZE]
MRU path storage.
virtual PROJECT_FILE & GetProjectFile() const
virtual const wxString AbsolutePath(const wxString &aFileName) const
Fix up aFileName if it is relative to the project's directory to be an absolute path and filename.
A pure virtual class used to derive REPORTER objects from.
virtual REPORTER & Report(const wxString &aText, SEVERITY aSeverity=RPT_SEVERITY_UNDEFINED)=0
Report a string with a given severity.
COLOR_SETTINGS * GetColorSettings(const wxString &aName="user")
Retrieve a color settings object that applications can read colors from.
T * GetAppSettings(const wxString &aFilename)
Return a handle to the a given settings by type.
wxString StringFromValue(double aValue, bool aAddUnitLabel=false, EDA_DATA_TYPE aType=EDA_DATA_TYPE::DISTANCE) const
Converts aValue in internal units into a united string.
virtual long long int GetValue()
Return the current value in Internal Units.
void Enable(bool aEnable)
Enable/disable the label, widget and units label.
virtual void SetValue(long long int aValue)
Set new value (in Internal Units) for the text field, taking care of units conversion.
void SetFileName(const wxString &aReportFileName)
Set the report full file name to the string.
REPORTER & Reporter()
Return the reporter object that reports to this panel.
const wxString ExpandEnvVarSubstitutions(const wxString &aString, const PROJECT *aProject)
Replace any environment variable & text variable references with their values.
wxString ExpandTextVars(const wxString &aSource, const PROJECT *aProject, int aFlags)
bool EnsureFileDirectoryExists(wxFileName *aTargetFullFileName, const wxString &aBaseFilename, REPORTER *aReporter)
Make aTargetFullFileName absolute and create the path of this file if it doesn't yet exist.
void DisplayError(wxWindow *aParent, const wxString &aText, int aDisplayTime)
Display an error or warning message box with aMessage.
void DisplayInfoMessage(wxWindow *aParent, const wxString &aMessage, const wxString &aExtraInfo)
Display an informational message box with aMessage.
This file is part of the common library.
static bool setDouble(double *aResult, double aValue, double aMin, double aMax)
static bool setInt(int *aResult, int aValue, int aMin, int aMax)
PCB_LAYER_ID_CLIENT_DATA * getLayerClientData(const wxRearrangeList *aList, int aIdx)
#define ID_SELECT_ALL_LAYERS
#define ID_DESELECT_COPPER_LAYERS
#define ID_DESELECT_ALL_LAYERS
#define ID_SELECT_COPPER_LAYERS
Classes used to generate a Gerber job file in JSON.
bool IsCopperLayer(int aLayerId)
Test whether a layer is a copper layer.
PCB_LAYER_ID
A quick note on layer IDs:
This file contains miscellaneous commonly used macros and functions.
KICOMMON_API wxString StringFromValue(const EDA_IU_SCALE &aIuScale, EDA_UNITS aUnits, double aValue, bool aAddUnitsText=false, EDA_DATA_TYPE aType=EDA_DATA_TYPE::DISTANCE)
Return the string from aValue according to aUnits (inch, mm ...) for display.
KICOMMON_API wxSize GetTextSize(const wxString &aSingleLine, wxWindow *aWindow)
Return the size of aSingleLine of text when it is rendered in aWindow using whatever font is currentl...
bool contains(const _Container &__container, _Value __value)
Returns true if the container contains the given value.
PGM_BASE & Pgm()
The global program "get" accessor.
DRILL_MARKS
Plots and prints can show holes in pads and vias 3 options are available:
PLOT_FORMAT
The set of supported output plot formats.
Plotting engines similar to ps (PostScript, Gerber, svg)
std::vector< FAB_LAYER_COLOR > dummy
#define TO_UTF8(wxstring)
Convert a wxString to a UTF8 encoded C string for all wxWidgets build modes.
constexpr double IUTomm(int iu) const
double ps_fine_width_adjust
bool check_zones_before_plotting
Definition of file extensions used in Kicad.