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

#include <search_handlers.h>

Inheritance diagram for FOOTPRINT_SEARCH_HANDLER:
PCB_SEARCH_HANDLER SEARCH_HANDLER

Public Member Functions

 FOOTPRINT_SEARCH_HANDLER (PCB_EDIT_FRAME *aFrame)
 
int Search (const wxString &aQuery) override
 
wxString GetResultCell (int aRow, int aCol) override
 
void Sort (int aCol, bool aAscending, std::vector< long > *aSelection) override
 
void SelectItems (std::vector< long > &aItemRows) override
 
void ActivateItem (long aItemRow) 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 67 of file pcbnew/widgets/search_handlers.h.

Constructor & Destructor Documentation

◆ FOOTPRINT_SEARCH_HANDLER()

FOOTPRINT_SEARCH_HANDLER::FOOTPRINT_SEARCH_HANDLER ( PCB_EDIT_FRAME aFrame)

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

References _HKI, and SEARCH_HANDLER::m_columns.

Member Function Documentation

◆ ActivateItem()

void PCB_SEARCH_HANDLER::ActivateItem ( long  aItemRow)
overridevirtualinherited

◆ GetColumns()

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

Definition at line 43 of file search_pane.h.

References SEARCH_HANDLER::m_columns.

Referenced by SEARCH_PANE_LISTVIEW::RefreshColumnNames().

◆ GetName()

wxString SEARCH_HANDLER::GetName ( ) const
inlineinherited

Definition at line 41 of file search_pane.h.

References SEARCH_HANDLER::m_name.

Referenced by SEARCH_PANE::AddSearcher(), and SEARCH_PANE::OnLanguageChange().

◆ getResultCell()

◆ GetResultCell()

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

◆ Search()

int FOOTPRINT_SEARCH_HANDLER::Search ( const wxString &  aQuery)
overridevirtual

◆ SelectItems()

◆ Sort()

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

Implements SEARCH_HANDLER.

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

References alg::contains(), and PCB_SEARCH_HANDLER::m_hitlist.

Member Data Documentation

◆ m_columns

◆ m_frame

◆ m_hitlist

◆ m_name

wxString SEARCH_HANDLER::m_name
protectedinherited

Definition at line 56 of file search_pane.h.

Referenced by SEARCH_HANDLER::GetName().


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