-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmainwindow.h
95 lines (60 loc) · 1.74 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/*
* Copyright (c) [2016], [Curt Meyers]
* All rights reserved.
*/
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <thread>
#include "test.h"
#include "test_thread.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private slots:
void on_pushButton_2_clicked();
void on_pushButton_3_clicked();
void on_pushButton_4_clicked();
void on_testInitButton_pressed();
void on_testInitButton_released();
void on_testStrobeButton_pressed();
void on_testStrobeButton_released();
void on_testSelectButton_pressed();
void on_testSelectButton_released();
void on_testDataSlider_valueChanged(int value);
void on_testDataButton_toggled(bool checked);
void on_testDataValue_overflow();
void on_testControlButton_toggled(bool checked);
void on_testControlSlider_valueChanged(int value);
void on_testWatchdogButton_toggled(bool checked);
void on_delayBox_valueChanged(int arg1);
void on_testReadDip_clicked();
void on_testReadCoin_clicked();
void on_testReadFlip_clicked();
void on_testReadMisc_clicked();
void on_testReadRow_clicked();
void on_testReadZero_clicked();
void on_testReadLmpStA_clicked();
void on_testReadLmpStB_clicked();
void on_testReadFusTstA_clicked();
void on_testReadFusTstB_clicked();
public slots:
void messageBox(const QString messsage);
private:
Ui::MainWindow *ui;
Test test;
//std::thread testThread;
int testData_;
int controlData_;
QThread *pWorkerThread_;
TestThread *worker;
long watchdogDelay_;
void readThis(uint8_t reg);
};
#endif // MAINWINDOW_H