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/FITKWidgetComBox.h

75 lines
1.9 KiB
C

/**
*
* @file FITKWidgetComBox.h
* @brief combox
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*
*/
#ifndef _GUIWidgetComBox_H
#define _GUIWidgetComBox_H
#include "FITKEasyParamAPI.h"
#include "FITKAbstractEasyParamWidget.h"
#include <QComboBox>
namespace Core
{
class FITKAbstractEasyParam;
class FITKParamCombox;
/**
* @brief combox
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
class FITKEasyParamAPI FITKWidgetComBox :public QComboBox, public FITKAbstractEasyParamWidget
{
Q_OBJECT;
public:
/**
* @brief Construct a new FITKWidgetComBox object
* @param[i] data
* @param[i] parent
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
FITKWidgetComBox(FITKAbstractEasyParam* data, QWidget* parent = nullptr);
/**
* @brief Destroy the FITKWidgetComBox object
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
~FITKWidgetComBox();
/**
* @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 combox
* @author BaGuijun (baguijun@163.com)
* @date 2024-08-14
*/
FITKParamCombox* _value = nullptr;
};
}
#endif