KiCad PCB EDA Suite
dialog_netlist.h
Go to the documentation of this file.
1 
5 /*
6  * This program source code file is part of KiCad, a free EDA CAD application.
7  *
8  * Copyright (C) 1992-2015 KiCad Developers, see change_log.txt for contributors.
9  *
10  * This program is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU General Public License
12  * as published by the Free Software Foundation; either version 2
13  * of the License, or (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, you may find one here:
22  * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
23  * or you may search the http://www.gnu.org website for the version 2 license,
24  * or you may write to the Free Software Foundation, Inc.,
25  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
26  */
27 
28 #ifndef _DIALOG_NETLIST_H_
29 #define _DIALOG_NETLIST_H_
30 
31 #include <dialog_netlist_base.h>
32 
33 
34 class MODULE;
35 class NETLIST;
36 
37 
39 {
40 private:
42  wxConfigBase* m_config;
44 
45 public:
46  DIALOG_NETLIST( PCB_EDIT_FRAME* aParent, const wxString & aNetlistFullFilename );
48 
49 private:
50  void onFilenameChanged();
51 
67  bool verifyFootprints( const wxString& aNetlistFilename,
68  const wxString& aCmpFilename,
69  std::vector< MODULE* >& aDuplicate,
70  wxArrayString& aMissing,
71  std::vector< MODULE* >& aNotInNetlist );
72 
73  void loadNetlist( bool aDryRun );
74 
75  // Virtual event handlers:
76  void OnOpenNetlistClick( wxCommandEvent& event ) override;
77  void OnUpdatePCB( wxCommandEvent& event ) override;
78  void OnFilenameKillFocus( wxFocusEvent& event ) override;
79  void OnMatchChanged( wxCommandEvent& event ) override;
80  void OnOptionChanged( wxCommandEvent& event ) override;
81  void OnTestFootprintsClick( wxCommandEvent& event ) override;
82  void OnCompileRatsnestClick( wxCommandEvent& event ) override;
83  void OnUpdateUIValidNetlistFile( wxUpdateUIEvent& aEvent ) override;
84 };
85 
86 
87 #endif // _DIALOG_NETLIST_H_
void OnMatchChanged(wxCommandEvent &event) override
PCB_EDIT_FRAME * m_parent
Class DIALOG_NETLIST_BASE.
wxConfigBase * m_config
void OnTestFootprintsClick(wxCommandEvent &event) override
void OnFilenameKillFocus(wxFocusEvent &event) override
Class NETLIST stores all of information read from a netlist along with the flags used to update the N...
Definition: pcb_netlist.h:214
void OnOpenNetlistClick(wxCommandEvent &event) override
void OnOptionChanged(wxCommandEvent &event) override
void OnUpdatePCB(wxCommandEvent &event) override
void OnUpdateUIValidNetlistFile(wxUpdateUIEvent &aEvent) override
Class PCB_EDIT_FRAME is the main frame for Pcbnew.
void OnCompileRatsnestClick(wxCommandEvent &event) override
DIALOG_NETLIST(PCB_EDIT_FRAME *aParent, const wxString &aNetlistFullFilename)
bool verifyFootprints(const wxString &aNetlistFilename, const wxString &aCmpFilename, std::vector< MODULE * > &aDuplicate, wxArrayString &aMissing, std::vector< MODULE * > &aNotInNetlist)
Function verifyFootprints compares the netlist to the board and builds a list of duplicate, missing, and extra footprints.