KiCad PCB EDA Suite
dialog_symbol_remap.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) 2017 Wayne Stambaugh <stambaughw@verizon.net>
9  * Copyright (C) 2017 KiCad Developers, see AUTHORS.txt for contributors.
10  *
11  * This program is free software: you can redistribute it and/or modify it
12  * under the terms of the GNU General Public License as published by the
13  * Free Software Foundation, either version 3 of the License, or (at your
14  * option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful, but
17  * WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19  * General Public License for more details.
20  *
21  * You should have received a copy of the GNU General Public License along
22  * with this program. If not, see <http://www.gnu.org/licenses/>.
23  */
24 
26 
27 
28 #ifndef _DIALOG_SYMBOL_REMAP_H_
29 #define _DIALOG_SYMBOL_REMAP_H_
30 
31 
32 class PART_LIB;
33 class SCH_COMPONENT;
34 class REPORTER;
35 
36 
38 {
39 public:
41 
42  void OnRemapSymbols( wxCommandEvent& aEvent ) override;
43 
44 protected:
45  void OnUpdateUIRemapButton( wxUpdateUIEvent& aEvent ) override;
46 
47 private:
62  size_t getLibsNotInGlobalSymbolLibTable( std::vector< PART_LIB* >& aLibs );
63 
64  void createProjectSymbolLibTable( REPORTER& aReporter );
65 
66  void remapSymbolsToLibTable( REPORTER& aReporter );
67 
68  bool remapSymbolToLibTable( SCH_COMPONENT* aSymbol );
69 
87  bool backupProject( REPORTER& aReporter );
88 
89  bool m_remapped;
90 };
91 
92 #endif // _DIALOG_SYMBOL_REMAP_H_
void OnUpdateUIRemapButton(wxUpdateUIEvent &aEvent) override
size_t getLibsNotInGlobalSymbolLibTable(std::vector< PART_LIB * > &aLibs)
Add libraries found in the legacy library list to aLibs that are not found in the global symbol libra...
Schematic editor (Eeschema) main window.
Class REPORTER is a pure virtual class used to derive REPORTER objects from.
Definition: reporter.h:61
Class DIALOG_SYMBOL_REMAP_BASE.
void OnRemapSymbols(wxCommandEvent &aEvent) override
void createProjectSymbolLibTable(REPORTER &aReporter)
void remapSymbolsToLibTable(REPORTER &aReporter)
DIALOG_SYMBOL_REMAP(SCH_EDIT_FRAME *aParent)
bool backupProject(REPORTER &aReporter)
Backup all of the files that could be modified by the remapping with a time stamp appended to the fil...
bool remapSymbolToLibTable(SCH_COMPONENT *aSymbol)
Class SCH_COMPONENT describes a real schematic component.
Definition: sch_component.h:69
Object used to load, save, search, and otherwise manipulate symbol library files. ...