2022-10-26 21:59:33 +00:00
|
|
|
/*
|
|
|
|
* This program source code file is part of KiCad, a free EDA CAD application.
|
|
|
|
*
|
|
|
|
* Copyright (C) 2022 Mark Roszko <mark.roszko@gmail.com>
|
2023-03-24 10:31:08 +00:00
|
|
|
* Copyright (C) 1992-2023 KiCad Developers, see AUTHORS.txt for contributors.
|
2022-10-26 21:59:33 +00: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>
|
|
|
|
|
|
|
|
namespace KIGFX
|
|
|
|
{
|
|
|
|
class SCH_RENDER_SETTINGS;
|
|
|
|
};
|
|
|
|
|
|
|
|
class SCHEMATIC;
|
2022-12-13 03:42:22 +00:00
|
|
|
class JOB_SYM_EXPORT_SVG;
|
|
|
|
class LIB_SYMBOL;
|
2023-08-14 00:31:19 +00:00
|
|
|
class DS_PROXY_VIEW_ITEM;
|
2022-10-26 21:59:33 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Handles eeschema job dispatches
|
|
|
|
*/
|
2023-03-24 10:31:08 +00:00
|
|
|
class EESCHEMA_JOBS_HANDLER : public JOB_DISPATCHER
|
2022-10-26 21:59:33 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
EESCHEMA_JOBS_HANDLER();
|
2023-03-15 00:03:57 +00:00
|
|
|
int JobExportBom( JOB* aJob );
|
2022-12-01 00:56:59 +00:00
|
|
|
int JobExportPythonBom( JOB* aJob );
|
2022-11-10 03:37:47 +00:00
|
|
|
int JobExportNetlist( JOB* aJob );
|
2023-03-22 02:14:50 +00:00
|
|
|
int JobExportPlot( JOB* aJob );
|
2023-08-14 00:31:19 +00:00
|
|
|
int JobSchErc( JOB* aJob );
|
2022-12-13 03:42:22 +00:00
|
|
|
int JobSymUpgrade( JOB* aJob );
|
|
|
|
int JobSymExportSvg( JOB* aJob );
|
|
|
|
|
2022-10-26 21:59:33 +00:00
|
|
|
/**
|
|
|
|
* 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,
|
2023-08-31 23:37:12 +00:00
|
|
|
SCHEMATIC* aSch, const wxString& aDrawingSheetOverride = wxEmptyString );
|
2022-11-18 15:27:53 +00:00
|
|
|
|
2023-06-10 22:12:32 +00:00
|
|
|
private:
|
2023-09-01 01:45:51 +00:00
|
|
|
|
2023-06-10 22:12:32 +00:00
|
|
|
int doSymExportSvg( JOB_SYM_EXPORT_SVG* aSvgJob, KIGFX::SCH_RENDER_SETTINGS* aRenderSettings,
|
|
|
|
LIB_SYMBOL* symbol );
|
|
|
|
|
2023-08-14 00:31:19 +00:00
|
|
|
DS_PROXY_VIEW_ITEM* getDrawingSheetProxyView( SCHEMATIC* aSch );
|
2022-10-26 21:59:33 +00:00
|
|
|
};
|
|
|
|
|
2023-03-15 00:03:57 +00:00
|
|
|
#endif
|