Commit 3bbeec12 authored by faa's avatar faa

pcbnew - display length highlighted net

parent f5129572
...@@ -5,6 +5,12 @@ Started 2007-June-11 ...@@ -5,6 +5,12 @@ Started 2007-June-11
Please add newer entries at the top, list the date and your name with Please add newer entries at the top, list the date and your name with
email address. 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> 2008-June-22 UPDATE Jean-Pierre Charras <jean-pierre.charras@inpg.fr>
================================================================================ ================================================================================
+all: +all:
......
...@@ -26,6 +26,7 @@ void Affiche_Infos_Equipot( int netcode, WinEDA_BasePcbFrame* frame ) ...@@ -26,6 +26,7 @@ void Affiche_Infos_Equipot( int netcode, WinEDA_BasePcbFrame* frame )
MODULE* module; MODULE* module;
D_PAD* pad; D_PAD* pad;
EQUIPOT* equipot; EQUIPOT* equipot;
double lengthnet = 0;
frame->MsgPanel->EraseMsgBox(); frame->MsgPanel->EraseMsgBox();
...@@ -57,8 +58,14 @@ void Affiche_Infos_Equipot( int netcode, WinEDA_BasePcbFrame* frame ) ...@@ -57,8 +58,14 @@ void Affiche_Infos_Equipot( int netcode, WinEDA_BasePcbFrame* frame )
if( Struct->Type() == TYPEVIA ) if( Struct->Type() == TYPEVIA )
if( ( (SEGVIA*) Struct )->GetNet() == netcode ) if( ( (SEGVIA*) Struct )->GetNet() == netcode )
nb_vias++; nb_vias++;
if( Struct->Type() == TYPETRACK )
if( ( (TRACK*) Struct )->GetNet() == netcode )
lengthnet += ( (TRACK*) Struct )->GetLength();
} }
txt.Printf( wxT( "%d" ), nb_vias ); txt.Printf( wxT( "%d" ), nb_vias );
Affiche_1_Parametre( frame, 50, _( "Vias" ), txt, BLUE ); Affiche_1_Parametre( frame, 50, _( "Vias" ), txt, BLUE );
valeur_param( (int) lengthnet, txt );
Affiche_1_Parametre( frame, 60, _( "Net Length" ), txt, RED );
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment