KiCad PCB EDA Suite
Loading...
Searching...
No Matches
job_export_sch_netlist.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 (C) 2023 Mark Roszko <[email protected]>
5 * Copyright (C) 2023 KiCad Developers, see AUTHORS.txt for contributors.
6 *
7 * This program is free software: you can redistribute it and/or modify it
8 * under the terms of the GNU General Public License as published by the
9 * Free Software Foundation, either version 3 of the License, or (at your
10 * option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along
18 * with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
22#include <jobs/job_registry.h>
23#include <i18n_utility.h>
24
25
27 {
36 } )
37
39 JOB( "netlist", false ),
40 m_filename(),
41 format( FORMAT::KICADSEXPR ),
42 m_spiceSaveAllVoltages( false ),
43 m_spiceSaveAllCurrents( false ),
44 m_spiceSaveAllDissipations( false ),
45 m_spiceSaveAllEvents( false )
46{
47 m_params.emplace_back( new JOB_PARAM<FORMAT>( "format", &format, format ) );
48 m_params.emplace_back( new JOB_PARAM<bool>( "spice.save_all_voltages", &m_spiceSaveAllVoltages,
49 m_spiceSaveAllVoltages ) );
50 m_params.emplace_back( new JOB_PARAM<bool>( "spice.save_all_currents", &m_spiceSaveAllCurrents,
51 m_spiceSaveAllCurrents ) );
52 m_params.emplace_back( new JOB_PARAM<bool>( "spice.save_all_events", &m_spiceSaveAllEvents,
53 m_spiceSaveAllEvents ) );
54 m_params.emplace_back( new JOB_PARAM<bool>( "spice.save_all_dissipations", &m_spiceSaveAllDissipations,
55 m_spiceSaveAllDissipations ) );
56}
57
58
60{
61 return wxString::Format( _( "Schematic Netlist Export" ) );
62}
63
64
65REGISTER_JOB( sch_export_netlist, _HKI( "Schematic: Export Netlist" ), KIWAY::FACE_SCH,
wxString GetDescription() override
Definition: job.h:45
An simple container class that lets us dispatch output jobs to kifaces.
Definition: job.h:79
@ FACE_SCH
eeschema DSO
Definition: kiway.h:291
#define _HKI(x)
#define _(s)
Some functions to handle hotkeys in KiCad.
NLOHMANN_JSON_SERIALIZE_ENUM(JOB_EXPORT_SCH_NETLIST::FORMAT, { { JOB_EXPORT_SCH_NETLIST::FORMAT::KICADSEXPR, "kicad" }, { JOB_EXPORT_SCH_NETLIST::FORMAT::KICADXML, "xml" }, { JOB_EXPORT_SCH_NETLIST::FORMAT::ALLEGRO, "allegro" }, { JOB_EXPORT_SCH_NETLIST::FORMAT::PADS, "pads" }, { JOB_EXPORT_SCH_NETLIST::FORMAT::CADSTAR, "cadstar" }, { JOB_EXPORT_SCH_NETLIST::FORMAT::ORCADPCB2, "orcadpcb2" }, { JOB_EXPORT_SCH_NETLIST::FORMAT::SPICE, "spice" }, { JOB_EXPORT_SCH_NETLIST::FORMAT::SPICEMODEL, "spicemodel" }, }) JOB_EXPORT_SCH_NETLIST
#define REGISTER_JOB(job_name, title, face, T)
Definition: job_registry.h:64