|
KiCad PCB EDA Suite
|
#include <magic_enum.hpp>#include <properties/property.h>#include <common.h>#include <api/api_handler_pcb.h>#include <api/api_pcb_utils.h>#include <api/api_enums.h>#include <api/board_context.h>#include <api/api_utils.h>#include <board_commit.h>#include <board_connected_item.h>#include <board_design_settings.h>#include <footprint.h>#include <kicad_clipboard.h>#include <netinfo.h>#include <pad.h>#include <pcb_edit_frame.h>#include <pcb_group.h>#include <pcb_reference_image.h>#include <pcb_shape.h>#include <pcb_text.h>#include <pcb_textbox.h>#include <pcb_track.h>#include <pcbnew_id.h>#include <pcb_marker.h>#include <kiway.h>#include <drc/drc_item.h>#include <jobs/job_export_pcb_3d.h>#include <jobs/job_export_pcb_dxf.h>#include <jobs/job_export_pcb_drill.h>#include <jobs/job_export_pcb_gencad.h>#include <jobs/job_export_pcb_gerber.h>#include <jobs/job_export_pcb_gerbers.h>#include <jobs/job_export_pcb_ipc2581.h>#include <jobs/job_export_pcb_ipcd356.h>#include <jobs/job_export_pcb_odb.h>#include <jobs/job_export_pcb_pdf.h>#include <jobs/job_export_pcb_pos.h>#include <jobs/job_export_pcb_ps.h>#include <jobs/job_export_pcb_stats.h>#include <jobs/job_export_pcb_svg.h>#include <jobs/job_pcb_render.h>#include <layer_ids.h>#include <project.h>#include <tool/tool_manager.h>#include <tools/pcb_actions.h>#include <tools/pcb_selection_tool.h>#include <zone.h>#include <api/common/types/base_types.pb.h>#include <connectivity/connectivity_data.h>#include <drc/drc_rule_condition.h>#include <drc/drc_rule_parser.h>#include <widgets/appearance_controls.h>#include <widgets/report_severity.h>#include <drc/rule_editor/drc_re_rule_loader.h>#include <wx/ffile.h>#include <wx/filename.h>Go to the source code of this file.
Functions | |
| std::optional< ApiResponseStatus > | ValidateUnitsInchMm (types::Units aUnits, const std::string &aCommandName) |
| std::optional< ApiResponseStatus > | ValidatePaginationModeForSingleOrPerFile (kiapi::board::jobs::BoardJobPaginationMode aMode, const std::string &aCommandName) |
| std::optional< ApiResponseStatus > | ApplyBoardPlotSettings (const BoardPlotSettings &aSettings, JOB_EXPORT_PCB_PLOT &aJob) |
| HANDLER_RESULT< types::RunJobResponse > | ExecuteBoardJob (BOARD_CONTEXT *aContext, JOB &aJob) |
| std::optional< ApiResponseStatus > ApplyBoardPlotSettings | ( | const BoardPlotSettings & | aSettings, |
| JOB_EXPORT_PCB_PLOT & | aJob ) |
Definition at line 2779 of file api_handler_pcb.cpp.
References FromProtoEnum(), JOB_EXPORT_PCB_PLOT::m_blackAndWhite, JOB_EXPORT_PCB_PLOT::m_checkZonesBeforePlot, JOB_EXPORT_PCB_PLOT::m_colorTheme, JOB_EXPORT_PCB_PLOT::m_crossoutDNPFPsOnFabLayers, JOB_EXPORT_PCB_PLOT::m_drawingSheet, JOB_EXPORT_PCB_PLOT::m_drillShapeOption, JOB_EXPORT_PCB_PLOT::m_hideDNPFPsOnFabLayers, JOB_EXPORT_PCB_PLOT::m_mirror, JOB_EXPORT_PCB_PLOT::m_negative, JOB_EXPORT_PCB_PLOT::m_plotDrawingSheet, JOB_EXPORT_PCB_PLOT::m_plotFootprintValues, JOB_EXPORT_PCB_PLOT::m_plotLayerSequence, JOB_EXPORT_PCB_PLOT::m_plotOnAllLayersSequence, JOB_EXPORT_PCB_PLOT::m_plotPadNumbers, JOB_EXPORT_PCB_PLOT::m_plotRefDes, JOB_EXPORT_PCB_PLOT::m_scale, JOB_EXPORT_PCB_PLOT::m_sketchDNPFPsOnFabLayers, JOB_EXPORT_PCB_PLOT::m_sketchPadsOnFabLayers, JOB_EXPORT_PCB_PLOT::m_subtractSolderMaskFromSilk, JOB_EXPORT_PCB_PLOT::m_useDrillOrigin, JOB_EXPORT_PCB_PLOT::m_variant, and UNDEFINED_LAYER.
Referenced by API_HANDLER_PCB::handleRunBoardJobExportDxf(), API_HANDLER_PCB::handleRunBoardJobExportPdf(), API_HANDLER_PCB::handleRunBoardJobExportPs(), and API_HANDLER_PCB::handleRunBoardJobExportSvg().
| HANDLER_RESULT< types::RunJobResponse > ExecuteBoardJob | ( | BOARD_CONTEXT * | aContext, |
| JOB & | aJob ) |
Definition at line 2843 of file api_handler_pcb.cpp.
References KIWAY::FACE_PCB, BOARD_CONTEXT::GetKiway(), WX_STRING_REPORTER::GetMessages(), JOB::GetOutputs(), JOB::GetType(), output, and KIWAY::ProcessJob().
Referenced by API_HANDLER_PCB::handleRunBoardJobExport3D(), API_HANDLER_PCB::handleRunBoardJobExportDrill(), API_HANDLER_PCB::handleRunBoardJobExportDxf(), API_HANDLER_PCB::handleRunBoardJobExportGencad(), API_HANDLER_PCB::handleRunBoardJobExportGerbers(), API_HANDLER_PCB::handleRunBoardJobExportIpc2581(), API_HANDLER_PCB::handleRunBoardJobExportIpcD356(), API_HANDLER_PCB::handleRunBoardJobExportODB(), API_HANDLER_PCB::handleRunBoardJobExportPdf(), API_HANDLER_PCB::handleRunBoardJobExportPosition(), API_HANDLER_PCB::handleRunBoardJobExportPs(), API_HANDLER_PCB::handleRunBoardJobExportRender(), API_HANDLER_PCB::handleRunBoardJobExportStats(), and API_HANDLER_PCB::handleRunBoardJobExportSvg().
| std::optional< ApiResponseStatus > ValidatePaginationModeForSingleOrPerFile | ( | kiapi::board::jobs::BoardJobPaginationMode | aMode, |
| const std::string & | aCommandName ) |
Definition at line 2761 of file api_handler_pcb.cpp.
Referenced by API_HANDLER_PCB::handleRunBoardJobExportDxf(), API_HANDLER_PCB::handleRunBoardJobExportPs(), and API_HANDLER_PCB::handleRunBoardJobExportSvg().
| std::optional< ApiResponseStatus > ValidateUnitsInchMm | ( | types::Units | aUnits, |
| const std::string & | aCommandName ) |
Definition at line 2744 of file api_handler_pcb.cpp.
Referenced by API_HANDLER_PCB::handleRunBoardJobExportDrill(), API_HANDLER_PCB::handleRunBoardJobExportDxf(), API_HANDLER_PCB::handleRunBoardJobExportIpc2581(), API_HANDLER_PCB::handleRunBoardJobExportODB(), API_HANDLER_PCB::handleRunBoardJobExportPosition(), and API_HANDLER_PCB::handleRunBoardJobExportStats().