PCB Search Pane: show Board Setup / Net Classes on net activation

This commit is contained in:
Mike Williams 2023-02-18 15:40:35 -05:00
parent 12a5c2e037
commit bc8f81b14d
2 changed files with 7 additions and 0 deletions

View File

@ -359,3 +359,9 @@ void NETS_SEARCH_HANDLER::SelectItems( std::vector<long>& aItemRows )
m_frame->GetCanvas()->GetView()->UpdateAllLayersColor();
m_frame->GetCanvas()->Refresh();
}
void NETS_SEARCH_HANDLER::ActivateItem( long aItemRow )
{
m_frame->ShowBoardSetupDialog( _( "Net Classes" ) );
}

View File

@ -93,6 +93,7 @@ public:
int Search( const wxString& aQuery ) override;
wxString GetResultCell( int aRow, int aCol ) override;
void SelectItems( std::vector<long>& aItemRows ) override;
void ActivateItem( long aItemRow ) override;
private:
std::vector<NETINFO_ITEM*> m_hitlist;