KReport

KReportScriptChart.h
1/* This file is part of the KDE project
2 * Copyright (C) 2007-2008 by Adam Pigg (adam@piggz.co.uk)
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#ifndef SCRIPTINGKRSCRIPTCHART_H
19#define SCRIPTINGKRSCRIPTCHART_H
20
21#include <QObject>
22#include <QPointF>
23#include <QSizeF>
24#include <QColor>
25
26class KReportItemChart;
27
28namespace Scripting
29{
30
31/**
32*/
33class Chart : public QObject
34{
36public:
37 explicit Chart(KReportItemChart *);
38
39 ~Chart();
40public Q_SLOTS:
41
42
43 /**
44 * Get the position of the barcode
45 * @return position in points
46 */
47 QPointF position();
48
49 /**
50 * Sets the position of the barcode in points
51 * @param Position
52 */
53 void setPosition(const QPointF&);
54
55 /**
56 * Get the size of the barcode
57 * @return size in points
58 */
59 QSizeF size();
60
61 /**
62 * Set the size of the barcode in points
63 * @param Size
64 */
65 void setSize(const QSizeF&);
66
67 /**
68 * The data source for the chart
69 * @return Datasource
70 */
71 QString dataSource();
72
73 /**
74 * Set the data source for the chart
75 * @param datasource
76 */
77 void setDataSource(const QString &);
78
79 /**
80 * The 3d status of the chart
81 * @return 3d
82 */
83 bool threeD();
84
85 /**
86 * Set the 3d status of the chart
87 * @param 3d
88 */
89 void setThreeD(bool td);
90
91 /**
92 * The visibility status of the legend
93 * @return visibility
94 */
95 bool legendVisible();
96
97 /**
98 * Sets the visibility of the legend
99 * @param visible
100 */
101 void setLegendVisible(bool v);
102
103 /**
104 * The color scheme used by the chart
105 * @return scheme, 0=default, 2=rainbow 3=subdued
106 */
107 int colorScheme();
108
109 /**
110 * Sets the colorscheme of the chart
111 * @param scheme 0=default, 2=rainbow 3=subdued
112 */
113 void setColorScheme(int);
114
115 /**
116 * The background color of the chart
117 * @return backgroundcolor
118 */
119 QColor backgroundColor();
120
121 /**
122 * Sets the background color of the chart
123 * @param backgroundcolor
124 */
125 void setBackgroundColor(const QColor &);
126
127 /**
128 * The title of the X Axis
129 * @return xTitle
130 */
131 QString xAxisTitle();
132
133 /**
134 * Set the title of the X Axis
135 * @param xTitle
136 */
137 void setXAxisTitle(const QString &);
138
139 /**
140 * The title of the Y Axis
141 * @return yTitle
142 */
143 QString yAxisTitle();
144
145 /**
146 * Set the title of the Y Axis
147 * @param yTitle
148 */
149 void setYAxisTitle(const QString &);
150
151private:
152 KReportItemChart* m_chart;
153
154};
155
156}
157
158#endif
Field item script interface.
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:19:58 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.