68 if( !aJson.contains(
"data_set" ) && aJson.contains(
"mode" ) && aJson[
"mode"].is_string() )
82 return _(
"Export IPC-2581" );
88 return _(
"Export IPC-2581 Job Settings" );
94 wxFileName fn = aReferenceName;
void FromJson(const nlohmann::json &aJson) override
DATA_SET
Columns of the IPC-2581C function mode table, Table 4 p 80.
JOB_EXPORT_PCB_FAB(const std::string &aType)
static DATA_SET DataSetFromToken(const wxString &aToken)
Read a data set token in upper case or in lower case An empty token is USERDEF.
bool SupportsDataSet(DATA_SET aDataSet) const override
wxString GetDefaultDescription() const override
IPC2581_VERSION m_version
wxString GetSettingsDialogTitle() const override
void SetDefaultOutputPath(const wxString &aReferenceName)
void FromJson(const nlohmann::json &aJson) override
void SetConfiguredOutputPath(const wxString &aPath)
Sets the configured output path for the job, this path is always saved to file.
std::vector< JOB_PARAM_BASE * > m_params
static const std::string Ipc2581FileExtension
Some functions to handle hotkeys in KiCad.
NLOHMANN_JSON_SERIALIZE_ENUM(JOB_EXPORT_PCB_IPC2581::IPC2581_VERSION, { { JOB_EXPORT_PCB_IPC2581::IPC2581_VERSION::B, "B" }, { JOB_EXPORT_PCB_IPC2581::IPC2581_VERSION::C, "C" }, }) NLOHMANN_JSON_SERIALIZE_ENUM(JOB_EXPORT_PCB_IPC2581
#define REGISTER_JOB(job_name, title, face, T)
Definition of file extensions used in Kicad.