KiCad PCB EDA Suite
Loading...
Searching...
No Matches
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 <[email protected]>
9 * Copyright (C) 2017-2021 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
32class SYMBOL_LIB;
33class SCH_SYMBOL;
34class REPORTER;
35
36
38{
39public:
41
42 void OnRemapSymbols( wxCommandEvent& aEvent ) override;
43
44protected:
45 void OnUpdateUIRemapButton( wxUpdateUIEvent& aEvent ) override;
46
47private:
62 size_t getLibsNotInGlobalSymbolLibTable( std::vector< SYMBOL_LIB* >& aLibs );
63
64 void createProjectSymbolLibTable( REPORTER& aReporter );
65
66 void remapSymbolsToLibTable( REPORTER& aReporter );
67
68 bool remapSymbolToLibTable( SCH_SYMBOL* aSymbol );
69
87 bool backupProject( REPORTER& aReporter );
88
90
92};
93
94#endif // _DIALOG_SYMBOL_REMAP_H_
Class DIALOG_SYMBOL_REMAP_BASE.
void OnUpdateUIRemapButton(wxUpdateUIEvent &aEvent) override
void remapSymbolsToLibTable(REPORTER &aReporter)
SCH_EDIT_FRAME * m_frame
void createProjectSymbolLibTable(REPORTER &aReporter)
bool remapSymbolToLibTable(SCH_SYMBOL *aSymbol)
size_t getLibsNotInGlobalSymbolLibTable(std::vector< SYMBOL_LIB * > &aLibs)
Add libraries found in the legacy library list to aLibs that are not found in the global symbol libra...
void OnRemapSymbols(wxCommandEvent &aEvent) override
bool backupProject(REPORTER &aReporter)
Backup all of the files that could be modified by the remapping with a time stamp appended to the fil...
A pure virtual class used to derive REPORTER objects from.
Definition: reporter.h:71
Schematic editor (Eeschema) main window.
Schematic symbol object.
Definition: sch_symbol.h:105
Object used to load, save, search, and otherwise manipulate symbol library files.