DiagramDesigner/diagramCavas/include/propertyContentDlg.h

33 lines
1004 B
C++
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#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