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 | 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 | SetStringList (const wxArrayString &aStringList) |
void | SetStringValue (const wxString &aNetName) override |
void | SetSelectedString (const wxString &aString) |
void | OnPopup () override |
void | OnStartingKey (wxKeyEvent &aEvent) |
wxSize | GetAdjustedSize (int aMinWidth, int aPrefHeight, int aMaxHeight) override |
Protected Member Functions | |
void | getListContent (wxArrayString &aNetnames) override |
Fill the combobox 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 |
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 |
wxString | m_selectedString |
wxArrayString | m_stringList |
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 |
Reimplemented from FILTER_COMBOPOPUP.
Definition at line 89 of file net_selector.cpp.
References CREATE_NET, NETINFO_ITEM::GetNetCode(), NETINFO_LIST::GetNetItem(), NETINFO_LIST::GetParent(), FILTER_COMBOPOPUP::getSelectedValue(), m_indeterminateLabel, m_netinfoList, m_selectedNetcode, m_unescapedNetNameMap, NO_NET, FILTER_COMBOPOPUP::rebuildList(), 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 432 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 398 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 174 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 218 of file filter_combobox.cpp.
References FILTER_COMBOPOPUP::m_filterCtrl.
Referenced by SYMBOL_FILTER_COMBOPOPUP::getListContent(), getListContent(), and FILTER_COMBOPOPUP::getListContent().
|
inlineoverrideprotectedvirtual |
Fill the combobox list.
Reimplemented from FILTER_COMBOPOPUP.
Definition at line 161 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 73 of file net_selector.cpp.
References m_selectedNetcode.
Referenced by NET_SELECTOR::GetSelectedNetcode().
|
inline |
Definition at line 81 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 207 of file filter_combobox.cpp.
References FILTER_COMBOPOPUP::m_listBox.
Referenced by FILTER_COMBOPOPUP::Accept(), and Accept().
|
inlineoverride |
Definition at line 44 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 70 of file net_selector.cpp.
References m_selectedNetcode.
Referenced by NET_SELECTOR::IsIndeterminate().
|
privateinherited |
Definition at line 382 of file filter_combobox.cpp.
References FILTER_COMBOPOPUP::Accept().
Referenced by FILTER_COMBOPOPUP::Create().
|
privateinherited |
Definition at line 388 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 254 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 322 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 294 of file filter_combobox.cpp.
References FILTER_COMBOPOPUP::Accept(), and FILTER_COMBOPOPUP::m_listBox.
Referenced by FILTER_COMBOPOPUP::Create().
|
privateinherited |
Definition at line 275 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 134 of file filter_combobox.cpp.
References FILTER_COMBOPOPUP::GetStringValue(), FILTER_COMBOPOPUP::m_filterCtrl, FILTER_COMBOPOPUP::m_listBox, and FILTER_COMBOPOPUP::updateSize().
|
inherited |
Definition at line 149 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 198 of file filter_combobox.cpp.
References FILTER_COMBOPOPUP::getListContent(), and FILTER_COMBOPOPUP::m_listBox.
Referenced by Accept(), FILTER_COMBOPOPUP::onFilterEdit(), SetIndeterminateLabel(), SetNetInfo(), and FILTER_COMBOPOPUP::SetStringList().
|
inline |
Definition at line 69 of file net_selector.cpp.
References m_selectedNetcode.
Referenced by NET_SELECTOR::SetIndeterminate().
|
inline |
Definition at line 63 of file net_selector.cpp.
References m_indeterminateLabel, and FILTER_COMBOPOPUP::rebuildList().
Referenced by NET_SELECTOR::SetIndeterminateString().
|
inline |
Definition at line 57 of file net_selector.cpp.
References m_netinfoList, and FILTER_COMBOPOPUP::rebuildList().
Referenced by NET_SELECTOR::SetNetInfo().
|
inline |
Definition at line 75 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 72 of file net_selector.cpp.
References m_selectedNetcode.
Referenced by NET_SELECTOR::SetSelectedNetcode().
|
inherited |
Definition at line 127 of file filter_combobox.cpp.
References FILTER_COMBOPOPUP::m_selectedString.
Referenced by FILTER_COMBOBOX::SetSelectedString().
|
inherited |
Definition at line 104 of file filter_combobox.cpp.
References FILTER_COMBOPOPUP::m_stringList, and FILTER_COMBOPOPUP::rebuildList().
Referenced by FILTER_COMBOBOX::SetStringList().
|
overrideinherited |
Definition at line 118 of file filter_combobox.cpp.
|
privateinherited |
Definition at line 224 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().
|
protectedinherited |
Definition at line 101 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 100 of file filter_combobox.h.
Referenced by FILTER_COMBOPOPUP::Create().
|
protectedinherited |
Definition at line 106 of file filter_combobox.h.
Referenced by FILTER_COMBOPOPUP::onIdle(), and FILTER_COMBOPOPUP::onKeyDown().
|
protected |
Definition at line 207 of file net_selector.cpp.
Referenced by Accept(), getListContent(), GetStringValue(), and SetIndeterminateLabel().
|
protectedinherited |
Definition at line 102 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 104 of file filter_combobox.h.
Referenced by FILTER_COMBOPOPUP::GetAdjustedSize(), and FILTER_COMBOPOPUP::updateSize().
|
protectedinherited |
Definition at line 103 of file filter_combobox.h.
Referenced by FILTER_COMBOPOPUP::GetAdjustedSize(), and FILTER_COMBOPOPUP::updateSize().
|
protected |
Definition at line 206 of file net_selector.cpp.
Referenced by Accept(), getListContent(), GetSelectedNetname(), GetStringValue(), SetNetInfo(), and SetSelectedNet().
|
protected |
Definition at line 208 of file net_selector.cpp.
Referenced by Accept(), GetSelectedNetcode(), GetSelectedNetname(), GetStringValue(), IsIndeterminate(), SetIndeterminate(), SetSelectedNet(), and SetSelectedNetcode().
|
protectedinherited |
Definition at line 108 of file filter_combobox.h.
Referenced by FILTER_COMBOPOPUP::Accept(), FILTER_COMBOPOPUP::GetStringValue(), and FILTER_COMBOPOPUP::SetSelectedString().
|
protectedinherited |
Definition at line 109 of file filter_combobox.h.
Referenced by FILTER_COMBOPOPUP::getListContent(), and FILTER_COMBOPOPUP::SetStringList().
|
protected |
Definition at line 210 of file net_selector.cpp.
Referenced by Accept(), and getListContent().