-
Notifications
You must be signed in to change notification settings - Fork 0
/
filter.h
50 lines (42 loc) · 866 Bytes
/
filter.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
#ifndef FILTER_H
#define FILTER_H
#include <QDialog>
namespace Ui {
class Filter;
}
class Filter : public QDialog
{
Q_OBJECT
public:
explicit Filter(quint8 nDeviceId,QWidget *parent = 0);
~Filter();
protected:
enum
{
C_STATUS,
C_VALUE,
V_STATUS,
V_VALUE,
P_STATUS,
P_VALUE,
CALIBRATION_SWITCH,
CALIBRATION_ANGLE,
DATA_CNT,
};
void initDataReference();
void valueChangeByUser();
public:
static void ShowWindowIfNotExist(quint8 nDeviceId);
static void closeFilter();
public slots:
void onTypeChange(int nIdx);
void onValueChange();
void motorDataChange(quint8 nDeviceId,int nId);
private slots:
void on_readAngle_clicked();
private:
Ui::Filter *ui;
int m_nDataRef[DATA_CNT];
quint8 m_nDeviceId;
};
#endif // FILTER_H