You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
82 lines
2.5 KiB
C++
82 lines
2.5 KiB
C++
#ifndef ADVANCESETUPWIDGET_H
|
|
#define ADVANCESETUPWIDGET_H
|
|
|
|
#include <QWidget>
|
|
#include "Common.h"
|
|
#include <Qtxlsx>
|
|
|
|
namespace Ui {
|
|
class AdvanceSetupWidget;
|
|
}
|
|
|
|
class AdvanceSetupWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit AdvanceSetupWidget(QWidget *parent = nullptr);
|
|
~AdvanceSetupWidget();
|
|
|
|
// 初始化
|
|
void init();
|
|
|
|
void processSetPasswordRsp(QString portName, QByteArray data);
|
|
void processSetUsageCountRsp(QString portName, QByteArray data);
|
|
void processSetParamRsp(QString portName, QByteArray data);
|
|
void processSetParamTorqueRsp(QString portName, QByteArray data);
|
|
void processSetParamBoltRsp(QString portName, QByteArray data);
|
|
void processSetParamAngleRsp(QString portName, QByteArray data);
|
|
void processSetParamGearRsp(QString portName, QByteArray data);
|
|
void processSetParamSensorRsp(QString portName, QByteArray data);
|
|
void processSetParamFallbackRsp(QString portName, QByteArray data);
|
|
void processSetLockStatusRsp(QString portName, QByteArray data);
|
|
|
|
void waitForIdle();
|
|
|
|
void setType(int type);
|
|
void showTypeDefault();
|
|
void showType1();
|
|
void showType2();
|
|
void showType4();
|
|
void showType8();
|
|
|
|
private slots:
|
|
void slot_pushButtonTorqueModeSettingsOpenFile_clicked();
|
|
void slot_pushButtonBoltModeSettingsOpenFile_clicked();
|
|
void slot_pushButtonAngleModeSettingsOpenFile_clicked();
|
|
void slot_pushButtonGearPresetModeSettingsOpenFile_clicked();
|
|
void slot_pushButtonSensorModeSettingsOpenFile_clicked();
|
|
void slot_pushButtonMenuInterfaceSettingsOpenFile_clicked();
|
|
|
|
void slot_pushButtonTorqueModeSettings_clicked();
|
|
void slot_pushButtonBoltModeSettings_clicked();
|
|
void slot_pushButtonAngleModeSettings_clicked();
|
|
void slot_pushButtonGearPresetModeSettings_clicked();
|
|
void slot_pushButtonSensorModeSettings_clicked();
|
|
void slot_pushButtonMenuInterfaceSettings_clicked();
|
|
void slot_pushButtonFallbackSettings_clicked();
|
|
|
|
void slot_pushButtonToolsLockSettings_clicked();
|
|
|
|
void slot_recvData(QString portName, unsigned char cmd, QByteArray recvData);
|
|
void on_lineEditFallbackAngle_textChanged(const QString &arg1);
|
|
|
|
void on_lineEditFallbackAnglecoefficient_textChanged(const QString &arg1);
|
|
|
|
void on_lineEditFallbackAnglecoefficient_2_textChanged(const QString &arg1);
|
|
|
|
private:
|
|
Ui::AdvanceSetupWidget *ui;
|
|
|
|
// Excel操作
|
|
//QString m_fileName;
|
|
|
|
//
|
|
QString m_fallbackAngle;
|
|
QString m_fallbackAmpere;
|
|
QString m_fallbackAmpere_2;
|
|
int m_type;
|
|
};
|
|
|
|
#endif // ADVANCESETUPWIDGET_H
|