KiCad PCB EDA Suite
Loading...
Searching...
No Matches
sym_item_diff.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 3
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, you may find one here:
18
* http://www.gnu.org/licenses/gpl-3.0.html
19
*/
20
21
#ifndef SYM_ITEM_DIFF_H
22
#define SYM_ITEM_DIFF_H
23
24
#include <
diff_merge/kicad_diff_types.h
>
25
26
#include <vector>
27
#include <wx/string.h>
28
29
30
class
LIB_SYMBOL
;
31
class
EDA_ITEM
;
32
33
34
namespace
KICAD_DIFF
35
{
36
37
struct
SYM_ELEMENT
38
{
39
const
EDA_ITEM
*
item
;
// after-side item, or before-side for REMOVED
40
wxString
typeName
;
// "Pin", "Field", "Graphic", "Text"
41
wxString
key
;
// pin number or field name, empty for graphics
42
CHANGE_KIND
kind
;
// ADDED, REMOVED or MODIFIED
43
std::vector<PROPERTY_DELTA>
deltas
;
44
};
45
46
53
std::vector<SYM_ELEMENT>
DiffSymbolElements
(
const
LIB_SYMBOL
* aBefore,
const
LIB_SYMBOL
* aAfter );
54
55
}
// namespace KICAD_DIFF
56
57
#endif
// SYM_ITEM_DIFF_H
EDA_ITEM
A base class for most all the KiCad significant classes used in schematics and boards.
Definition
eda_item.h:96
LIB_SYMBOL
Define a library symbol object.
Definition
lib_symbol.h:79
kicad_diff_types.h
KICAD_DIFF
Definition
auto_resolution.cpp:34
KICAD_DIFF::CHANGE_KIND
CHANGE_KIND
Coarse classification of a single item-level change between two documents.
Definition
kicad_diff_types.h:75
KICAD_DIFF::DiffSymbolElements
std::vector< SYM_ELEMENT > DiffSymbolElements(const LIB_SYMBOL *aBefore, const LIB_SYMBOL *aAfter)
Compares the elements of two library symbols.
Definition
sym_item_diff.cpp:143
KICAD_DIFF::SYM_ELEMENT
Definition
sym_item_diff.h:38
KICAD_DIFF::SYM_ELEMENT::item
const EDA_ITEM * item
Definition
sym_item_diff.h:39
KICAD_DIFF::SYM_ELEMENT::typeName
wxString typeName
Definition
sym_item_diff.h:40
KICAD_DIFF::SYM_ELEMENT::kind
CHANGE_KIND kind
Definition
sym_item_diff.h:42
KICAD_DIFF::SYM_ELEMENT::deltas
std::vector< PROPERTY_DELTA > deltas
Definition
sym_item_diff.h:43
KICAD_DIFF::SYM_ELEMENT::key
wxString key
Definition
sym_item_diff.h:41
src
eeschema
diff_merge
sym_item_diff.h
Generated on Thu Jun 18 2026 00:06:52 for KiCad PCB EDA Suite by
1.13.2