KiCad PCB EDA Suite
Loading...
Searching...
No Matches
job_pcb_import.cpp
Go to the documentation of this file.
1/*
2 * This program source code file is part of KiCad, a free EDA CAD application.
3 *
4 * Copyright The KiCad Developers, see AUTHORS.txt for contributors.
5 *
6 * This program is free software: you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation, either version 3 of the License, or (at your
9 * option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License along
17 * with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#include <jobs/job_pcb_import.h>
21#include <jobs/job_registry.h>
22#include <i18n_utility.h>
23
24
44
45
47 JOB( "pcb_import", false )
48{
49 m_params.emplace_back( new JOB_PARAM<FORMAT>( "format", &m_format, m_format ) );
50 m_params.emplace_back( new JOB_PARAM<wxString>( "layer_map_file", &m_layerMapFile, m_layerMapFile ) );
51 m_params.emplace_back( new JOB_PARAM<bool>( "auto_map", &m_autoMap, m_autoMap ) );
52 m_params.emplace_back( new JOB_PARAM<REPORT_FORMAT>( "report_format", &m_reportFormat, m_reportFormat ) );
53 m_params.emplace_back( new JOB_PARAM<wxString>( "report_file", &m_reportFile, m_reportFile ) );
54}
55
56
58{
59 return _( "Import PCB" );
60}
61
62
64{
65 return _( "PCB Import Job Settings" );
66}
67
68
69REGISTER_JOB( pcb_import, _HKI( "PCB: Import" ), KIWAY::FACE_PCB, JOB_PCB_IMPORT );
Job to import a non-KiCad PCB file to KiCad format.
REPORT_FORMAT m_reportFormat
wxString GetSettingsDialogTitle() const override
wxString GetDefaultDescription() const override
wxString m_layerMapFile
wxString m_reportFile
std::vector< JOB_PARAM_BASE * > m_params
Definition job.h:275
JOB(const std::string &aType, bool aOutputIsDirectory)
Definition job.cpp:26
@ FACE_PCB
pcbnew DSO
Definition kiway.h:303
#define _(s)
Some functions to handle hotkeys in KiCad.
NLOHMANN_JSON_SERIALIZE_ENUM(JOB_PCB_IMPORT::FORMAT, { { JOB_PCB_IMPORT::FORMAT::AUTO, "auto" }, { JOB_PCB_IMPORT::FORMAT::PADS, "pads" }, { JOB_PCB_IMPORT::FORMAT::ALTIUM, "altium" }, { JOB_PCB_IMPORT::FORMAT::EAGLE, "eagle" }, { JOB_PCB_IMPORT::FORMAT::CADSTAR, "cadstar" }, { JOB_PCB_IMPORT::FORMAT::FABMASTER, "fabmaster" }, { JOB_PCB_IMPORT::FORMAT::PCAD, "pcad" }, { JOB_PCB_IMPORT::FORMAT::SOLIDWORKS, "solidworks" } }) NLOHMANN_JSON_SERIALIZE_ENUM(JOB_PCB_IMPORT
#define REGISTER_JOB(job_name, title, face, T)
#define _HKI(x)
Definition page_info.cpp:44