KiCad PCB EDA Suite
|
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_LIST * | m_netinfoList |
wxString | m_indeterminateLabel |
BOARD * | m_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) |
Definition at line 36 of file net_selector.cpp.
|
inline |
Definition at line 39 of file net_selector.cpp.
|
inlineoverridevirtual |
Implements FILTER_COMBOPOPUP.
Definition at line 95 of file net_selector.cpp.
References BOARD::Add(), CREATE_NET, NETINFO_ITEM::GetNetCode(), NETINFO_LIST::GetNetItem(), NETINFO_LIST::GetParent(), FILTER_COMBOPOPUP::getSelectedValue(), m_board, m_indeterminateLabel, m_netinfoList, m_selectedNetcode, m_unescapedNetNameMap, NO_NET, FILTER_COMBOPOPUP::rebuildList(), BOARD::Remove(), and UnescapeString().
|
overrideinherited |
Definition at line 65 of file filter_combobox.cpp.
References _, FILTER_COMBOPOPUP::m_filterCtrl, FILTER_COMBOPOPUP::m_filterValidator, FILTER_COMBOPOPUP::m_listBox, FILTER_COMBOPOPUP::onEnter(), FILTER_COMBOPOPUP::onFilterEdit(), FILTER_COMBOPOPUP::onIdle(), FILTER_COMBOPOPUP::onKeyDown(), and FILTER_COMBOPOPUP::onMouseClick().
|
privateinherited |
Definition at line 381 of file filter_combobox.cpp.
References KIPLATFORM::UI::ForceFocus().
Referenced by FILTER_COMBOPOPUP::onKeyDown(), FILTER_COMBOPOPUP::onMouseMoved(), and FILTER_COMBOPOPUP::OnStartingKey().
|
privateinherited |
Definition at line 347 of file filter_combobox.cpp.
References FILTER_COMBOPOPUP::m_filterCtrl, and text.
Referenced by FILTER_COMBOPOPUP::onKeyDown(), and FILTER_COMBOPOPUP::OnStartingKey().
|
overrideinherited |
Definition at line 136 of file filter_combobox.cpp.
References FILTER_COMBOPOPUP::m_maxPopupHeight, FILTER_COMBOPOPUP::m_minPopupWidth, and FILTER_COMBOPOPUP::updateSize().
|
inlineoverrideinherited |
Definition at line 47 of file filter_combobox.h.
|
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().
|
inlineoverrideprotectedvirtual |
Implement this to fill in the given list.
Implements FILTER_COMBOPOPUP.
Definition at line 172 of file net_selector.cpp.
References CREATE_NET, filter, FILTER_COMBOPOPUP::getFilterValue(), NETINFO_LIST::GetNetItem(), m_indeterminateLabel, m_netinfoList, m_unescapedNetNameMap, NO_NET, and UnescapeString().
|
inline |
Definition at line 79 of file net_selector.cpp.
References m_selectedNetcode.
Referenced by NET_SELECTOR::GetSelectedNetcode().
|
inline |
Definition at line 87 of file net_selector.cpp.
References NETINFO_LIST::GetNetItem(), NETINFO_ITEM::GetNetname(), m_netinfoList, and m_selectedNetcode.
Referenced by NET_SELECTOR::GetSelectedNetname().
|
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().
|
inlineoverride |
Definition at line 45 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 NET_SELECTOR::SetSelectedNet(), and NET_SELECTOR::SetSelectedNetcode().
|
inline |
Definition at line 76 of file net_selector.cpp.
References m_selectedNetcode.
Referenced by NET_SELECTOR::IsIndeterminate().
|
privateinherited |
Definition at line 331 of file filter_combobox.cpp.
References FILTER_COMBOPOPUP::Accept().
Referenced by FILTER_COMBOPOPUP::Create().
|
privateinherited |
Definition at line 337 of file filter_combobox.cpp.
References FILTER_COMBOPOPUP::m_listBox, FILTER_COMBOPOPUP::rebuildList(), and FILTER_COMBOPOPUP::updateSize().
Referenced by FILTER_COMBOPOPUP::Create().
|
privateinherited |
Definition at line 203 of file filter_combobox.cpp.
References KIPLATFORM::UI::GetMousePosition(), FILTER_COMBOPOPUP::m_filterCtrl, FILTER_COMBOPOPUP::m_focusHandler, and FILTER_COMBOPOPUP::onMouseMoved().
Referenced by FILTER_COMBOPOPUP::Create().
|
privateinherited |
Definition at line 272 of file filter_combobox.cpp.
References FILTER_COMBOPOPUP::Accept(), FILTER_COMBOPOPUP::doSetFocus(), FILTER_COMBOPOPUP::doStartingKey(), FILTER_COMBOPOPUP::m_filterCtrl, FILTER_COMBOPOPUP::m_focusHandler, and FILTER_COMBOPOPUP::m_listBox.
Referenced by FILTER_COMBOPOPUP::Create().
|
privateinherited |
Definition at line 243 of file filter_combobox.cpp.
References FILTER_COMBOPOPUP::Accept(), and FILTER_COMBOPOPUP::m_listBox.
Referenced by FILTER_COMBOPOPUP::Create().
|
privateinherited |
Definition at line 224 of file filter_combobox.cpp.
References FILTER_COMBOPOPUP::doSetFocus(), FILTER_COMBOPOPUP::m_filterCtrl, and FILTER_COMBOPOPUP::m_listBox.
Referenced by FILTER_COMBOPOPUP::onIdle().
|
overrideinherited |
Definition at line 114 of file filter_combobox.cpp.
References FILTER_COMBOPOPUP::m_filterCtrl, FILTER_COMBOPOPUP::m_listBox, and FILTER_COMBOPOPUP::updateSize().
|
inherited |
Definition at line 129 of file filter_combobox.cpp.
References FILTER_COMBOPOPUP::doSetFocus(), FILTER_COMBOPOPUP::doStartingKey(), and FILTER_COMBOPOPUP::m_filterCtrl.
Referenced by FILTER_COMBOBOX::onKeyDown().
|
protectedinherited |
Call this to rebuild the list from the getListContent() method.
Definition at line 147 of file filter_combobox.cpp.
References FILTER_COMBOPOPUP::getListContent(), and FILTER_COMBOPOPUP::m_listBox.
Referenced by Accept(), FILTER_COMBOPOPUP::onFilterEdit(), SetIndeterminateLabel(), SetNetInfo(), and SYMBOL_FILTER_COMBOPOPUP::SetSymbolList().
|
inline |
Definition at line 70 of file net_selector.cpp.
References m_board.
Referenced by NET_SELECTOR::SetBoard().
|
inline |
Definition at line 75 of file net_selector.cpp.
References m_selectedNetcode.
Referenced by NET_SELECTOR::SetIndeterminate().
|
inline |
Definition at line 64 of file net_selector.cpp.
References m_indeterminateLabel, and FILTER_COMBOPOPUP::rebuildList().
Referenced by NET_SELECTOR::SetIndeterminateString().
|
inline |
Definition at line 58 of file net_selector.cpp.
References m_netinfoList, and FILTER_COMBOPOPUP::rebuildList().
Referenced by NET_SELECTOR::SetNetInfo().
|
inline |
Definition at line 81 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 78 of file net_selector.cpp.
References m_selectedNetcode.
Referenced by NET_SELECTOR::SetSelectedNetcode().
|
overrideinherited |
Definition at line 108 of file filter_combobox.cpp.
|
privateinherited |
Definition at line 173 of file filter_combobox.cpp.
References KIUI::GetTextSize(), LIST_ITEM_PADDING, LIST_PADDING, FILTER_COMBOPOPUP::m_listBox, FILTER_COMBOPOPUP::m_maxPopupHeight, and FILTER_COMBOPOPUP::m_minPopupWidth.
Referenced by FILTER_COMBOPOPUP::GetAdjustedSize(), FILTER_COMBOPOPUP::onFilterEdit(), and FILTER_COMBOPOPUP::OnPopup().
|
protected |
Definition at line 218 of file net_selector.cpp.
Referenced by Accept(), and SetBoard().
|
protectedinherited |
Definition at line 96 of file filter_combobox.h.
Referenced by FILTER_COMBOPOPUP::Create(), FILTER_COMBOPOPUP::doStartingKey(), FILTER_COMBOPOPUP::getFilterValue(), FILTER_COMBOPOPUP::onIdle(), FILTER_COMBOPOPUP::onKeyDown(), FILTER_COMBOPOPUP::onMouseMoved(), FILTER_COMBOPOPUP::OnPopup(), and FILTER_COMBOPOPUP::OnStartingKey().
|
protectedinherited |
Definition at line 95 of file filter_combobox.h.
Referenced by FILTER_COMBOPOPUP::Create().
|
protectedinherited |
Definition at line 101 of file filter_combobox.h.
Referenced by FILTER_COMBOPOPUP::onIdle(), and FILTER_COMBOPOPUP::onKeyDown().
|
protected |
Definition at line 217 of file net_selector.cpp.
Referenced by Accept(), getListContent(), GetStringValue(), and SetIndeterminateLabel().
|
protectedinherited |
Definition at line 97 of file filter_combobox.h.
Referenced by FILTER_COMBOPOPUP::Create(), FILTER_COMBOPOPUP::getSelectedValue(), FILTER_COMBOPOPUP::onFilterEdit(), FILTER_COMBOPOPUP::onKeyDown(), FILTER_COMBOPOPUP::onMouseClick(), FILTER_COMBOPOPUP::onMouseMoved(), FILTER_COMBOPOPUP::OnPopup(), FILTER_COMBOPOPUP::rebuildList(), and FILTER_COMBOPOPUP::updateSize().
|
protectedinherited |
Definition at line 99 of file filter_combobox.h.
Referenced by FILTER_COMBOPOPUP::GetAdjustedSize(), and FILTER_COMBOPOPUP::updateSize().
|
protectedinherited |
Definition at line 98 of file filter_combobox.h.
Referenced by FILTER_COMBOPOPUP::GetAdjustedSize(), and FILTER_COMBOPOPUP::updateSize().
|
protected |
Definition at line 216 of file net_selector.cpp.
Referenced by Accept(), getListContent(), GetSelectedNetname(), GetStringValue(), SetNetInfo(), and SetSelectedNet().
|
protected |
Definition at line 220 of file net_selector.cpp.
Referenced by Accept(), GetSelectedNetcode(), GetSelectedNetname(), GetStringValue(), IsIndeterminate(), SetIndeterminate(), SetSelectedNet(), and SetSelectedNetcode().
|
protected |
Definition at line 222 of file net_selector.cpp.
Referenced by Accept(), and getListContent().