DiagnosisPage.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. // *****************************************************************************
  2. // 版权所有(C)2023~2099 上海骄成超声波技术有限公司
  3. // 保留所有权利
  4. // *****************************************************************************
  5. // 作者 : 杨坚
  6. // 版本 : 1.0
  7. // 功能说明:
  8. // 诊断页面
  9. // *****************************************************************************
  10. #ifndef __DIAGNOSISPAGE_H__
  11. #define __DIAGNOSISPAGE_H__ 1
  12. #include <QWidget>
  13. #include <QPointer>
  14. #include "QStandardItemModel"
  15. #include "ui_DiagnosisPage.h"
  16. #include "CViewInterface.h"
  17. class DiagnosisPage : public QWidget
  18. {
  19. Q_OBJECT
  20. public:
  21. DiagnosisPage(QWidget *parent = nullptr);
  22. ~DiagnosisPage();
  23. private:
  24. void Init();
  25. /**切换操作轴页面
  26. */
  27. void SwitchOperationAxisPage(bool isSwitch);
  28. void timerEvent(QTimerEvent* event) override;
  29. private slots:
  30. void on_axisListTree_doubleClicked(const QModelIndex& index);
  31. void on_xAxisDisable_clicked();
  32. void on_xAxisHomeBut_clicked();
  33. void on_setPosBut_clicked();
  34. void on_setNegBut_clicked();
  35. void on_setSpeedBut_clicked();
  36. void on_retBut_clicked();
  37. private:
  38. Ui::DiagnosisPageClass ui;
  39. /**树指针
  40. */
  41. QStandardItemModel* m_model = nullptr;
  42. /**所有轴指针
  43. */
  44. std::vector<CAxis*> m_veCAxis;
  45. /**当前轴指针
  46. */
  47. //std::unique_ptr<CAxis> m_pCurrOpenCAxis;
  48. CAxis* m_pCurrOpenCAxis = nullptr;
  49. /**使能
  50. */
  51. bool m_IsDriveEnabled = false;
  52. /**定时获取位置
  53. */
  54. int m_nTimerID = -1;
  55. };
  56. #endif //__DIAGNOSISPAGE_H__