From 64a0e6facf402045ea3871f8a4160182d4f5dc73 Mon Sep 17 00:00:00 2001 From: simonyan <315082291@qq.com> Date: Fri, 1 Nov 2024 22:13:11 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E8=A1=A5=E9=BD=90=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=EF=BC=8C=E5=8F=AF=E4=BB=A5=E7=BC=96=E8=AF=91=E7=94=9F=E6=88=90?= =?UTF-8?q?=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...tructDataSolverSportsAttributesManager.cpp | 36 ++++++++++++++++--- ...DStructDataSolverSportsAttributesManager.h | 12 +++---- .../CFDStructMain/CFDStructMainWindow.cpp | 1 - CFDStruct/CFDStructMain/CFDTreeWidget.cpp | 1 - CFDStruct/CFDStructMain/CFDTreeWidget.h | 1 - 5 files changed, 37 insertions(+), 14 deletions(-) diff --git a/CFDStruct/CFDStructDataManager/CFDStructDataSolverSportsAttributesManager.cpp b/CFDStruct/CFDStructDataManager/CFDStructDataSolverSportsAttributesManager.cpp index 5599944..c87c12c 100644 --- a/CFDStruct/CFDStructDataManager/CFDStructDataSolverSportsAttributesManager.cpp +++ b/CFDStruct/CFDStructDataManager/CFDStructDataSolverSportsAttributesManager.cpp @@ -6,18 +6,18 @@ #include #include "CFDStructDataSolverSportsAttributesManager.h" -CFDStructDataSolverSportsAttributesManager::CFDStructDataSolverSportsAttributesManager(QObject *parent) : CFDStructDataManagerBase(parent) +CFDStructDataSolverSportsAttributesItemManager::CFDStructDataSolverSportsAttributesItemManager(QObject *parent) : CFDStructDataManagerBase(parent) { m_uiConfig = nullptr; } -CFDStructDataSolverSportsAttributesManager::~CFDStructDataSolverSportsAttributesManager() +CFDStructDataSolverSportsAttributesItemManager::~CFDStructDataSolverSportsAttributesItemManager() { // CFDStructDataManagerBase::~CFDStructDataManagerBase(); } -CUIConfig *CFDStructDataSolverSportsAttributesManager::getParamUIConfig() +CUIConfig *CFDStructDataSolverSportsAttributesItemManager::getParamUIConfig() { if (m_uiConfig != nullptr) { @@ -28,7 +28,7 @@ CUIConfig *CFDStructDataSolverSportsAttributesManager::getParamUIConfig() return m_uiConfig; } -CUIConfig *CFDStructDataSolverSportsAttributesManager::genMovingFrameModeUIConfig() +CUIConfig *CFDStructDataSolverSportsAttributesItemManager::genMovingFrameModeUIConfig() { return new CUIConfig({ {"type", "Widget"}, @@ -85,7 +85,7 @@ CUIConfig *CFDStructDataSolverSportsAttributesManager::genMovingFrameModeUIConfi return nullptr; } -CUIConfig *CFDStructDataSolverSportsAttributesManager::genRigidBodyModeUIConfig() +CUIConfig *CFDStructDataSolverSportsAttributesItemManager::genRigidBodyModeUIConfig() { return new CUIConfig({ {"type", "Widget"}, @@ -134,3 +134,29 @@ CUIConfig *CFDStructDataSolverSportsAttributesManager::genRigidBodyModeUIConfig( }); return nullptr; } + +CFDStructDataSolverSportsAttributesManager::CFDStructDataSolverSportsAttributesManager(QObject *parent) +{ + +} + +CFDStructDataSolverSportsAttributesManager::~CFDStructDataSolverSportsAttributesManager() +{ + +} + +CUIConfig *CFDStructDataSolverSportsAttributesManager::getParamUIConfig() +{ + return NULL; +} + +void CFDStructDataSolverSportsAttributesManager::addNewSportAttributesItem() +{ + +} + +void CFDStructDataSolverSportsAttributesManager::deleteSportAttributesItem(int index) +{ + +} + diff --git a/CFDStruct/CFDStructDataManager/CFDStructDataSolverSportsAttributesManager.h b/CFDStruct/CFDStructDataManager/CFDStructDataSolverSportsAttributesManager.h index 6495e28..26ec175 100644 --- a/CFDStruct/CFDStructDataManager/CFDStructDataSolverSportsAttributesManager.h +++ b/CFDStruct/CFDStructDataManager/CFDStructDataSolverSportsAttributesManager.h @@ -47,13 +47,13 @@ public: CUIConfig* getParamUIConfig(); private: - // 生成运动坐标系的界面配置 - CUIConfig* genMovingFrameModeUIConfig(); - // 生成刚体的界面配置 - CUIConfig* genRigidBodyModeUIConfig(); +// // 生成运动坐标系的界面配置 +// CUIConfig* genMovingFrameModeUIConfig(); +// // 生成刚体的界面配置 +// CUIConfig* genRigidBodyModeUIConfig(); - void add(); - void delte(int index); + virtual void addNewSportAttributesItem(); + virtual void deleteSportAttributesItem(int index); signals: diff --git a/CFDStruct/CFDStructMain/CFDStructMainWindow.cpp b/CFDStruct/CFDStructMain/CFDStructMainWindow.cpp index 999760c..acee387 100644 --- a/CFDStruct/CFDStructMain/CFDStructMainWindow.cpp +++ b/CFDStruct/CFDStructMain/CFDStructMainWindow.cpp @@ -23,7 +23,6 @@ #include #include -#include "CFDStructOperatorsModel/CFDStructOperatorsTimeModeManager.h" #include "CFDStructOperatorsModel/CFDStructOperatorsModelSolverProperty.h" using namespace GUI; diff --git a/CFDStruct/CFDStructMain/CFDTreeWidget.cpp b/CFDStruct/CFDStructMain/CFDTreeWidget.cpp index d23d69d..1b950d3 100644 --- a/CFDStruct/CFDStructMain/CFDTreeWidget.cpp +++ b/CFDStruct/CFDStructMain/CFDTreeWidget.cpp @@ -5,7 +5,6 @@ #include "GUIFrame/MainTreeWidget.h" #include "OperatorsInterface/GraphEventOperator.h" #include "OperatorsInterface/TreeEventOperator.h" -// #include "CFDOperatorsModel/CFDOperatorsTimeModeManager.h" #include "FITK_Kernel/FITKAppFramework/FITKAppFramework.h" #include "FITK_Kernel/FITKAppFramework/FITKGlobalData.h" diff --git a/CFDStruct/CFDStructMain/CFDTreeWidget.h b/CFDStruct/CFDStructMain/CFDTreeWidget.h index 2a79bad..b01bbd6 100644 --- a/CFDStruct/CFDStructMain/CFDTreeWidget.h +++ b/CFDStruct/CFDStructMain/CFDTreeWidget.h @@ -6,7 +6,6 @@ #include "CFDStructDefine.h" #include #include -#include "CFDStructOperatorsModel/CFDStructOperatorsTimeModeManager.h" class MainWindow; class QTabWidget;