Marble
BookmarkManager.cpp
37 Q_ASSERT( m_bookmarkDocument && "BookmarkManagerPrivate::m_bookmarkDocument is 0. Please report a Marble bug at https://bugs.kde.org" );
120 Q_ASSERT( d->m_bookmarkDocument && "d->m_bookmarkDocument is 0 but must not be. Please report a bug at https://bugs.kde.org" );
129 void BookmarkManager::addBookmark( GeoDataContainer *container, const GeoDataPlacemark &placemark )
140 bookmark->setStyle(GeoDataStyle::Ptr(new GeoDataStyle(*d->m_styleBuilder->createStyle(style))));
159 GeoDataPlacemark* BookmarkManager::bookmarkAt(GeoDataContainer *container, const GeoDataCoordinates &coordinate)
201 GeoDataFolder* BookmarkManager::addNewBookmarkFolder( GeoDataContainer *container, const QString &name )
262 const QString absoluteLocalFilePath = MarbleDirs::localPath() + QLatin1Char('/') + d->m_bookmarkFileRelativePath;
QString toString() const
return a string representation of the coordinate this is a convenience function which uses the defaul...
Definition: GeoDataCoordinates.cpp:390
bool isNull() const const
ReadOnly
void addBookmark(GeoDataContainer *folder, const GeoDataPlacemark &bookmark)
add bookmark in a folder
Definition: BookmarkManager.cpp:129
QVector< GeoDataFolder * > folders() const
return Vector of folders
Definition: BookmarkManager.cpp:196
QString trimmed() const const
QVector::const_iterator constEnd() const const
GeoDataPlacemark * bookmarkAt(GeoDataContainer *container, const GeoDataCoordinates &coordinate)
checks all the bookmarks in container recursively and returns pointer to the one having the same coor...
Definition: BookmarkManager.cpp:159
void setName(const QString &value)
Set a new name for this feature.
Definition: GeoDataFeature.cpp:189
void setVisualCategory(GeoDataVisualCategory index)
Sets the symbol category of the placemark.
Definition: GeoDataPlacemark.cpp:139
A container that is used to arrange other GeoDataFeatures.
Definition: GeoDataFolder.h:33
static bool write(QIODevice *device, const GeoDataDocument &document, const QString &documentIdentifier)
Write the content of the given GeoDataDocument to the given I/O device.
Definition: GeoDataDocumentWriter.cpp:21
void setZoomLevel(int index)
Sets the popularity index of the placemark.
Definition: GeoDataFeature.cpp:498
bool isEmpty() const const
GeoDataCoordinates coordinate(const QDateTime &dateTime=QDateTime(), bool *iconAtCoordinates=nullptr) const
Return the coordinates of the placemark at time dateTime as a GeoDataCoordinates.
Definition: GeoDataPlacemark.cpp:214
A container for Features, Styles and in the future Schemas.
Definition: GeoDataDocument.h:48
QVector< GeoDataPlacemark * > placemarkList() const
A convenience function that returns all placemarks in this container.
Definition: GeoDataContainer.cpp:145
Binds a QML item to a specific geodetic location in screen coordinates.
Definition: AbstractDataPlugin.cpp:22
void ensureDefaultFolder()
checks that there is at least one folder
Definition: BookmarkManager.cpp:242
a class representing a point of interest on the map
Definition: GeoDataPlacemark.h:48
A base class that can hold GeoDataFeatures.
Definition: GeoDataContainer.h:42
void setStyleBuilder(const StyleBuilder *styleBuilder)
Definition: BookmarkManager.cpp:255
void removeAllBookmarks()
remove all folders and bookmarks except default folder
Definition: BookmarkManager.cpp:249
void setStyle(const QSharedPointer< GeoDataStyle > &style)
Sets the style of the placemark.
Definition: GeoDataFeature.cpp:430
QVector< GeoDataFolder * > folderList() const
A convenience function that returns all folders in this container.
Definition: GeoDataContainer.cpp:127
QVector::const_iterator constBegin() const const
QString tr(const char *sourceText, const char *disambiguation, int n)
bool loadFile(const QString &relativeFilePath)
load bookmark file as GeoDataDocument and return true if loaded successfully else false
Definition: BookmarkManager.cpp:89
void bookmarksChanged()
One or more bookmarks were added or removed.
QSharedPointer< const GeoDataStyle > style() const
Return the style assigned to the placemark, or a default style if none has been set.
Definition: GeoDataFeature.cpp:413
GeoDataFolder * addNewBookmarkFolder(GeoDataContainer *container, const QString &name)
add a folder
Definition: BookmarkManager.cpp:201
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Oct 4 2023 04:09:41 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Oct 4 2023 04:09:41 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.