2025-01-01 13:30:11 -08:00
|
|
|
/*
|
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
*
|
|
|
|
* Copyright The KiCad Developers, see AUTHORS.txt for contributors.
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify it
|
|
|
|
* under the terms of the GNU General Public License as published by the
|
|
|
|
* Free Software Foundation, either version 3 of the License, or (at your
|
|
|
|
* option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
2024-07-15 18:20:13 -04:00
|
|
|
|
|
|
|
#include <jobs/job_export_pcb_plot.h>
|
|
|
|
|
|
|
|
JOB_EXPORT_PCB_PLOT::JOB_EXPORT_PCB_PLOT( PLOT_FORMAT aFormat, const std::string& aType,
|
2024-11-04 20:51:15 -05:00
|
|
|
bool aOutputIsDirectory )
|
2024-12-28 18:49:01 -05:00
|
|
|
: JOB( aType, aOutputIsDirectory ),
|
2024-07-15 18:20:13 -04:00
|
|
|
m_plotFormat( aFormat ),
|
2024-12-28 18:49:01 -05:00
|
|
|
m_filename(),
|
|
|
|
m_colorTheme(),
|
|
|
|
m_drawingSheet(),
|
|
|
|
m_mirror( false ),
|
|
|
|
m_blackAndWhite( false ),
|
|
|
|
m_negative( false ),
|
|
|
|
m_sketchPadsOnFabLayers( false ),
|
|
|
|
m_hideDNPFPsOnFabLayers( false ),
|
|
|
|
m_sketchDNPFPsOnFabLayers( true ),
|
|
|
|
m_crossoutDNPFPsOnFabLayers( true ),
|
|
|
|
m_plotFootprintValues( true ),
|
|
|
|
m_plotRefDes( true ),
|
|
|
|
m_plotDrawingSheet( true ),
|
|
|
|
m_plotPadNumbers( false ),
|
|
|
|
m_plotInvisibleText( false ),
|
|
|
|
m_printMaskLayer(),
|
2024-12-08 20:54:49 -05:00
|
|
|
m_printMaskLayersToIncludeOnAllLayers(),
|
2024-12-28 18:49:01 -05:00
|
|
|
m_drillShapeOption( DRILL_MARKS::FULL_DRILL_SHAPE ),
|
|
|
|
m_useDrillOrigin( false )
|
2024-07-15 18:20:13 -04:00
|
|
|
{
|
2025-01-10 22:20:34 -05:00
|
|
|
m_params.emplace_back( new JOB_PARAM_LSEQ( "layers", &m_printMaskLayer, m_printMaskLayer ) );
|
|
|
|
m_params.emplace_back( new JOB_PARAM_LSEQ( "layers_to_include_on_all_layers",
|
2024-12-29 13:31:43 -05:00
|
|
|
&m_printMaskLayersToIncludeOnAllLayers,
|
|
|
|
m_printMaskLayersToIncludeOnAllLayers ) );
|
2024-07-15 18:20:13 -04:00
|
|
|
|
2024-12-29 13:31:43 -05:00
|
|
|
|
|
|
|
m_params.emplace_back(
|
|
|
|
new JOB_PARAM<bool>( "plot_pad_numbers", &m_plotPadNumbers, m_plotPadNumbers ) );
|
|
|
|
m_params.emplace_back( new JOB_PARAM<bool>( "plot_invisible_text", &m_plotInvisibleText,
|
|
|
|
m_plotInvisibleText ) );
|
|
|
|
|
|
|
|
m_params.emplace_back(
|
|
|
|
new JOB_PARAM<bool>( "plot_drawing_sheet", &m_plotDrawingSheet, m_plotDrawingSheet ) );
|
|
|
|
|
|
|
|
m_params.emplace_back( new JOB_PARAM<bool>( "plot_ref_des", &m_plotRefDes, m_plotRefDes ) );
|
|
|
|
|
|
|
|
m_params.emplace_back(
|
|
|
|
new JOB_PARAM<bool>( "use_drill_origin", &m_useDrillOrigin, m_useDrillOrigin ) );
|
|
|
|
|
|
|
|
m_params.emplace_back(
|
|
|
|
new JOB_PARAM<wxString>( "drawing_sheet", &m_drawingSheet, m_drawingSheet ) );
|
2024-07-15 18:20:13 -04:00
|
|
|
}
|