realtimepartswindow.h
750 Bytes
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
#ifndef REALTIMEPARTSWINDOW_H
#define REALTIMEPARTSWINDOW_H
#include <QMainWindow>
#include <qlabel.h>
#define CONTROL_LIST_COL_MAX 3
#define CONTROL_LIST_ITEM_MAX 8
namespace Ui {
class RealtimePartsWindow;
}
class RealtimePartsWindow : public QMainWindow
{
Q_OBJECT
public:
explicit RealtimePartsWindow(QWidget *parent = 0);
~RealtimePartsWindow();
protected:
void keyPressEvent(QKeyEvent *event);
void keyReleaseEvent(QKeyEvent *event);
private slots:
void on_backButton_clicked();
void oneSecTimerFired(void);
private:
Ui::RealtimePartsWindow *ui;
QLabel *m_arrLbState[CONTROL_LIST_COL_MAX][CONTROL_LIST_ITEM_MAX];
QTimer *timer;
void reloadUi(void);
};
#endif // REALTIMEPARTSWINDOW_H