forked from briankendall/xboxToVJoy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
qmainwidget.h
38 lines (31 loc) · 906 Bytes
/
qmainwidget.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
#ifndef QMAINWIDGET_H
#define QMAINWIDGET_H
#include <QWidget>
#include <QAction>
#include <QCloseEvent>
#include "controllerremapper.h"
#include "controllerwindow.h"
class QMainWidget : public QWidget
{
Q_OBJECT
public:
explicit QMainWidget(bool remapEnabled, QWidget *parent = 0);
void deinitialize();
signals:
public slots:
void error(QString msg);
void showControllerWindow();
void controllerWindowDestroyed();
void appMessageReceived(const QString &message);
void toggleEnabled();
void setRemappingEnabled(bool enabled);
private:
void createTrayIcon();
void startControllerMapperThread();
void closeEvent(QCloseEvent *event);
ControllerRemapper *controllerRemapper;
ControllerWindow *controllerWindow;
QAction *enableAction;
QAction *disableAction;
};
#endif // QMAINWIDGET_H