KiCad PCB EDA Suite
Loading...
Searching...
No Matches
NET_SELECTOR_COMBOPOPUP Class Reference
Inheritance diagram for NET_SELECTOR_COMBOPOPUP:
FILTER_COMBOPOPUP

Public Member Functions

 NET_SELECTOR_COMBOPOPUP ()
 
wxString GetStringValue () const override
 
void SetNetInfo (const NETINFO_LIST *aNetInfoList)
 
void SetIndeterminateLabel (const wxString &aIndeterminateLabel)
 
void SetBoard (BOARD *aBoard)
 
void SetIndeterminate ()
 
bool IsIndeterminate ()
 
void SetSelectedNetcode (int aNetcode)
 
int GetSelectedNetcode ()
 
void SetSelectedNet (const wxString &aNetname)
 
wxString GetSelectedNetname ()
 
void Accept () override
 
bool Create (wxWindow *aParent) override
 
wxWindow * GetControl () override
 
void SetStringValue (const wxString &aNetName) override
 
void OnPopup () override
 
void OnStartingKey (wxKeyEvent &aEvent)
 
wxSize GetAdjustedSize (int aMinWidth, int aPrefHeight, int aMaxHeight) override
 

Protected Member Functions

void getListContent (wxArrayString &aNetnames) override
 Implement this to fill in the given list.
 
std::optional< wxString > getSelectedValue () const
 Get the currently selected value in the list, or std::nullopt.
 
wxString getFilterValue () const
 Get the current value of the filter control.
 
void rebuildList ()
 Call this to rebuild the list from the getListContent() method.
 

Protected Attributes

const NETINFO_LISTm_netinfoList
 
wxString m_indeterminateLabel
 
BOARDm_board
 
int m_selectedNetcode
 
std::map< wxString, wxString > m_unescapedNetNameMap
 
wxTextValidator * m_filterValidator
 
wxTextCtrl * m_filterCtrl
 
wxListBox * m_listBox
 
int m_minPopupWidth
 
int m_maxPopupHeight
 
wxEvtHandler * m_focusHandler
 

Private Member Functions

wxSize updateSize ()
 
void onIdle (wxIdleEvent &aEvent)
 
void onMouseMoved (const wxPoint aScreenPos)
 
void onMouseClick (wxMouseEvent &aEvent)
 
void onKeyDown (wxKeyEvent &aEvent)
 
void onEnter (wxCommandEvent &aEvent)
 
void onFilterEdit (wxCommandEvent &aEvent)
 
void doStartingKey (wxKeyEvent &aEvent)
 
void doSetFocus (wxWindow *aWindow)
 

Detailed Description

Definition at line 36 of file net_selector.cpp.

Constructor & Destructor Documentation

◆ NET_SELECTOR_COMBOPOPUP()

NET_SELECTOR_COMBOPOPUP::NET_SELECTOR_COMBOPOPUP ( )
inline

Definition at line 39 of file net_selector.cpp.

Member Function Documentation

◆ Accept()

◆ Create()

◆ doSetFocus()

void FILTER_COMBOPOPUP::doSetFocus ( wxWindow *  aWindow)
privateinherited

◆ doStartingKey()

void FILTER_COMBOPOPUP::doStartingKey ( wxKeyEvent &  aEvent)
privateinherited

◆ GetAdjustedSize()

wxSize FILTER_COMBOPOPUP::GetAdjustedSize ( int  aMinWidth,
int  aPrefHeight,
int  aMaxHeight 
)
overrideinherited

◆ GetControl()

wxWindow * FILTER_COMBOPOPUP::GetControl ( )
inlineoverrideinherited

Definition at line 47 of file filter_combobox.h.

◆ getFilterValue()

wxString FILTER_COMBOPOPUP::getFilterValue ( ) const
protectedinherited

Get the current value of the filter control.

Can be empty.

Definition at line 167 of file filter_combobox.cpp.

References FILTER_COMBOPOPUP::m_filterCtrl.

Referenced by SYMBOL_FILTER_COMBOPOPUP::getListContent(), and getListContent().

◆ getListContent()

void NET_SELECTOR_COMBOPOPUP::getListContent ( wxArrayString &  aListToFill)
inlineoverrideprotectedvirtual

◆ GetSelectedNetcode()

int NET_SELECTOR_COMBOPOPUP::GetSelectedNetcode ( )
inline

Definition at line 79 of file net_selector.cpp.

References m_selectedNetcode.

Referenced by NET_SELECTOR::GetSelectedNetcode().

◆ GetSelectedNetname()

wxString NET_SELECTOR_COMBOPOPUP::GetSelectedNetname ( )
inline

◆ getSelectedValue()

std::optional< wxString > FILTER_COMBOPOPUP::getSelectedValue ( ) const
protectedinherited

Get the currently selected value in the list, or std::nullopt.

Definition at line 156 of file filter_combobox.cpp.

References FILTER_COMBOPOPUP::m_listBox.

Referenced by Accept(), and SYMBOL_FILTER_COMBOPOPUP::Accept().

◆ GetStringValue()

