Marble
6#ifndef MARBLE_ABSTRACTDATAPLUGINITEM_H
7#define MARBLE_ABSTRACTDATAPLUGINITEM_H
13#include "BillboardGraphicsItem.h"
14#include "marble_export.h"
21class AbstractDataPluginItemPrivate;
27 Q_PROPERTY(QString identifier READ
id WRITE setId NOTIFY idChanged)
28 Q_PROPERTY(
bool favorite READ isFavorite WRITE setFavorite NOTIFY favoriteChanged)
29 Q_PROPERTY(
bool sticky READ isSticky WRITE setSticky NOTIFY stickyChanged)
32 explicit AbstractDataPluginItem(QObject *parent =
nullptr);
33 ~AbstractDataPluginItem()
override;
38 QString toolTip()
const;
43 void setToolTip(
const QString &toolTip);
46 void setId(
const QString &
id);
48 bool isFavorite()
const;
49 virtual void setFavorite(
bool favorite);
51 bool isSticky()
const;
52 void setSticky(
bool sticky);
59 virtual void setSettings(
const QHash<QString, QVariant> &settings);
64 virtual QAction *action();
66 virtual bool initialized()
const = 0;
68 virtual void addDownloadedFile(
const QString &url,
const QString &type);
70 virtual bool operator<(
const AbstractDataPluginItem *other)
const = 0;
72 virtual QList<QAction *> actions();
77 void favoriteChanged(
const QString &
id,
bool favorite);
81 void toggleFavorite();
84 friend class AbstractDataPluginModel;
90 qreal addedAngularResolution()
const;
91 void setAddedAngularResolution(qreal resolution);
93 AbstractDataPluginItemPrivate *
const d;
Base class for all 2D labels (a.k.a.
bool operator<(const PosRange< Trait > &l, const PosRange< Trait > &r)
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:52:08 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.