#include "OperatorsCFDTimeMode.h" #include "GUIFrame/PropertyWidget.h" #include "OperatorsInterface/TreeEventOperator.h" #include "GUIDialog/GUICalculateDialog/SolutionWidget.h" #include "FITK_Kernel/FITKAppFramework/FITKAppFramework.h" #include "FITK_Kernel/FITKAppFramework/FITKGlobalData.h" namespace ModelOper { OperatorsCFDTimeMode::OperatorsCFDTimeMode() { } OperatorsCFDTimeMode::~OperatorsCFDTimeMode() { } bool OperatorsCFDTimeMode::execGUI() { GUI::MainWindow* mainWindow = dynamic_cast(FITKAPP->getGlobalData()->getMainWindow()); if (mainWindow == nullptr) { return false; } GUI::PropertyWidget* propertyWidget = mainWindow->getPropertyWidget(); if (propertyWidget == nullptr) { return false; } GUI::SolutionWidget* widget = new GUI::SolutionWidget(this, propertyWidget); propertyWidget->setWidget(widget); return true; } bool OperatorsCFDTimeMode::execProfession() { return true; } }