wxString NET_SELECTOR_COMBOPOPUP::GetStringValue ( ) const
inlineoverride

◆ IsIndeterminate()

bool NET_SELECTOR_COMBOPOPUP::IsIndeterminate ( )
inline

Definition at line 76 of file net_selector.cpp.

References m_selectedNetcode.

Referenced by NET_SELECTOR::IsIndeterminate().

◆ onEnter()

void FILTER_COMBOPOPUP::onEnter ( wxCommandEvent &  aEvent)
privateinherited

Definition at line 331 of file filter_combobox.cpp.

References FILTER_COMBOPOPUP::Accept().

Referenced by FILTER_COMBOPOPUP::Create().

◆ onFilterEdit()

void FILTER_COMBOPOPUP::onFilterEdit ( wxCommandEvent &  aEvent)
privateinherited

◆ onIdle()

void FILTER_COMBOPOPUP::onIdle ( wxIdleEvent &  aEvent)
privateinherited

◆ onKeyDown()

◆ onMouseClick()

void FILTER_COMBOPOPUP::onMouseClick ( wxMouseEvent &  aEvent)
privateinherited

◆ onMouseMoved()

void FILTER_COMBOPOPUP::onMouseMoved ( const wxPoint  aScreenPos)
privateinherited

◆ OnPopup()

void FILTER_COMBOPOPUP::OnPopup ( )
overrideinherited

◆ OnStartingKey()

void FILTER_COMBOPOPUP::OnStartingKey ( wxKeyEvent &  aEvent)
inherited

◆ rebuildList()

void FILTER_COMBOPOPUP::rebuildList ( )
protectedinherited

◆ SetBoard()

void NET_SELECTOR_COMBOPOPUP::SetBoard ( BOARD aBoard)
inline

Definition at line 70 of file net_selector.cpp.

References m_board.

Referenced by NET_SELECTOR::SetBoard().

◆ SetIndeterminate()

void NET_SELECTOR_COMBOPOPUP::SetIndeterminate ( )
inline

Definition at line 75 of file net_selector.cpp.

References m_selectedNetcode.

Referenced by NET_SELECTOR::SetIndeterminate().

◆ SetIndeterminateLabel()

void NET_SELECTOR_COMBOPOPUP::SetIndeterminateLabel ( const wxString &  aIndeterminateLabel)
inline

◆ SetNetInfo()

void NET_SELECTOR_COMBOPOPUP::SetNetInfo ( const NETINFO_LIST aNetInfoList)
inline

Definition at line 58 of file net_selector.cpp.

References m_netinfoList, and FILTER_COMBOPOPUP::rebuildList().

Referenced by NET_SELECTOR::SetNetInfo().

◆ SetSelectedNet()

void NET_SELECTOR_COMBOPOPUP::SetSelectedNet ( const wxString &  aNetname)
inline

◆ SetSelectedNetcode()

void NET_SELECTOR_COMBOPOPUP::SetSelectedNetcode ( int  aNetcode)
inline

Definition at line 78 of file net_selector.cpp.

References m_selectedNetcode.

Referenced by NET_SELECTOR::SetSelectedNetcode().

◆ SetStringValue()

void FILTER_COMBOPOPUP::SetStringValue ( const wxString &  aNetName)
overrideinherited

Definition at line 108 of file filter_combobox.cpp.

◆ updateSize()

Member Data Documentation

◆ m_board

BOARD* NET_SELECTOR_COMBOPOPUP::m_board
protected

Definition at line 218 of file net_selector.cpp.

Referenced by Accept(), and SetBoard().

◆ m_filterCtrl

◆ m_filterValidator

wxTextValidator* FILTER_COMBOPOPUP::m_filterValidator
protectedinherited

Definition at line 95 of file filter_combobox.h.

Referenced by FILTER_COMBOPOPUP::Create().

◆ m_focusHandler

wxEvtHandler* FILTER_COMBOPOPUP::m_focusHandler
protectedinherited

Definition at line 101 of file filter_combobox.h.

Referenced by FILTER_COMBOPOPUP::onIdle(), and FILTER_COMBOPOPUP::onKeyDown().

◆ m_indeterminateLabel

wxString NET_SELECTOR_COMBOPOPUP::m_indeterminateLabel
protected

Definition at line 217 of file net_selector.cpp.

Referenced by Accept(), getListContent(), GetStringValue(), and SetIndeterminateLabel().

◆ m_listBox

◆ m_maxPopupHeight

int FILTER_COMBOPOPUP::m_maxPopupHeight
protectedinherited

◆ m_minPopupWidth

int FILTER_COMBOPOPUP::m_minPopupWidth
protectedinherited

◆ m_netinfoList

const NETINFO_LIST* NET_SELECTOR_COMBOPOPUP::m_netinfoList
protected

◆ m_selectedNetcode

int NET_SELECTOR_COMBOPOPUP::m_selectedNetcode
protected

◆ m_unescapedNetNameMap

std::map<wxString, wxString> NET_SELECTOR_COMBOPOPUP::m_unescapedNetNameMap
protected

Definition at line 222 of file net_selector.cpp.

Referenced by Accept(), and getListContent().


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