2025-04-03 18:33:10 +08:00
|
|
|
|
#ifndef PROPERTYCONTENTDLG_H
|
|
|
|
|
|
#define PROPERTYCONTENTDLG_H
|
|
|
|
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
|
#include <QVBoxLayout>
|
|
|
|
|
|
#include <QFormLayout>
|
|
|
|
|
|
#include "global.h"
|
|
|
|
|
|
/*******************************************************
|
|
|
|
|
|
每个属性组单独的界面信息,动态生成后加入到itemPropertyDlg
|
|
|
|
|
|
********************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
class PropertyContentDlg : public QDialog
|
|
|
|
|
|
{
|
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
PropertyContentDlg(QWidget *parent = nullptr);
|
|
|
|
|
|
~PropertyContentDlg();
|
|
|
|
|
|
|
|
|
|
|
|
void createGroupView(groupStateInfo); //创建页面
|
|
|
|
|
|
QWidget* createEditor(propertyStateInfo); //创建属性
|
|
|
|
|
|
QMap<QString,propertyStateInfo> getPropertyValue() const; //返回当前页面的属性值
|
|
|
|
|
|
void setPropertyValue(QMap<QString,propertyStateInfo>);
|
|
|
|
|
|
private:
|
|
|
|
|
|
QVBoxLayout* _layout;
|
|
|
|
|
|
|
|
|
|
|
|
QMap<QString,propertyContentInfo> _mapPro;
|
|
|
|
|
|
private:
|
2025-04-09 16:20:34 +08:00
|
|
|
|
QFormLayout* createFormLayout(QWidget* parent);
|
2025-04-03 18:33:10 +08:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|