blob: 241d1ca62378276b2cdc27fdb82524daa8e80e16 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
#ifndef NODE_H
#define NODE_H
#include "graphelementdata.h"
#include "nodestyle.h"
#include <QObject>
#include <QPointF>
#include <QString>
class Node : public QObject
{
Q_OBJECT
public:
explicit Node(QObject *parent = 0);
~Node();
Node *copy();
QPointF point() const;
void setPoint(const QPointF &point);
QString name() const;
void setName(const QString &name);
QString label() const;
void setLabel(const QString &label);
GraphElementData *data() const;
void setData(GraphElementData *data);
QString styleName() const;
void setStyleName(const QString &styleName);
void attachStyle();
NodeStyle *style() const;
int tikzLine() const;
void setTikzLine(int tikzLine);
signals:
public slots:
private:
QPointF _point;
QString _name;
QString _label;
NodeStyle *_style;
GraphElementData *_data;
int _tikzLine;
};
#endif // NODE_H
|