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

#include <sch_search_pane.h>

Inheritance diagram for SCH_SEARCH_PANE:
SEARCH_PANE SCHEMATIC_LISTENER SEARCH_PANE_BASE

Public Member Functions

 SCH_SEARCH_PANE (SCH_EDIT_FRAME *aFrame)
 
virtual ~SCH_SEARCH_PANE ()
 
virtual void OnSchItemsAdded (SCHEMATIC &aBoard, std::vector< SCH_ITEM * > &aBoardItems) override
 
virtual void OnSchItemsRemoved (SCHEMATIC &aBoard, std::vector< SCH_ITEM * > &aBoardItems) override
 
virtual void OnSchItemsChanged (SCHEMATIC &aBoard, std::vector< SCH_ITEM * > &aBoardItems) override
 
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)
 
virtual void OnSchSheetChanged (SCHEMATIC &aSch)
 

Protected Member Functions

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

Protected Attributes

wxBoxSizer * m_sizerOuter
 
wxSearchCtrl * m_searchCtrl1
 
wxStaticLine * m_staticline1
 
BITMAP_BUTTONm_menuButton
 
wxNotebook * m_notebook
 

Private Member Functions

void onUnitsChanged (wxCommandEvent &event)
 
void onSchChanged (wxCommandEvent &event)
 

Private Attributes

SCH_EDIT_FRAMEm_schFrame
 
SCHEMATICm_sch
 
std::vector< std::shared_ptr< 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 28 of file sch_search_pane.h.

Constructor & Destructor Documentation

◆ SCH_SEARCH_PANE()

◆ ~SCH_SEARCH_PANE()

SCH_SEARCH_PANE::~SCH_SEARCH_PANE ( )
virtual

Definition at line 57 of file sch_search_pane.cpp.

References m_schFrame, onSchChanged(), and onUnitsChanged().

Member Function Documentation

◆ AddSearcher()

void SEARCH_PANE::AddSearcher ( const std::shared_ptr< SEARCH_HANDLER > & aHandler)
inherited

◆ ClearAllResults()

void SEARCH_PANE::ClearAllResults ( )
inherited

◆ FocusSearch()

void SEARCH_PANE::FocusSearch ( )
inherited

Definition at line 205 of file search_pane.cpp.

References SEARCH_PANE_BASE::m_searchCtrl1.

◆ GetCurrentTab()

SEARCH_PANE_TAB * SEARCH_PANE::GetCurrentTab ( ) const
protectedinherited

Definition at line 229 of file search_pane.cpp.

References SEARCH_PANE_BASE::m_notebook.

Referenced by OnNotebookPageChanged(), and RefreshSearch().

◆ OnCharHook()

void SEARCH_PANE::OnCharHook ( wxKeyEvent & aEvent)
inherited

Definition at line 235 of file search_pane.cpp.

References m_frame.

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

◆ OnClosed()

void SEARCH_PANE::OnClosed ( wxAuiManagerEvent & aEvent)
protectedinherited

Definition at line 220 of file search_pane.cpp.

References m_frame.

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

◆ OnLanguageChange()

void SEARCH_PANE::OnLanguageChange ( wxCommandEvent & aEvent)
protectedinherited

◆ OnNotebookPageChanged() [1/2]

void SEARCH_PANE::OnNotebookPageChanged ( wxBookCtrlEvent & aEvent)
overrideinherited

Definition at line 211 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

Definition at line 51 of file search_pane_base.h.

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

◆ onSchChanged()

void SCH_SEARCH_PANE::onSchChanged ( wxCommandEvent & event)
private

◆ OnSchItemsAdded()

void SCH_SEARCH_PANE::OnSchItemsAdded ( SCHEMATIC & aBoard,
std::vector< SCH_ITEM * > & aBoardItems )
overridevirtual

Reimplemented from SCHEMATIC_LISTENER.

Definition at line 84 of file sch_search_pane.cpp.

References SEARCH_PANE::RefreshSearch().

◆ OnSchItemsChanged()

void SCH_SEARCH_PANE::OnSchItemsChanged ( SCHEMATIC & aBoard,
std::vector< SCH_ITEM * > & aBoardItems )
overridevirtual

Reimplemented from SCHEMATIC_LISTENER.

Definition at line 102 of file sch_search_pane.cpp.

References SEARCH_PANE::RefreshSearch().

◆ OnSchItemsRemoved()

void SCH_SEARCH_PANE::OnSchItemsRemoved ( SCHEMATIC & aBoard,
std::vector< SCH_ITEM * > & aBoardItems )
overridevirtual

Reimplemented from SCHEMATIC_LISTENER.

Definition at line 93 of file sch_search_pane.cpp.

References SEARCH_PANE::RefreshSearch().

◆ OnSchSheetChanged()

virtual void SCHEMATIC_LISTENER::OnSchSheetChanged ( SCHEMATIC & aSch)
inlinevirtualinherited

Reimplemented in DIALOG_SYMBOL_FIELDS_TABLE.

Definition at line 70 of file schematic.h.

Referenced by SCHEMATIC::OnSchSheetChanged().

◆ OnSearchTextEntry()

void SEARCH_PANE::OnSearchTextEntry ( wxCommandEvent & aEvent)
overridevirtualinherited

Reimplemented from SEARCH_PANE_BASE.

Definition at line 197 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

Definition at line 48 of file search_pane_base.h.

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

◆ OnSize()

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

Definition at line 49 of file search_pane_base.h.

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

◆ onUnitsChanged()

void SCH_SEARCH_PANE::onUnitsChanged ( wxCommandEvent & event)
private

◆ RefreshSearch()

Member Data Documentation

◆ m_frame

EDA_DRAW_FRAME* SEARCH_PANE::m_frame
privateinherited

Definition at line 95 of file search_pane.h.

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

◆ m_handlers

std::vector<std::shared_ptr<SEARCH_HANDLER> > SEARCH_PANE::m_handlers
privateinherited

Definition at line 92 of file search_pane.h.

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

◆ m_lastQuery

wxString SEARCH_PANE::m_lastQuery
privateinherited

Definition at line 94 of file search_pane.h.

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

◆ m_menu

ACTION_MENU* SEARCH_PANE::m_menu
privateinherited

Definition at line 96 of file search_pane.h.

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

◆ m_menuButton

BITMAP_BUTTON* SEARCH_PANE_BASE::m_menuButton
protectedinherited

Definition at line 44 of file search_pane_base.h.

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

◆ m_notebook

◆ m_sch

SCHEMATIC* SCH_SEARCH_PANE::m_sch
private

Definition at line 45 of file sch_search_pane.h.

Referenced by SCH_SEARCH_PANE().

◆ m_schFrame

SCH_EDIT_FRAME* SCH_SEARCH_PANE::m_schFrame
private

Definition at line 44 of file sch_search_pane.h.

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

◆ m_searchCtrl1

wxSearchCtrl* SEARCH_PANE_BASE::m_searchCtrl1
protectedinherited

◆ m_sizerOuter

wxBoxSizer* SEARCH_PANE_BASE::m_sizerOuter
protectedinherited

Definition at line 41 of file search_pane_base.h.

Referenced by SEARCH_PANE_BASE().

◆ m_staticline1

wxStaticLine* SEARCH_PANE_BASE::m_staticline1
protectedinherited

Definition at line 43 of file search_pane_base.h.

Referenced by SEARCH_PANE_BASE().

◆ m_tabs

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

Definition at line 93 of file search_pane.h.

Referenced by AddSearcher(), and ClearAllResults().


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