28 #ifndef OPMAP_GADGETCONFIGURATION_H
29 #define OPMAP_GADGETCONFIGURATION_H
32 #include <QtCore/QString>
40 Q_PROPERTY(QString mapProvider READ mapProvider WRITE setMapProvider)
41 Q_PROPERTY(QString geoLanguage READ geoLanguage WRITE setGeoLanguage)
42 Q_PROPERTY(
int zoommo READ zoom WRITE setZoom)
43 Q_PROPERTY(
double latitude READ latitude WRITE setLatitude)
44 Q_PROPERTY(
double longitude READ longitude WRITE setLongitude)
45 Q_PROPERTY(
bool showTileGridLines READ showTileGridLines WRITE setShowTileGridLines)
46 Q_PROPERTY(QString accessMode READ accessMode WRITE setAccessMode)
47 Q_PROPERTY(
bool useMemoryCache READ useMemoryCache WRITE setUseMemoryCache)
48 Q_PROPERTY(QString cacheLocation READ cacheLocation WRITE setCacheLocation)
49 Q_PROPERTY(QString uavSymbol READ uavSymbol WRITE setUavSymbol)
50 Q_PROPERTY(
int maxUpdateRate READ maxUpdateRate WRITE setMaxUpdateRate)
51 Q_PROPERTY(qreal overlayOpacity READ opacity WRITE setOpacity)
55 QObject *parent =
nullptr);
57 void saveConfig(QSettings *settings) const;
60 QString geoLanguage()
const {
return m_geoLanguage; }
62 int zoom()
const {
return m_defaultZoom; }
63 double latitude()
const {
return m_defaultLatitude; }
64 double longitude()
const {
return m_defaultLongitude; }
71 qreal
opacity()
const {
return m_opacity; }
72 void saveConfig()
const;
80 void setZoom(
int zoom) { m_defaultZoom = zoom; }
81 void setLatitude(
double latitude) { m_defaultLatitude = latitude; }
83 void setLongitude(
double longitude) { m_defaultLongitude = longitude; }
92 m_userImageLocation = userImageLocation;
96 m_userImageHorizontalScale = userImageHorizontalScale;
100 m_userImageVerticalScale = userImageVerticalScale;
104 QString m_mapProvider;
106 double m_defaultLatitude;
107 double m_defaultLongitude;
108 bool m_showTileGridLines;
109 QString m_accessMode;
110 bool m_useMemoryCache;
111 QString m_cacheLocation;
114 QSettings *m_settings;
116 QString m_userImageLocation;
117 float m_userImageHorizontalScale;
118 float m_userImageVerticalScale;
119 QString m_geoLanguage;
122 #endif // OPMAP_GADGETCONFIGURATION_H
void setCacheLocation(QString cacheLocation)
QString getUserImageLocation()
void setGeoLanguage(QString language)
bool useMemoryCache() const
int maxUpdateRate() const
bool showTileGridLines() const
float getUserImageHorizontalScale()
void setUserImageLocation(QString userImageLocation)
QString cacheLocation() const
void setUserImageHorizontalScale(float userImageHorizontalScale)
QString accessMode() const
float getUserImageVerticalScale()
void setUavSymbol(QString symbol)
QString uavSymbol() const
void setOpacity(qreal value)
void setLatitude(double latitude)
void setUseMemoryCache(bool useMemoryCache)
void setUserImageVerticalScale(float userImageVerticalScale)
void setShowTileGridLines(bool showTileGridLines)
void setLongitude(double longitude)
QString mapProvider() const
void setMapProvider(QString provider)
void setAccessMode(QString accessMode)
void setMaxUpdateRate(int update_rate)
UAVDataObject * clone(quint32 instID)