diff options
Diffstat (limited to 'tikzit/src/data/node.h')
-rw-r--r-- | tikzit/src/data/node.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/tikzit/src/data/node.h b/tikzit/src/data/node.h new file mode 100644 index 0000000..8eae520 --- /dev/null +++ b/tikzit/src/data/node.h @@ -0,0 +1,34 @@ +#ifndef NODE_H +#define NODE_H + +#include <QObject> +#include <QPointF> +#include <QString> + +class Node : public QObject +{ + Q_OBJECT +public: + explicit Node(QObject *parent = 0); + ~Node(); + + QPointF pos() const; + void setPos(const QPointF &pos); + + QString name() const; + void setName(const QString &name); + + QString label() const; + void setLabel(const QString &label); + +signals: + +public slots: + +private: + QPointF _pos; + QString _name; + QString _label; +}; + +#endif // NODE_H |