marble
#include <AbstractDataPluginItem.h>
Public Slots | |
void | toggleFavorite () |
Signals | |
void | favoriteChanged (const QString &id, bool favorite) |
void | idChanged () |
void | stickyChanged () |
void | updated () |
Public Member Functions | |
AbstractDataPluginItem (QObject *parent=0) | |
virtual | ~AbstractDataPluginItem () |
virtual QAction * | action () |
virtual QList< QAction * > | actions () |
virtual void | addDownloadedFile (const QString &url, const QString &type) |
qreal | addedAngularResolution () const |
QString | id () const |
virtual bool | initialized () const =0 |
bool | isFavorite () const |
bool | isSticky () const |
virtual QString | itemType () const =0 |
virtual bool | operator< (const AbstractDataPluginItem *other) const =0 |
void | setAddedAngularResolution (qreal resolution) |
virtual void | setFavorite (bool favorite) |
void | setId (const QString &id) |
virtual void | setSettings (const QHash< QString, QVariant > &settings) |
void | setSticky (bool sticky) |
void | setTarget (const QString &target) |
void | setToolTip (const QString &toolTip) |
QString | target () |
QString | toolTip () const |
Public Member Functions inherited from Marble::BillboardGraphicsItem | |
BillboardGraphicsItem () | |
Qt::Alignment | alignment () const |
QList< QRectF > | boundingRects () const |
QRectF | containsRect (const QPointF &point) const |
GeoDataCoordinates | coordinate () const |
QList< QPointF > | positions () const |
void | setAlignment (Qt::Alignment alignment) |
void | setCoordinate (const GeoDataCoordinates &coordinates) |
Public Member Functions inherited from Marble::MarbleGraphicsItem | |
virtual | ~MarbleGraphicsItem () |
CacheMode | cacheMode () const |
bool | contains (const QPointF &point) const |
virtual QRectF | contentRect () const |
virtual QSizeF | contentSize () const |
void | hide () |
AbstractMarbleGraphicsLayout * | layout () const |
bool | paintEvent (QPainter *painter, const ViewportParams *viewport) |
void | setCacheMode (CacheMode mode) |
virtual void | setContentSize (const QSizeF &size) |
void | setLayout (AbstractMarbleGraphicsLayout *layout) |
virtual void | setProjection (const ViewportParams *viewport) |
void | setSize (const QSizeF &size) |
void | setVisible (bool visible) |
void | show () |
QSizeF | size () const |
bool | visible () const |
Properties | |
bool | favorite |
QString | identifier |
bool | sticky |
Additional Inherited Members | |
Public Types inherited from Marble::MarbleGraphicsItem | |
enum | CacheMode { NoCache, ItemCoordinateCache, DeviceCoordinateCache } |
Protected Member Functions inherited from Marble::MarbleGraphicsItem | |
MarbleGraphicsItem (MarbleGraphicsItemPrivate *d_ptr) | |
virtual bool | eventFilter (QObject *object, QEvent *e) |
virtual void | paint (QPainter *painter) |
void | update () |
Protected Attributes inherited from Marble::MarbleGraphicsItem | |
MarbleGraphicsItemPrivate *const | d |
Detailed Description
Definition at line 28 of file AbstractDataPluginItem.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 48 of file AbstractDataPluginItem.cpp.
|
virtual |
Definition at line 56 of file AbstractDataPluginItem.cpp.
Member Function Documentation
|
virtual |
Returns the action of this specific item.
Reimplemented in Marble::WikipediaItem, Marble::PhotoPluginItem, Marble::OpenCachingItem, Marble::WeatherItem, Marble::OpenCachingComItem, and Marble::OpenDesktopItem.
Definition at line 137 of file AbstractDataPluginItem.cpp.
|
virtual |
Reimplemented in Marble::WeatherItem.
Definition at line 148 of file AbstractDataPluginItem.cpp.
|
virtual |
Reimplemented in Marble::WeatherItem, Marble::OpenCachingComItem, Marble::WikipediaItem, Marble::PhotoPluginItem, Marble::OpenDesktopItem, Marble::BBCWeatherItem, Marble::FakeWeatherItem, and Marble::GeoNamesWeatherItem.
Definition at line 142 of file AbstractDataPluginItem.cpp.
qreal Marble::AbstractDataPluginItem::addedAngularResolution | ( | ) | const |
Returning the angular resolution of the viewport when the item was added to it the last time.
Definition at line 122 of file AbstractDataPluginItem.cpp.
|
signal |
QString Marble::AbstractDataPluginItem::id | ( | ) | const |
Definition at line 81 of file AbstractDataPluginItem.cpp.
|
signal |
|
pure virtual |
bool Marble::AbstractDataPluginItem::isFavorite | ( | ) | const |
Definition at line 91 of file AbstractDataPluginItem.cpp.
bool Marble::AbstractDataPluginItem::isSticky | ( | ) | const |
Definition at line 104 of file AbstractDataPluginItem.cpp.
|
pure virtual |
Returns the type of this specific item.
Implemented in Marble::WeatherItem, Marble::OpenCachingItem, Marble::WikipediaItem, Marble::OpenCachingComItem, Marble::FoursquareItem, Marble::PhotoPluginItem, Marble::OpenDesktopItem, Marble::EarthquakeItem, Marble::DeclarativeDataPluginItem, and Marble::PostalCodeItem.
|
pure virtual |
void Marble::AbstractDataPluginItem::setAddedAngularResolution | ( | qreal | resolution | ) |
Definition at line 127 of file AbstractDataPluginItem.cpp.
|
virtual |
Definition at line 96 of file AbstractDataPluginItem.cpp.
void Marble::AbstractDataPluginItem::setId | ( | const QString & | id | ) |
Definition at line 86 of file AbstractDataPluginItem.cpp.
|
virtual |
Set the settings of the item.
This is usually called automatically before painting. If you reimplement this it would be useful to check for changes before copying.
Reimplemented in Marble::WeatherItem, and Marble::WikipediaItem.
Definition at line 132 of file AbstractDataPluginItem.cpp.
void Marble::AbstractDataPluginItem::setSticky | ( | bool | sticky | ) |
Definition at line 109 of file AbstractDataPluginItem.cpp.
void Marble::AbstractDataPluginItem::setTarget | ( | const QString & | target | ) |
Definition at line 66 of file AbstractDataPluginItem.cpp.
void Marble::AbstractDataPluginItem::setToolTip | ( | const QString & | toolTip | ) |
Set the tool tip for the item.
Definition at line 76 of file AbstractDataPluginItem.cpp.
|
signal |
QString Marble::AbstractDataPluginItem::target | ( | ) |
Definition at line 61 of file AbstractDataPluginItem.cpp.
|
slot |
Definition at line 117 of file AbstractDataPluginItem.cpp.
QString Marble::AbstractDataPluginItem::toolTip | ( | ) | const |
Returns the item's tool tip.
Definition at line 71 of file AbstractDataPluginItem.cpp.
|
signal |
Property Documentation
|
readwrite |
Definition at line 33 of file AbstractDataPluginItem.h.
|
readwrite |
Definition at line 32 of file AbstractDataPluginItem.h.
|
readwrite |
Definition at line 34 of file AbstractDataPluginItem.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:55 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.