Vuo 2.4.4
Loading...
Searching...
No Matches
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.
 

Public Member Functions

 VuoKeyComboBox (QWidget *parent)
 Creates a combo box populated with a list of all VuoKey values.
 
void setCurrentKey (VuoKey key)
 Selects the given VuoKey in the combo box.
 
VuoKey getCurrentKey (void)
 Returns the currently selected VuoKey.
 
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.
 
- Public Member Functions inherited from VuoComboBox
 VuoComboBox (QWidget *parent=Q_NULLPTR)
 Creates a new combo box.
 
void setItemEnabled (int index, bool enabled)
 Enables or disables an item in a combo box menu.
 

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: