KiCad PCB EDA Suite
|
#include <search_handlers.h>
Public Member Functions | |
FOOTPRINT_SEARCH_HANDLER (PCB_EDIT_FRAME *aFrame) | |
int | Search (const wxString &aQuery) override |
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 Attributes | |
PCB_EDIT_FRAME * | m_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 |
Definition at line 67 of file pcbnew/widgets/search_handlers.h.
FOOTPRINT_SEARCH_HANDLER::FOOTPRINT_SEARCH_HANDLER | ( | PCB_EDIT_FRAME * | aFrame | ) |
Definition at line 115 of file pcbnew/widgets/search_handlers.cpp.
References _HKI, and SEARCH_HANDLER::m_columns.
|
overridevirtualinherited |
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(), PCB_SEARCH_HANDLER::m_frame, PCB_ACTIONS::properties, TOOL_MANAGER::RunAction(), and PCB_SEARCH_HANDLER::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().
|
overrideprivatevirtual |
Implements PCB_SEARCH_HANDLER.
Definition at line 154 of file pcbnew/widgets/search_handlers.cpp.
References ORIGIN_TRANSFORMS::ABS_X_COORD, ORIGIN_TRANSFORMS::ABS_Y_COORD, BOARD_ITEM::GetLayerName(), FOOTPRINT::GetReference(), FOOTPRINT::GetValue(), BOARD_ITEM::GetX(), BOARD_ITEM::GetY(), PCB_SEARCH_HANDLER::m_frame, PCB_BASE_FRAME::MessageTextFromCoord(), and UnescapeString().
|
inlineoverridevirtualinherited |
Implements SEARCH_HANDLER.
Definition at line 40 of file pcbnew/widgets/search_handlers.h.
References PCB_SEARCH_HANDLER::getResultCell(), and PCB_SEARCH_HANDLER::m_hitlist.
|
overridevirtual |
Implements SEARCH_HANDLER.
Definition at line 126 of file pcbnew/widgets/search_handlers.cpp.
References EDA_SEARCH_DATA::findString, BOARD::Footprints(), PCB_BASE_FRAME::GetBoard(), PCB_SEARCH_HANDLER::m_frame, PCB_SEARCH_HANDLER::m_hitlist, and EDA_SEARCH_DATA::matchMode.
|
overridevirtualinherited |
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(), PCB_SEARCH_HANDLER::m_frame, PCB_SEARCH_HANDLER::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 PCB_SEARCH_HANDLER::ActivateItem().
|
overridevirtualinherited |
Implements SEARCH_HANDLER.
Definition at line 46 of file pcbnew/widgets/search_handlers.cpp.
References alg::contains(), and PCB_SEARCH_HANDLER::m_hitlist.
|
protectedinherited |
Definition at line 57 of file search_pane.h.
Referenced by 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().
|
protectedinherited |
Definition at line 62 of file pcbnew/widgets/search_handlers.h.
Referenced by PCB_SEARCH_HANDLER::ActivateItem(), NETS_SEARCH_HANDLER::ActivateItem(), RATSNEST_SEARCH_HANDLER::ActivateItem(), getResultCell(), ZONE_SEARCH_HANDLER::getResultCell(), Search(), ZONE_SEARCH_HANDLER::Search(), NETS_SEARCH_HANDLER::Search(), RATSNEST_SEARCH_HANDLER::Search(), PCB_SEARCH_HANDLER::SelectItems(), NETS_SEARCH_HANDLER::SelectItems(), and RATSNEST_SEARCH_HANDLER::SelectItems().
|
protectedinherited |
Definition at line 63 of file pcbnew/widgets/search_handlers.h.
Referenced by PCB_SEARCH_HANDLER::GetResultCell(), Search(), ZONE_SEARCH_HANDLER::Search(), NETS_SEARCH_HANDLER::Search(), RATSNEST_SEARCH_HANDLER::Search(), PCB_SEARCH_HANDLER::SelectItems(), NETS_SEARCH_HANDLER::SelectItems(), RATSNEST_SEARCH_HANDLER::SelectItems(), and PCB_SEARCH_HANDLER::Sort().
|
protectedinherited |
Definition at line 56 of file search_pane.h.
Referenced by SEARCH_HANDLER::GetName().