KiCad PCB EDA Suite
|
#include <search_handlers.h>
Public Member Functions | |
TEXT_SEARCH_HANDLER (SCH_EDIT_FRAME *aFrame) | |
int | Search (const wxString &aQuery) override |
TEXT_SEARCH_HANDLER (PCB_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 |
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 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 |
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 96 of file eeschema/widgets/search_handlers.h.
TEXT_SEARCH_HANDLER::TEXT_SEARCH_HANDLER | ( | SCH_EDIT_FRAME * | aFrame | ) |
Definition at line 300 of file eeschema/widgets/search_handlers.cpp.
References _HKI, and SEARCH_HANDLER::m_columns.
TEXT_SEARCH_HANDLER::TEXT_SEARCH_HANDLER | ( | PCB_EDIT_FRAME * | aFrame | ) |
Definition at line 222 of file pcbnew/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().
|
overridevirtualinherited |
Reimplemented from SEARCH_HANDLER.
Reimplemented in NETS_SEARCH_HANDLER, and RATSNEST_SEARCH_HANDLER.
Definition at line 36 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().
|
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(), Search(), and LABEL_SEARCH_HANDLER::Search().
|
inlineinherited |
Definition at line 39 of file search_pane.h.
References SEARCH_HANDLER::m_columns.
Referenced by SEARCH_PANE_LISTVIEW::RefreshColumnNames().
|
inlineinherited |
Definition at line 39 of file search_pane.h.
References SEARCH_HANDLER::m_columns.
Referenced by SEARCH_PANE_LISTVIEW::RefreshColumnNames().
|
inlineinherited |
Definition at line 37 of file search_pane.h.
References SEARCH_HANDLER::m_name.
Referenced by SEARCH_PANE::AddSearcher(), and SEARCH_PANE::OnLanguageChange().
|
inlineinherited |
Definition at line 37 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 259 of file pcbnew/widgets/search_handlers.cpp.
References _, ORIGIN_TRANSFORMS::ABS_X_COORD, ORIGIN_TRANSFORMS::ABS_Y_COORD, PCB_TEXT::ClassOf(), PCB_TEXTBOX::ClassOf(), BOARD_ITEM::GetLayerName(), BOARD_ITEM::GetX(), BOARD_ITEM::GetY(), SCH_SEARCH_HANDLER::m_frame, and UnescapeString().
|
overrideprotectedvirtual |
Implements SCH_SEARCH_HANDLER.
Definition at line 340 of file eeschema/widgets/search_handlers.cpp.
References _, SCH_SHEET_PATH::GetPageNumber(), SCH_SHAPE::GetPosition(), SCH_TEXT::GetPosition(), SCH_TEXT::GetShownText(), SCH_TEXTBOX::GetShownText(), SCH_SEARCH_HIT::item, SCH_SEARCH_HANDLER::m_frame, UNITS_PROVIDER::MessageTextFromValue(), SCH_TEXT_T, SCH_TEXTBOX_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.
|
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 311 of file eeschema/widgets/search_handlers.cpp.
References SCH_SEARCH_HANDLER::FindAll(), EDA_SEARCH_DATA::findString, SCH_SEARCH_HANDLER::m_hitlist, EDA_ITEM::Matches(), EDA_SEARCH_DATA::matchMode, SCH_TEXT_T, SCH_TEXTBOX_T, SCH_SEARCH_DATA::searchCurrentSheetOnly, and EDA_ITEM::Type().
|
overridevirtual |
Implements SEARCH_HANDLER.
|
overridevirtualinherited |
Reimplemented from SEARCH_HANDLER.
Definition at line 102 of file eeschema/widgets/search_handlers.cpp.
References EE_ACTIONS::addItemsToSel, EE_ACTIONS::clearSelection, 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, EDA_DRAW_PANEL_GAL::Refresh(), TOOL_MANAGER::RunAction(), and SCH_EDIT_FRAME::SetCurrentSheet().
Referenced by SCH_SEARCH_HANDLER::ActivateItem().
|
overridevirtualinherited |
Reimplemented from SEARCH_HANDLER.
Reimplemented in NETS_SEARCH_HANDLER, and RATSNEST_SEARCH_HANDLER.
Definition at line 80 of file pcbnew/widgets/search_handlers.cpp.
References PCB_BASE_FRAME::GetCanvas(), TOOLS_HOLDER::GetToolManager(), PCB_SEARCH_HANDLER::m_frame, PCB_SEARCH_HANDLER::m_hitlist, EDA_DRAW_PANEL_GAL::Refresh(), TOOL_MANAGER::RunAction(), PCB_ACTIONS::selectionClear, and PCB_ACTIONS::selectItems.
Referenced by PCB_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.
|
overridevirtualinherited |
Implements SEARCH_HANDLER.
Definition at line 45 of file pcbnew/widgets/search_handlers.cpp.
References alg::contains(), and PCB_SEARCH_HANDLER::m_hitlist.
|
protectedinherited |
Definition at line 53 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(), and ZONE_SEARCH_HANDLER::ZONE_SEARCH_HANDLER().
|
protectedinherited |
Definition at line 53 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(), 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(), getResultCell(), LABEL_SEARCH_HANDLER::getResultCell(), and SCH_SEARCH_HANDLER::SelectItems().
|
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(), FOOTPRINT_SEARCH_HANDLER::getResultCell(), ZONE_SEARCH_HANDLER::getResultCell(), FOOTPRINT_SEARCH_HANDLER::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 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(), Search(), LABEL_SEARCH_HANDLER::Search(), SCH_SEARCH_HANDLER::SelectItems(), and SCH_SEARCH_HANDLER::Sort().
|
protectedinherited |
Definition at line 63 of file pcbnew/widgets/search_handlers.h.
Referenced by PCB_SEARCH_HANDLER::GetResultCell(), FOOTPRINT_SEARCH_HANDLER::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 52 of file search_pane.h.
Referenced by SEARCH_HANDLER::GetName().
|
protectedinherited |
Definition at line 52 of file search_pane.h.
Referenced by SEARCH_HANDLER::GetName().