KiCad PCB EDA Suite
|
#include <search_handlers.h>
Public Member Functions | |
SCH_SEARCH_HANDLER (const wxString &aName, SCH_EDIT_FRAME *aFrame) | |
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 |
virtual int | Search (const wxString &string)=0 |
Protected Member Functions | |
virtual wxString | getResultCell (const SCH_SEARCH_HIT &hit, int aCol)=0 |
Protected Attributes | |
SCH_EDIT_FRAME * | m_frame |
std::vector< SCH_SEARCH_HIT > | m_hitlist |
wxString | m_name |
std::vector< std::tuple< wxString, int, wxListColumnFormat > > | m_columns |
Definition at line 39 of file eeschema/widgets/search_handlers.h.
|
inline |
Definition at line 42 of file eeschema/widgets/search_handlers.h.
|
overridevirtual |
Reimplemented from SEARCH_HANDLER.
Definition at line 33 of file eeschema/widgets/search_handlers.cpp.
References TOOLS_HOLDER::GetToolManager(), m_frame, EE_ACTIONS::properties, TOOL_MANAGER::RunAction(), and SelectItems().
void SCH_SEARCH_HANDLER::FindAll | ( | const std::function< bool(SCH_ITEM *, SCH_SHEET_PATH *)> & | aCollector | ) |
Definition at line 42 of file eeschema/widgets/search_handlers.cpp.
References SCH_SCREENS::BuildClientSheetPathList(), SCH_SCREENS::GetFirst(), SCH_SCREENS::GetNext(), m_frame, m_hitlist, SCHEMATIC::Root(), and SCH_EDIT_FRAME::Schematic().
Referenced by SYMBOL_SEARCH_HANDLER::Search(), POWER_SEARCH_HANDLER::Search(), TEXT_SEARCH_HANDLER::Search(), and LABEL_SEARCH_HANDLER::Search().
|
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 SYMBOL_SEARCH_HANDLER, POWER_SEARCH_HANDLER, TEXT_SEARCH_HANDLER, and LABEL_SEARCH_HANDLER.
Referenced by GetResultCell().
|
inlineoverridevirtual |
Implements SEARCH_HANDLER.
Definition at line 49 of file eeschema/widgets/search_handlers.h.
References getResultCell(), SCH_SEARCH_HIT::item, and m_hitlist.
|
pure virtualinherited |
|
overridevirtual |
Reimplemented from SEARCH_HANDLER.
Definition at line 102 of file eeschema/widgets/search_handlers.cpp.
References EE_ACTIONS::addItemsToSel, ACTIONS::centerSelection, EE_ACTIONS::clearSelection, EDA_BASE_FRAME::config(), SCH_EDIT_FRAME::DisplayCurrentSheet(), SCH_BASE_FRAME::GetCanvas(), SCH_EDIT_FRAME::GetCurrentSheet(), 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, SCH_EDIT_FRAME::SetCurrentSheet(), APP_SETTINGS_BASE::SEARCH_PANE::ZOOM, and ACTIONS::zoomFitSelection.
Referenced by ActivateItem().
|
overridevirtual |
Implements SEARCH_HANDLER.
Definition at line 68 of file eeschema/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 70 of file eeschema/widgets/search_handlers.h.
Referenced by ActivateItem(), FindAll(), SYMBOL_SEARCH_HANDLER::getResultCell(), POWER_SEARCH_HANDLER::getResultCell(), TEXT_SEARCH_HANDLER::getResultCell(), LABEL_SEARCH_HANDLER::getResultCell(), and SelectItems().
|
protected |
Definition at line 71 of file eeschema/widgets/search_handlers.h.
Referenced by FindAll(), GetResultCell(), SYMBOL_SEARCH_HANDLER::Search(), POWER_SEARCH_HANDLER::Search(), TEXT_SEARCH_HANDLER::Search(), LABEL_SEARCH_HANDLER::Search(), SelectItems(), and Sort().
|
protectedinherited |
Definition at line 56 of file search_pane.h.
Referenced by SEARCH_HANDLER::GetName().