Support net queries in PNS_LOG_PLAYER_KICAD_IFACE.

This commit is contained in:
Jeff Young 2023-08-31 14:05:05 +01:00
parent c049e1e90d
commit ac778163ab
2 changed files with 21 additions and 0 deletions

View File

@ -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()
{
}

View File

@ -71,6 +71,9 @@ public:
void HideItem( PNS::ITEM* aItem ) 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:
PNS_LOG_VIEW_TRACKER *m_viewTracker;
};