KiCad PCB EDA Suite
|
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_LIST * | m_netinfoList |
wxString | m_indeterminateLabel |
BOARD * | m_board |
int | m_selectedNetcode |
std::map< wxString, wxString > | m_unescapedNetNameMap |
wxEvtHandler * | m_focusHandler |
Definition at line 62 of file net_selector.cpp.
|
inline |
Definition at line 65 of file net_selector.cpp.
|
inline |
Definition at line 201 of file net_selector.cpp.
References BOARD::Add(), CREATE_NET, NETINFO_ITEM::GetNetCode(), NETINFO_LIST::GetNetItem(), NETINFO_LIST::GetParent(), m_board, m_indeterminateLabel, m_listBox, m_netinfoList, m_selectedNetcode, m_unescapedNetNameMap, NO_NET, rebuildList(), BOARD::Remove(), and UnescapeString().
Referenced by onEnter(), onKeyDown(), and onMouseClick().
|
inlineoverride |
Definition at line 77 of file net_selector.cpp.
References _, m_filterCtrl, m_filterValidator, m_listBox, onEnter(), onFilterEdit(), onIdle(), onKeyDown(), and onMouseClick().
|
inlineprotected |
Definition at line 530 of file net_selector.cpp.
References KIPLATFORM::UI::ForceFocus().
Referenced by onKeyDown(), onMouseMoved(), and OnStartingKey().
|
inlineprotected |
Definition at line 497 of file net_selector.cpp.
References m_filterCtrl, and text.
Referenced by onKeyDown(), and OnStartingKey().
|
inlineoverride |
Definition at line 171 of file net_selector.cpp.
References m_maxPopupHeight, m_minPopupWidth, and updateSize().
|
inlineoverride |
Definition at line 114 of file net_selector.cpp.
|
inline |
Definition at line 155 of file net_selector.cpp.
References m_selectedNetcode.
Referenced by NET_SELECTOR::GetSelectedNetcode().
|
inline |
Definition at line 163 of file net_selector.cpp.
References NETINFO_LIST::GetNetItem(), NETINFO_ITEM::GetNetname(), m_netinfoList, and m_selectedNetcode.
Referenced by NET_SELECTOR::GetSelectedNetname().
|
inlineoverride |
Definition at line 121 of file net_selector.cpp.
References NETINFO_ITEM::GetNetCode(), NETINFO_LIST::GetNetItem(), NETINFO_ITEM::GetNetname(), m_indeterminateLabel, m_netinfoList, m_selectedNetcode, and NO_NET.
Referenced by OnPopup(), NET_SELECTOR::SetSelectedNet(), and NET_SELECTOR::SetSelectedNetcode().
|
inline |
Definition at line 152 of file net_selector.cpp.
References m_selectedNetcode.
Referenced by NET_SELECTOR::IsIndeterminate().
|
inlineprotected |
|
inlineprotected |
Definition at line 488 of file net_selector.cpp.
References m_listBox, rebuildList(), and updateSize().
Referenced by Create().
|
inlineprotected |
Definition at line 359 of file net_selector.cpp.
References KIPLATFORM::UI::GetMousePosition(), m_filterCtrl, m_focusHandler, and onMouseMoved().
Referenced by Create().
|
inlineprotected |
Definition at line 425 of file net_selector.cpp.
References Accept(), doSetFocus(), doStartingKey(), m_filterCtrl, m_focusHandler, and m_listBox.
Referenced by Create().
|
inlineprotected |
Definition at line 397 of file net_selector.cpp.
References Accept(), and m_listBox.
Referenced by Create().
|
inlineprotected |
Definition at line 379 of file net_selector.cpp.
References doSetFocus(), m_filterCtrl, and m_listBox.
Referenced by onIdle().
|
inlineoverride |
Definition at line 181 of file net_selector.cpp.
References GetStringValue(), m_filterCtrl, m_listBox, and updateSize().
|
inline |
Definition at line 195 of file net_selector.cpp.
References doSetFocus(), doStartingKey(), and m_filterCtrl.
Referenced by NET_SELECTOR::onKeyDown().
|
inlineprotected |
Definition at line 311 of file net_selector.cpp.
References CREATE_NET, filter, NETINFO_LIST::GetNetItem(), m_filterCtrl, m_indeterminateLabel, m_listBox, m_netinfoList, m_unescapedNetNameMap, NO_NET, and UnescapeString().
Referenced by Accept(), onFilterEdit(), SetIndeterminateLabel(), and SetNetInfo().
|
inline |
Definition at line 146 of file net_selector.cpp.
References m_board.
Referenced by NET_SELECTOR::SetBoard().
|
inline |
Definition at line 151 of file net_selector.cpp.
References m_selectedNetcode.
Referenced by NET_SELECTOR::SetIndeterminate().
|
inline |
Definition at line 140 of file net_selector.cpp.
References m_indeterminateLabel, and rebuildList().
Referenced by NET_SELECTOR::SetIndeterminateString().
|
inline |
Definition at line 134 of file net_selector.cpp.
References m_netinfoList, and rebuildList().
Referenced by NET_SELECTOR::SetNetInfo().
|
inline |
Definition at line 157 of file net_selector.cpp.
References NETINFO_ITEM::GetNetCode(), NETINFO_LIST::GetNetItem(), m_netinfoList, and m_selectedNetcode.
Referenced by NET_SELECTOR::SetSelectedNet().
|
inline |
Definition at line 154 of file net_selector.cpp.
References m_selectedNetcode.
Referenced by NET_SELECTOR::SetSelectedNetcode().
|
inlineoverride |
Definition at line 116 of file net_selector.cpp.
|
inlineprotected |
Definition at line 282 of file net_selector.cpp.
References KIUI::GetTextSize(), LIST_ITEM_PADDING, LIST_PADDING, m_listBox, m_maxPopupHeight, and m_minPopupWidth.
Referenced by GetAdjustedSize(), onFilterEdit(), and OnPopup().
|
protected |
Definition at line 546 of file net_selector.cpp.
Referenced by Accept(), and SetBoard().
|
protected |
Definition at line 539 of file net_selector.cpp.
Referenced by Create(), doStartingKey(), onIdle(), onKeyDown(), onMouseMoved(), OnPopup(), OnStartingKey(), and rebuildList().
|
protected |
Definition at line 538 of file net_selector.cpp.
Referenced by Create().
|
protected |
Definition at line 552 of file net_selector.cpp.
Referenced by onIdle(), and onKeyDown().
|
protected |
Definition at line 545 of file net_selector.cpp.
Referenced by Accept(), GetStringValue(), rebuildList(), and SetIndeterminateLabel().
|
protected |
Definition at line 540 of file net_selector.cpp.
Referenced by Accept(), Create(), onFilterEdit(), onKeyDown(), onMouseClick(), onMouseMoved(), OnPopup(), rebuildList(), and updateSize().
|
protected |
Definition at line 542 of file net_selector.cpp.
Referenced by GetAdjustedSize(), and updateSize().
|
protected |
Definition at line 541 of file net_selector.cpp.
Referenced by GetAdjustedSize(), and updateSize().
|
protected |
Definition at line 544 of file net_selector.cpp.
Referenced by Accept(), GetSelectedNetname(), GetStringValue(), rebuildList(), SetNetInfo(), and SetSelectedNet().
|
protected |
Definition at line 548 of file net_selector.cpp.
Referenced by Accept(), GetSelectedNetcode(), GetSelectedNetname(), GetStringValue(), IsIndeterminate(), SetIndeterminate(), SetSelectedNet(), and SetSelectedNetcode().
|
protected |
Definition at line 550 of file net_selector.cpp.
Referenced by Accept(), and rebuildList().