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.
55 lines
1.2 KiB
C++
55 lines
1.2 KiB
C++
#ifndef _GUIWidgetRadioGroup_H
|
|
#define _GUIWidgetRadioGroup_H
|
|
|
|
#include "FITKEasyParamAPI.h"
|
|
#include "FITKAbstractEasyParamWidget.h"
|
|
#include <QWidget>
|
|
|
|
class QButtonGroup;
|
|
class QHBoxLayout;
|
|
|
|
namespace Ui {
|
|
class FITKWidgetRadioGroup;
|
|
}
|
|
|
|
namespace Core
|
|
{
|
|
class FITKWidgetHBox;
|
|
class FITKAbstractEasyParam;
|
|
class FITKParamRadioGroup;
|
|
|
|
class FITKEasyParamAPI FITKWidgetRadioGroup : public QWidget, public FITKAbstractEasyParamWidget
|
|
{
|
|
Q_OBJECT;
|
|
public:
|
|
FITKWidgetRadioGroup(FITKAbstractEasyParam* dataBase, QWidget* parent = nullptr);
|
|
~FITKWidgetRadioGroup();
|
|
|
|
void init();
|
|
private:
|
|
void initRadioData();
|
|
void initSubData();
|
|
/**
|
|
* @brief 禁用Radio界面
|
|
* @return void
|
|
* @author BaGuijun (baguijun@163.com)
|
|
* @date 2024-08-22
|
|
*/
|
|
void disableAllRadioWidget();
|
|
private slots:
|
|
;
|
|
void slotRadioClicked(int index);
|
|
private:
|
|
Ui::FITKWidgetRadioGroup* _ui = nullptr;
|
|
FITKParamRadioGroup* _data = nullptr;
|
|
|
|
QList<QWidget*> _subWidget = {};
|
|
|
|
QButtonGroup* _group = nullptr;
|
|
|
|
QHash<int, FITKWidgetHBox*> _radioWidgets = {};
|
|
};
|
|
}
|
|
|
|
#endif
|