forked from TuxSH/InputRedirectionClient-Qt
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmainwidget.h
53 lines (41 loc) · 1.31 KB
/
mainwidget.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#ifndef MAINWIDGET_H
#define MAINWIDGET_H
#include "global.h"
#include <QMessageBox>
#include <QVariant>
#include <QScreen>
#include <QGroupBox>
#include <QRadioButton>
#include "touchscreen.h"
#include "configwindow.h"
#include "gpconfigurator.h"
class Widget : public QWidget
{
public:
TouchScreen *touchScreen;
QString version = QCoreApplication::applicationVersion();
Widget(QWidget *parent = nullptr);
void show(void);
void closeEvent(QCloseEvent *ev);
//Move touchscreen window with main window if moved
void moveEvent(QMoveEvent *event);
//When main window is opened, load shortcut settings
void showEvent(QShowEvent *event);
virtual ~Widget(void);
private slots:
void ShowContextMenu(const QPoint &pos);
private:
QVBoxLayout *layout;
QFormLayout *formLayout;
QPushButton *homeButton, *powerButton, *longPowerButton, *settingsConfigButton,
*configGamepadButton;
QLineEdit *addrLineEdit;
QRadioButton *controllerRadio1, *controllerRadio2, *controllerRadio3, *controllerRadio4;
QSlider *touchOpacitySlider;
QLabel *creatorLabel, *titleLabel, *instructionsLabel;
ConfigWindow *settingsConfig;
QPixmap *logo, *title;
QScreen *screen;
QFrame *lineA, *lineB, *lineC;
};
#endif // MAINWIDGET_H