Solder mask clearance default value: set default to 0, taking advice from

both Ucamco and Eurocircuits.
Update message in plot dialog about best solder mask clearance value.
Show warning in plot dialog if these values are no 0.
This commit is contained in:
jean-pierre charras
2020-06-07 11:10:28 +02:00
parent 25eb88636f
commit 27c80e8a2e
8 changed files with 340 additions and 144 deletions
+12
View File
@@ -396,6 +396,18 @@ void DIALOG_PLOT::SetPlotFormat( wxCommandEvent& event )
// this option exist only in DXF format:
m_DXF_plotModeOpt->Enable( getPlotFormat() == PLOT_FORMAT::DXF );
// The alert message about non 0 solder mask min width and margin is shown
// only in gerber format and if min mask width or mask margin is not 0
BOARD* board = m_parent->GetBoard();
const BOARD_DESIGN_SETTINGS& brd_settings = board->GetDesignSettings();
if( getPlotFormat() == PLOT_FORMAT::GERBER &&
( brd_settings.m_SolderMaskMargin || brd_settings.m_SolderMaskMinWidth ) )
m_PlotOptionsSizer->Show( m_SizerSolderMaskAlert );
else
m_PlotOptionsSizer->Hide( m_SizerSolderMaskAlert );
switch( getPlotFormat() )
{
case PLOT_FORMAT::SVG: