56 wxCommandEvent changeEvent( FILTERED_ITEM_SELECTED );
57 wxPostEvent( GetComboCtrl(), changeEvent );
74 if( filterString.IsEmpty() ||
kNoParentSymbol.Lower().Matches( filterString ) )
80 if( filterString.IsEmpty() || symbol.Lower().Contains( filterString.Lower() ) )
81 aListContent.push_back( symbol );
91 const wxSize& size,
long style ) :
94 std::unique_ptr<SYMBOL_FILTER_COMBOPOPUP> popup = std::make_unique<SYMBOL_FILTER_COMBOPOPUP>();
117 return wxEmptyString;
A combobox that has a filterable popup.
void setFilterPopup(std::unique_ptr< FILTER_COMBOPOPUP > aPopup)
SYMBOL_FILTER_COMBOPOPUP * m_selectorPopup
void SetSelectedSymbol(const wxString &aSymbolName)
void SetSymbolList(const wxArrayString &aSymbolList)
SYMBOL_FILTER_COMBOBOX(wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0)
wxString GetValue() const override
static const wxString kNoParentSymbol("<do not derive>")