KiCad PCB EDA Suite
|
#include <search_pane.h>
Public Member Functions | |
SEARCH_PANE (EDA_DRAW_FRAME *aFrame) | |
virtual | ~SEARCH_PANE () |
SEARCH_PANE (const SEARCH_PANE &)=delete | |
SEARCH_PANE & | operator= (const SEARCH_PANE &)=delete |
void | AddSearcher (const std::shared_ptr< SEARCH_HANDLER > &aHandler) |
void | OnSearchTextEntry (wxCommandEvent &aEvent) override |
void | OnNotebookPageChanged (wxBookCtrlEvent &aEvent) override |
void | RefreshSearch () |
void | FocusSearch () |
void | ClearAllResults () |
void | OnCharHook (wxKeyEvent &aEvent) |
Protected Member Functions | |
void | OnLanguageChange (wxCommandEvent &aEvent) |
SEARCH_PANE_TAB * | GetCurrentTab () const |
void | OnClosed (wxAuiManagerEvent &aEvent) |
virtual void | OnSetFocus (wxFocusEvent &event) |
virtual void | OnSize (wxSizeEvent &event) |
virtual void | OnNotebookPageChanged (wxNotebookEvent &event) |
Protected Attributes | |
wxBoxSizer * | m_sizerOuter |
wxSearchCtrl * | m_searchCtrl1 |
wxStaticLine * | m_staticline1 |
BITMAP_BUTTON * | m_menuButton |
wxNotebook * | m_notebook |
Private Attributes | |
std::vector< std::shared_ptr< SEARCH_HANDLER > > | m_handlers |
std::vector< SEARCH_PANE_TAB * > | m_tabs |
wxString | m_lastQuery |
EDA_DRAW_FRAME * | m_frame |
ACTION_MENU * | m_menu |
Definition at line 65 of file search_pane.h.
SEARCH_PANE::SEARCH_PANE | ( | EDA_DRAW_FRAME * | aFrame | ) |
Definition at line 120 of file search_pane.cpp.
References KiBitmapBundle(), m_frame, m_menu, SEARCH_PANE_BASE::m_menuButton, OnCharHook(), OnClosed(), OnLanguageChange(), and BITMAP_BUTTON::SetBitmap().
|
virtual |
Definition at line 140 of file search_pane.cpp.
References m_frame, m_handlers, m_menu, OnCharHook(), OnClosed(), and OnLanguageChange().
|
delete |
void SEARCH_PANE::AddSearcher | ( | const std::shared_ptr< SEARCH_HANDLER > & | aHandler | ) |
Definition at line 171 of file search_pane.cpp.
References m_handlers, SEARCH_PANE_BASE::m_notebook, and m_tabs.
Referenced by PCB_SEARCH_PANE::PCB_SEARCH_PANE(), and SCH_SEARCH_PANE::SCH_SEARCH_PANE().
void SEARCH_PANE::ClearAllResults | ( | ) |
Definition at line 190 of file search_pane.cpp.
References m_tabs.
Referenced by PCB_SEARCH_PANE::onBoardChanged(), SCH_SEARCH_PANE::onSchChanged(), SCH_SEARCH_PANE::onUnitsChanged(), and SCH_SEARCH_PANE::SCH_SEARCH_PANE().
void SEARCH_PANE::FocusSearch | ( | ) |
Definition at line 205 of file search_pane.cpp.
References SEARCH_PANE_BASE::m_searchCtrl1.
Referenced by SCH_EDIT_FRAME::FocusSearch(), PCB_EDIT_FRAME::FocusSearch(), SCH_EDIT_FRAME::ToggleSearch(), and PCB_EDIT_FRAME::ToggleSearch().
|
protected |
Definition at line 229 of file search_pane.cpp.
References SEARCH_PANE_BASE::m_notebook.
Referenced by OnNotebookPageChanged(), and RefreshSearch().
void SEARCH_PANE::OnCharHook | ( | wxKeyEvent & | aEvent | ) |
Definition at line 235 of file search_pane.cpp.
References TOOL_DISPATCHER::DispatchWxEvent(), TOOLS_HOLDER::GetToolDispatcher(), and m_frame.
Referenced by SEARCH_PANE(), and ~SEARCH_PANE().
|
protected |
Definition at line 220 of file search_pane.cpp.
References EDA_BASE_FRAME::config(), m_frame, and EDA_DRAW_FRAME::SaveSettings().
Referenced by SEARCH_PANE(), and ~SEARCH_PANE().
|
protected |
Definition at line 152 of file search_pane.cpp.
References _, SEARCH_PANE_TAB::GetSearchHandler(), SEARCH_PANE_BASE::m_notebook, SEARCH_PANE_BASE::m_searchCtrl1, and SEARCH_PANE_TAB::RefreshColumnNames().
Referenced by SEARCH_PANE(), and ~SEARCH_PANE().
|
override |
Definition at line 211 of file search_pane.cpp.
References GetCurrentTab(), m_lastQuery, and SEARCH_PANE_TAB::Search().
|
inlineprotectedvirtualinherited |
Definition at line 51 of file search_pane_base.h.
Referenced by SEARCH_PANE_BASE::SEARCH_PANE_BASE(), and SEARCH_PANE_BASE::~SEARCH_PANE_BASE().
|
overridevirtual |
Reimplemented from SEARCH_PANE_BASE.
Definition at line 197 of file search_pane.cpp.
References m_lastQuery, SEARCH_PANE_BASE::m_searchCtrl1, and RefreshSearch().
|
inlineprotectedvirtualinherited |
Definition at line 48 of file search_pane_base.h.
Referenced by SEARCH_PANE_BASE::SEARCH_PANE_BASE(), and SEARCH_PANE_BASE::~SEARCH_PANE_BASE().
|
inlineprotectedvirtualinherited |
Definition at line 49 of file search_pane_base.h.
Referenced by SEARCH_PANE_BASE::SEARCH_PANE_BASE(), and SEARCH_PANE_BASE::~SEARCH_PANE_BASE().
|
delete |
void SEARCH_PANE::RefreshSearch | ( | ) |
Definition at line 181 of file search_pane.cpp.
References GetCurrentTab(), m_lastQuery, and SEARCH_PANE_TAB::Search().
Referenced by SEARCH_PANE_MENU::eventHandler(), PCB_SEARCH_PANE::onBoardChanged(), PCB_SEARCH_PANE::OnBoardCompositeUpdate(), PCB_SEARCH_PANE::OnBoardItemAdded(), PCB_SEARCH_PANE::OnBoardItemChanged(), PCB_SEARCH_PANE::OnBoardItemRemoved(), PCB_SEARCH_PANE::OnBoardItemsAdded(), PCB_SEARCH_PANE::OnBoardItemsChanged(), PCB_SEARCH_PANE::OnBoardItemsRemoved(), PCB_SEARCH_PANE::OnBoardRatsnestChanged(), SCH_SEARCH_PANE::onSchChanged(), SCH_SEARCH_PANE::OnSchItemsAdded(), SCH_SEARCH_PANE::OnSchItemsChanged(), SCH_SEARCH_PANE::OnSchItemsRemoved(), OnSearchTextEntry(), SCH_SEARCH_PANE::onUnitsChanged(), SCH_EDIT_FRAME::ToggleSearch(), and PCB_EDIT_FRAME::ToggleSearch().
|
private |
Definition at line 95 of file search_pane.h.
Referenced by OnCharHook(), OnClosed(), SEARCH_PANE(), and ~SEARCH_PANE().
|
private |
Definition at line 92 of file search_pane.h.
Referenced by AddSearcher(), and ~SEARCH_PANE().
|
private |
Definition at line 94 of file search_pane.h.
Referenced by OnNotebookPageChanged(), OnSearchTextEntry(), and RefreshSearch().
|
private |
Definition at line 96 of file search_pane.h.
Referenced by SEARCH_PANE(), and ~SEARCH_PANE().
|
protectedinherited |
Definition at line 44 of file search_pane_base.h.
Referenced by SEARCH_PANE(), and SEARCH_PANE_BASE::SEARCH_PANE_BASE().
|
protectedinherited |
Definition at line 45 of file search_pane_base.h.
Referenced by AddSearcher(), GetCurrentTab(), OnLanguageChange(), PCB_SEARCH_PANE::PCB_SEARCH_PANE(), SCH_SEARCH_PANE::SCH_SEARCH_PANE(), SEARCH_PANE_BASE::SEARCH_PANE_BASE(), and SEARCH_PANE_BASE::~SEARCH_PANE_BASE().
|
protectedinherited |
Definition at line 42 of file search_pane_base.h.
Referenced by FocusSearch(), OnLanguageChange(), OnSearchTextEntry(), SEARCH_PANE_BASE::SEARCH_PANE_BASE(), and SEARCH_PANE_BASE::~SEARCH_PANE_BASE().
|
protectedinherited |
Definition at line 41 of file search_pane_base.h.
Referenced by SEARCH_PANE_BASE::SEARCH_PANE_BASE().
|
protectedinherited |
Definition at line 43 of file search_pane_base.h.
Referenced by SEARCH_PANE_BASE::SEARCH_PANE_BASE().
|
private |
Definition at line 93 of file search_pane.h.
Referenced by AddSearcher(), and ClearAllResults().