/* * This program source code file is part of KiCad, a free EDA CAD application. * * Copyright (C) 2022 Mark Roszko * Copyright (C) 1992-2022 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 . */ #ifndef EESCHEMA_JOBS_HANDLER_H #define EESCHEMA_JOBS_HANDLER_H #include #include #include namespace KIGFX { class SCH_RENDER_SETTINGS; }; class SCHEMATIC; /** * Handles eeschema job dispatches */ class EESCHEMA_JOBS_HANDLER : public JOB_DISPATCHER, REPORTER { public: EESCHEMA_JOBS_HANDLER(); int JobExportBom( JOB* aJob ); int JobExportNetlist( JOB* aJob ); int JobExportPdf( JOB* aJob ); int JobExportSvg( JOB* aJob ); int JobExportSymLibUpgrade( JOB* aJob ); /** * Configures the SCH_RENDER_SETTINGS object with the correct data to be used with plotting * * It's sort of a kludge due to the plotter depending on this object normally managed by the frame and canvas * * @param aRenderSettings The object to populate with working settings * @param aTheme The theme to take color data from to stick into render settings, can be left blank for default * @param aSch The schematic to further copy settings from to be put into aRenderSettings */ void InitRenderSettings( KIGFX::SCH_RENDER_SETTINGS* aRenderSettings, const wxString& aTheme, SCHEMATIC* aSch ); /* * REPORTER INTERFACE */ REPORTER& Report( const wxString& aText, SEVERITY aSeverity = RPT_SEVERITY_UNDEFINED ) override; bool HasMessage() const override { return false; } }; #endif