-
Notifications
You must be signed in to change notification settings - Fork 22
/
qflowchartstyle.h
58 lines (50 loc) · 2.63 KB
/
qflowchartstyle.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
52
53
54
55
56
57
58
/****************************************************************************
** **
** Copyright (C) 2009-2014 Victor Zinkevich. All rights reserved. **
** Contact: vicking@yandex.ru **
** **
** This file is part of the Algorithm Flowchart Editor project. **
** **
** This file may be used under the terms of the GNU **
** General Public License versions 2.0 or 3.0 as published by the Free **
** Software Foundation and appearing in the file LICENSE included in **
** the packaging of this file. **
** You can find license at http://www.gnu.org/licenses/gpl.html **
** **
****************************************************************************/
#ifndef QFLOWCHARTSTYLE_H
#define QFLOWCHARTSTYLE_H
#include <QtGui>
class QFlowChartStyle
{
private:
QColor fNormalBackground;
QColor fNormalForeground;
QColor fSelectedBackground;
QColor fSelectedForeground;
double fLineWidth;
QColor fNormalMarker;
QColor fSelectedMarker;
double fFontSize;
public:
QFlowChartStyle();
~QFlowChartStyle() {}
QColor normalBackground() const { return fNormalBackground; }
QColor normalForeground() const { return fNormalForeground; }
QColor selectedBackground() const { return fSelectedBackground; }
QColor selectedForeground() const { return fSelectedForeground; }
double lineWidth() const { return fLineWidth; }
QColor normalMarker() const { return fNormalMarker; }
QColor selectedMarker() const { return fSelectedMarker; }
double fontSize() const { return fFontSize; }
void setNormalBackground(const QColor & aValue) { fNormalBackground = aValue; }
void setNormalForeground(const QColor & aValue) { fNormalForeground = aValue; }
void setSelectedBackground(const QColor & aValue) { fSelectedBackground = aValue; }
void setSelectedForeground(const QColor & aValue) { fSelectedForeground = aValue; }
void setLineWidth(const double aValue) { fLineWidth = aValue; }
void setNormalMarker(const QColor & aValue) { fNormalMarker = aValue; }
void setSelectedMarker(const QColor & aValue) { fSelectedMarker = aValue; }
void setFontSize(const double aValue) { fFontSize = aValue; }
};
Q_DECLARE_TYPEINFO(QFlowChartStyle, Q_MOVABLE_TYPE);
#endif // QFLOWCHARTSTYLE_H