代码拉取完成,页面将自动刷新
#ifndef MOMENTCURVESETTING_H
#define MOMENTCURVESETTING_H
#include <QWidget>
#include <QRadioButton>
#include "datadictionary.h"
namespace Ui {
class MomentCurveSetting;
}
/*
名称 起始重量 起始幅度 中间重量 中间幅度 终止重量 终止幅度
QTZ40 2倍率 2 20 1.2 33 0.829 45
QTZ40 4倍率 4 11 2 20 0.829 45
QTZ50 2倍率 2 28 1.648 33 1.123 45
QTZ50 4倍率 4 15 2 28 1.123 45
QTZ60 2倍率 2 28 1.682 33 1.147 45
QTZ60 4倍率 4 15 2 28 1.147 45
QTZ80H 2倍率 4 21 1.2 33 1.79 46
QTZ80H 4倍率 8 12.9 4 21 1.72 46
*/
typedef struct
{
double fStartWeight;
double fStartScope;
double fMidWeight;
double fMidScope;
double fEndWeight;
double fEndScope;
}QuickConfData_t;
class MomentCurveSetting : public QWidget
{
Q_OBJECT
public:
explicit MomentCurveSetting(QWidget *parent = nullptr);
~MomentCurveSetting();
protected:
void showEvent(QShowEvent *event);
void hideEvent(QHideEvent *event);
private slots:
void DevParamDataChangeProcess(DevParamDataIndex_t index);
void on_QuiteButton_clicked();
void on_StartWeight_returnPressed();
void on_StartScope_returnPressed();
void on_MidWeigh_returnPressed();
void on_MidScope_returnPressed();
void on_EndWeiht_returnPressed();
void on_EndScope_returnPressed();
void on_WeightAlarmEnable_clicked();
void on_WeightAlarmUnable_clicked();
void on_comboBox_currentTextChanged(const QString &arg1);
private:
void Display();
template<class T>
void SetDevParamData(DevParamDataIndex_t Index,T Data);
void SetAllAlias();
void SetButtonSta(bool Sta, QRadioButton *EnableButton, QRadioButton *UnableBooton, bool UpdateFlg = true);
void SetQRadioButtonStyleSheet(QRadioButton *button,bool s);
void SetQRadioButtonStyleSheet();
void SetQuickConf(int index);
private:
Ui::MomentCurveSetting *ui;
DataDictionary *m_DataDictionary;
QList<QuickConfData_t> m_QuickConfList;
QuickConfData_t DefaultData[8] = {
{2,20,1.2,33,0.829,45},
{4,11,2,20,0.829,45},
{2,28,1.648,33,1.123,45},
{4,15,2,28,1.123,45},
{2,28,1.682,33,1.147,45},
{4,15,2,28,1.147,45},
{4,21,1.2,33,1.79,46},
{8,12.9,4,21,1.72,46},
};
};
#endif // MOMENTCURVESETTING_H
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。