KiCad PCB EDA Suite
Loading...
Searching...
No Matches
conn_pin_name.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 modify it
7
* under the terms of the GNU General Public License as published by the
8
* Free Software Foundation, either version 3 of the License, or (at your
9
* option) any later version.
10
*
11
* This program is distributed in the hope that it will be useful, but
12
* WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* 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, see <https://www.gnu.org/licenses/>.
18
*/
19
20
#pragma once
21
22
#include <wx/string.h>
23
24
namespace
SCH_CONNECTIVITY
25
{
26
struct
PIN_NAME_FACT
27
{
28
// Names come from the library; alternate names are used only to detect collisions.
29
wxString
name
;
30
wxString
shownNumber
;
31
wxString
number
;
32
wxString
padNumber
;
33
bool
noConnect
=
false
;
34
bool
hasDuplicateName
=
false
;
35
};
36
37
struct
PIN_NAME_REFERENCE
38
{
39
wxString
reference
;
40
wxString
referenceWithUnit
;
41
wxString
symbolUuid
;
42
};
43
45
wxString
RenderPinNetName
(
const
PIN_NAME_FACT
& aPin,
const
PIN_NAME_REFERENCE
& aReference,
46
bool
aForceNoConnect =
false
);
47
}
SCH_CONNECTIVITY
Definition
conn_navigation.cpp:28
SCH_CONNECTIVITY::RenderPinNetName
wxString RenderPinNetName(const PIN_NAME_FACT &aPin, const PIN_NAME_REFERENCE &aReference, bool aForceNoConnect)
Render a non-power pin name from unescaped values; an absent reference uses the symbol UUID.
Definition
conn_pin_name.cpp:27
SCH_CONNECTIVITY::PIN_NAME_FACT
Definition
conn_pin_name.h:27
SCH_CONNECTIVITY::PIN_NAME_FACT::shownNumber
wxString shownNumber
Definition
conn_pin_name.h:30
SCH_CONNECTIVITY::PIN_NAME_FACT::padNumber
wxString padNumber
Definition
conn_pin_name.h:32
SCH_CONNECTIVITY::PIN_NAME_FACT::noConnect
bool noConnect
Definition
conn_pin_name.h:33
SCH_CONNECTIVITY::PIN_NAME_FACT::number
wxString number
Definition
conn_pin_name.h:31
SCH_CONNECTIVITY::PIN_NAME_FACT::name
wxString name
Definition
conn_pin_name.h:29
SCH_CONNECTIVITY::PIN_NAME_FACT::hasDuplicateName
bool hasDuplicateName
Definition
conn_pin_name.h:34
SCH_CONNECTIVITY::PIN_NAME_REFERENCE
Definition
conn_pin_name.h:38
SCH_CONNECTIVITY::PIN_NAME_REFERENCE::reference
wxString reference
Definition
conn_pin_name.h:39
SCH_CONNECTIVITY::PIN_NAME_REFERENCE::referenceWithUnit
wxString referenceWithUnit
Definition
conn_pin_name.h:40
SCH_CONNECTIVITY::PIN_NAME_REFERENCE::symbolUuid
wxString symbolUuid
Definition
conn_pin_name.h:41
src
eeschema
connectivity
conn_pin_name.h
Generated on Thu Sep 17 2026 00:06:12 for KiCad PCB EDA Suite by
1.13.2