138 lines
3.6 KiB
C++
138 lines
3.6 KiB
C++
#ifndef ARMORLEG_H
|
||
#define ARMORLEG_H
|
||
|
||
#include <QWidget>
|
||
#include <QSound>
|
||
#include "Prescriptiondialog.h"
|
||
#include "dataformate.h"
|
||
#include "machinestartdialog.h"
|
||
#include "verticaltohorizondialog.h"
|
||
#include "horizontaltoverticaldialog.h"
|
||
#include "protectgamestart.h"
|
||
|
||
class AdvancedDialog;
|
||
namespace Ui {
|
||
class ArmOrLeg;
|
||
}
|
||
|
||
class ArmOrLeg : public QWidget
|
||
{
|
||
Q_OBJECT
|
||
|
||
public:
|
||
explicit ArmOrLeg(QWidget *parent = nullptr);
|
||
~ArmOrLeg();
|
||
|
||
/*****设置训练类型****
|
||
* 参数@int8_t type 0-单踏车 1-FES踏车
|
||
* *****/
|
||
void setTrainType(int8_t type);
|
||
|
||
//保存训练界面所有参数,便于导入处方
|
||
void saveTrainParam();
|
||
signals:
|
||
//发送数据库的训练参数,给参数展示页面
|
||
void signalBicycleParamChanged(ST_BicycleParam);
|
||
void signalGetBicycleParam();
|
||
void saveUpPictureSignal(); //让提title页面保存上面的截图
|
||
|
||
protected:
|
||
void showEvent(QShowEvent *event);
|
||
|
||
virtual void changeEvent(QEvent* event);
|
||
|
||
public slots:
|
||
//从电刺激界面开启游戏
|
||
void slotStartGame();
|
||
void slotRecvTrainParamChanged(ST_BicycleParam);
|
||
|
||
private slots:
|
||
//void on_upDownLimp_RadioButton_toggled(bool checked);
|
||
|
||
void on_advanced1_Btn_clicked();
|
||
|
||
void on_upAdvanced2_Btn_clicked();
|
||
|
||
void on_downAdvanced2_Btn_clicked();
|
||
|
||
void on_next_Btn_clicked();
|
||
|
||
void on_confirm_Btn_clicked();
|
||
|
||
// void on_spasmClose2_RadioButton_toggled(bool checked);
|
||
|
||
// void on_spasmClose1_RadioButton_toggled(bool checked);
|
||
|
||
// void on_speed1_ComboBox_currentTextChanged(const QString &arg1);
|
||
|
||
void on_upSpeed2_ComboBox_currentTextChanged(const QString &arg1);
|
||
|
||
//导出处方信息
|
||
void on_importPrescription_Btn_clicked();
|
||
|
||
// void on_verticalUpLimp_RadioButton_toggled(bool checked);
|
||
|
||
// void on_downLimp_RadioButton_toggled(bool checked);
|
||
|
||
void on_moreConfigure_Btn_clicked();
|
||
|
||
void on_upLimp_Button_toggled(bool checked);
|
||
|
||
void on_verticalUpLimp_Button_toggled(bool checked);
|
||
|
||
void on_downLimp_Button_toggled(bool checked);
|
||
|
||
void on_upDownLimp_Button_toggled(bool checked);
|
||
|
||
void on_activePassive1_Button_toggled(bool checked);
|
||
|
||
void on_passive1_Button_toggled(bool checked);
|
||
|
||
void on_active1_Button_toggled(bool checked);
|
||
|
||
void on_assistant1_Button_toggled(bool checked);
|
||
|
||
void on_speedTrain_Button_toggled(bool checked);
|
||
|
||
void on_forward_Btn_clicked();
|
||
|
||
void on_backward_Btn_clicked();
|
||
|
||
void on_YiJianShangJi_Btn_clicked();
|
||
|
||
|
||
private:
|
||
void initWidget();
|
||
|
||
void startFESGamme();
|
||
|
||
private:
|
||
Ui::ArmOrLeg *ui;
|
||
AdvancedDialog *m_advanceDialog;
|
||
bool m_gameState;
|
||
PrescriptionDialog *m_prescriptionDialog;
|
||
MachineStartDialog *m_machineStartDialog;
|
||
ProtectGameStart *m_protectGameStart;
|
||
VerticalToHorizonDialog *m_verticalToHorizontal;
|
||
HorizontalToVerticalDialog *m_horizontalToVertical;
|
||
ST_BicycleParam m_st_bicycleParam; //从训练界面接收参数
|
||
|
||
int m_checkedGame;
|
||
|
||
int m_userID; //保存当前用户,一旦修改用户调整参数
|
||
int m_gameIDChecked; //所选择的游戏
|
||
|
||
bool m_isImportParamWidget; //是否从导入参数界面进来
|
||
|
||
bool isClickedSave; //是否在参数界面点接了保存数据,这样不断返回也不清空m_st_bicycleParam的参数
|
||
|
||
// bool m_handState; //手的状态是垂直还是水平,出现提示框,0水平,1垂直
|
||
bool isMoreConfgClick; //是否从参数页面进来
|
||
|
||
int m_isClickedGameStart; //是否点击了游戏开始,0进入游戏。1不进入游戏,防止新游戏被Windows阻塞两次开启游戏
|
||
|
||
int m_trainType; //0是单他车、1为FES塌车
|
||
};
|
||
|
||
#endif // ARMORLEG_H
|