diff options
author | Aleks Kissinger <aleks0@gmail.com> | 2017-01-21 11:18:41 +0100 |
---|---|---|
committer | Aleks Kissinger <aleks0@gmail.com> | 2017-01-21 11:18:41 +0100 |
commit | 48e69ae28bb8b40d5a2281f0ea26141220b3bf5e (patch) | |
tree | a606cd0d8d0251b6899d1ae8909b34099abc270d /tikzit/src/data/edge.h | |
parent | b70be76db70730f42250bc066a578710aa4a3038 (diff) |
added testing
Diffstat (limited to 'tikzit/src/data/edge.h')
-rw-r--r-- | tikzit/src/data/edge.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tikzit/src/data/edge.h b/tikzit/src/data/edge.h index 2153f30..5884b90 100644 --- a/tikzit/src/data/edge.h +++ b/tikzit/src/data/edge.h @@ -1,6 +1,8 @@ #ifndef EDGE_H #define EDGE_H +#include "graphelementdata.h" + #include <QObject> class Node; @@ -10,10 +12,20 @@ class Edge : public QObject Q_OBJECT public: explicit Edge(Node *s, Node *t, QObject *parent = 0); + ~Edge(); Node *source() const; Node *target() const; + GraphElementData *data() const; + void setData(GraphElementData *data); + + QString sourceAnchor() const; + void setSourceAnchor(const QString &sourceAnchor); + + QString targetAnchor() const; + void setTargetAnchor(const QString &targetAnchor); + signals: public slots: @@ -21,6 +33,9 @@ public slots: private: Node *_source; Node *_target; + GraphElementData *_data; + QString _sourceAnchor; + QString _targetAnchor; }; #endif // EDGE_H |