1、添加监控器中的界面配置

feature/struct-menu-20241023
mzh 2 weeks ago
parent 510e90b8c8
commit e96e425651

@ -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;
}

@ -8,6 +8,9 @@ class CFDStructDataSolverMonitorAerodynamicManager : public CFDStructDataSolverB
public:
explicit CFDStructDataSolverMonitorAerodynamicManager(QObject *parent = nullptr);
CUIConfig* getParamUIConfig();
//
QString m_MonitoringName = "";
};
#endif // CFDSTRUCTDATASOLVERMONITORAERODYNAMICMANAGER_H

@ -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;
}

@ -9,6 +9,8 @@ public:
explicit CFDStructDataSolverMonitorImpellerManager(QObject *parent = nullptr);
CUIConfig* getParamUIConfig();
//
QString m_MonitoringName = "";
};
#endif // CFDSTRUCTDATASOLVERMONITORIMPELLERMANAGER_H

@ -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"},
},{})
}),
});
}

@ -9,6 +9,10 @@ public:
explicit CFDStructDataSolverMonitorResidualManager(QObject *parent = nullptr);
CUIConfig* getParamUIConfig();
private:
//
QString m_MonitoringName = "";
};
#endif // CFDSTRUCTDATASOLVERMONITORRESIDUALMANAGER_H

Loading…
Cancel
Save