7#include "AbstractDataPluginItem.h"
10#include "GeoDataCoordinates.h"
11#include "MarbleDebug.h"
22class AbstractDataPluginItemPrivate
29 qreal m_addedAngularResolution;
31 AbstractDataPluginItemPrivate();
34AbstractDataPluginItemPrivate::AbstractDataPluginItemPrivate()
37 , m_addedAngularResolution(0)
42AbstractDataPluginItem::AbstractDataPluginItem(
QObject *parent)
44 , BillboardGraphicsItem()
45 , d(new AbstractDataPluginItemPrivate)
50AbstractDataPluginItem::~AbstractDataPluginItem()
55QString AbstractDataPluginItem::toolTip()
const
60void AbstractDataPluginItem::setToolTip(
const QString &toolTip)
62 d->m_toolTip = toolTip;
65QString AbstractDataPluginItem::id()
const
70void AbstractDataPluginItem::setId(
const QString &
id)
75bool AbstractDataPluginItem::isFavorite()
const
80void AbstractDataPluginItem::setFavorite(
bool favorite)
82 if (isFavorite() != favorite) {
83 d->m_favorite = favorite;
84 Q_EMIT favoriteChanged(
id(), favorite);
88bool AbstractDataPluginItem::isSticky()
const
93void AbstractDataPluginItem::setSticky(
bool sticky)
95 if (d->m_sticky != sticky) {
97 Q_EMIT stickyChanged();
101void AbstractDataPluginItem::toggleFavorite()
103 setFavorite(!isFavorite());
106qreal AbstractDataPluginItem::addedAngularResolution()
const
108 return d->m_addedAngularResolution;
111void AbstractDataPluginItem::setAddedAngularResolution(qreal resolution)
113 d->m_addedAngularResolution = resolution;
121QAction *AbstractDataPluginItem::action()
126void AbstractDataPluginItem::addDownloadedFile(
const QString &url,
const QString &type)
135 QAction *pluginAction = action();
138 result << pluginAction;
146#include "moc_AbstractDataPluginItem.cpp"
This file contains the headers for ViewportParams.
Binds a QML item to a specific geodetic location in screen coordinates.