##// END OF EJS Templates
Removes chartThemecount from enum values
Michal Klocek -
r930:3577bc2f2569
parent child
Show More
@@ -1,120 +1,119
1 1 /****************************************************************************
2 2 **
3 3 ** Copyright (C) 2012 Digia Plc
4 4 ** All rights reserved.
5 5 ** For any questions to Digia, please use contact form at http://qt.digia.com
6 6 **
7 7 ** This file is part of the Qt Commercial Charts Add-on.
8 8 **
9 9 ** $QT_BEGIN_LICENSE$
10 10 ** Licensees holding valid Qt Commercial licenses may use this file in
11 11 ** accordance with the Qt Commercial License Agreement provided with the
12 12 ** Software or, alternatively, in accordance with the terms contained in
13 13 ** a written agreement between you and Digia.
14 14 **
15 15 ** If you have questions regarding the use of this file, please use
16 16 ** contact form at http://qt.digia.com
17 17 ** $QT_END_LICENSE$
18 18 **
19 19 ****************************************************************************/
20 20
21 21 #ifndef QCHART_H
22 22 #define QCHART_H
23 23
24 24 #include <QSeries>
25 25 #include <QLegend>
26 26 #include <QGraphicsWidget>
27 27
28 28 class QGraphicsSceneResizeEvent;
29 29
30 30 QTCOMMERCIALCHART_BEGIN_NAMESPACE
31 31
32 32 class QSeries;
33 33 class QChartAxis;
34 34 class QLegend;
35 35 struct QChartPrivate;
36 36
37 37 class QTCOMMERCIALCHART_EXPORT QChart : public QGraphicsWidget
38 38 {
39 39 Q_OBJECT
40 40 Q_ENUMS(ChartTheme)
41 41
42 42 public:
43 43 enum ChartTheme {
44 44 ChartThemeLight = 0,
45 45 ChartThemeBlueCerulean,
46 46 ChartThemeDark,
47 47 ChartThemeBrownSand,
48 48 ChartThemeBlueNcs,
49 49 ChartThemeHighContrast,
50 ChartThemeBlueIcy,
51 ChartThemeCount
50 ChartThemeBlueIcy
52 51 };
53 52
54 53 enum AnimationOption {
55 54 NoAnimation = 0x0,
56 55 GridAxisAnimations = 0x1,
57 56 SeriesAnimations =0x2,
58 57 AllAnimations = 0x3
59 58 };
60 59
61 60 Q_DECLARE_FLAGS(AnimationOptions, AnimationOption)
62 61
63 62 public:
64 63 explicit QChart(QGraphicsItem *parent = 0, Qt::WindowFlags wFlags = 0);
65 64 ~QChart();
66 65
67 66 void addSeries(QSeries *series, QChartAxis *axisY = 0);
68 67 void removeSeries(QSeries *series);
69 68 void removeAllSeries();
70 69
71 70 void setTheme(QChart::ChartTheme theme);
72 71 QChart::ChartTheme theme() const;
73 72
74 73 void setTitle(const QString& title);
75 74 QString title() const;
76 75 void setTitleFont(const QFont& font);
77 76 QFont titleFont() const;
78 77 void setTitleBrush(const QBrush &brush);
79 78 QBrush titleBrush() const;
80 79
81 80 void setBackgroundBrush(const QBrush &brush);
82 81 QBrush backgroundBrush() const;
83 82 void setBackgroundPen(const QPen &pen);
84 83 QPen backgroundPen() const;
85 84
86 85 void setBackgroundVisible(bool visible);
87 86 bool isBackgroundVisible() const;
88 87
89 88 void setAnimationOptions(AnimationOptions options);
90 89 AnimationOptions animationOptions() const;
91 90
92 91 void zoomIn();
93 92 void zoomIn(const QRectF &rect);
94 93 void zoomOut();
95 94 void scrollLeft();
96 95 void scrollRight();
97 96 void scrollUp();
98 97 void scrollDown();
99 98
100 99 QChartAxis* axisX() const;
101 100 QChartAxis* axisY(QSeries* series = 0) const;
102 101
103 102 QLegend* legend() const;
104 103 QRectF margins() const;
105 104
106 105 protected:
107 106 void resizeEvent(QGraphicsSceneResizeEvent *event);
108 107
109 108 protected:
110 109 QScopedPointer<QChartPrivate> d_ptr;
111 110 friend class QLegend;
112 111 friend class ChartPresenter;
113 112 Q_DISABLE_COPY(QChart)
114 113 };
115 114
116 115 QTCOMMERCIALCHART_END_NAMESPACE
117 116
118 117 Q_DECLARE_OPERATORS_FOR_FLAGS(QTCOMMERCIALCHART_NAMESPACE::QChart::AnimationOptions)
119 118
120 119 #endif
General Comments 0
You need to be logged in to leave comments. Login now