KiCad PCB EDA Suite
Loading...
Searching...
No Matches
SEARCH_PANE Class Reference

#include <search_pane.h>

Inheritance diagram for SEARCH_PANE:
SEARCH_PANE_BASE PCB_SEARCH_PANE SCH_SEARCH_PANE

Public Member Functions

 SEARCH_PANE (EDA_DRAW_FRAME *aFrame)
 
virtual ~SEARCH_PANE ()
 
void AddSearcher (SEARCH_HANDLER *aHandler)
 
void OnSearchTextEntry (wxCommandEvent &aEvent) override
 
void OnNotebookPageChanged (wxBookCtrlEvent &aEvent) override
 
void RefreshSearch ()
 
void FocusSearch ()
 
void ClearAllResults ()
 

Protected Member Functions

void OnLanguageChange (wxCommandEvent &aEvent)
 
SEARCH_PANE_TABGetCurrentTab () const
 
virtual void OnSetFocus (wxFocusEvent &event)
 
virtual void OnSize (wxSizeEvent &event)
 
virtual void OnNotebookPageChanged (wxNotebookEvent &event)
 

Protected Attributes

wxBoxSizer * m_sizerOuter
 
wxBitmapButton * m_menuButton
 
wxSearchCtrl * m_searchCtrl1
 
wxNotebook * m_notebook
 

Private Attributes

std::vector< SEARCH_HANDLER * > m_handlers
 
std::vector< SEARCH_PANE_TAB * > m_tabs
 
wxString m_lastQuery
 
EDA_DRAW_FRAMEm_frame
 
ACTION_MENUm_menu
 

Detailed Description

Definition at line 67 of file search_pane.h.

Constructor & Destructor Documentation

◆ SEARCH_PANE()

SEARCH_PANE::SEARCH_PANE ( EDA_DRAW_FRAME aFrame)

◆ ~SEARCH_PANE()

SEARCH_PANE::~SEARCH_PANE ( )
virtual

Definition at line 108 of file search_pane.cpp.

References m_frame, m_menu, and OnLanguageChange().

Member Function Documentation

◆ AddSearcher()

void SEARCH_PANE::AddSearcher ( SEARCH_HANDLER aHandler)

◆ ClearAllResults()

void SEARCH_PANE::ClearAllResults ( )

◆ FocusSearch()

void SEARCH_PANE::FocusSearch ( )

◆ GetCurrentTab()

SEARCH_PANE_TAB * SEARCH_PANE::GetCurrentTab ( ) const
protected

Definition at line 187 of file search_pane.cpp.

References SEARCH_PANE_BASE::m_notebook.

Referenced by OnNotebookPageChanged(), and RefreshSearch().

◆ OnLanguageChange()

void SEARCH_PANE::OnLanguageChange ( wxCommandEvent &  aEvent)
protected

◆ OnNotebookPageChanged() [1/2]

void SEARCH_PANE::OnNotebookPageChanged ( wxBookCtrlEvent &  aEvent)
override

Definition at line 178 of file search_pane.cpp.

References GetCurrentTab(), m_lastQuery, and SEARCH_PANE_TAB::Search().

◆ OnNotebookPageChanged() [2/2]

virtual void SEARCH_PANE_BASE::OnNotebookPageChanged ( wxNotebookEvent &  event)
inlineprotectedvirtualinherited

◆ OnSearchTextEntry()

void SEARCH_PANE::OnSearchTextEntry ( wxCommandEvent &  aEvent)
overridevirtual

Reimplemented from SEARCH_PANE_BASE.

Definition at line 163 of file search_pane.cpp.

References m_lastQuery, SEARCH_PANE_BASE::m_searchCtrl1, and RefreshSearch().

◆ OnSetFocus()

virtual void SEARCH_PANE_BASE::OnSetFocus ( wxFocusEvent &  event)
inlineprotectedvirtualinherited

◆ OnSize()

virtual void SEARCH_PANE_BASE::OnSize ( wxSizeEvent &  event)
inlineprotectedvirtualinherited

◆ RefreshSearch()

Member Data Documentation

◆ m_frame

EDA_DRAW_FRAME* SEARCH_PANE::m_frame
private

Definition at line 89 of file search_pane.h.

Referenced by SEARCH_PANE(), and ~SEARCH_PANE().

◆ m_handlers

std::vector<SEARCH_HANDLER*> SEARCH_PANE::m_handlers
private

Definition at line 86 of file search_pane.h.

Referenced by AddSearcher().

◆ m_lastQuery

wxString SEARCH_PANE::m_lastQuery
private

Definition at line 88 of file search_pane.h.

Referenced by OnNotebookPageChanged(), OnSearchTextEntry(), and RefreshSearch().

◆ m_menu

ACTION_MENU* SEARCH_PANE::m_menu
private

Definition at line 90 of file search_pane.h.

Referenced by SEARCH_PANE(), and ~SEARCH_PANE().

◆ m_menuButton

wxBitmapButton* SEARCH_PANE_BASE::m_menuButton
protectedinherited

Definition at line 39 of file search_pane_base.h.

Referenced by SEARCH_PANE(), and SEARCH_PANE_BASE::SEARCH_PANE_BASE().

◆ m_notebook

◆ m_searchCtrl1

wxSearchCtrl* SEARCH_PANE_BASE::m_searchCtrl1
protectedinherited

◆ m_sizerOuter

wxBoxSizer* SEARCH_PANE_BASE::m_sizerOuter
protectedinherited

Definition at line 38 of file search_pane_base.h.

Referenced by SEARCH_PANE_BASE::SEARCH_PANE_BASE().

◆ m_tabs

std::vector<SEARCH_PANE_TAB*> SEARCH_PANE::m_tabs
private

Definition at line 87 of file search_pane.h.

Referenced by AddSearcher(), and ClearAllResults().


The documentation for this class was generated from the following files: