File indexing completed on 2024-05-12 04:43:21

0001 /*
0002  * Copyright (C) 2007-2008 by Adam Pigg (adam@piggz.co.uk)
0003  * Copyright (C) 2011 by Radoslaw Wicik (rockford@wicik.pl)
0004  *
0005  * This library is free software; you can redistribute it and/or
0006  * modify it under the terms of the GNU Lesser General Public
0007  * License as published by the Free Software Foundation; either
0008  * version 2.1 of the License, or (at your option) any later version.
0009  *
0010  * This library is distributed in the hope that it will be useful,
0011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
0013  * Lesser General Public License for more details.
0014  *
0015  * You should have received a copy of the GNU Lesser General Public
0016  * License along with this library.  If not, see <http://www.gnu.org/licenses/>.
0017  */
0018 #ifndef SCRIPTINGKRSCRIPTMAPS_H
0019 #define SCRIPTINGKRSCRIPTMAPS_H
0020 
0021 #include <QObject>
0022 #include <QPointF>
0023 #include <QSizeF>
0024 
0025 class KReportItemMaps;
0026 
0027 namespace Scripting
0028 {
0029 
0030 class Maps : public QObject
0031 {
0032     Q_OBJECT
0033 public:
0034     explicit Maps(KReportItemMaps *i);
0035 
0036     ~Maps() override;
0037 
0038 public Q_SLOTS:
0039     /**
0040     * Get the position of the map
0041     * @return position in points
0042      */
0043     QPointF position() const;
0044 
0045     /**
0046      * Sets the position of the map in points
0047      * @param position
0048      */
0049     void setPosition(const QPointF &position);
0050 
0051     /**
0052      * Get the size of the map
0053      * @return size in points
0054      */
0055     QSizeF size() const;
0056 
0057     /**
0058      * Set the size of the map in points
0059      * @param size
0060      */
0061     void setSize(const QSizeF &size);
0062 
0063     /**
0064      * Set the latitude value of the map
0065      * @param latitude
0066      */
0067     void setLatitude(qreal latitude);
0068 
0069     /**
0070      * Set the longitude value of the map
0071      * @param longitude
0072      */
0073     void setLongitude(qreal longitude);
0074 
0075     /**
0076      * Set the zoom factor of the map
0077      * @param zoom
0078      */
0079     void setZoom(int zoom);
0080 
0081 private:
0082     KReportItemMaps *m_map;
0083 };
0084 
0085 }
0086 
0087 #endif //SCRIPTINGKRSCRIPTMAPS_H