From bc8f81b14d485845d1bf14e54c42f0a407594e58 Mon Sep 17 00:00:00 2001 From: Mike Williams Date: Sat, 18 Feb 2023 15:40:35 -0500 Subject: [PATCH] PCB Search Pane: show Board Setup / Net Classes on net activation --- pcbnew/widgets/search_handlers.cpp | 6 ++++++ pcbnew/widgets/search_handlers.h | 1 + 2 files changed, 7 insertions(+) diff --git a/pcbnew/widgets/search_handlers.cpp b/pcbnew/widgets/search_handlers.cpp index d95f03fec2..4eac57c10f 100644 --- a/pcbnew/widgets/search_handlers.cpp +++ b/pcbnew/widgets/search_handlers.cpp @@ -359,3 +359,9 @@ void NETS_SEARCH_HANDLER::SelectItems( std::vector& aItemRows ) m_frame->GetCanvas()->GetView()->UpdateAllLayersColor(); m_frame->GetCanvas()->Refresh(); } + + +void NETS_SEARCH_HANDLER::ActivateItem( long aItemRow ) +{ + m_frame->ShowBoardSetupDialog( _( "Net Classes" ) ); +} diff --git a/pcbnew/widgets/search_handlers.h b/pcbnew/widgets/search_handlers.h index 533cda349a..afa61cb7db 100644 --- a/pcbnew/widgets/search_handlers.h +++ b/pcbnew/widgets/search_handlers.h @@ -93,6 +93,7 @@ public: int Search( const wxString& aQuery ) override; wxString GetResultCell( int aRow, int aCol ) override; void SelectItems( std::vector& aItemRows ) override; + void ActivateItem( long aItemRow ) override; private: std::vector m_hitlist;