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/mGui/mGuiJob/iWxDataFluid.h

60 lines
1.4 KiB
C

#pragma once
#include "iWxBase.h"
#include "iWxDataFluidSub.h"
class M_GUI_JOB_EXPORT iWxDataFluid : public iWxBase
{
Q_OBJECT
public:
explicit iWxDataFluid(QWidget *parent = 0);
~iWxDataFluid();
virtual void initUI();
void setCurrentFluid(QString sFluid);
void setPhaseS(bool b);
// Gas自动弹出模式
void setAutoShow(bool b);
void changedAutoShow();
virtual QVector<iParaItemCtrl*>* getVecParaCtrls();
// 组织结果数据,注vec不进行clear由调用方自行clear
virtual bool organizeResults(QVector<iResultInfo>& vec, QString sType);
//Pseudo
void setMapParaFromBasic(QMap<QString, double> map);
QMap<QString, double> getMapParaFromBasic();
virtual void copyFrom(ZxUiBase* p);
iWxDataFluidSub* getSubChildWx(int n);
public:
int getCurSubIndex();
iWxDataFluidSub* getCurSubWx();
void copyFrom(iDlgBase* pFrom);
bool getMpParaValues(QStringList listParas, QMap<QString, double>& map);
// 当前面窗体参数改变时,本窗体响应
virtual void slotParasObtained(QMap<QString, QVariant>& map);
// 序列化
virtual void onSerialize(ZxSerializer* ser);
virtual void onDeserialize(ZxSerializer* ser);
private:
protected:
virtual void paintEvent(QPaintEvent *);
private:
QStackedWidget* m_pStackedWidget;
bool m_bAutoShow; //不序列化
//Pseudo
QMap<QString, double> m_mapParaFromBasic;
};