2025-04-03 18:33:10 +08:00
|
|
|
|
#ifndef PROPERTYCONTENTDLG_H
|
|
|
|
|
|
#define PROPERTYCONTENTDLG_H
|
|
|
|
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
|
#include <QVBoxLayout>
|
|
|
|
|
|
#include <QFormLayout>
|
|
|
|
|
|
#include "global.h"
|
2025-05-16 19:20:46 +08:00
|
|
|
|
#include "baseContentDlg.h"
|
2025-04-03 18:33:10 +08:00
|
|
|
|
/*******************************************************
|
|
|
|
|
|
每个属性组单独的界面信息,动态生成后加入到itemPropertyDlg
|
|
|
|
|
|
********************************************************/
|
|
|
|
|
|
|
2025-05-16 19:20:46 +08:00
|
|
|
|
class PropertyContentDlg : public BaseContentDlg
|
2025-04-03 18:33:10 +08:00
|
|
|
|
{
|
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
PropertyContentDlg(QWidget *parent = nullptr);
|
|
|
|
|
|
~PropertyContentDlg();
|
|
|
|
|
|
|
2025-05-16 19:20:46 +08:00
|
|
|
|
virtual void createGroupView(groupStateInfo); //创建页面
|
2025-05-23 10:30:52 +08:00
|
|
|
|
virtual QMap<QString,propertyStateInfo> getPropertyValue(BaseProperty* = nullptr); //返回当前页面的属性值
|
|
|
|
|
|
//void setPropertyValue(QMap<QString,propertyStateInfo>);
|
|
|
|
|
|
virtual void setPropertyValue(QVariant);
|
2025-05-16 19:20:46 +08:00
|
|
|
|
protected:
|
2025-04-03 18:33:10 +08:00
|
|
|
|
QVBoxLayout* _layout;
|
2025-05-16 19:20:46 +08:00
|
|
|
|
QWidget* createEditor(propertyStateInfo); //创建属性
|
2025-07-18 18:26:13 +08:00
|
|
|
|
private:
|
|
|
|
|
|
QMap<QString,propertyStateInfo> _curValue;
|
2025-04-03 18:33:10 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|