KiCad PCB EDA Suite
|
#include <search_handlers.h>
Public Member Functions | |
LABEL_SEARCH_HANDLER (SCH_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 |
Protected Member Functions | |
wxString | getResultCell (const SCH_SEARCH_HIT &hit, int aCol) override |
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 107 of file eeschema/widgets/search_handlers.h.
LABEL_SEARCH_HANDLER::LABEL_SEARCH_HANDLER | ( | SCH_EDIT_FRAME * | aFrame | ) |
Definition at line 398 of file eeschema/widgets/search_handlers.cpp.
References _HKI, and SEARCH_HANDLER::m_columns.
|
overridevirtualinherited |
Reimplemented from SEARCH_HANDLER.
Definition at line 33 of file eeschema/widgets/search_handlers.cpp.
References TOOLS_HOLDER::GetToolManager(), SCH_SEARCH_HANDLER::m_frame, EE_ACTIONS::properties, TOOL_MANAGER::RunAction(), and SCH_SEARCH_HANDLER::SelectItems().
|
inherited |
Definition at line 42 of file eeschema/widgets/search_handlers.cpp.
References SCH_SCREENS::BuildClientSheetPathList(), SCH_SCREENS::GetFirst(), SCH_SCREENS::GetNext(), SCH_SEARCH_HANDLER::m_frame, SCH_SEARCH_HANDLER::m_hitlist, SCHEMATIC::Root(), and SCH_EDIT_FRAME::Schematic().
Referenced by SYMBOL_SEARCH_HANDLER::Search(), POWER_SEARCH_HANDLER::Search(), TEXT_SEARCH_HANDLER::Search(), and 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().
|
overrideprotectedvirtual |
Implements SCH_SEARCH_HANDLER.
Definition at line 442 of file eeschema/widgets/search_handlers.cpp.
References _HKI, SCH_SHEET_PATH::GetPageNumber(), SCH_TEXT::GetPosition(), SCH_LABEL_BASE::GetShownText(), SCH_SEARCH_HIT::item, SCH_SEARCH_HANDLER::m_frame, UNITS_PROVIDER::MessageTextFromValue(), SCH_DIRECTIVE_LABEL_T, SCH_GLOBAL_LABEL_T, SCH_HIER_LABEL_T, SCH_LABEL_T, SCH_SEARCH_HIT::sheetPath, EDA_ITEM::Type(), VECTOR2< T >::x, and VECTOR2< T >::y.
|
inlineoverridevirtualinherited |
Implements SEARCH_HANDLER.
Definition at line 49 of file eeschema/widgets/search_handlers.h.
References SCH_SEARCH_HANDLER::getResultCell(), SCH_SEARCH_HIT::item, and SCH_SEARCH_HANDLER::m_hitlist.
|
overridevirtual |
Implements SEARCH_HANDLER.
Definition at line 409 of file eeschema/widgets/search_handlers.cpp.
References SCH_SEARCH_HANDLER::FindAll(), EDA_SEARCH_DATA::findString, SCH_ITEM::IsType(), SCH_SEARCH_HANDLER::m_hitlist, SCH_LABEL_BASE::Matches(), EDA_SEARCH_DATA::matchMode, and SCH_SEARCH_DATA::searchCurrentSheetOnly.
|
overridevirtualinherited |
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(), SCH_SEARCH_HANDLER::m_frame, SCH_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, SCH_EDIT_FRAME::SetCurrentSheet(), APP_SETTINGS_BASE::SEARCH_PANE::ZOOM, and ACTIONS::zoomFitSelection.
Referenced by SCH_SEARCH_HANDLER::ActivateItem().
|
overridevirtualinherited |
Implements SEARCH_HANDLER.
Definition at line 68 of file eeschema/widgets/search_handlers.cpp.
References alg::contains(), and SCH_SEARCH_HANDLER::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(), 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 70 of file eeschema/widgets/search_handlers.h.
Referenced by SCH_SEARCH_HANDLER::ActivateItem(), SCH_SEARCH_HANDLER::FindAll(), SYMBOL_SEARCH_HANDLER::getResultCell(), POWER_SEARCH_HANDLER::getResultCell(), TEXT_SEARCH_HANDLER::getResultCell(), getResultCell(), and SCH_SEARCH_HANDLER::SelectItems().
|
protectedinherited |
Definition at line 71 of file eeschema/widgets/search_handlers.h.
Referenced by SCH_SEARCH_HANDLER::FindAll(), SCH_SEARCH_HANDLER::GetResultCell(), SYMBOL_SEARCH_HANDLER::Search(), POWER_SEARCH_HANDLER::Search(), TEXT_SEARCH_HANDLER::Search(), Search(), SCH_SEARCH_HANDLER::SelectItems(), and SCH_SEARCH_HANDLER::Sort().
|
protectedinherited |
Definition at line 56 of file search_pane.h.
Referenced by SEARCH_HANDLER::GetName().