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

57 lines
1.2 KiB
C

3 weeks ago
#ifndef CUI_H
#define CUI_H
#include<QtGlobal>
#include<QSet>
#include<QWidget>
#include "CUIPropertyAPI.h"
3 weeks ago
class CUIConfig;
class QWidget;
class CUIWidget;
class CUIGroupBox;
class CUILineEdit;
class CUITabWidget;
class QString;
class CUIComboBox;
class CUIPushButton;
class CUICheckBox;
class CUIRadioButton;
class CUIButtonBox;
/**
* @brief The CUI class ,config
*/
class CUIPropertyAPI CUI: public QWidget
3 weeks ago
{
Q_OBJECT
3 weeks ago
public:
CUI(QWidget* parent = nullptr, CUIConfig* conf = nullptr);
// CUI(CUIConfig* conf);
3 weeks ago
void buildUI();
void check();
QWidget* getUI();
QString getProperty(QString s);
void autoArrangeWidgets();
private:
CUIConfig* conf;
CUILineEdit* uiLineEdit;
CUIWidget* uiWidget;
CUIGroupBox* uiGroupBox;
CUITabWidget* uiTabWidget;
CUIComboBox* uiComboBox;
CUIPushButton* uiPushButton;
CUICheckBox* uiCheckBox;
CUIRadioButton* uiRadioButton;
CUIButtonBox* uiButtonBox;
QVector<CUI*> subCUI;
const QSet<QString> haveLabelType = {"LineEdit", "ComboBox"};
3 weeks ago
qint32 getMaxLabelWidth();
void setLabelWidth(qint32 width);
};
#endif // CUI_H