mainwidget.h 877 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #ifndef MAINWIDGET_H
  2. #define MAINWIDGET_H
  3. #include <QTimer>
  4. #include <QWidget>
  5. #include "homewidget.h"
  6. #include "runchwiget.h"
  7. #include "thresholdlistwidget.h"
  8. #include "runlogwidget.h"
  9. namespace Ui {
  10. class MainWidget;
  11. }
  12. class MainWidget : public QWidget
  13. {
  14. Q_OBJECT
  15. public:
  16. explicit MainWidget(QWidget *parent = nullptr);
  17. ~MainWidget();
  18. //初始化窗口
  19. void InitWidget();
  20. void UpdateLogData();
  21. void UpdateTemp(QString strT,QString strH);
  22. public slots:
  23. void slot_TimerUpdate();
  24. void slot_BtnHome();
  25. void slot_BtnUp();
  26. void slot_BtnDown();
  27. void slot_SwitchWnd(int nIndex);
  28. void slot_UpdateData();
  29. private:
  30. Ui::MainWidget *ui;
  31. QTimer* m_pTimer;
  32. int nIndex;
  33. HomeWidget* m_pHome;
  34. RunChWiget* m_pCH;
  35. ThresholdListWidget*m_pThreshold;
  36. RunLogWidget* m_pLogWidget;
  37. };
  38. #endif // MAINWIDGET_H