33 lines
927 B
C++
33 lines
927 B
C++
#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:
|
||
QFormLayout* createFormLayout();
|
||
};
|
||
|
||
#endif
|