kicad-source/eeschema/eeschema_jobs_handler.h

77 lines
2.6 KiB
C
Raw Normal View History

2022-10-26 17:59:33 -04:00
/*
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2022 Mark Roszko <mark.roszko@gmail.com>
* Copyright The KiCad Developers, see AUTHORS.txt for contributors.
2022-10-26 17:59:33 -04:00
*
* 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/>.
*/
#ifndef EESCHEMA_JOBS_HANDLER_H
#define EESCHEMA_JOBS_HANDLER_H
#include <jobs/job_dispatcher.h>
#include <wx/string.h>
class SCH_RENDER_SETTINGS;
2024-02-02 23:04:56 +00:00
class KIWAY;
2022-10-26 17:59:33 -04:00
class SCHEMATIC;
class JOB_SYM_EXPORT_SVG;
class LIB_SYMBOL;
2023-08-13 20:31:19 -04:00
class DS_PROXY_VIEW_ITEM;
2022-10-26 17:59:33 -04:00
/**
* Handle Eeschema job dispatches.
2022-10-26 17:59:33 -04:00
*/
class EESCHEMA_JOBS_HANDLER : public JOB_DISPATCHER
2022-10-26 17:59:33 -04:00
{
public:
2024-02-02 23:04:56 +00:00
EESCHEMA_JOBS_HANDLER( KIWAY* aKiway );
2023-03-14 20:03:57 -04:00
int JobExportBom( JOB* aJob );
int JobExportPythonBom( JOB* aJob );
2022-11-09 22:37:47 -05:00
int JobExportNetlist( JOB* aJob );
int JobExportPlot( JOB* aJob );
2023-08-13 20:31:19 -04:00
int JobSchErc( JOB* aJob );
int JobSymUpgrade( JOB* aJob );
int JobSymExportSvg( JOB* aJob );
2025-08-30 20:57:41 +00:00
int JobUpgrade( JOB* aJob );
2022-10-26 17:59:33 -04:00
/**
* Configure the SCH_RENDER_SETTINGS object with the correct data to be used with plotting.
2022-10-26 17:59:33 -04:00
*
* It's sort of a kludge due to the plotter depending on this object normally managed by
2025-02-06 09:47:00 -05:00
* the frame and canvas.
2022-10-26 17:59:33 -04:00
*
* @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.
2022-10-26 17:59:33 -04:00
*/
void InitRenderSettings( SCH_RENDER_SETTINGS* aRenderSettings, const wxString& aTheme,
SCHEMATIC* aSch,
const wxString& aDrawingSheetOverride = wxEmptyString );
2022-11-18 15:27:53 +00:00
2023-06-11 00:12:32 +02:00
private:
SCHEMATIC* getSchematic( const wxString& aPath );
int doSymExportSvg( JOB_SYM_EXPORT_SVG* aSvgJob, SCH_RENDER_SETTINGS* aRenderSettings,
2023-06-11 00:12:32 +02:00
LIB_SYMBOL* symbol );
2023-08-13 20:31:19 -04:00
DS_PROXY_VIEW_ITEM* getDrawingSheetProxyView( SCHEMATIC* aSch );
SCHEMATIC* m_cliSchematic;
2022-10-26 17:59:33 -04:00
};
2023-03-14 20:03:57 -04:00
#endif