#include "CFDStructDataSolverTimeModeManager.h" #include "CUIProperty/CUIConfig.h" #include "CFDStructMain/CFDStructDefine.h" #include "CFDStructSigsCenter.h" #include "CUIProperty/CUISigsCenter.h" #include #include "CFDStructDataSolverSportsAttributesManager.h" CFDStructDataSolverTimeModeManager::CFDStructDataSolverTimeModeManager(QObject *parent) : CFDStructDataManagerBase(parent) { m_uiConfig = nullptr; // connect(m_cuiSigsCenter, &CUISigsCenter::sig_cuiPropertyChanged, this, [ = ](int semaphore) { // qDebug() << semaphore << " ========================"; // emit CFDStructSigsCenter::getInstance()->sig_solverTimeModeDataChanged(); // }); } CFDStructDataSolverTimeModeManager::~CFDStructDataSolverTimeModeManager() { // CFDStructDataManagerBase::~CFDStructDataManagerBase(); } CUIConfig *CFDStructDataSolverTimeModeManager::getParamUIConfig() { if (m_uiConfig != nullptr) { delete m_uiConfig; m_uiConfig = nullptr; } return m_uiConfig; } CUIConfig *CFDStructDataSolverSportsAttributesManager::genMovingFrameModeUIConfig() { return new CUIConfig({ {"type", "Widget"}, }, { new CUIConfig({ {"type", "LineEdit"}, // 运动名称 {"name", tr("Sports name")}, }, {}), new CUIConfig({ {"type", "ComboBox"}, // 运动类型 {"name", tr("Sports type")}, }, { new CUIConfig({ {"type", "Item"}, // 运动坐标系 {"name", tr("Moving Frame")}, }), new CUIConfig({ {"type", "Item"}, // 刚体 {"name", tr("RigidBody")}, }), }), new CUIConfig({ {"type", "GroupBox"}, // 运动特征 {"name", tr("Sports characteristics")}, }, { new CUIConfig({ {"type", "LineEdit"}, // 运动方式 {"name", tr("Sports Style")}, }), new CUIConfig({ {"type", "LineEdit"}, // 转轴原点 {"name", tr("Axis origin")}, }), new CUIConfig({ {"type", "LineEdit"}, // 转轴方向 {"name", tr("Axis direction")}, }), new CUIConfig({ {"type", "LineEdit"}, // 转速 {"name", tr("speed")}, }), }), // TODO new CUIConfig({ {"type", "List"}, // 域列表 {"name", tr("Domain List")}, }, {}), }); return nullptr; } CUIConfig *CFDStructDataSolverSportsAttributesManager::genRigidBodyModeUIConfig() { return new CUIConfig({ {"type", "Widget"}, }, { new CUIConfig({ {"type", "LineEdit"}, // 运动名称 {"name", tr("Sports name")}, }, {}), new CUIConfig({ {"type", "ComboBox"}, // 运动类型 {"name", tr("Sports type")}, }, { new CUIConfig({ {"type", "Item"}, // 运动坐标系 {"name", tr("Moving Frame")}, }), new CUIConfig({ {"type", "Item"}, // 刚体 {"name", tr("RigidBody")}, }), }), new CUIConfig({ {"type", "GroupBox"}, // 用户自定义 {"name", tr("User defined")}, }, { // TODO new CUIConfig({ {"type", "LineEdit"}, // 打开文件 {"name", tr("Open file")}, }), new CUIConfig({ {"type", "LineEdit"}, // 函数名称 {"name", tr("Function Name")}, }), }), // TODO new CUIConfig({ {"type", "List"}, // 域列表 {"name", tr("Domain List")}, }, {}), }); return nullptr; }