KiCad PCB EDA Suite
Loading...
Searching...
No Matches
FILTER_COMBOBOX Class Reference

A combobox that has a filterable popup. More...

#include <filter_combobox.h>

Inheritance diagram for FILTER_COMBOBOX:
NET_SELECTOR SYMBOL_FILTER_COMBOBOX

Public Member Functions

 FILTER_COMBOBOX (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0)
 
 FILTER_COMBOBOX (wxWindow *parent, wxWindowID id, const wxString &value, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, int count=0, wxString strings[]=nullptr, long style=0)
 
 ~FILTER_COMBOBOX ()
 
virtual void SetStringList (const wxArrayString &aStringList)
 
virtual void SetSelectedString (const wxString &aString)
 

Protected Member Functions

void setFilterPopup (FILTER_COMBOPOPUP *aPopup)
 
void onKeyDown (wxKeyEvent &aEvt)
 

Protected Attributes

FILTER_COMBOPOPUPm_filterPopup
 

Detailed Description

A combobox that has a filterable popup.

Useful when the list of items is long and you want the user to be able to filter it by typing.

Definition at line 121 of file filter_combobox.h.

Constructor & Destructor Documentation

◆ FILTER_COMBOBOX() [1/2]

FILTER_COMBOBOX::FILTER_COMBOBOX ( wxWindow *  parent,
wxWindowID  id,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
long  style = 0 
)

Definition at line 440 of file filter_combobox.cpp.

References onKeyDown().

◆ FILTER_COMBOBOX() [2/2]

FILTER_COMBOBOX::FILTER_COMBOBOX ( wxWindow *  parent,
wxWindowID  id,
const wxString &  value,
const wxPoint &  pos = wxDefaultPosition,
const wxSize &  size = wxDefaultSize,
int  count = 0,
wxString  strings[] = nullptr,
long  style = 0 
)

Definition at line 452 of file filter_combobox.cpp.

References m_filterPopup, and setFilterPopup().

◆ ~FILTER_COMBOBOX()

FILTER_COMBOBOX::~FILTER_COMBOBOX ( )

Definition at line 465 of file filter_combobox.cpp.

References onKeyDown().

Member Function Documentation

◆ onKeyDown()

void FILTER_COMBOBOX::onKeyDown ( wxKeyEvent &  aEvt)
protected

Definition at line 490 of file filter_combobox.cpp.

References m_filterPopup, and FILTER_COMBOPOPUP::OnStartingKey().

Referenced by FILTER_COMBOBOX(), and ~FILTER_COMBOBOX().

◆ setFilterPopup()

void FILTER_COMBOBOX::setFilterPopup ( FILTER_COMBOPOPUP aPopup)
protected

◆ SetSelectedString()

void FILTER_COMBOBOX::SetSelectedString ( const wxString &  aString)
virtual

◆ SetStringList()

void FILTER_COMBOBOX::SetStringList ( const wxArrayString &  aStringList)
virtual

Member Data Documentation

◆ m_filterPopup

FILTER_COMBOPOPUP* FILTER_COMBOBOX::m_filterPopup
protected

The documentation for this class was generated from the following files: