21 lines
494 B
C
21 lines
494 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 setDataType(DiagramEditorStructType t) {_dataType = t;}
|
||
|
|
DiagramEditorStructType getDataType() {return _dataType;}
|
||
|
|
protected:
|
||
|
|
DiagramEditorStructType _dataType;
|
||
|
|
};
|
||
|
|
|
||
|
|
#endif
|