Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
3bbeec12
Commit
3bbeec12
authored
Jul 08, 2008
by
faa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pcbnew - display length highlighted net
parent
f5129572
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
+13
-0
change_log.txt
change_log.txt
+6
-0
affiche.cpp
pcbnew/affiche.cpp
+7
-0
No files found.
change_log.txt
View file @
3bbeec12
...
...
@@ -5,6 +5,12 @@ Started 2007-June-11
Please add newer entries at the top, list the date and your name with
email address.
2008-Jule-08 UPDATE Andrey Fedorushkov <andrf@mail.ru>
================================================================================
+pcbnew:
Added displayed length highlighted net to pcbnew/affiche.cpp
2008-June-22 UPDATE Jean-Pierre Charras <jean-pierre.charras@inpg.fr>
================================================================================
+all:
...
...
pcbnew/affiche.cpp
View file @
3bbeec12
...
...
@@ -26,6 +26,7 @@ void Affiche_Infos_Equipot( int netcode, WinEDA_BasePcbFrame* frame )
MODULE
*
module
;
D_PAD
*
pad
;
EQUIPOT
*
equipot
;
double
lengthnet
=
0
;
frame
->
MsgPanel
->
EraseMsgBox
();
...
...
@@ -57,8 +58,14 @@ void Affiche_Infos_Equipot( int netcode, WinEDA_BasePcbFrame* frame )
if
(
Struct
->
Type
()
==
TYPEVIA
)
if
(
(
(
SEGVIA
*
)
Struct
)
->
GetNet
()
==
netcode
)
nb_vias
++
;
if
(
Struct
->
Type
()
==
TYPETRACK
)
if
(
(
(
TRACK
*
)
Struct
)
->
GetNet
()
==
netcode
)
lengthnet
+=
(
(
TRACK
*
)
Struct
)
->
GetLength
();
}
txt
.
Printf
(
wxT
(
"%d"
),
nb_vias
);
Affiche_1_Parametre
(
frame
,
50
,
_
(
"Vias"
),
txt
,
BLUE
);
valeur_param
(
(
int
)
lengthnet
,
txt
);
Affiche_1_Parametre
(
frame
,
60
,
_
(
"Net Length"
),
txt
,
RED
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment