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.

114 lines
3.2 KiB
C

/**********************************************************************
* @file FITKAbstractEasyParam.h
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-09
*********************************************************************/
#ifndef _FITKABSTRACT_EASY_PARAM_H___
#define _FITKABSTRACT_EASY_PARAM_H___
#include "FITK_Kernel/FITKCore/FITKAbstractNDataObject.h"
#include "FITKEasyParamAPI.h"
namespace Core
{
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-09
*/
class FITKEasyParamAPI FITKAbstractEasyParam : public FITKAbstractNDataObject
{
Q_OBJECT
public:
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-09
*/
enum FITKEasyParamType
{
FEPNone,
FEPBool,
FEPBoolGroup,
FEPCombox,
FEPComboxVector,
FEPDouble,
FEPDoubleList,
FEPInt,
FEPLabel,
FEPRadioGroup,
FEPString,
};
Q_ENUM(FITKEasyParamType);
public:
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-09
*/
explicit FITKAbstractEasyParam() = default;
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-09
*/
virtual ~FITKAbstractEasyParam();
/**
* @brief
* @return FITKEasyParamType
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-09
*/
virtual FITKEasyParamType getParamType() = 0;
/**
* @brief
* @param[i] data
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-09
*/
virtual void copyParaData(FITKAbstractEasyParam* data);
/**
* @brief
* @param[i] title
* @return QVariant
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-12
*/
QVariant getData(QString title = "default");
/**
* @brief ()
* @param[i] data
* @param[i] title
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-12
*/
void setData(QVariant data, QString title = "default");
/**
* @brief
* @return QList<QString>
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-12
*/
QList<QString> getDataTitle();
signals:
;
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-09
*/
void sigDataChange();
protected:
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-10-12
*/
QHash<QString, QVariant> _data = { };
};
}
#endif