KReport

KReportScriptMaps.h
1/*
2 * Copyright (C) 2007-2008 by Adam Pigg (adam@piggz.co.uk)
3 * Copyright (C) 2011 by Radoslaw Wicik (rockford@wicik.pl)
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
17 */
18#ifndef SCRIPTINGKRSCRIPTMAPS_H
19#define SCRIPTINGKRSCRIPTMAPS_H
20
21#include <QObject>
22#include <QPointF>
23#include <QSizeF>
24
25class KReportItemMaps;
26
27namespace Scripting
28{
29
30class Maps : public QObject
31{
33public:
34 explicit Maps(KReportItemMaps *i);
35
36 ~Maps() override;
37
38public Q_SLOTS:
39 /**
40 * Get the position of the map
41 * @return position in points
42 */
43 QPointF position() const;
44
45 /**
46 * Sets the position of the map in points
47 * @param position
48 */
49 void setPosition(const QPointF &position);
50
51 /**
52 * Get the size of the map
53 * @return size in points
54 */
55 QSizeF size() const;
56
57 /**
58 * Set the size of the map in points
59 * @param size
60 */
61 void setSize(const QSizeF &size);
62
63 /**
64 * Set the latitude value of the map
65 * @param latitude
66 */
67 void setLatitude(qreal latitude);
68
69 /**
70 * Set the longitude value of the map
71 * @param longitude
72 */
73 void setLongitude(qreal longitude);
74
75 /**
76 * Set the zoom factor of the map
77 * @param zoom
78 */
79 void setZoom(int zoom);
80
81private:
82 KReportItemMaps *m_map;
83};
84
85}
86
87#endif //SCRIPTINGKRSCRIPTMAPS_H
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 Tue Mar 26 2024 11:21:31 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.