1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- // *****************************************************************************
- // 版权所有(C)2023~2099 上海骄成超声波技术有限公司
- // 保留所有权利
- // *****************************************************************************
- // 作者 : 杨坚
- // 版本 : 1.0
- // 功能说明:
- // 诊断页面
- // *****************************************************************************
- #ifndef __DIAGNOSISPAGE_H__
- #define __DIAGNOSISPAGE_H__ 1
- #include <QWidget>
- #include <QPointer>
- #include "QStandardItemModel"
- #include "ui_DiagnosisPage.h"
- #include "CViewInterface.h"
- class DiagnosisPage : public QWidget
- {
- Q_OBJECT
- public:
- DiagnosisPage(QWidget *parent = nullptr);
- ~DiagnosisPage();
- private:
- void Init();
- /**切换操作轴页面
- */
- void SwitchOperationAxisPage(bool isSwitch);
- void timerEvent(QTimerEvent* event) override;
- private slots:
- void on_axisListTree_doubleClicked(const QModelIndex& index);
- void on_xAxisDisable_clicked();
- void on_xAxisHomeBut_clicked();
- void on_setPosBut_clicked();
- void on_setNegBut_clicked();
- void on_setSpeedBut_clicked();
- void on_retBut_clicked();
- private:
- Ui::DiagnosisPageClass ui;
- /**树指针
- */
- QStandardItemModel* m_model = nullptr;
- /**所有轴指针
- */
- std::vector<CAxis*> m_veCAxis;
- /**当前轴指针
- */
- //std::unique_ptr<CAxis> m_pCurrOpenCAxis;
- CAxis* m_pCurrOpenCAxis = nullptr;
- /**使能
- */
- bool m_IsDriveEnabled = false;
- /**定时获取位置
- */
- int m_nTimerID = -1;
- };
- #endif //__DIAGNOSISPAGE_H__
|