24#ifndef SEARCH_HANDLERS_H
25#define SEARCH_HANDLERS_H
29#include <unordered_map>
47 if( aRow >=
static_cast<int>(
m_hitlist.size() ) )
58 void Sort(
int aCol,
bool aAscending, std::vector<long>* aSelection )
override;
60 void SelectItems( std::vector<long>& aItemRows )
override;
77 int Search(
const wxString& aQuery )
override;
89 int Search(
const wxString& aQuery )
override;
101 int Search(
const wxString& aQuery )
override;
113 int Search(
const wxString& aQuery )
override;
125 int Search(
const wxString& aQuery )
override;
126 void SelectItems( std::vector<long>& aItemRows )
override;
139 int Search(
const wxString& aQuery )
override;
140 void SelectItems( std::vector<long>& aItemRows )
override;
153 int Search(
const wxString& aQuery )
override;
154 void Sort(
int aCol,
bool aAscending, std::vector<long>* aSelection )
override;
155 void SelectItems( std::vector<long>& aItemRows )
override;
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
wxString cellText(const DRILL_LINE_ITEM &e, int col) const
std::unordered_map< BOARD_ITEM *, int > m_ptrToDrill
void SelectItems(std::vector< long > &aItemRows) override
int Search(const wxString &aQuery) override
bool rowMatchesQuery(const DRILL_LINE_ITEM &e, const wxString &aQuery) const
DRILL_SEARCH_HANDLER(PCB_EDIT_FRAME *aFrame)
void Sort(int aCol, bool aAscending, std::vector< long > *aSelection) override
std::vector< DRILL_ROW > m_drills
wxString getResultCell(BOARD_ITEM *aItem, int aCol) override
wxString getResultCell(const SCH_SEARCH_HIT &hit, int aCol) override
int Search(const wxString &aQuery) override
GROUP_SEARCH_HANDLER(SCH_EDIT_FRAME *aFrame)
void ActivateItem(long aItemRow) override
int Search(const wxString &aQuery) override
NETS_SEARCH_HANDLER(PCB_EDIT_FRAME *aFrame)
wxString getResultCell(BOARD_ITEM *aItem, int aCol) override
void SelectItems(std::vector< long > &aItemRows) override
The main frame for Pcbnew.
void ActivateItem(long aItemRow) override
PCB_SEARCH_HANDLER(const wxString &aName, PCB_EDIT_FRAME *aFrame)
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
std::vector< BOARD_ITEM * > m_hitlist
virtual wxString getResultCell(BOARD_ITEM *aItem, int aCol)=0
wxString getResultCell(BOARD_ITEM *aItem, int aCol) override
RATSNEST_SEARCH_HANDLER(PCB_EDIT_FRAME *aFrame)
int Search(const wxString &aQuery) override
void SelectItems(std::vector< long > &aItemRows) override
void ActivateItem(long aItemRow) override
SEARCH_HANDLER(const wxString &aName)
TEXT_SEARCH_HANDLER(SCH_EDIT_FRAME *aFrame)
int Search(const wxString &aQuery) override
wxString getResultCell(const SCH_SEARCH_HIT &hit, int aCol) override
ZONE_SEARCH_HANDLER(PCB_EDIT_FRAME *aFrame)
wxString getResultCell(BOARD_ITEM *aItem, int aCol) override
int Search(const wxString &aQuery) override