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 private:
59  size_t getLibsNotInGlobalSymbolLibTable( std::vector< PART_LIB* >& aLibs );
60 
61  void createProjectSymbolLibTable( REPORTER& aReporter );
62 
63  void remapSymbolsToLibTable( REPORTER& aReporter );
64 
65  bool remapSymbolToLibTable( SCH_COMPONENT* aSymbol );
66 
77  void backupProject();
78 };
79 
80 #endif // _DIALOG_SYMBOL_REMAP_H_
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.
Definition: schframe.h:118
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)
void backupProject()
Backup all of the files that could be modified by the remapping with a .v4 file extension in case som...
DIALOG_SYMBOL_REMAP(SCH_EDIT_FRAME *aParent)
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. ...