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.
nmWATI/Include/mTool/mToolPvt/iWxPvtUtilOptionG.h

80 lines
1.7 KiB
C++

#pragma once
#include "iWxPvtUtilOption.h"
namespace Ui {
class iWxPvtUtilOptionG;
}
class iWxPvtComposition;
class M_TOOL_PVT_EXPORT iWxPvtUtilOptionG : public iWxPvtUtilOption
{
Q_OBJECT
public:
explicit iWxPvtUtilOptionG(QWidget *parent = 0);
~iWxPvtUtilOptionG();
// 初始化
virtual void initUI();
// 返回数据
virtual bool getParaValue(QString sPara,
float &fValue,
QString sUnitDest = "");
// 文件标识
virtual QString getFilePvtTag();
protected:
// 默认值
virtual void initDefault();
// 刷新H2S/CO2/N2等
void refreshHCN();
// 刷新摩尔
void refreshMole();
// 根据组分计算并刷新相对密度
void calAndFreshPho(QMap<QString, float>& map);
// 计算临界值
void calAndFreshTcPc(QWidget *pSender = NULL);
// 判断数值是否正确
bool checkInputOfHCN(QWidget *pSender = NULL);
virtual void onSerialize(ZxSerializer* ser);
virtual void onDeserialize(ZxSerializer* ser);
private slots:
// 临界计算方法切换
void on_cbxCriticalMethods_currentIndexChanged(const QString &arg1);
// H2S/CO2/N2的摩尔模式
void on_radioFraction_clicked();
void on_radioPercent_clicked();
// H2S/CO2/N2的摩尔数值验证
void on_tbxH2S_textChanged(const QString &arg1);
void on_tbxCO2_textChanged(const QString &arg1);
void on_tbxN2_textChanged(const QString &arg1);
// 比重改变
void on_tbxGravity_textChanged(const QString &arg1);
void on_btnComposition_clicked();
void slotCompSubChanged(QMap<QString, float>& map);
private:
Ui::iWxPvtUtilOptionG *ui;
QMap<QString, float> m_mapComps;
int m_nCustomIndex;
};