-
Notifications
You must be signed in to change notification settings - Fork 1
/
mainwindow.h
74 lines (60 loc) · 1.93 KB
/
mainwindow.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include "fixparameterdialog.h"
#include "jumpjump.h"
#include "jumpcontroller.h"
#include <QTimer>
#include <QProcess>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
signals:
void sendCurrentJumpLog(double *log);
public slots:
void receiveAdjustedParameterValue(double delta,int index);
void receiveAdjustedGlobalJumpParamter(double delta);
private slots:
void on_pushButtonJump_clicked();
void on_pushButtonFindAdb_clicked();
void on_pushButtonGetScreenshotImage_clicked();
void on_pushButtonRefreshAdb_clicked();
void on_pushButtonTest_clicked();
void on_pushButtonLoadTemplate_clicked();
void on_pushButtonUpdateProcessedImage_clicked();
void on_radioButtonManualJump_clicked();
void on_radioButtonAutoJump_clicked();
void on_pushButtonSwitchAutoJump_clicked();
void on_pushButtonTestSaveInputImage_clicked();
void on_lineEditDistanceParameter_editingFinished();
void receiveWidgetShowImageClickedPosInImage(int x,int y);
void receiveMatScreenshotAndProcess(cv::Mat img);
void receiveJumpControllerMessage(QString msg);
void receiveSaveCorrectionsAction(QString path);
void on_pushButtonLoadIniFile_clicked();
void on_pushButtonFixPatameters_clicked();
void setPushButtonFixParametersEnable();
private:
void showImage(QImage &src);
void showImage(cv::Mat &src);
void updateLables();
void showAdbServiceInitFailedMsgBox();
void showNoDeviceDetectedMsgBox();
Ui::MainWindow *ui;
QImage qImageScreenShot;
cv::Mat matScreenShot;
QImage qImageTemplate;
cv::Mat matTemplate;
JumpJump jumpGame;
bool isAutoJumpModeSelected = false;
bool isAutoJumpActived = false;
QString adbFilePath;
JumpController controller;
};
#endif // MAINWINDOW_H