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 <wx/intl.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<REPORT_FORMAT>( "report_format", &m_reportFormat, m_reportFormat ) );
51 m_params.emplace_back( new JOB_PARAM<wxString>( "report_file", &m_reportFile, m_reportFile ) );
52}
53
54
56{
57 return _( "Import PCB" );
58}
59
60
62{
63 return _( "PCB Import Job Settings" );
64}
REPORT_FORMAT m_reportFormat
wxString GetSettingsDialogTitle() const override
wxString GetDefaultDescription() const override
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
#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_ASCII, "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