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.

101 lines
2.9 KiB
C

/**********************************************************************
* @file FITKParamCombox.h
* @brief ComBox
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-09
*********************************************************************/
#ifndef FITKParamCombox_H
#define FITKParamCombox_H
#include "FITKEasyParamAPI.h"
#include "FITKAbstractEasyParam.h"
namespace Core
{
/**
* @brief ComBox
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-09
*/
class FITKEasyParamAPI FITKParamCombox : public FITKAbstractEasyParam
{
Q_OBJECT;
public:
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-09
*/
FITKParamCombox();
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-09
*/
virtual ~FITKParamCombox();
/**
* @brief
* @return FITKAbstractEasyParam::FITKEasyParamType
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-09
*/
virtual FITKAbstractEasyParam::FITKEasyParamType getParamType() override;
/**
* @brief
* @param[i] data
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-09
*/
virtual void copyParaData(FITKAbstractEasyParam* data) override;
/**
* @brief
* @param[i] value
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-09
*/
void setValue(QStringList value);
/**
* @brief
* @return QStringList
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-09
*/
QStringList getValue();
/**
* @brief
* @return QString
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-09
*/
QString getCurrentValue();
/**
* @brief
* @param[i] index
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-09
*/
void setIndex(int index);
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-09
*/
int getIndex();
private:
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-09
*/
QStringList _value = {};
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-09-09
*/
int _index = -1;
};
}
#endif