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

Public Member Functions

 NET_SELECTOR_COMBOPOPUP ()
 
bool Create (wxWindow *aParent) override
 
wxWindow * GetControl () override
 
void SetStringValue (const wxString &aNetName) override
 
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 ()
 
wxSize GetAdjustedSize (int aMinWidth, int aPrefHeight, int aMaxHeight) override
 
void OnPopup () override
 
void OnStartingKey (wxKeyEvent &aEvent)
 
void Accept ()
 

Protected Member Functions

wxSize updateSize ()
 
void rebuildList ()
 
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)
 

Protected Attributes

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

Detailed Description

Definition at line 62 of file net_selector.cpp.

Constructor & Destructor Documentation

◆ NET_SELECTOR_COMBOPOPUP()

NET_SELECTOR_COMBOPOPUP::NET_SELECTOR_COMBOPOPUP ( )
inline

Definition at line 65 of file net_selector.cpp.

Member Function Documentation

◆ Accept()

◆ Create()

bool NET_SELECTOR_COMBOPOPUP::Create ( wxWindow *  aParent)
inlineoverride

◆ doSetFocus()

void NET_SELECTOR_COMBOPOPUP::doSetFocus ( wxWindow *  aWindow)
inlineprotected

Definition at line 530 of file net_selector.cpp.

References KIPLATFORM::UI::ForceFocus().

Referenced by onKeyDown(), onMouseMoved(), and OnStartingKey().

◆ doStartingKey()

void NET_SELECTOR_COMBOPOPUP::doStartingKey ( wxKeyEvent &  aEvent)
inlineprotected

Definition at line 497 of file net_selector.cpp.

References m_filterCtrl, and text.

Referenced by onKeyDown(), and OnStartingKey().

◆ GetAdjustedSize()

wxSize NET_SELECTOR_COMBOPOPUP::GetAdjustedSize ( int  aMinWidth,
int  aPrefHeight,
int  aMaxHeight 
)
inlineoverride

Definition at line 171 of file net_selector.cpp.

References m_maxPopupHeight, m_minPopupWidth, and updateSize().

◆ GetControl()

wxWindow * NET_SELECTOR_COMBOPOPUP::GetControl ( )
inlineoverride

Definition at line 114 of file net_selector.cpp.

◆ GetSelectedNetcode()

int NET_SELECTOR_COMBOPOPUP::GetSelectedNetcode ( )
inline

Definition at line 155 of file net_selector.cpp.

References m_selectedNetcode.

Referenced by NET_SELECTOR::GetSelectedNetcode().

◆ GetSelectedNetname()

wxString NET_SELECTOR_COMBOPOPUP::GetSelectedNetname ( )
inline

◆ GetStringValue()

wxString NET_SELECTOR_COMBOPOPUP::GetStringValue ( ) const
inlineoverride

◆ IsIndeterminate()

bool NET_SELECTOR_COMBOPOPUP::IsIndeterminate ( )
inline

Definition at line 152 of file net_selector.cpp.

References m_selectedNetcode.

Referenced by NET_SELECTOR::IsIndeterminate().

◆ onEnter()

void NET_SELECTOR_COMBOPOPUP::onEnter ( wxCommandEvent &  aEvent)
inlineprotected

Definition at line 483 of file net_selector.cpp.

References Accept().

Referenced by Create().

◆ onFilterEdit()

void NET_SELECTOR_COMBOPOPUP::onFilterEdit ( wxCommandEvent &  aEvent)
inlineprotected

Definition at line 488 of file net_selector.cpp.

References m_listBox, rebuildList(), and updateSize().

Referenced by Create().

◆ onIdle()

void NET_SELECTOR_COMBOPOPUP::onIdle ( wxIdleEvent &  aEvent)
inlineprotected

Definition at line 359 of file net_selector.cpp.

References KIPLATFORM::UI::GetMousePosition(), m_filterCtrl, m_focusHandler, and onMouseMoved().

Referenced by Create().

◆ onKeyDown()

void NET_SELECTOR_COMBOPOPUP::onKeyDown ( wxKeyEvent &  aEvent)
inlineprotected

Definition at line 425 of file net_selector.cpp.

References Accept(), doSetFocus(), doStartingKey(), m_filterCtrl, m_focusHandler, and m_listBox.

Referenced by Create().

