runchwiget.h 586 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef RUNCHWIGET_H
  2. #define RUNCHWIGET_H
  3. #include <QWidget>
  4. #include "ch_widget.h"
  5. namespace Ui {
  6. class RunChWiget;
  7. }
  8. class RunChWiget : public QWidget
  9. {
  10. Q_OBJECT
  11. public:
  12. explicit RunChWiget(QWidget *parent = nullptr);
  13. ~RunChWiget();
  14. void setRunCh();
  15. void UpdateAllCh();
  16. void ClearCH();
  17. void AddWidget(ch_Widget* pCHWidget);
  18. void initScrollArea();
  19. public slots:
  20. void slot_CtrlCH(int nIndex);
  21. void slot_ALLCHCtrl();
  22. private:
  23. Ui::RunChWiget *ui;
  24. int SaveIndex=0;
  25. QVector<ch_Widget*> m_vecChWidget;
  26. };
  27. #endif // RUNCHWIGET_H