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.

41 lines
1.3 KiB
C++

#include "OperatorsBase.h"
#include "GUIFrame/MainWindow.h"
#include "FITK_Kernel/FITKAppFramework/FITKAppFramework.h"
#include "FITK_Kernel/FITKAppFramework/FITKGlobalData.h"
#include "FITK_Kernel/FITKCore/FITKAbstractNDataObject.h"
#include <QAction>
namespace OperModel
{
/**
* @brief OperatorsBase
*
* OperatorsBaseFITKAPPGUI::MainWindow_mainWindow
*
* @param args
*/
OperatorsBase::OperatorsBase(/* args */)
{
_mainWindow = dynamic_cast<GUI::MainWindow *>(FITKAPP->getGlobalData()->getMainWindow());
}
/**
* @brief OperatorsBase
*
* OperatorsBase
*/
OperatorsBase::~OperatorsBase()
{
}
void OperatorsBase::preArgs()
{
QAction* current = dynamic_cast<QAction*>(_emitter);
if (current == nullptr)return;
_isChecked = current->isChecked();
_senderName = current->objectName();
}
} // namespace ModelOper