Add settings for plotting PDF property popups.

Fixes https://gitlab.com/kicad/code/kicad/issues/14450
This commit is contained in:
Jeff Young
2023-04-30 18:10:04 +01:00
parent 096af19d9a
commit 2f9889ff62
11 changed files with 437 additions and 319 deletions
+23
View File
@@ -132,6 +132,9 @@ PCB_PLOT_PARAMS::PCB_PLOT_PARAMS()
F_Paste, B_Paste, Edge_Cuts )
| LSET::AllCuMask();
m_PDFFrontFPPropertyPopups = true;
m_PDFBackFPPropertyPopups = true;
// This parameter controls if the NPTH pads will be plotted or not
// it is a "local" parameter
m_skipNPTH_Pads = false;
@@ -217,6 +220,12 @@ void PCB_PLOT_PARAMS::Format( OUTPUTFORMATTER* aFormatter,
aFormatter->Print( aNestLevel+1, "(hpglpenspeed %d)\n", m_HPGLPenSpeed );
aFormatter->Print( aNestLevel+1, "(hpglpendiameter %f)\n", m_HPGLPenDiam );
// PDF options
aFormatter->Print( aNestLevel+1, "(%s %s)\n", getTokenName( T_pdf_front_fp_property_popups ),
printBool( m_PDFFrontFPPropertyPopups ) );
aFormatter->Print( aNestLevel+1, "(%s %s)\n", getTokenName( T_pdf_back_fp_property_popups ),
printBool( m_PDFBackFPPropertyPopups ) );
// DXF options
aFormatter->Print( aNestLevel+1, "(%s %s)\n", getTokenName( T_dxfpolygonmode ),
printBool( m_DXFPolygonMode ) );
@@ -318,6 +327,12 @@ bool PCB_PLOT_PARAMS::IsSameAs( const PCB_PLOT_PARAMS &aPcbPlotParams ) const
if( m_negative != aPcbPlotParams.m_negative )
return false;
if( m_PDFFrontFPPropertyPopups != aPcbPlotParams.m_PDFFrontFPPropertyPopups )
return false;
if( m_PDFBackFPPropertyPopups != aPcbPlotParams.m_PDFBackFPPropertyPopups )
return false;
if( m_A4Output != aPcbPlotParams.m_A4Output )
return false;
@@ -550,6 +565,14 @@ void PCB_PLOT_PARAMS_PARSER::Parse( PCB_PLOT_PARAMS* aPcbPlotParams )
parseInt( 0, HPGL_PEN_DIAMETER_MAX );
break;
case T_pdf_front_fp_property_popups:
aPcbPlotParams->m_PDFFrontFPPropertyPopups = parseBool();
break;
case T_pdf_back_fp_property_popups:
aPcbPlotParams->m_PDFFrontFPPropertyPopups = parseBool();
break;
case T_dxfpolygonmode:
aPcbPlotParams->m_DXFPolygonMode = parseBool();
break;