operationtimeparts.h
1.2 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
#ifndef OPERATIONTIMEPARTS_H
#define OPERATIONTIMEPARTS_H
#include <QMainWindow>
#include <qlabel.h>
#include <qbuttongroup.h>
#include <qpushbutton.h>
#include "servicedata.h"
#define OPERATION_TIME_CONTROL_MAX 11
#define OPERATION_TIME_PARTS_MAX_ITEM 10
namespace Ui {
class OperationTimeParts;
}
class OperationTimeParts : public QMainWindow
{
Q_OBJECT
public:
explicit OperationTimeParts(QWidget *parent = 0);
~OperationTimeParts();
private slots:
void on_backButton_clicked();
void onBtnResetsClicked(int);
protected:
void keyPressEvent(QKeyEvent *event);
void keyReleaseEvent(QKeyEvent *event);
private:
const uint16_t m_arrPartItemIdxs[OPERATION_TIME_PARTS_MAX_ITEM] = {
USE_ITEM_door_open,USE_ITEM_dv_open,USE_ITEM_ssv_open,USE_ITEM_qnv_open,USE_ITEM_snv_open,
0xffff, USE_ITEM_ssp_open, USE_ITEM_hdm_open, USE_ITEM_dp_open, USE_ITEM_unp_open
};
uint32_t* m_arrUseItems[OPERATION_TIME_PARTS_MAX_ITEM];
QLabel* m_arrTimeLabels[OPERATION_TIME_CONTROL_MAX];
QPushButton* m_arrResetBtn[OPERATION_TIME_CONTROL_MAX];
QButtonGroup* m_btnGrops;
Ui::OperationTimeParts *ui;
void reloadUi(void);
};
#endif // OPERATIONTIMEPARTS_H