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

#include <KeystrokeWidget.h>

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

Public Member Functions

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

Protected Member Functions

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

Protected Attributes

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

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 files: