KiCad PCB EDA Suite
Loading...
Searching...
No Matches
SCH_SEARCH_HANDLER Class Referenceabstract

#include <search_handlers.h>

Inheritance diagram for SCH_SEARCH_HANDLER:
SEARCH_HANDLER LABEL_SEARCH_HANDLER POWER_SEARCH_HANDLER SYMBOL_SEARCH_HANDLER TEXT_SEARCH_HANDLER

Public Member Functions

 SCH_SEARCH_HANDLER (const wxString &aName, SCH_EDIT_FRAME *aFrame)
 
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
 
virtual int Search (const wxString &string)=0
 

Protected Member Functions

virtual wxString getResultCell (const SCH_SEARCH_HIT &hit, int aCol)=0
 

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 39 of file eeschema/widgets/search_handlers.h.

Constructor & Destructor Documentation

◆ SCH_SEARCH_HANDLER()

SCH_SEARCH_HANDLER::SCH_SEARCH_HANDLER ( const wxString &  aName,
SCH_EDIT_FRAME aFrame 
)
inline

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

Member Function Documentation

◆ ActivateItem()

void SCH_SEARCH_HANDLER::ActivateItem ( long  aItemRow)
overridevirtual

◆ FindAll()

◆ 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()

virtual wxString SCH_SEARCH_HANDLER::getResultCell ( const SCH_SEARCH_HIT hit,
int  aCol 
)
protectedpure virtual

◆ GetResultCell()

wxString SCH_SEARCH_HANDLER::GetResultCell ( int  aRow,
int  aCol 
)
inlineoverridevirtual

Implements SEARCH_HANDLER.

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

References getResultCell(), SCH_SEARCH_HIT::item, and m_hitlist.

◆ Search()

virtual int SEARCH_HANDLER::Search ( const wxString &  string)
pure virtualinherited

◆ SelectItems()

◆ Sort()

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

Implements SEARCH_HANDLER.

Definition at line 68 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 56 of file search_pane.h.

Referenced by SEARCH_HANDLER::GetName().


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