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

#include <search_handlers.h>

Inheritance diagram for TEXT_SEARCH_HANDLER:
SCH_SEARCH_HANDLER PCB_SEARCH_HANDLER SEARCH_HANDLER SEARCH_HANDLER

Public Member Functions

 TEXT_SEARCH_HANDLER (SCH_EDIT_FRAME *aFrame)
 
int Search (const wxString &aQuery) override
 
 TEXT_SEARCH_HANDLER (PCB_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
 
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 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
 
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 96 of file eeschema/widgets/search_handlers.h.

Constructor & Destructor Documentation

◆ TEXT_SEARCH_HANDLER() [1/2]

TEXT_SEARCH_HANDLER::TEXT_SEARCH_HANDLER ( SCH_EDIT_FRAME aFrame)

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

References _HKI, and SEARCH_HANDLER::m_columns.

◆ TEXT_SEARCH_HANDLER() [2/2]

TEXT_SEARCH_HANDLER::TEXT_SEARCH_HANDLER ( PCB_EDIT_FRAME aFrame)

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

References _HKI, and SEARCH_HANDLER::m_columns.

Member Function Documentation

◆ ActivateItem() [1/2]

void SCH_SEARCH_HANDLER::ActivateItem ( long  aItemRow)
overridevirtualinherited

◆ ActivateItem() [2/2]

void PCB_SEARCH_HANDLER::ActivateItem ( long  aItemRow)
overridevirtualinherited

◆ FindAll()

◆ GetColumns() [1/2]

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

Definition at line 39 of file search_pane.h.

References SEARCH_HANDLER::m_columns.

Referenced by SEARCH_PANE_LISTVIEW::RefreshColumnNames().

◆ GetColumns() [2/2]

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

Definition at line 39 of file search_pane.h.

References SEARCH_HANDLER::m_columns.

Referenced by SEARCH_PANE_LISTVIEW::RefreshColumnNames().

◆ GetName() [1/2]

wxString SEARCH_HANDLER::GetName ( ) const
inlineinherited

Definition at line 37 of file search_pane.h.

References SEARCH_HANDLER::m_name.

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

◆ GetName() [2/2]

wxString SEARCH_HANDLER::GetName ( ) const
inlineinherited

Definition at line 37 of file search_pane.h.

References SEARCH_HANDLER::m_name.

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

◆ getResultCell() [1/2]

◆ getResultCell() [2/2]

◆ GetResultCell() [1/2]

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

◆ GetResultCell() [2/2]

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

◆ Search() [1/2]

◆ Search() [2/2]

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

Implements SEARCH_HANDLER.

◆ SelectItems() [1/2]

◆ SelectItems() [2/2]

◆ Sort() [1/2]

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

◆ Sort() [2/2]

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

Implements SEARCH_HANDLER.

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

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

Member Data Documentation

◆ m_columns [1/2]

◆ m_columns [2/2]

◆ m_frame [1/2]

◆ m_frame [2/2]

◆ m_hitlist [1/2]

◆ m_hitlist [2/2]

◆ m_name [1/2]

wxString SEARCH_HANDLER::m_name
protectedinherited

Definition at line 52 of file search_pane.h.

Referenced by SEARCH_HANDLER::GetName().

◆ m_name [2/2]

wxString SEARCH_HANDLER::m_name
protectedinherited

Definition at line 52 of file search_pane.h.

Referenced by SEARCH_HANDLER::GetName().


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