Support net queries in PNS_LOG_PLAYER_KICAD_IFACE.
This commit is contained in:
parent
c049e1e90d
commit
ac778163ab
|
@ -285,6 +285,24 @@ void PNS_LOG_PLAYER_KICAD_IFACE::DisplayItem( const PNS::ITEM* aItem, int aClear
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int PNS_LOG_PLAYER_KICAD_IFACE::GetNetCode( PNS::NET_HANDLE aNet ) const
|
||||||
|
{
|
||||||
|
if( aNet )
|
||||||
|
return static_cast<NETINFO_ITEM*>( aNet )->GetNetCode();
|
||||||
|
else
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
wxString PNS_LOG_PLAYER_KICAD_IFACE::GetNetName( PNS::NET_HANDLE aNet ) const
|
||||||
|
{
|
||||||
|
if( aNet )
|
||||||
|
return static_cast<NETINFO_ITEM*>( aNet )->GetNetname();
|
||||||
|
else
|
||||||
|
return wxEmptyString;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
PNS_LOG_VIEW_TRACKER::PNS_LOG_VIEW_TRACKER()
|
PNS_LOG_VIEW_TRACKER::PNS_LOG_VIEW_TRACKER()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,6 +71,9 @@ public:
|
||||||
void HideItem( PNS::ITEM* aItem ) override;
|
void HideItem( PNS::ITEM* aItem ) override;
|
||||||
void DisplayItem( const PNS::ITEM* aItem, int aClearance, bool aEdit = false, bool aIsHeadTrace = false ) override;
|
void DisplayItem( const PNS::ITEM* aItem, int aClearance, bool aEdit = false, bool aIsHeadTrace = false ) override;
|
||||||
|
|
||||||
|
int GetNetCode( PNS::NET_HANDLE aNet ) const override;
|
||||||
|
wxString GetNetName( PNS::NET_HANDLE aNet ) const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
PNS_LOG_VIEW_TRACKER *m_viewTracker;
|
PNS_LOG_VIEW_TRACKER *m_viewTracker;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue