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.
AppFlow/FITK_Kernel/FITKEasyParam/FITKWidgetInt.h

81 lines
1.9 KiB
C

/**
*
* @file FITKWidgetInt.h
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*
*/
#ifndef _GUIWidgetInt_H
#define _GUIWidgetInt_H
#include "FITKEasyParamAPI.h"
#include "FITKAbstractEasyParamWidget.h"
#include <QSpinBox>
namespace Interface {
class FITKAbstractEasyParam;
class FITKFlowDataInt;
}
namespace Core
{
class FITKAbstractEasyParam;
class FITKParamInt;
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
class FITKEasyParamAPI FITKWidgetInt :public QSpinBox, public FITKAbstractEasyParamWidget
{
Q_OBJECT;
public:
/**
* @brief Construct a new FITKWidgetInt object
* @param[i] data
* @param[i] parent
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
FITKWidgetInt(FITKAbstractEasyParam* data, QWidget* parent = nullptr);
/**
* @brief Destroy the FITKWidgetInt object
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
~FITKWidgetInt();
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
void init();
protected:
/**
* @brief
* @param[i] event
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-26
*/
void wheelEvent(QWheelEvent *event) override;
private slots:
;
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
void slotDataChange();
protected:
/**
* @brief
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
FITKParamInt* _value = nullptr;
};
}
#endif