marble
AbstractDataPluginModel.cpp
Go to the documentation of this file.
247 AbstractDataPluginModel::AbstractDataPluginModel( const QString &name, const MarbleModel *marbleModel, QObject *parent )
281 Q_ASSERT( !d->m_displayedItems.contains( 0 ) && "Null item in m_displayedItems. Please report a bug to marble-devel@kde.org" );
282 Q_ASSERT( !d->m_itemSet.contains( 0 ) && "Null item in m_itemSet. Please report a bug to marble-devel@kde.org" );
321 if( !list.contains( *i ) && ( !alreadyDisplayed || (*i)->addedAngularResolution() >= viewport->angularResolution() ) ) {
527 QString AbstractDataPluginModel::generateFilename( const QString& id, const QString& type ) const
537 QString AbstractDataPluginModel::generateFilepath( const QString& id, const QString& type ) const
QList< AbstractDataPluginItem * > items(const ViewportParams *viewport, qint32 number=10)
Get the items on the viewport Returns the currently downloaded images in the viewport.
Definition: AbstractDataPluginModel.cpp:274
const int timeBetweenTriedDownloads
Definition: AbstractDataPluginModel.cpp:42
bool fileExists(const QString &fileName) const
Testing the existence of the file fileName.
Definition: AbstractDataPluginModel.cpp:542
QString generateFilename(const QString &id, const QString &type) const
Generates the filename relative to the download path from id and type.
Definition: AbstractDataPluginModel.cpp:527
int length() const
virtual void setFavoriteItems(const QStringList &list)
Definition: AbstractDataPluginModel.cpp:466
bool itemExists(const QString &id) const
Testing the existence of the item id in the list.
Definition: AbstractDataPluginModel.cpp:563
virtual ~AbstractDataPluginModel()
Definition: AbstractDataPluginModel.cpp:264
This file contains the headers for MarbleModel.
qreal angularResolution() const
Definition: ViewportParams.cpp:322
const T & at(int i) const
void removeAt(int i)
bool contains(const QString &str, Qt::CaseSensitivity cs) const
An abstract data model (not based on QAbstractModel) for a AbstractDataPlugin.
Definition: AbstractDataPluginModel.h:45
const GeoDataLatLonAltBox & viewLatLonAltBox() const
Definition: ViewportParams.cpp:305
Browsing mode, normal operation of Marble, like a web browser.
Definition: MarbleGlobal.h:166
const MarbleModel * marbleModel() const
Definition: AbstractDataPluginModel.cpp:269
bool intersects(const QRectF &rectangle) const
const qreal boxComparisonFactor
Definition: AbstractDataPluginModel.cpp:48
bool isSticky() const
Definition: AbstractDataPluginItem.cpp:104
QString join(const QString &separator) const
bool isEmpty() const
virtual void parseFile(const QByteArray &file)
Parse the file and generate items.
Definition: AbstractDataPluginModel.cpp:364
const int timeBetweenDownloads
Definition: AbstractDataPluginModel.cpp:44
int size() const
void itemsUpdated()
void downloadDescriptionFile(const QUrl &url)
Download the description file from the url.
Definition: AbstractDataPluginModel.cpp:392
const char * name() const
bool isValid() const
QString number(int n, int base)
bool contains(const QPointF &point) const
Returns true if the Item contains point in parent coordinates.
Definition: MarbleGraphicsItem.cpp:110
void append(const T &value)
bool isFavoriteItemsOnly() const
Definition: AbstractDataPluginModel.cpp:492
void setItemSettings(QHash< QString, QVariant > itemSettings)
Sets the settings for all items.
Definition: AbstractDataPluginModel.cpp:568
void favoriteItemsOnlyChanged()
int row() const
virtual void getItem(const QString &id)
Retrieve data for a specific item.
Definition: AbstractDataPluginModel.cpp:461
virtual void getAdditionalItems(const GeoDataLatLonAltBox &box, qint32 number=10)=0
Managing to get number additional items in box.
void deleteLater()
static bool lessThanByPointer(const AbstractDataPluginItem *item1, const AbstractDataPluginItem *item2)
Definition: AbstractDataPluginModel.cpp:161
AbstractDataPluginItem * findItem(const QString &id) const
Finds the item with id in the list.
Definition: AbstractDataPluginModel.cpp:552
A public class that controls what is visible in the viewport of a Marble map.
Definition: ViewportParams.h:44
const QString descriptionPrefix("description_")
iterator end()
bool contains(const T &value) const
This file contains the headers for ViewportParams.
void registerItemProperties(const QMetaObject &item)
Definition: AbstractDataPluginModel.cpp:675
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:97
virtual bool initialized() const =0
QByteArray toLatin1() const
QStringList favoriteItems() const
Definition: AbstractDataPluginModel.cpp:478
QList< AbstractDataPluginItem * > whichItemAt(const QPoint &curpos)
Get all items that contain the given point Returns a list of all items that contain the point curpos...
Definition: AbstractDataPluginModel.cpp:352
QObject * favoritesModel()
QStringList split(const QString &sep, const QString &str, bool allowEmptyEntries)
void setFavoriteItemsOnly(bool favoriteOnly)
Definition: AbstractDataPluginModel.cpp:483
QString generateFilepath(const QString &id, const QString &type) const
Generates the absolute filepath of the from id and type.
Definition: AbstractDataPluginModel.cpp:537
void addItemToList(AbstractDataPluginItem *item)
Convenience method to add one item to the list.
Definition: AbstractDataPluginModel.cpp:403
const_iterator constEnd() const
const_iterator constBegin() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
bool isFavorite() const
Definition: AbstractDataPluginItem.cpp:91
bool removeOne(const T &value)
iterator begin()
void downloadItem(const QUrl &url, const QString &type, AbstractDataPluginItem *item)
Downloads the file from url.
Definition: AbstractDataPluginModel.cpp:378
A class that defines a 3D bounding box for geographic data.
Definition: GeoDataLatLonAltBox.h:49
void destroyed(QObject *obj)
void addItemsToList(const QList< AbstractDataPluginItem * > &items)
Adds the items to the list of initialized items.
Definition: AbstractDataPluginModel.cpp:408
This class manages scheduled downloads.
Definition: HttpDownloadManager.h:44
void favoriteItemsChanged(const QStringList &favoriteItems)
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.