KiCad PCB EDA Suite
Loading...
Searching...
No Matches
dialog_import_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 The KiCad Developers, see AUTHORS.txt for contributors.
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program. If not, see <https://www.gnu.org/licenses/>.
18 */
19
20#pragma once
21
23
24
25class FOOTPRINT;
26class NETLIST;
27
28
30{
31public:
32 DIALOG_IMPORT_NETLIST( PCB_EDIT_FRAME* aParent, wxString& aNetlistFullFilename );
34
35private:
36 void onFilenameChanged( bool aLoadNetlist );
37
38 void loadNetlist( bool aDryRun );
39
40 // Virtual event handlers:
41 void onBrowseNetlistFiles( wxCommandEvent& event ) override;
42 void onImportNetlist( wxCommandEvent& event ) override;
43 void onUpdatePCB( wxCommandEvent& event ) override;
44 void OnFilenameKillFocus( wxFocusEvent& event ) override;
45 void OnMatchChanged( wxCommandEvent& event ) override;
46 void OnOptionChanged( wxCommandEvent& event ) override;
47
48private:
50 wxString& m_netlistPath;
53};
54
DIALOG_IMPORT_NETLIST_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Import Netlist"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxSize(-1,-1), long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
void onFilenameChanged(bool aLoadNetlist)
void onUpdatePCB(wxCommandEvent &event) override
void onImportNetlist(wxCommandEvent &event) override
void OnFilenameKillFocus(wxFocusEvent &event) override
void OnOptionChanged(wxCommandEvent &event) override
void OnMatchChanged(wxCommandEvent &event) override
void onBrowseNetlistFiles(wxCommandEvent &event) override
DIALOG_IMPORT_NETLIST(PCB_EDIT_FRAME *aParent, wxString &aNetlistFullFilename)
Store information read from a netlist along with the flags used to update the NETLIST in the BOARD.
The main frame for Pcbnew.