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/iWxPvtUtilOption.h

63 lines
1.4 KiB
C++

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

#pragma once
#include "iWxPvtBase.h"
#include "mToolPvt_global.h"
class M_TOOL_PVT_EXPORT iWxPvtUtilOption : public iWxPvtBase
{
Q_OBJECT
public:
explicit iWxPvtUtilOption(QWidget *parent = 0);
~iWxPvtUtilOption();
// 初始化
virtual void initUI();
// 传递参数
void setInfos(QString sFluidType, QString sPhaseType, QStringList listParas);
// 下拉选项的设定,从外界传入
void selectParaMethod(QString sPara, QString sMethod);
protected:
// 默认值
virtual void initDefault();
virtual void initMethodLists(QGroupBox* p);
virtual void dealWithParaItem(QGridLayout* pLayout,
QString sPara,
int r,
int& c);
virtual void fillParaMethods();
protected:
virtual void paintEvent(QPaintEvent*);
virtual void resizeEvent(QResizeEvent*);
virtual void onSerialize(ZxSerializer* ser);
virtual void onDeserialize(ZxSerializer* ser);
public slots:
void slotParaCbxTextChanged(QString s);
signals:
void sigParaMethodChanged(QString sPara, QString sMethod);
private:
// FluidType这是主类型
QString m_sFluidType;
// PhaseType相类型
QString m_sPhaseType;
// 当前计算的参数对象,通常英文
QStringList m_listParas;
// 下拉选项载体
QMap<QString, QComboBox*> m_mapCbxParas;
};