API Documentation
Loading...
Searching...
No Matches
KeystrokeWidget Class Reference

Allows the user to assign a keystroke to an action by displaying a button with the current keystroke assignment that when clicked, records a new keyboard assignment. More...

#include <KeystrokeWidget.h>

Inheritance diagram for KeystrokeWidget:
[legend]
Collaboration diagram for KeystrokeWidget:
[legend]

Public Member Functions

bool event (QEvent *event) override
 
 KeystrokeWidget (KeyControllerBase *controller, QWidget *parent=nullptr)
 
 KeystrokeWidget (QWidget *parent=nullptr)
 
void resetToDefaults ()
 
void setController (KeyControllerBase *controller)
 
void setShowGrabVolumeKeys (bool show)
 
- Public Member Functions inherited from KeyControllerBase

Protected Member Functions

void cleanup ()
 
bool processKeyEvent (const KeyEvent &key_event, DesignObjectLookup *lookup, Camera *camera) override
 
void setup ()
 
void setup (BasicKeyController *key_controller)
 
void setup (KeyController *key_controller)
 

Protected Attributes

KeyControllerBasem_controller = nullptr
 
Buttonm_current_button = nullptr
 
String m_current_id
 
bool m_is_init = false
 
QGridLayout * m_layout = nullptr
 
QCustomScrollAream_scroll_area = nullptr
 
QBoxLayout * m_scroll_area_layout = nullptr
 
bool m_show_grab_volume_keys = false
 

Detailed Description

Allows the user to assign a keystroke to an action by displaying a button with the current keystroke assignment that when clicked, records a new keyboard assignment.


Constructor & Destructor Documentation

◆ KeystrokeWidget() [1/2]

KeystrokeWidget ( QWidget * parent = nullptr)

◆ KeystrokeWidget() [2/2]

KeystrokeWidget ( KeyControllerBase * controller,
QWidget * parent = nullptr )

Member Function Documentation

◆ cleanup()

void cleanup ( )
protected

◆ event()

bool event ( QEvent * event)
override

◆ processKeyEvent()

bool processKeyEvent ( const KeyEvent & key_event,
DesignObjectLookup * lookup,
Camera * camera )
overrideprotectedvirtual

Implements KeyControllerBase.

◆ resetToDefaults()

void resetToDefaults ( )

◆ setController()

void setController ( KeyControllerBase * controller)

◆ setShowGrabVolumeKeys()

void setShowGrabVolumeKeys ( bool show)

◆ setup() [1/3]

void setup ( )
protected

◆ setup() [2/3]

void setup ( BasicKeyController * key_controller)
protected

◆ setup() [3/3]

void setup ( KeyController * key_controller)
protected

Member Data Documentation

◆ m_controller

KeyControllerBase* m_controller = nullptr
protected

◆ m_current_button

Button* m_current_button = nullptr
protected

◆ m_current_id

String m_current_id
protected

◆ m_is_init

bool m_is_init = false
protected

◆ m_layout

QGridLayout* m_layout = nullptr
protected

◆ m_scroll_area

QCustomScrollArea* m_scroll_area = nullptr
protected

◆ m_scroll_area_layout

QBoxLayout* m_scroll_area_layout = nullptr
protected

◆ m_show_grab_volume_keys

bool m_show_grab_volume_keys = false
protected

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