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.
77 lines
1.9 KiB
C++
77 lines
1.9 KiB
C++
/**
|
|
*
|
|
* @file FITKWidgetDouble.h
|
|
* @brief 双精度型控件
|
|
* @author BaGuijun (baguijun@163.com)
|
|
* @date 2024-08-14
|
|
*
|
|
*/
|
|
#ifndef _GUIWidgetDouble_H
|
|
#define _GUIWidgetDouble_H
|
|
|
|
#include "FITKEasyParamAPI.h"
|
|
#include "FITKAbstractEasyParamWidget.h"
|
|
#include "FITKWidgetSciNotation.h"
|
|
#include <QDoubleSpinBox>
|
|
|
|
namespace Interface {
|
|
class FITKAbstractEasyParam;
|
|
class FITKFlowDataDouble;
|
|
}
|
|
|
|
namespace Core
|
|
{
|
|
class FITKAbstractEasyParam;
|
|
class FITKParamDouble;
|
|
/**
|
|
* @brief 双精度型控件
|
|
* @author BaGuijun (baguijun@163.com)
|
|
* @date 2024-08-14
|
|
*/
|
|
class FITKEasyParamAPI FITKWidgetDouble :public FITKWidgetSciNotation, public FITKAbstractEasyParamWidget
|
|
{
|
|
Q_OBJECT;
|
|
public:
|
|
/**
|
|
* @brief Construct a new FITKWidgetDouble object
|
|
* @param[i] data 数据对象
|
|
* @param[i] parent 父对象
|
|
* @author BaGuijun (baguijun@163.com)
|
|
* @date 2024-08-14
|
|
*/
|
|
FITKWidgetDouble(FITKAbstractEasyParam* data, QWidget* parent = nullptr);
|
|
/**
|
|
* @brief Destroy the FITKWidgetDouble object
|
|
* @author BaGuijun (baguijun@163.com)
|
|
* @date 2024-08-14
|
|
*/
|
|
~FITKWidgetDouble();
|
|
/**
|
|
* @brief 初始化参数
|
|
* @author BaGuijun (baguijun@163.com)
|
|
* @date 2024-08-14
|
|
*/
|
|
void init();
|
|
protected:
|
|
//鼠标滚轮事件
|
|
void wheelEvent(QWheelEvent *event) override;
|
|
private slots:
|
|
;
|
|
/**
|
|
* @brief 数据更改槽函数
|
|
* @author BaGuijun (baguijun@163.com)
|
|
* @date 2024-08-27
|
|
*/
|
|
void slotDataChangeFinished();
|
|
protected:
|
|
/**
|
|
* @brief 数据对象
|
|
* @author BaGuijun (baguijun@163.com)
|
|
* @date 2024-08-14
|
|
*/
|
|
FITKParamDouble* _value = nullptr;
|
|
};
|
|
}
|
|
|
|
#endif
|