Cleanup jobs handlers (+Fix build)
This commit is contained in:
parent
61493b8489
commit
3d1b96d6ca
|
@ -40,6 +40,7 @@
|
|||
#include <wildcards_and_files_ext.h>
|
||||
#include <plotters/plotters_pslike.h>
|
||||
#include <drawing_sheet/ds_data_model.h>
|
||||
#include <reporter.h>
|
||||
|
||||
#include <settings/settings_manager.h>
|
||||
|
||||
|
@ -661,8 +662,9 @@ int EESCHEMA_JOBS_HANDLER::JobSymUpgrade( JOB* aJob )
|
|||
{
|
||||
if( wxFile::Exists( upgradeJob->m_outputLibraryPath ) )
|
||||
{
|
||||
m_reporter->Report(
|
||||
_( "Output path must not conflict with existing path\n", RPT_SEVERITY_ERROR ) );
|
||||
m_reporter->Report( _( "Output path must not conflict with existing path\n" ),
|
||||
RPT_SEVERITY_ERROR );
|
||||
|
||||
return CLI::EXIT_CODES::ERR_INVALID_OUTPUT_CONFLICT;
|
||||
}
|
||||
}
|
||||
|
@ -672,7 +674,7 @@ int EESCHEMA_JOBS_HANDLER::JobSymUpgrade( JOB* aJob )
|
|||
|
||||
if( shouldSave )
|
||||
{
|
||||
m_reporter->Report( _( "Saving symbol library in updated format\n", RPT_SEVERITY_ACTION ) );
|
||||
m_reporter->Report( _( "Saving symbol library in updated format\n" ), RPT_SEVERITY_ACTION );
|
||||
|
||||
try
|
||||
{
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
|
||||
#include <jobs/job_dispatcher.h>
|
||||
#include <wx/string.h>
|
||||
#include <reporter.h>
|
||||
|
||||
namespace KIGFX
|
||||
{
|
||||
|
@ -48,8 +47,6 @@ public:
|
|||
int JobSymUpgrade( JOB* aJob );
|
||||
int JobSymExportSvg( JOB* aJob );
|
||||
|
||||
int doSymExportSvg( JOB_SYM_EXPORT_SVG* aSvgJob, KIGFX::SCH_RENDER_SETTINGS* aRenderSettings, LIB_SYMBOL* symbol );
|
||||
|
||||
/**
|
||||
* Configures the SCH_RENDER_SETTINGS object with the correct data to be used with plotting
|
||||
*
|
||||
|
@ -62,6 +59,10 @@ public:
|
|||
void InitRenderSettings( KIGFX::SCH_RENDER_SETTINGS* aRenderSettings, const wxString& aTheme,
|
||||
SCHEMATIC* aSch );
|
||||
|
||||
private:
|
||||
int doSymExportSvg( JOB_SYM_EXPORT_SVG* aSvgJob, KIGFX::SCH_RENDER_SETTINGS* aRenderSettings,
|
||||
LIB_SYMBOL* symbol );
|
||||
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
@ -48,6 +48,7 @@
|
|||
#include <wildcards_and_files_ext.h>
|
||||
#include <plugins/kicad/pcb_plugin.h>
|
||||
#include <gerber_jobfile_writer.h>
|
||||
#include <reporter.h>
|
||||
|
||||
#include "pcbnew_scripting_helpers.h"
|
||||
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
|
||||
#include <jobs/job_dispatcher.h>
|
||||
#include <pcb_plot_params.h>
|
||||
#include <reporter.h>
|
||||
|
||||
class JOB_EXPORT_PCB_GERBER;
|
||||
class JOB_FP_EXPORT_SVG;
|
||||
|
|
Loading…
Reference in New Issue