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 )

◆ 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 458 of file filter_combobox.cpp.

References FILTER_COMBOBOX(), m_filterPopup, and setFilterPopup().

◆ ~FILTER_COMBOBOX()

FILTER_COMBOBOX::~FILTER_COMBOBOX ( )

Definition at line 471 of file filter_combobox.cpp.

References onKeyDown().

Member Function Documentation

◆ onKeyDown()

void FILTER_COMBOBOX::onKeyDown ( wxKeyEvent & aEvt)
protected

Definition at line 496 of file filter_combobox.cpp.

References m_filterPopup.

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

Reimplemented in NET_SELECTOR.

Definition at line 483 of file filter_combobox.cpp.

References m_filterPopup.

◆ SetStringList()

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

Definition at line 477 of file filter_combobox.cpp.

References m_filterPopup.

Member Data Documentation

◆ m_filterPopup

FILTER_COMBOPOPUP* FILTER_COMBOBOX::m_filterPopup
protected

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