24 lines
559 B
C++
24 lines
559 B
C++
#ifndef EDITBASESTRUCT_H
|
|
#define EDITBASESTRUCT_H
|
|
|
|
//编辑器基础空间结构
|
|
#include <QGraphicsWidget>
|
|
#include "global.h"
|
|
|
|
class EditBaseStruct : public QGraphicsWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
EditBaseStruct(QGraphicsItem *parent = 0);
|
|
virtual ~EditBaseStruct();
|
|
void setId(const QString& s) {sId = s;}
|
|
QString getId(){return sId;}
|
|
void setDataType(DiagramEditorStructType t) {_dataType = t;}
|
|
DiagramEditorStructType getDataType() {return _dataType;}
|
|
protected:
|
|
DiagramEditorStructType _dataType;
|
|
QString sId;
|
|
};
|
|
|
|
#endif
|