KiCad PCB EDA Suite
|
Public Member Functions | |
SYMBOL_FILTER_COMBOPOPUP () | |
wxString | GetStringValue () const override |
void | SetSelectedSymbol (const wxString &aSymbolName) |
void | Accept () override |
void | SetSymbolList (const wxArrayString &aSymbolList) |
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 | |
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 | |
wxTextValidator * | m_filterValidator |
wxTextCtrl * | m_filterCtrl |
wxListBox * | m_listBox |
int | m_minPopupWidth |
int | m_maxPopupHeight |
wxEvtHandler * | m_focusHandler |
Private Member Functions | |
void | getListContent (wxArrayString &aListContent) override |
Implement this to fill in the given list. | |
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) |
Private Attributes | |
wxString | m_selectedSymbol |
wxArrayString | m_symbolList |
Definition at line 29 of file symbol_filter_combobox.cpp.
|
inline |
Definition at line 32 of file symbol_filter_combobox.cpp.
|
inlineoverridevirtual |
Implements FILTER_COMBOPOPUP.
Definition at line 42 of file symbol_filter_combobox.cpp.
References FILTER_COMBOPOPUP::getSelectedValue(), and m_selectedSymbol.
|
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 getListContent(), and NET_SELECTOR_COMBOPOPUP::getListContent().
|
inlineoverrideprivatevirtual |
Implement this to fill in the given list.
Implements FILTER_COMBOPOPUP.
Definition at line 67 of file symbol_filter_combobox.cpp.
References FILTER_COMBOPOPUP::getFilterValue(), and m_symbolList.
|
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 NET_SELECTOR_COMBOPOPUP::Accept(), and Accept().
|
inlineoverride |
Definition at line 34 of file symbol_filter_combobox.cpp.
References m_selectedSymbol.
|
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 NET_SELECTOR_COMBOPOPUP::Accept(), FILTER_COMBOPOPUP::onFilterEdit(), NET_SELECTOR_COMBOPOPUP::SetIndeterminateLabel(), NET_SELECTOR_COMBOPOPUP::SetNetInfo(), and SetSymbolList().
|
inline |
Definition at line 36 of file symbol_filter_combobox.cpp.
References m_selectedSymbol.
Referenced by SYMBOL_FILTER_COMBOBOX::SetSelectedSymbol().
|
overrideinherited |
Definition at line 108 of file filter_combobox.cpp.
|
inline |
Definition at line 59 of file symbol_filter_combobox.cpp.
References m_symbolList, and FILTER_COMBOPOPUP::rebuildList().
Referenced by SYMBOL_FILTER_COMBOBOX::SetSymbolList().
|
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().
|
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().
|
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().
|
private |
Definition at line 79 of file symbol_filter_combobox.cpp.
Referenced by Accept(), GetStringValue(), and SetSelectedSymbol().
|
private |
Definition at line 80 of file symbol_filter_combobox.cpp.
Referenced by getListContent(), and SetSymbolList().