/
machineexame.h
63 lines (49 loc) · 1.37 KB
/
machineexame.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
#ifndef MACHINEEXAME_H
#define MACHINEEXAME_H
#include "ui_machineexame.h"
#include<QTimer>
#include<QSignalMapper>
class QMdLabel;
class QComm;
class QHMIData;
class machineexame : public QWidget, private Ui::machineexame
{
Q_OBJECT
public:
explicit machineexame(QComm *comm,QHMIData *data, QWidget *parent = 0);
void prepareToComm();
protected:
virtual void timerEvent ( QTimerEvent * event );
signals:
void DataChange(unsigned short index,QVariant Val);
private slots:
void on_pushButton_cancle_clicked();
void headTest(bool checked);
void on_pushButton_7_toggled(bool checked);
void on_pushButton_5_toggled(bool checked);
void on_pushButton_6_toggled(bool checked);
void on_pushButton_4_toggled(bool checked);
void zsdtest(int zsd);
void on_spinBox_3_valueChanged(int arg1);
void on_spinBox_valueChanged(int arg1);
void on_spinBox_2_valueChanged(int arg1);
void luolaTest();
void fuzuLuolaTest();
void yaochuangTest(double val);
void on_pushButton_fz_toggled(bool checked);
private:
int timerid;
bool timereventrecursion;
QComm *pcomm;
QHMIData *hmidata;
QMdLabel *wlabel[32];
QSignalMapper zsdsignalmap;
int mainmotordir;
int mainmotorspeed;
int fuzuluoladir;
int fuzuluolaval;
int luoladir;
int luolaval;
int luolapulsorpercent;
};
#endif // MACHINEEXAME_H