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.
|
|
|
|
/**
|
|
|
|
|
*
|
|
|
|
|
* @file ActionEventHandler.h
|
|
|
|
|
* @brief 处理主界面按钮事件
|
|
|
|
|
* @author LiBaojun (libaojunqd@foxmail.com)
|
|
|
|
|
* @date 2023-03-28
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
#ifndef __EVENTOPERATOR_H__
|
|
|
|
|
#define __EVENTOPERATOR_H__
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
|
|
namespace Core
|
|
|
|
|
{
|
|
|
|
|
class FITKActionOperator;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
namespace GUI
|
|
|
|
|
{
|
|
|
|
|
class EventOperator;
|
|
|
|
|
/**
|
|
|
|
|
* @brief 处理主界面事件
|
|
|
|
|
* @author LiBaojun (libaojunqd@foxmail.com)
|
|
|
|
|
* @date 2023-03-28
|
|
|
|
|
*/
|
|
|
|
|
class ActionEventHandler : public QObject
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
public:
|
|
|
|
|
ActionEventHandler() = default;
|
|
|
|
|
~ActionEventHandler() = default;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
|
/**
|
|
|
|
|
* @brief 执行处理操作
|
|
|
|
|
* @author LiBaojun (libaojunqd@foxmail.com)
|
|
|
|
|
* @date 2023-03-28
|
|
|
|
|
*/
|
|
|
|
|
void execOperator();
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
/**
|
|
|
|
|
* @brief 获取执行对象
|
|
|
|
|
* @param object 触发的对象
|
|
|
|
|
* @return Core::FITKActionOperator*
|
|
|
|
|
* @author LiBaojun (libaojunqd@foxmail.com)
|
|
|
|
|
* @date 2023-04-06
|
|
|
|
|
*/
|
|
|
|
|
Core::FITKActionOperator* getOperator(QObject* object);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace EventOper
|
|
|
|
|
|
|
|
|
|
#endif
|