KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_export_netlist.h
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) 2013-2017 Jean-Pierre Charras, [email protected]
5 * Copyright (C) 2013 Wayne Stambaugh <[email protected]>
6 * Copyright (C) 1992-2022 KiCad Developers, see AUTHORS.txt for contributors.
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, you may find one here:
20 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
21 * or you may search the http://www.gnu.org website for the version 2 license,
22 * or you may write to the Free Software Foundation, Inc.,
23 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
24 */
25
26#pragma once
27
29#include <netlist.h>
30
31class SCH_EDIT_FRAME;
34
35/* Dialog frame for creating netlists */
37{
38public:
40 DIALOG_EXPORT_NETLIST( SCH_EDIT_FRAME* aEditFrame, wxWindow* aParent,
41 JOB_EXPORT_SCH_NETLIST* aJob = nullptr );
43
44private:
45 void InstallCustomPages();
46 EXPORT_NETLIST_PAGE* AddOneCustomPage( const wxString& aTitle, const wxString& aCommandString,
47 NETLIST_TYPE_ID aNetTypeId );
48 void InstallPageSpice();
50
51 bool TransferDataFromWindow() override;
52 bool NetlistUpdateOpt();
53
55
56 // Called when changing the notebook page (and therefore the current netlist format)
57 void OnNetlistTypeSelection( wxNotebookEvent& event ) override;
58
62 void OnAddGenerator( wxCommandEvent& event ) override;
63
67 void OnDelGenerator( wxCommandEvent& event ) override;
68
73
83 bool FilenamePrms( NETLIST_TYPE_ID aType, wxString* aExt, wxString* aWildCard );
84
85private:
88 std::vector<EXPORT_NETLIST_PAGE*> m_PanelNetType;
89};
Class DIALOG_EXPORT_NETLIST_BASE.
void OnDelGenerator(wxCommandEvent &event) override
Remove a panel relative to a netlist plugin.
void WriteCurrentNetlistSetup()
Write the current netlist options setup in the configuration.
EXPORT_NETLIST_PAGE * AddOneCustomPage(const wxString &aTitle, const wxString &aCommandString, NETLIST_TYPE_ID aNetTypeId)
bool TransferDataFromWindow() override
std::vector< EXPORT_NETLIST_PAGE * > m_PanelNetType
SCH_EDIT_FRAME * m_editFrame
JOB_EXPORT_SCH_NETLIST * m_job
void OnAddGenerator(wxCommandEvent &event) override
Add a new panel for a new netlist plugin.
void OnNetlistTypeSelection(wxNotebookEvent &event) override
bool FilenamePrms(NETLIST_TYPE_ID aType, wxString *aExt, wxString *aWildCard)
Return the filename extension and the wildcard string for this page or a void name if there is no def...
Schematic editor (Eeschema) main window.
NETLIST_TYPE_ID
netlist types
Definition: netlist.h:35