2025-05-30 16:28:51 +08:00
|
|
|
#ifndef EDITBASESTRUCT_H
|
|
|
|
|
#define EDITBASESTRUCT_H
|
|
|
|
|
|
2025-07-31 19:38:06 +08:00
|
|
|
//编辑器基础空间结构
|
2025-05-30 16:28:51 +08:00
|
|
|
#include <QGraphicsWidget>
|
|
|
|
|
#include "global.h"
|
|
|
|
|
|
|
|
|
|
class EditBaseStruct : public QGraphicsWidget
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
public:
|
|
|
|
|
EditBaseStruct(QGraphicsItem *parent = 0);
|
|
|
|
|
virtual ~EditBaseStruct();
|
2025-08-06 20:10:10 +08:00
|
|
|
void setId(const QString& s) {sId = s;}
|
|
|
|
|
QString getId(){return sId;}
|
2025-05-30 16:28:51 +08:00
|
|
|
void setDataType(DiagramEditorStructType t) {_dataType = t;}
|
|
|
|
|
DiagramEditorStructType getDataType() {return _dataType;}
|
|
|
|
|
protected:
|
|
|
|
|
DiagramEditorStructType _dataType;
|
2025-08-06 20:10:10 +08:00
|
|
|
QString sId;
|
2025-05-30 16:28:51 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|