78 lines
1.4 KiB
C++
78 lines
1.4 KiB
C++
#ifndef SETTINGWIDGET_H
|
|
#define SETTINGWIDGET_H
|
|
|
|
#include <QWidget>
|
|
#include <QButtonGroup>
|
|
#include <QTimer>
|
|
#include "maiboxueyangdialog.h"
|
|
|
|
namespace Ui {
|
|
class SettingWidget;
|
|
}
|
|
|
|
class SettingWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit SettingWidget(QWidget *parent = nullptr);
|
|
~SettingWidget();
|
|
|
|
private slots:
|
|
|
|
void on_resetPassword_Btn_clicked();
|
|
|
|
|
|
void on_bioelectricity_Btn_clicked();
|
|
|
|
void on_systemSetting_Btn_clicked();
|
|
|
|
void on_secretManage_Btn_clicked();
|
|
|
|
void on_productMsg_Btn_clicked();
|
|
|
|
void on_cancelPassword_Btn_clicked();
|
|
|
|
void on_savePassword_Btn_clicked();
|
|
|
|
void slotCheckTimerSlot();
|
|
|
|
void on_reset_Btn_clicked();
|
|
|
|
void on_CH_RadioButton_toggled(bool checked);
|
|
|
|
void on_EN_RadioButton_toggled(bool checked);
|
|
|
|
void on_Up_Btn_clicked();
|
|
|
|
void on_down_Btn_clicked();
|
|
|
|
//扭矩选择
|
|
void on_torque_Radio_clicked();
|
|
|
|
void on_FESConfig_Btn_clicked();
|
|
|
|
void on_OpenFES_Btn_clicked();
|
|
|
|
|
|
|
|
protected:
|
|
virtual void changeEvent(QEvent* event);
|
|
|
|
virtual void showEvent(QShowEvent *event);
|
|
private:
|
|
void initWidget();
|
|
|
|
//获取版本号
|
|
void getVersion();
|
|
private:
|
|
Ui::SettingWidget *ui;
|
|
QButtonGroup *m_buttonGroup;
|
|
QTimer *checkTimer;
|
|
bool fesAState,fesBState,bioelectricityState;
|
|
int8_t m_powerLevel;
|
|
MaiBoXueyangDialog *m_mainBoXueyang;
|
|
};
|
|
|
|
#endif // SETTINGWIDGET_H
|