API Documentation
Loading...
Searching...
No Matches
KeystrokeWidget.h
Go to the documentation of this file.
1#pragma once
2#include "DLLInfo.h"
3#include <NDEVR/KeyController.h>
4#include <NDEVR/String.h>
5#include <QWidget>
6class QBoxLayout;
7class QGridLayout;
8namespace NDEVR
9{
10 class QCustomLabel;
11 class Button;
12 class Toggle;
13 class QCustomScrollArea;
15 {
16 public:
17 KeystrokeWidget(QWidget* parent = nullptr);
18 KeystrokeWidget(KeyControllerBase* controller, QWidget* parent = nullptr);
19 void setController(KeyControllerBase* controller);
20 void setShowGrabVolumeKeys(bool show);
21 bool event(QEvent* event) override;
22 void resetToDefaults();
23 protected:
24 void setup();
25 void setup(KeyController* key_controller);
26 void setup(BasicKeyController* key_controller);
27 bool processKeyEvent(const KeyEvent& key_event, DesignObjectLookup* lookup, Camera* camera) override;
28 void cleanup();
29 protected:
31 bool m_is_init = false;
32 KeyControllerBase* m_controller = nullptr;
33 QCustomScrollArea* m_scroll_area = nullptr;
34 QBoxLayout* m_scroll_area_layout = nullptr;
35 QGridLayout* m_layout = nullptr;
36 Button* m_current_button = nullptr;
37 bool m_show_grab_volume_keys = false;
38 };
39}
#define NDEVR_WIDGETS_API
Definition DLLInfo.h:81
The core class for assigning actions to key-presses and registering them as a program-wide service.
Definition KeyController.h:61
Definition Button.h:60
Definition DesignObjectLookup.h:61
Definition KeyController.h:45
Definition KeyController.h:78
Definition Event.h:42
Definition KeystrokeWidget.h:15
String m_current_id
Definition KeystrokeWidget.h:30
Definition QCustomScrollArea.h:9
Definition String.h:40
Definition ACIColor.h:37