marble
DeclarativeDataPlugin.cpp
Go to the documentation of this file.
55 static void parseChunk( DeclarativeDataPluginItem * item, GeoDataCoordinates &coordinates, const QString &key, const QVariant &value );
67 q( parent ), m_planet( "earth"), m_isInitialized( false ), m_delegate( 0 ), m_counter( m_global_counter )
72 void DeclarativeDataPluginPrivate::parseChunk( DeclarativeDataPluginItem *item, GeoDataCoordinates &coordinates, const QString &key, const QVariant &value )
85 void DeclarativeDataPluginPrivate::addItem( DeclarativeDataPluginItem *item, const GeoDataCoordinates &coordinates )
136 meta->method(i).invoke( object, Qt::AutoConnection, Q_RETURN_ARG( QScriptValue , value), Q_ARG( int, j ) );
159 Marble::RenderPlugin *DeclarativeDataPlugin::newInstance(const Marble::MarbleModel *marbleModel) const
182 connect( dataModel, SIGNAL(dataRequest(qreal,qreal,qreal,qreal)), this, SIGNAL(dataRequest(qreal,qreal,qreal,qreal)) );
224 return d->m_nameId.isEmpty() ? QString( "DeclarativeDataPlugin_%1" ).arg( d->m_counter ) : d->m_nameId;
void authorsChanged()
void setDelegate(QDeclarativeComponent *delegate)
Definition: DeclarativeDataPlugin.cpp:340
void setNumberOfItems(quint32 number)
Set the number of items to be shown at the same time.
Definition: AbstractDataPlugin.cpp:156
QString planet() const
void setAboutDataText(const QString &aboutDataText)
Definition: DeclarativeDataPlugin.cpp:327
void setTarget(const QString &target)
Definition: AbstractDataPluginItem.cpp:66
virtual int rowCount(const QModelIndex &parent) const =0
QVariant declarativeModel()
Definition: DeclarativeDataPlugin.cpp:387
virtual bool isInitialized() const
Definition: DeclarativeDataPlugin.cpp:356
void setAltitude(const qreal altitude)
set the altitude of the Point in meters
Definition: GeoDataCoordinates.cpp:1191
bool invoke(QObject *object, Qt::ConnectionType connectionType, QGenericReturnArgument returnValue, QGenericArgument val0, QGenericArgument val1, QGenericArgument val2, QGenericArgument val3, QGenericArgument val4, QGenericArgument val5, QGenericArgument val6, QGenericArgument val7, QGenericArgument val8, QGenericArgument val9) const
Marble::RenderState renderState() const
Definition: DeclarativeDataPlugin.cpp:361
virtual QString guiString() const
String that should be displayed in GUI.
virtual QMap< int, QVariant > itemData(const QModelIndex &index) const
This file contains the headers for MarbleModel.
void setId(const QString &id)
Definition: AbstractDataPluginItem.cpp:86
const QHash< int, QByteArray > & roleNames() const
Definition: PluginInterface.h:28
void declarativeModelChanged()
void setFavoriteItemsOnly(bool favoriteOnly)
Convenience method to set the favorite item state on the current model.
Definition: AbstractDataPlugin.cpp:189
virtual const QMetaObject * metaObject() const
T value() const
An abstract class for plugins that show data that has a geo coordinate.
Definition: AbstractDataPlugin.h:45
Marble::RenderPlugin * newInstance(const Marble::MarbleModel *marbleModel) const
Creation a new instance of the plugin.
Definition: DeclarativeDataPlugin.cpp:159
void nameChanged()
void descriptionChanged()
void dataRequest(qreal north, qreal south, qreal east, qreal west)
Additional data for the currently visible map region is requested.
int size() const
virtual QString aboutDataText() const
Returns about text (credits) for external data the plugin uses.
void setPlanet(const QString &planet)
Definition: DeclarativeDataPlugin.cpp:204
void setCopyrightYears(const QString ©rightYears)
Definition: DeclarativeDataPlugin.cpp:298
int propertyCount() const
quint32 numberOfItems() const
virtual ~DeclarativeDataPlugin()
Definition: DeclarativeDataPlugin.cpp:194
QVariant property(const char *name) const
const_iterator constEnd() const
int toInt(bool *ok) const
virtual QList< Marble::PluginAuthor > pluginAuthors() const
void guiStringChanged()
void nameIdChanged()
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const
void setVersion(const QString &version)
Definition: DeclarativeDataPlugin.cpp:290
bool isEmpty() const
int methodCount() const
const char * signature() const
Definition: DeclarativeDataPlugin.h:25
bool isFavoriteItemsOnly() const
Definition: AbstractDataPlugin.cpp:196
void setModel(AbstractDataPluginModel *model)
Set the model of the plugin.
Definition: AbstractDataPlugin.cpp:134
Definition: RenderState.h:22
QVariant read(const QObject *object) const
void setAuthors(const QStringList &pluginAuthors)
Definition: DeclarativeDataPlugin.cpp:314
virtual QIcon icon() const
Returns an icon for the plugin.
Definition: DeclarativeDataPlugin.cpp:261
virtual QString description() const
Returns a user description of the plugin.
void copyrightYearsChanged()
void delegateChanged()
void setLatitude(qreal lat, GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian)
set the longitude in a GeoDataCoordinates object
Definition: GeoDataCoordinates.cpp:699
void planetChanged()
const char * name() const
void setLongitude(qreal lon, GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian)
set the longitude in a GeoDataCoordinates object
Definition: GeoDataCoordinates.cpp:679
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:97
const_iterator constBegin() const
QByteArray toLatin1() const
void setName(const QString &name)
Definition: DeclarativeDataPlugin.cpp:266
DeclarativeDataPlugin(const Marble::MarbleModel *marbleModel=0)
Definition: DeclarativeDataPlugin.cpp:187
QString toString() const
return a string representation of the coordinate this is a convenience function which uses the defaul...
Definition: GeoDataCoordinates.cpp:921
This file contains the headers for MarbleWidget.
void versionChanged()
bool isValid() const
void aboutDataTextChanged()
double toDouble(bool *ok) const
bool setProperty(const char *name, const QVariant &value)
void setNameId(const QString &nameId)
Definition: DeclarativeDataPlugin.cpp:282
void setGuiString(const QString &guiString)
Definition: DeclarativeDataPlugin.cpp:274
const_iterator constEnd() const
const_iterator constBegin() const
void setDeclarativeModel(const QVariant &model)
Definition: DeclarativeDataPlugin.cpp:366
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void setCoordinate(const GeoDataCoordinates &coordinates)
Definition: BillboardGraphicsItem.cpp:98
QDeclarativeComponent * delegate()
virtual QString version() const
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
QString toString() const
AbstractDataPluginModel * model()
Definition: AbstractDataPlugin.cpp:124
void setDescription(const QString description)
Definition: DeclarativeDataPlugin.cpp:306
virtual QString copyrightYears() const
The abstract class that creates a renderable item.
Definition: RenderPlugin.h:43
QMetaMethod method(int index) const
void addItemsToList(const QList< AbstractDataPluginItem * > &items)
Adds the items to the list of initialized items.
Definition: AbstractDataPluginModel.cpp:408
QMetaProperty property(int index) const
const T value(const Key &key) const
QObject * toQObject() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:38 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:38 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.