You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
2.0 KiB
C++
62 lines
2.0 KiB
C++
2 weeks ago
|
#include "CFDStructOperatorsTimeModeManager.h"
|
||
3 weeks ago
|
|
||
|
#include "GUIFrame/MainWindow.h"
|
||
|
#include "GUIFrame/PropertyWidget.h"
|
||
|
|
||
|
#include "FITK_Kernel/FITKAppFramework/FITKAppFramework.h"
|
||
|
#include "FITK_Kernel/FITKAppFramework/FITKGlobalData.h"
|
||
|
#include "CFDStruct/CUIProperty/CUI.h"
|
||
|
#include "CUIProperty/CUIConfig.h"
|
||
3 weeks ago
|
#include "CFDStructDataManager/CFDStructDataManager.h"
|
||
|
#include "CFDStructDataManager/CFDStructSigsCenter.h"
|
||
3 weeks ago
|
|
||
|
#include <QLabel>
|
||
|
#include <QDebug>
|
||
|
|
||
|
namespace ModelOper
|
||
|
{
|
||
2 weeks ago
|
CFDStructOperatorsTimeModeManager::CFDStructOperatorsTimeModeManager()
|
||
3 weeks ago
|
{
|
||
3 weeks ago
|
qDebug() << "build Time Mode Manager";
|
||
3 weeks ago
|
CFDStructSigsCenter* sigsCenter = CFDStructSigsCenter::getInstance();
|
||
|
connect(sigsCenter, &CFDStructSigsCenter::sig_solverTimeModeDataChanged, this, [ = ]() {
|
||
|
QObject sender;
|
||
|
sender.setObjectName("actionTimeModeEdit");
|
||
|
this->setEmitter(&sender);
|
||
|
this->execGUI();
|
||
|
});
|
||
3 weeks ago
|
}
|
||
|
|
||
2 weeks ago
|
CFDStructOperatorsTimeModeManager::~CFDStructOperatorsTimeModeManager()
|
||
3 weeks ago
|
{
|
||
|
}
|
||
|
|
||
2 weeks ago
|
bool CFDStructOperatorsTimeModeManager::execGUI()
|
||
3 weeks ago
|
{
|
||
|
QWidget* widget = nullptr;
|
||
|
GUI::MainWindow* mainWindow = dynamic_cast<GUI::MainWindow*>(FITKAPP->getGlobalData()->getMainWindow());
|
||
3 weeks ago
|
if (mainWindow == nullptr) {
|
||
|
return false;
|
||
|
}
|
||
3 weeks ago
|
GUI::PropertyWidget* propertyWidget = mainWindow->getPropertyWidget();
|
||
3 weeks ago
|
if (propertyWidget == nullptr) {
|
||
|
return false;
|
||
|
}
|
||
|
qDebug() << " ---------------------- senderName: " << _senderName;
|
||
|
qDebug() << "Time Mode Manager11111111111";
|
||
3 weeks ago
|
widget = new QLabel("Time Mode Manager11111");
|
||
3 weeks ago
|
if (_senderName == "actionTimeModeEdit") {
|
||
|
CUIConfig* uiConfig = CFDStructDataManager::getInstance()->getActionParamUIConfig(1);
|
||
|
// uiConfig->printConfig();
|
||
|
widget = new CUI(nullptr, uiConfig);
|
||
|
}
|
||
3 weeks ago
|
propertyWidget->setWidget(widget);
|
||
3 weeks ago
|
return false;
|
||
|
}
|
||
|
|
||
2 weeks ago
|
bool CFDStructOperatorsTimeModeManager::execProfession()
|
||
3 weeks ago
|
{
|
||
3 weeks ago
|
return true;
|
||
3 weeks ago
|
}
|
||
|
}
|