#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(); QBoxLayout* initUI_Tags(); QBoxLayout* initUI_FluidOption(); void setCurrentFluid(QString sFluid); void setPhaseS(bool b); // Gas自动弹出模式 void setAutoShow(bool b); void changedAutoShow(); virtual QVector* getVecParaCtrls(); // 组织结果数据,注:vec不进行clear,由调用方自行clear virtual bool organizeResults(QVector& vec, QString sType); //Pseudo void setMapParaFromBasic(QMap map); QMap getMapParaFromBasic(); virtual void copyFrom(ZxUiBase* p); iWxDataFluidSub* getSubChildWx(int n); public: int getCurSubIndex(); iWxDataFluidSub* getCurSubWx(); void copyFrom(iDlgBase* pFrom); bool getMpParaValues(QStringList listParas, QMap& map); // 当前面窗体参数改变时,本窗体响应 virtual void slotParasObtained(QMap& map); // 序列化 virtual void onSerialize(ZxSerializer* ser); virtual void onDeserialize(ZxSerializer* ser); private: protected: virtual void paintEvent(QPaintEvent *); private: QStackedWidget* m_pStackedWidget; bool m_bAutoShow; //不序列化 QLineEdit* m_pTbxTag; QRadioButton* m_pRadioPhaseS; QRadioButton* m_pRadioPhaseM; QComboBox* m_pCbxFluidType; //Pseudo QMap m_mapParaFromBasic; // 是否绑定模式(即:是否由第一步、第二步之类的导航模式) bool m_bBindingMode; };