79 lines
1.9 KiB
C++
79 lines
1.9 KiB
C++
#ifndef TRAININGPARAMSETTING_H
|
||
#define TRAININGPARAMSETTING_H
|
||
|
||
#include <QWidget>
|
||
#include "dataformate.h"
|
||
|
||
namespace Ui {
|
||
class TrainingParamSetting;
|
||
}
|
||
|
||
class TrainingParamSetting : public QWidget
|
||
{
|
||
Q_OBJECT
|
||
|
||
public:
|
||
explicit TrainingParamSetting(QWidget *parent = nullptr);
|
||
~TrainingParamSetting();
|
||
ST_BicycleParam get_st_bicycleParam();
|
||
|
||
void setTrainType(bool type); //点击保存,是显示单车训练还是fes单车训练
|
||
protected:
|
||
void showEvent(QShowEvent *event);
|
||
|
||
virtual void changeEvent(QEvent* event);
|
||
|
||
void initWidget();
|
||
signals:
|
||
void signalTrainParamChanged(ST_BicycleParam);
|
||
|
||
public slots:
|
||
void slotBicycleParamChanged(ST_BicycleParam);
|
||
|
||
void slotResetParam(); //在主训练界面,重新设置训练参数
|
||
|
||
private slots:
|
||
void on_confirm_Btn_clicked();
|
||
|
||
//速度大于30,提示
|
||
void on_speed1_ComboBox_currentTextChanged(const QString &arg1);
|
||
//void on_CW1_Button_clicked(bool checked);
|
||
|
||
void on_CW1_Button_toggled(bool checked);
|
||
|
||
void on_ACW1_Button_toggled(bool checked);
|
||
|
||
void on_spasmHigh1_Button_toggled(bool checked);
|
||
|
||
void on_spasmMidd1_Button_toggled(bool checked);
|
||
|
||
void on_spasmLow1_Button_toggled(bool checked);
|
||
|
||
// void on_spasmClose1_Button_clicked();
|
||
|
||
// void on_upSpeedPlus_Btn_clicked();
|
||
|
||
// void on_upSpeedMinus_Btn_clicked();
|
||
|
||
void on_spasmClose1_Button_toggled(bool checked);
|
||
|
||
void on_upSpeedPlus_Btn_pressed();
|
||
|
||
void on_upSpeedMinus_Btn_pressed();
|
||
|
||
// void on_spasmClose1_Button_clicked();
|
||
|
||
// void on_spasmClose1_Button_clicked();
|
||
|
||
private:
|
||
Ui::TrainingParamSetting *ui;
|
||
int m_turnState;
|
||
ST_BicycleParam m_st_bicycleParam;
|
||
bool m_IsImportPrescription;//之前是否发生了导入处方
|
||
int m_userID; //再次进入参数页面,不再刷新
|
||
bool m_saveParamInWidget;
|
||
bool m_trainType; //保存之后,是否显示fes的训练管理
|
||
};
|
||
|
||
#endif // TRAININGPARAMSETTING_H
|