KiCad PCB EDA Suite
Loading...
Searching...
No Matches
RATSNEST_SEARCH_HANDLER Class Reference

#include <search_handlers.h>

Inheritance diagram for RATSNEST_SEARCH_HANDLER:
PCB_SEARCH_HANDLER SEARCH_HANDLER

Public Member Functions

 RATSNEST_SEARCH_HANDLER (PCB_EDIT_FRAME *aFrame)
 
int Search (const wxString &aQuery) override
 
void SelectItems (std::vector< long > &aItemRows) override
 
void ActivateItem (long aItemRow) override
 
wxString GetResultCell (int aRow, int aCol) override
 
void Sort (int aCol, bool aAscending, std::vector< long > *aSelection) override
 
wxString GetName () const
 
std::vector< std::tuple< wxString, int, wxListColumnFormat > > GetColumns () const
 

Protected Attributes

PCB_EDIT_FRAMEm_frame
 
std::vector< BOARD_ITEM * > m_hitlist
 
wxString m_name
 
std::vector< std::tuple< wxString, int, wxListColumnFormat > > m_columns
 

Private Member Functions

wxString getResultCell (BOARD_ITEM *aItem, int aCol) override
 

Detailed Description

Definition at line 134 of file pcbnew/widgets/search_handlers.h.

Constructor & Destructor Documentation

◆ RATSNEST_SEARCH_HANDLER()

RATSNEST_SEARCH_HANDLER::RATSNEST_SEARCH_HANDLER ( PCB_EDIT_FRAME * aFrame)

Member Function Documentation

◆ ActivateItem()

void RATSNEST_SEARCH_HANDLER::ActivateItem ( long aItemRow)
overridevirtual

Reimplemented from PCB_SEARCH_HANDLER.

Definition at line 572 of file pcbnew/widgets/search_handlers.cpp.

References _, and PCB_SEARCH_HANDLER::m_frame.

◆ GetColumns()

std::vector< std::tuple< wxString, int, wxListColumnFormat > > SEARCH_HANDLER::GetColumns ( ) const
inlineinherited

Definition at line 47 of file search_pane.h.

References m_columns.

◆ GetName()

wxString SEARCH_HANDLER::GetName ( ) const
inlineinherited

Definition at line 45 of file search_pane.h.

References m_name.

Referenced by GROUP_SEARCH_HANDLER::getResultCell(), and SEARCH_PANE::OnLanguageChange().

◆ GetResultCell()

wxString PCB_SEARCH_HANDLER::GetResultCell ( int aRow,
int aCol )
inlineoverridevirtualinherited

Implements SEARCH_HANDLER.

Definition at line 42 of file pcbnew/widgets/search_handlers.h.

References getResultCell(), m_frame, and m_hitlist.

◆ getResultCell()

wxString RATSNEST_SEARCH_HANDLER::getResultCell ( BOARD_ITEM * aItem,
int aCol )
overrideprivatevirtual

◆ Search()

◆ SelectItems()

void RATSNEST_SEARCH_HANDLER::SelectItems ( std::vector< long > & aItemRows)
overridevirtual

◆ Sort()

void PCB_SEARCH_HANDLER::Sort ( int aCol,
bool aAscending,
std::vector< long > * aSelection )
overridevirtualinherited

Implements SEARCH_HANDLER.

Definition at line 49 of file pcbnew/widgets/search_handlers.cpp.

References alg::contains(), and m_hitlist.

Member Data Documentation

◆ m_columns

◆ m_frame

◆ m_hitlist

◆ m_name

wxString SEARCH_HANDLER::m_name
protectedinherited

Definition at line 60 of file search_pane.h.

Referenced by GetName(), and SEARCH_HANDLER().


The documentation for this class was generated from the following files: