functiontestwindow.h
1.08 KB
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
#ifndef FUNCTIONTESTWINDOW_H
#define FUNCTIONTESTWINDOW_H
#include <QMainWindow>
#include <QKeyEvent>
namespace Ui {
class FunctionTestWindow;
}
class FunctionTestWindow : public QMainWindow
{
Q_OBJECT
public:
explicit FunctionTestWindow(QWidget *parent = 0);
~FunctionTestWindow();
protected:
void keyPressEvent(QKeyEvent *event);
void keyReleaseEvent(QKeyEvent *event);
private slots:
void on_burnerTestButton_clicked();
void on_componentTestButton_clicked();
void on_valveTestButton_clicked();
void on_washTestButton_clicked();
void on_fanTestButton_clicked();
void on_gasTestButton_clicked();
void on_upperGasTestButton_clicked();
void on_lowerGasTestButton_clicked();
void on_steamGasTestButton_clicked();
void on_adjustBlowerFan_clicked();
private:
Ui::FunctionTestWindow *ui;
QWidget *pushed = NULL;
void onEncoderLeft();
void onEncoderRight();
void onEncoderClicked(QWidget *clicked);
bool readFromRpmFile(QMap<QString, uint32_t> &rpm_map, const QString &filename);
};
#endif // FUNCTIONTESTWINDOW_H