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/CFDStruct/CUIProperty/CUIRadioComponent.h

60 lines
1.1 KiB
C++

/**
* 单选框组件
*/
#ifndef CUIRADIOCOMPONENT_H
#define CUIRADIOCOMPONENT_H
#include <QObject>
#include <CUIComponentBaseContainerWidget.h>
class CUIConfig;
class CUI;
class QLabel;
class QHBoxLayout;
class QGroupBox;
class QWidget;
class QButtonGroup;
class CUIRadioComponent : public CUIComponentBaseContainerWidget
{
Q_OBJECT
public:
/**
* @brief CUIRadioComponent构造函数
* @param conf配置信息
* @param subCUI子组件
* @param parent父组件
*/
explicit CUIRadioComponent(CUIConfig* conf, QVector<CUI*> &subCUI, QWidget *parent = nullptr);
private:
/**
* @brief iniUI渲染ui
* @param subCUI子组件
*/
void iniUI(QVector<CUI*> &subCUI);
/**
* @brief iniUI_GroupBox渲染groupbox类型
*/
void iniUI_GroupBox();
/**
* @brief iniUI_Component渲染component类型
*/
void iniUI_Component();
CUIConfig* conf;
QLabel* m_label;
QLayout* m_layout;
QGroupBox* m_GroupBox;
QWidget* m_Component;
QButtonGroup* m_ButtonGroup;
signals:
};
#endif // CUIRADIOCOMPONENT_H