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

/**
*
* @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