◆ onMouseClick()

void NET_SELECTOR_COMBOPOPUP::onMouseClick ( wxMouseEvent &  aEvent)
inlineprotected

Definition at line 397 of file net_selector.cpp.

References Accept(), and m_listBox.

Referenced by Create().

◆ onMouseMoved()

void NET_SELECTOR_COMBOPOPUP::onMouseMoved ( const wxPoint  aScreenPos)
inlineprotected

Definition at line 379 of file net_selector.cpp.

References doSetFocus(), m_filterCtrl, and m_listBox.

Referenced by onIdle().

◆ OnPopup()

void NET_SELECTOR_COMBOPOPUP::OnPopup ( )
inlineoverride

Definition at line 181 of file net_selector.cpp.

References GetStringValue(), m_filterCtrl, m_listBox, and updateSize().

◆ OnStartingKey()

void NET_SELECTOR_COMBOPOPUP::OnStartingKey ( wxKeyEvent &  aEvent)
inline

Definition at line 195 of file net_selector.cpp.

References doSetFocus(), doStartingKey(), and m_filterCtrl.

Referenced by NET_SELECTOR::onKeyDown().

◆ rebuildList()

void NET_SELECTOR_COMBOPOPUP::rebuildList ( )
inlineprotected

◆ SetBoard()

void NET_SELECTOR_COMBOPOPUP::SetBoard ( BOARD aBoard)
inline

Definition at line 146 of file net_selector.cpp.

References m_board.

Referenced by NET_SELECTOR::SetBoard().

◆ SetIndeterminate()

void NET_SELECTOR_COMBOPOPUP::SetIndeterminate ( )
inline

Definition at line 151 of file net_selector.cpp.

References m_selectedNetcode.

Referenced by NET_SELECTOR::SetIndeterminate().

◆ SetIndeterminateLabel()

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

Definition at line 140 of file net_selector.cpp.

References m_indeterminateLabel, and rebuildList().

Referenced by NET_SELECTOR::SetIndeterminateString().

◆ SetNetInfo()

void NET_SELECTOR_COMBOPOPUP::SetNetInfo ( const NETINFO_LIST aNetInfoList)
inline

Definition at line 134 of file net_selector.cpp.

References m_netinfoList, and 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 154 of file net_selector.cpp.

References m_selectedNetcode.

Referenced by NET_SELECTOR::SetSelectedNetcode().

◆ SetStringValue()

void NET_SELECTOR_COMBOPOPUP::SetStringValue ( const wxString &  aNetName)
inlineoverride

Definition at line 116 of file net_selector.cpp.

◆ updateSize()

wxSize NET_SELECTOR_COMBOPOPUP::updateSize ( )
inlineprotected

Member Data Documentation

◆ m_board

BOARD* NET_SELECTOR_COMBOPOPUP::m_board
protected

Definition at line 546 of file net_selector.cpp.

Referenced by Accept(), and SetBoard().

◆ m_filterCtrl

wxTextCtrl* NET_SELECTOR_COMBOPOPUP::m_filterCtrl
protected

◆ m_filterValidator

wxTextValidator* NET_SELECTOR_COMBOPOPUP::m_filterValidator
protected

Definition at line 538 of file net_selector.cpp.

Referenced by Create().

◆ m_focusHandler

wxEvtHandler* NET_SELECTOR_COMBOPOPUP::m_focusHandler
protected

Definition at line 552 of file net_selector.cpp.

Referenced by onIdle(), and onKeyDown().

◆ m_indeterminateLabel

wxString NET_SELECTOR_COMBOPOPUP::m_indeterminateLabel
protected

Definition at line 545 of file net_selector.cpp.

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

◆ m_listBox

wxListBox* NET_SELECTOR_COMBOPOPUP::m_listBox
protected

◆ m_maxPopupHeight

int NET_SELECTOR_COMBOPOPUP::m_maxPopupHeight
protected

Definition at line 542 of file net_selector.cpp.

Referenced by GetAdjustedSize(), and updateSize().

◆ m_minPopupWidth

int NET_SELECTOR_COMBOPOPUP::m_minPopupWidth
protected

Definition at line 541 of file net_selector.cpp.

Referenced by GetAdjustedSize(), and updateSize().

◆ 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 550 of file net_selector.cpp.

Referenced by Accept(), and rebuildList().


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