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.
39 lines
936 B
C++
39 lines
936 B
C++
#include "OperatorsRun.h"
|
|
|
|
#include "GUIFrame/PropertyWidget.h"
|
|
#include "GUIDialog/GUICalculateDialog/RunWidget.h"
|
|
|
|
#include "FITK_Kernel/FITKAppFramework/FITKAppFramework.h"
|
|
#include "FITK_Kernel/FITKAppFramework/FITKGlobalData.h"
|
|
|
|
namespace ModelOper
|
|
{
|
|
OperatorsRun::OperatorsRun()
|
|
{
|
|
|
|
}
|
|
|
|
OperatorsRun::~OperatorsRun()
|
|
{
|
|
|
|
}
|
|
|
|
bool OperatorsRun::execGUI()
|
|
{
|
|
GUI::MainWindow* mainWindow = dynamic_cast<GUI::MainWindow*>(FITKAPP->getGlobalData()->getMainWindow());
|
|
if (mainWindow == nullptr)return false;
|
|
GUI::PropertyWidget* propertyWidget = mainWindow->getPropertyWidget();
|
|
if (propertyWidget == nullptr)return false;
|
|
|
|
GUI::RunWidget* widget = new GUI::RunWidget(this, FITKAPP->getGlobalData()->getMainWindow());
|
|
propertyWidget->setWidget(widget);
|
|
|
|
return true;
|
|
}
|
|
|
|
bool OperatorsRun::execProfession()
|
|
{
|
|
return false;
|
|
}
|
|
}
|