KiCad PCB EDA Suite
|
#include <search_handlers.h>
Public Member Functions | |
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 |
void | ActivateItem (long aItemRow) 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 (BOARD_ITEM *aItem, int aCol)=0 |
Protected Attributes | |
PCB_EDIT_FRAME * | m_frame |
std::vector< BOARD_ITEM * > | m_hitlist |
wxString | m_name |
std::vector< std::tuple< wxString, int, wxListColumnFormat > > | m_columns |
Definition at line 32 of file pcbnew/widgets/search_handlers.h.
|
inline |
Definition at line 35 of file pcbnew/widgets/search_handlers.h.
|
overridevirtual |
Reimplemented from SEARCH_HANDLER.
Reimplemented in NETS_SEARCH_HANDLER, and RATSNEST_SEARCH_HANDLER.
Definition at line 37 of file pcbnew/widgets/search_handlers.cpp.
References TOOLS_HOLDER::GetToolManager(), m_frame, PCB_ACTIONS::properties, TOOL_MANAGER::RunAction(), and SelectItems().
|
inlineinherited |
Definition at line 43 of file search_pane.h.
References SEARCH_HANDLER::m_columns.
Referenced by SEARCH_PANE_LISTVIEW::RefreshColumnNames().
|
inlineinherited |
Definition at line 41 of file search_pane.h.
References SEARCH_HANDLER::m_name.
Referenced by SEARCH_PANE::AddSearcher(), and SEARCH_PANE::OnLanguageChange().
|
protectedpure virtual |
Implemented in FOOTPRINT_SEARCH_HANDLER, ZONE_SEARCH_HANDLER, TEXT_SEARCH_HANDLER, NETS_SEARCH_HANDLER, and RATSNEST_SEARCH_HANDLER.
Referenced by GetResultCell().
|
inlineoverridevirtual |
Implements SEARCH_HANDLER.
Definition at line 40 of file pcbnew/widgets/search_handlers.h.
References getResultCell(), and m_hitlist.
|
pure virtualinherited |
|
overridevirtual |
Reimplemented from SEARCH_HANDLER.
Reimplemented in NETS_SEARCH_HANDLER, and RATSNEST_SEARCH_HANDLER.
Definition at line 81 of file pcbnew/widgets/search_handlers.cpp.
References ACTIONS::centerSelection, EDA_BASE_FRAME::config(), PCB_BASE_FRAME::GetCanvas(), TOOLS_HOLDER::GetToolManager(), m_frame, m_hitlist, APP_SETTINGS_BASE::m_SearchPane, APP_SETTINGS_BASE::SEARCH_PANE::NONE, APP_SETTINGS_BASE::SEARCH_PANE::PAN, EDA_DRAW_PANEL_GAL::Refresh(), TOOL_MANAGER::RunAction(), APP_SETTINGS_BASE::SEARCH_PANE::selection_zoom, PCB_ACTIONS::selectionClear, PCB_ACTIONS::selectItems, APP_SETTINGS_BASE::SEARCH_PANE::ZOOM, and ACTIONS::zoomFitSelection.
Referenced by ActivateItem().
|
overridevirtual |
Implements SEARCH_HANDLER.
Definition at line 46 of file pcbnew/widgets/search_handlers.cpp.
References alg::contains(), and m_hitlist.
|
protectedinherited |
Definition at line 57 of file search_pane.h.
Referenced by FOOTPRINT_SEARCH_HANDLER::FOOTPRINT_SEARCH_HANDLER(), SEARCH_HANDLER::GetColumns(), LABEL_SEARCH_HANDLER::LABEL_SEARCH_HANDLER(), NETS_SEARCH_HANDLER::NETS_SEARCH_HANDLER(), POWER_SEARCH_HANDLER::POWER_SEARCH_HANDLER(), RATSNEST_SEARCH_HANDLER::RATSNEST_SEARCH_HANDLER(), SYMBOL_SEARCH_HANDLER::SYMBOL_SEARCH_HANDLER(), TEXT_SEARCH_HANDLER::TEXT_SEARCH_HANDLER(), and ZONE_SEARCH_HANDLER::ZONE_SEARCH_HANDLER().
|
protected |
Definition at line 62 of file pcbnew/widgets/search_handlers.h.
Referenced by ActivateItem(), NETS_SEARCH_HANDLER::ActivateItem(), RATSNEST_SEARCH_HANDLER::ActivateItem(), FOOTPRINT_SEARCH_HANDLER::getResultCell(), ZONE_SEARCH_HANDLER::getResultCell(), FOOTPRINT_SEARCH_HANDLER::Search(), ZONE_SEARCH_HANDLER::Search(), NETS_SEARCH_HANDLER::Search(), RATSNEST_SEARCH_HANDLER::Search(), SelectItems(), NETS_SEARCH_HANDLER::SelectItems(), and RATSNEST_SEARCH_HANDLER::SelectItems().
|
protected |
Definition at line 63 of file pcbnew/widgets/search_handlers.h.
Referenced by GetResultCell(), FOOTPRINT_SEARCH_HANDLER::Search(), ZONE_SEARCH_HANDLER::Search(), NETS_SEARCH_HANDLER::Search(), RATSNEST_SEARCH_HANDLER::Search(), SelectItems(), NETS_SEARCH_HANDLER::SelectItems(), RATSNEST_SEARCH_HANDLER::SelectItems(), and Sort().
|
protectedinherited |
Definition at line 56 of file search_pane.h.
Referenced by SEARCH_HANDLER::GetName().