33 lines
1006 B
C
33 lines
1006 B
C
|
|
#ifndef PROPERTYCONTENTDLG_H
|
|||
|
|
#define PROPERTYCONTENTDLG_H
|
|||
|
|
|
|||
|
|
#include <QDialog>
|
|||
|
|
#include <QVBoxLayout>
|
|||
|
|
#include <QFormLayout>
|
|||
|
|
//#include "global.h"
|
|||
|
|
#include "baseContentDlg.h"
|
|||
|
|
/*******************************************************
|
|||
|
|
每个属性组单独的界面信息,动态生成后加入到itemPropertyDlg
|
|||
|
|
********************************************************/
|
|||
|
|
|
|||
|
|
class PropertyContentDlg : public BaseContentDlg
|
|||
|
|
{
|
|||
|
|
Q_OBJECT
|
|||
|
|
|
|||
|
|
public:
|
|||
|
|
PropertyContentDlg(QWidget *parent = nullptr);
|
|||
|
|
~PropertyContentDlg();
|
|||
|
|
|
|||
|
|
virtual void createGroupView(GroupStateInfo); //创建页面
|
|||
|
|
virtual QMap<QString,PropertyStateInfo> getPropertyValue(BaseProperty* = nullptr); //返回当前页面的属性值
|
|||
|
|
//void setPropertyValue(QMap<QString,propertyStateInfo>);
|
|||
|
|
virtual void setPropertyValue(QVariant);
|
|||
|
|
protected:
|
|||
|
|
QVBoxLayout* _layout;
|
|||
|
|
QWidget* createEditor(PropertyStateInfo); //创建属性
|
|||
|
|
private:
|
|||
|
|
QMap<QString,PropertyStateInfo> _curValue;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
#endif
|