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 99 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)

◆ TEXT_SEARCH_HANDLER() [2/2]

TEXT_SEARCH_HANDLER::TEXT_SEARCH_HANDLER ( PCB_EDIT_FRAME * aFrame)

Member Function Documentation

◆ ActivateItem() [1/2]

void PCB_SEARCH_HANDLER::ActivateItem ( long aItemRow)
overridevirtualinherited

Reimplemented from SEARCH_HANDLER.

Reimplemented in RATSNEST_SEARCH_HANDLER.

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

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

◆ ActivateItem() [2/2]

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() [1/2]

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

Definition at line 47 of file search_pane.h.

References m_columns.

◆ GetColumns() [2/2]

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() [1/2]

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

◆ GetName() [2/2]

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() [1/2]

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() [2/2]

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

◆ getResultCell() [1/2]

◆ getResultCell() [2/2]

◆ 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 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.

◆ Sort() [2/2]

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 [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 60 of file search_pane.h.

Referenced by GetName(), and SEARCH_HANDLER().

◆ m_name [2/2]

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: