forked from Skarsnik/Magic2snes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmagic2snesw.h
54 lines (40 loc) · 1.04 KB
/
magic2snesw.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
54
#ifndef MAGIC2SNESW_H
#define MAGIC2SNESW_H
#include <QMainWindow>
#include <QQuickView>
#include "usb2snes/usb2snes.h"
#include "bit.h"
#include "memory.h"
#include "myqquickview.h"
namespace Ui {
class Magic2Snesw;
}
class Magic2Snesw : public QMainWindow
{
Q_OBJECT
public:
explicit Magic2Snesw(QWidget *parent = 0);
~Magic2Snesw();
void setAndRunScript(QString script);
private slots:
void onRecoTimerTick();
void on_runScriptButton_clicked();
void on_chooseScriptButton_clicked();
void on_qmlViewClosing(QQuickCloseEvent*);
void on_exitButton_clicked();
void onUsb2snesStateChanged();
void closeEvent(QCloseEvent *event);
void on_refreshButton_clicked();
private:
Ui::Magic2Snesw *ui;
QString scriptFile;
MyQQuickView* qmlViewer;
USB2snes* usb2snes;
Memory* memory;
Bit* bit;
bool autoRun;
QSettings* m_settings;
bool scriptRunning;
QTimer reco_timer;
};
#endif // MAGIC2SNESW_H