#ifndef REALTIMEPARTSWINDOW_H #define REALTIMEPARTSWINDOW_H #include #include #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