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

#include <search_handlers.h>

Inheritance diagram for LABEL_SEARCH_HANDLER:
SCH_SEARCH_HANDLER SEARCH_HANDLER

Public Member Functions

 LABEL_SEARCH_HANDLER (SCH_EDIT_FRAME *aFrame)
 
int Search (const wxString &aQuery) override
 
void ActivateItem (long aItemRow) override
 
wxString GetResultCell (int aRow, int aCol) override
 
void FindAll (const std::function< bool(SCH_ITEM *, SCH_SHEET_PATH *)> &aCollector)
 
void Sort (int aCol, bool aAscending, std::vector< long > *aSelection) override
 
void SelectItems (std::vector< long > &aItemRows) override
 
wxString GetName () const
 
std::vector< std::tuple< wxString, int, wxListColumnFormat > > GetColumns () const
 

Protected Member Functions

wxString getResultCell (const SCH_SEARCH_HIT &hit, int aCol) override
 

Protected Attributes

SCH_EDIT_FRAMEm_frame
 
std::vector< SCH_SEARCH_HITm_hitlist
 
wxString m_name
 
std::vector< std::tuple< wxString, int, wxListColumnFormat > > m_columns
 

Detailed Description

Definition at line 110 of file eeschema/widgets/search_handlers.h.

Constructor & Destructor Documentation

◆ LABEL_SEARCH_HANDLER()

LABEL_SEARCH_HANDLER::LABEL_SEARCH_HANDLER ( SCH_EDIT_FRAME * aFrame)

Member Function Documentation

◆ ActivateItem()

void SCH_SEARCH_HANDLER::ActivateItem ( long aItemRow)
overridevirtualinherited

Reimplemented from SEARCH_HANDLER.

Definition at line 34 of file eeschema/widgets/search_handlers.cpp.

References m_frame, SCH_ACTIONS::properties, and SelectItems().

◆ FindAll()

◆ 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 SCH_SEARCH_HANDLER::GetResultCell ( int aRow,
int aCol )
inlineoverridevirtualinherited

◆ getResultCell()

◆ Search()

◆ SelectItems()

◆ Sort()

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

Implements SEARCH_HANDLER.

Definition at line 69 of file eeschema/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: