blob: 4b48bb308728608481ca469d1707739d51ebadd4 (
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
|
#ifndef NODESTYLE_H
#define NODESTYLE_H
#include "style.h"
#include <QColor>
#include <QPen>
#include <QBrush>
#include <QPainterPath>
#include <QIcon>
class NodeStyle : public Style
{
public:
enum Shape {
Rectangle, UpTriangle, DownTriangle, Circle
};
NodeStyle();
NodeStyle(QString name, GraphElementData *data);
QColor fillColor() const;
QBrush brush() const;
QPainterPath path() const;
Shape shape() const;
QPainterPath palettePath() const override;
QIcon icon() const override;
};
extern NodeStyle *noneStyle;
#endif // NODESTYLE_H
|