-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathGlobalSettings.h
51 lines (41 loc) · 1.34 KB
/
GlobalSettings.h
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
#ifndef GLOBALSETTINGS_H
#define GLOBALSETTINGS_H
#include <QColor>
#include <QPen>
class GlobalSettings
{
static qreal edgeWidth;
static QPen edgePen;
static QColor edgeColor;
static int edgeVeight;
static QColor vertexPenColor;
static QColor vertexBrushColor;
static qreal vertexWidth;
static QPen vertexPen;
static QBrush vertexBrush;
static QTransform sceneTransform;
public:
static QColor getEdgeColor();
static void setEdgeColor(const QColor &value);
static qreal getEdgeWidth();
static void setEdgeWidth(int value);
static QPen getEdgePen();
static void setEdgePen(const QPen &value);
static int getEdgeVeight();
static void setEdgeVeight(int value);
static QPen getVertexPen();
static void setVertexPen(const QPen &value);
static QColor getVertexPenColor();
static void setVertexPenColor(const QColor &value);
static qreal getVertexWidth();
static void setVertexWidth(const qreal &value);
static QBrush getVertexBrush();
static void setVertexBrush(const QBrush &value);
static QColor getVertexBrushColor();
static void setVertexBrushColor(const QColor &value);
static QTransform getSceneTransform();
static void setSceneTransform(const QTransform &value);
private:
GlobalSettings();
};
#endif // GLOBALSETTINGS_H