blob: 6b0c3bb1864e0eb2d36811238b9154fc9138c55d (
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
|
#ifndef EDGESTYLE_H
#define EDGESTYLE_H
#include "style.h"
#include <QColor>
#include <QPen>
#include <QBrush>
#include <QPainterPath>
#include <QIcon>
class EdgeStyle : public Style
{
public:
EdgeStyle();
EdgeStyle(QString name, GraphElementData *data);
enum ArrowTipStyle {
Flat, Pointer, NoTip
};
enum DrawStyle {
Solid, Dotted, Dashed
};
ArrowTipStyle arrowHead() const;
ArrowTipStyle arrowTail() const;
DrawStyle drawStyle() const;
QPen pen() const;
QPainterPath path() const override;
QPainterPath palettePath() const override;
QIcon icon() const override;
};
extern EdgeStyle *noneEdgeStyle;
#endif // EDGESTYLE_H
|