diff --git a/CFDStruct/CFDStructDataManager/CFDStructDataSolverMonitorAerodynamicManager.cpp b/CFDStruct/CFDStructDataManager/CFDStructDataSolverMonitorAerodynamicManager.cpp index 164fb04..cdd0df8 100644 --- a/CFDStruct/CFDStructDataManager/CFDStructDataSolverMonitorAerodynamicManager.cpp +++ b/CFDStruct/CFDStructDataManager/CFDStructDataSolverMonitorAerodynamicManager.cpp @@ -1,4 +1,6 @@ #include "CFDStructDataSolverMonitorAerodynamicManager.h" +#include "CUIProperty/CUIConfig.h" +#include "CFDStructMain/CFDStructDefine.h" CFDStructDataSolverMonitorAerodynamicManager::CFDStructDataSolverMonitorAerodynamicManager(QObject *parent) : CFDStructDataSolverBasicModelManager(parent) { @@ -7,5 +9,28 @@ CFDStructDataSolverMonitorAerodynamicManager::CFDStructDataSolverMonitorAerodyna CUIConfig *CFDStructDataSolverMonitorAerodynamicManager::getParamUIConfig() { + return new CUIConfig({ + {"type","Widget"}, + + },{ + new CUIConfig({ + {"type","LineEdit"}, + {"name","Monitoring Name"}, + {"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_STRING}, + {"value_origin", QVA_GLOBAL(&m_MonitoringName)}, + }), + new CUIConfig({ + {"type","PushButton"}, + {"name","Drawing"}, + }), + new CUIConfig({ + {"type","GroupBox"}, + {"name",tr("Monitoring Variable")}, + },{ + new CUIConfig({ + {"type","MultiTableWidget"}, + },{}) + }), + }); return NULL; } diff --git a/CFDStruct/CFDStructDataManager/CFDStructDataSolverMonitorAerodynamicManager.h b/CFDStruct/CFDStructDataManager/CFDStructDataSolverMonitorAerodynamicManager.h index 3cc17de..c29eb37 100644 --- a/CFDStruct/CFDStructDataManager/CFDStructDataSolverMonitorAerodynamicManager.h +++ b/CFDStruct/CFDStructDataManager/CFDStructDataSolverMonitorAerodynamicManager.h @@ -8,6 +8,9 @@ class CFDStructDataSolverMonitorAerodynamicManager : public CFDStructDataSolverB public: explicit CFDStructDataSolverMonitorAerodynamicManager(QObject *parent = nullptr); CUIConfig* getParamUIConfig(); + + // + QString m_MonitoringName = ""; }; #endif // CFDSTRUCTDATASOLVERMONITORAERODYNAMICMANAGER_H diff --git a/CFDStruct/CFDStructDataManager/CFDStructDataSolverMonitorImpellerManager.cpp b/CFDStruct/CFDStructDataManager/CFDStructDataSolverMonitorImpellerManager.cpp index 53f8207..3ef8c53 100644 --- a/CFDStruct/CFDStructDataManager/CFDStructDataSolverMonitorImpellerManager.cpp +++ b/CFDStruct/CFDStructDataManager/CFDStructDataSolverMonitorImpellerManager.cpp @@ -1,4 +1,6 @@ #include "CFDStructDataSolverMonitorImpellerManager.h" +#include "CUIProperty/CUIConfig.h" +#include "CFDStructMain/CFDStructDefine.h" CFDStructDataSolverMonitorImpellerManager::CFDStructDataSolverMonitorImpellerManager(QObject *parent) : CFDStructDataSolverBasicModelManager(parent) { @@ -7,5 +9,28 @@ CFDStructDataSolverMonitorImpellerManager::CFDStructDataSolverMonitorImpellerMan CUIConfig *CFDStructDataSolverMonitorImpellerManager::getParamUIConfig() { + return new CUIConfig({ + {"type","Widget"}, + + },{ + new CUIConfig({ + {"type","LineEdit"}, + {"name","Monitoring Name"}, + {"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_STRING}, + {"value_origin", QVA_GLOBAL(&m_MonitoringName)}, + }), + new CUIConfig({ + {"type","PushButton"}, + {"name","Drawing"}, + }), + new CUIConfig({ + {"type","GroupBox"}, + {"name",tr("Monitoring Variable")}, + },{ + new CUIConfig({ + {"type","MultiTableWidget"}, + },{}) + }), + }); return NULL; } diff --git a/CFDStruct/CFDStructDataManager/CFDStructDataSolverMonitorImpellerManager.h b/CFDStruct/CFDStructDataManager/CFDStructDataSolverMonitorImpellerManager.h index 6bba005..5d990e7 100644 --- a/CFDStruct/CFDStructDataManager/CFDStructDataSolverMonitorImpellerManager.h +++ b/CFDStruct/CFDStructDataManager/CFDStructDataSolverMonitorImpellerManager.h @@ -9,6 +9,8 @@ public: explicit CFDStructDataSolverMonitorImpellerManager(QObject *parent = nullptr); CUIConfig* getParamUIConfig(); + // + QString m_MonitoringName = ""; }; #endif // CFDSTRUCTDATASOLVERMONITORIMPELLERMANAGER_H diff --git a/CFDStruct/CFDStructDataManager/CFDStructDataSolverMonitorResidualManager.cpp b/CFDStruct/CFDStructDataManager/CFDStructDataSolverMonitorResidualManager.cpp index 1e3486d..6120532 100644 --- a/CFDStruct/CFDStructDataManager/CFDStructDataSolverMonitorResidualManager.cpp +++ b/CFDStruct/CFDStructDataManager/CFDStructDataSolverMonitorResidualManager.cpp @@ -1,4 +1,6 @@ #include "CFDStructDataSolverMonitorResidualManager.h" +#include "CUIProperty/CUIConfig.h" +#include "CFDStructMain/CFDStructDefine.h" CFDStructDataSolverMonitorResidualManager::CFDStructDataSolverMonitorResidualManager(QObject *parent) : CFDStructDataSolverBasicModelManager(parent) { @@ -7,6 +9,30 @@ CFDStructDataSolverMonitorResidualManager::CFDStructDataSolverMonitorResidualMan CUIConfig *CFDStructDataSolverMonitorResidualManager::getParamUIConfig() { +// return new CUIConfig({ +// {"type", "MultiTableWidget"}}, {}); + return new CUIConfig({ - {"type", "MultiTableWidget"}}, {}); + {"type","Widget"}, + + },{ + new CUIConfig({ + {"type","LineEdit"}, + {"name","Monitoring Name"}, + {"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_STRING}, + {"value_origin", QVA_GLOBAL(&m_MonitoringName)}, + }), + new CUIConfig({ + {"type","PushButton"}, + {"name","Drawing"}, + }), + new CUIConfig({ + {"type","GroupBox"}, + {"name",tr("Monitoring Variable")}, + },{ + new CUIConfig({ + {"type","MultiTableWidget"}, + },{}) + }), + }); } diff --git a/CFDStruct/CFDStructDataManager/CFDStructDataSolverMonitorResidualManager.h b/CFDStruct/CFDStructDataManager/CFDStructDataSolverMonitorResidualManager.h index 5cfc53b..cf8d9ad 100644 --- a/CFDStruct/CFDStructDataManager/CFDStructDataSolverMonitorResidualManager.h +++ b/CFDStruct/CFDStructDataManager/CFDStructDataSolverMonitorResidualManager.h @@ -9,6 +9,10 @@ public: explicit CFDStructDataSolverMonitorResidualManager(QObject *parent = nullptr); CUIConfig* getParamUIConfig(); + +private: + // + QString m_MonitoringName = ""; }; #endif // CFDSTRUCTDATASOLVERMONITORRESIDUALMANAGER_H