marble
Bookmarks.cpp
Go to the documentation of this file.
52 Marble::GeoDataCoordinates const compareTo( longitude, latitude, 0.0, Marble::GeoDataCoordinates::Degree );
64 void Bookmarks::addBookmark( qreal longitude, qreal latitude, const QString &name, const QString &folderName )
94 Marble::GeoDataCoordinates coordinate( longitude, latitude, 0.0, Marble::GeoDataCoordinates::Degree );
113 Marble::GeoDataCoordinates const compareTo( longitude, latitude, 0.0, Marble::GeoDataCoordinates::Degree );
virtual QModelIndex index(int row, int column, const QModelIndex &parent) const
A container for Features, Styles and in the future Schemas.
Definition: GeoDataDocument.h:65
The representation of GeoData in a model This class represents all available data given by kml-data f...
Definition: GeoDataTreeModel.h:32
void addBookmark(GeoDataContainer *folder, const GeoDataPlacemark &bookmark)
add bookmark in a folder
Definition: BookmarkManager.cpp:132
void layoutChanged()
void setRoleNames(const QHash< int, QByteArray > &roleNames)
Proxy Model for restructuring a Tree into a list.
Definition: kdescendantsproxymodel.h:69
virtual void setSourceModel(QAbstractItemModel *sourceModel)
void setRootDocument(GeoDataDocument *document)
Sets the root document to use.
Definition: GeoDataTreeModel.cpp:889
This file contains the headers for MarbleModel.
const QHash< int, QByteArray > & roleNames() const
const char * GeoDataPlacemarkType
Definition: GeoDataTypes.cpp:66
T value() const
A base class that can hold GeoDataFeatures.
Definition: GeoDataContainer.h:47
GeoDataCoordinates coordinate(const QDateTime &dateTime=QDateTime(), bool *iconAtCoordinates=0) const
Return the coordinates of the placemark at time dateTime as a GeoDataCoordinates. ...
Definition: GeoDataPlacemark.cpp:172
qreal distanceSphere(qreal lon1, qreal lat1, qreal lon2, qreal lat2)
This method calculates the shortest distance between two points on a sphere.
Definition: MarbleMath.h:52
void modelReset()
void setCoordinate(qreal longitude, qreal latitude, qreal altitude=0, GeoDataCoordinates::Unit _unit=GeoDataCoordinates::Radian)
Set the coordinate of the placemark in longitude and latitude.
Definition: GeoDataPlacemark.cpp:215
qreal latitude(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
retrieves the latitude of the GeoDataCoordinates object use the unit parameter to switch between Radi...
Definition: GeoDataCoordinates.cpp:751
virtual int rowCount(const QModelIndex &parent) const
bool isBookmark(qreal longitude, qreal latitude) const
Definition: Bookmarks.cpp:44
int count() const
void removeBookmark(GeoDataPlacemark *bookmark)
Definition: BookmarkManager.cpp:147
This class is responsible for loading the book mark objects from the files and various book mark oper...
Definition: BookmarkManager.h:35
const char * name() const
void setName(const QString &value)
Set a new name for this feature.
Definition: GeoDataFeature.cpp:549
void setRange(qreal range)
Change the distance (in meters) between the camera and the object looked at.
Definition: GeoDataLookAt.cpp:114
QVector< GeoDataFolder * > folderList() const
A convenience function that returns all folders in this container.
Definition: GeoDataContainer.cpp:197
void countChanged()
Definition: GeoDataFolder.h:50
void rowsRemoved(const QModelIndex &parent, int start, int end)
qreal longitude(GeoDataCoordinates::Unit unit=GeoDataCoordinates::Radian) const
retrieves the longitude of the GeoDataCoordinates object use the unit parameter to switch between Rad...
Definition: GeoDataCoordinates.cpp:739
Definition: GeoDataLookAt.h:23
The GeoDataCoordinates coordinate.
Definition: MarblePlacemarkModel.h:53
void removeBookmark(qreal longitude, qreal latitude)
Definition: Bookmarks.cpp:105
Definition: GeoDataData.h:26
void addValue(const GeoDataData &data)
add a data object to the GeoDataExtendedData with the key
Definition: GeoDataExtendedData.cpp:71
virtual void setSourceModel(QAbstractItemModel *model)
Sets the source model of the proxy.
Definition: kdescendantsproxymodel.cpp:249
void addBookmark(qreal longitude, qreal latitude, const QString &name, const QString &folder)
Definition: Bookmarks.cpp:64
BookmarkManager * bookmarkManager()
return instance of BookmarkManager
Definition: MarbleModel.cpp:213
void setFilterFixedString(const QString &pattern)
BookmarksModel * model()
MarbleWidget * map()
Wraps a Marble::MarbleWidget, providing access to important properties and methods.
Definition: MarbleDeclarativeWidget.h:50
GeoDataExtendedData & extendedData() const
Return the ExtendedData assigned to the feature.
Definition: GeoDataFeature.cpp:743
void rowsInserted(const QModelIndex &parent, int start, int end)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QString toString() const
a class representing a point of interest on the map
Definition: GeoDataPlacemark.h:54
void setFilterKeyColumn(int column)
virtual QVariant data(const QModelIndex &index, int role) const
void addNewBookmarkFolder(GeoDataContainer *folder, const QString &name)
add a folder
Definition: BookmarkManager.cpp:180
void setCoordinates(const GeoDataCoordinates &coordinates)
set the GeoDataCoordinates object
Definition: GeoDataLookAt.cpp:66
Definition: Bookmarks.h:19
QVector< GeoDataPlacemark * > placemarkList() const
A convenience function that returns all placemarks in this container.
Definition: GeoDataContainer.cpp:214
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.