Vuo  2.0.0
Public Slots | Public Member Functions | List of all members
VuoKeyComboBox Class Reference

Description

A combo box that displays a list of VuoKeys and reacts to keypresses by selecting the corresponding VuoKey.

Definition at line 20 of file VuoKeyComboBox.hh.

Public Slots

void keyPressEvent (QKeyEvent *e)
 Captures all keypresses, and uses them to change the VuoKey selection. More...
 

Public Member Functions

 VuoKeyComboBox (QWidget *parent)
 Creates a combo box populated with a list of all VuoKey values. More...
 
void setCurrentKey (VuoKey key)
 Selects the given VuoKey in the combo box. More...
 
VuoKey getCurrentKey (void)
 Returns the currently selected VuoKey. More...
 
bool eventFilter (QObject *object, QEvent *e)
 Captures all keypresses that would normally go to the child widget (list popup), and uses them to change the VuoKey selection. More...
 
- Public Member Functions inherited from VuoComboBox
 VuoComboBox (QWidget *parent=Q_NULLPTR)
 Creates a new combo box. More...
 
void setItemEnabled (int index, bool enabled)
 Enables or disables an item in a combo box menu. More...
 

Constructor & Destructor Documentation

◆ VuoKeyComboBox()

VuoKeyComboBox::VuoKeyComboBox ( QWidget *  parent)

Creates a combo box populated with a list of all VuoKey values.

Definition at line 93 of file VuoKeyComboBox.cc.

Member Function Documentation

◆ eventFilter()

bool VuoKeyComboBox::eventFilter ( QObject *  object,
QEvent *  e 
)

Captures all keypresses that would normally go to the child widget (list popup), and uses them to change the VuoKey selection.

Definition at line 154 of file VuoKeyComboBox.cc.

◆ getCurrentKey()

VuoKey VuoKeyComboBox::getCurrentKey ( void  )

Returns the currently selected VuoKey.

Definition at line 129 of file VuoKeyComboBox.cc.

◆ keyPressEvent

void VuoKeyComboBox::keyPressEvent ( QKeyEvent *  e)
slot

Captures all keypresses, and uses them to change the VuoKey selection.

Definition at line 138 of file VuoKeyComboBox.cc.

◆ setCurrentKey()

void VuoKeyComboBox::setCurrentKey ( VuoKey  key)

Selects the given VuoKey in the combo box.

Definition at line 119 of file VuoKeyComboBox.cc.


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