marble
BookmarkManager.cpp
Go to the documentation of this file.
39 Q_ASSERT( m_bookmarkDocument && "BookmarkManagerPrivate::m_bookmarkDocument is 0. Please report a Marble bug at http://bugs.kde.org" );
122 Q_ASSERT( d->m_bookmarkDocument && "d->m_bookmarkDocument is 0 but must not be. Please report a bug at http://bugs.kde.org" );
132 void BookmarkManager::addBookmark( GeoDataContainer *container, const GeoDataPlacemark &placemark )
QString m_bookmarkFileRelativePath
Definition: BookmarkManager_p.h:38
int addFeature(GeoDataContainer *parent, GeoDataFeature *feature, int row=-1)
Definition: GeoDataTreeModel.cpp:792
A container for Features, Styles and in the future Schemas.
Definition: GeoDataDocument.h:65
void renameBookmarkFolder(GeoDataFolder *folder, const QString &name)
Definition: BookmarkManager.cpp:207
bool loadFile(const QString &relativeFilePath)
load bookmark file as GeoDataDocument and return true if loaded successfully else false ...
Definition: BookmarkManager.cpp:91
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 setDocumentRole(DocumentRole role)
Definition: GeoDataDocument.cpp:86
static QString path(const QString &relativePath)
Definition: MarbleDirs.cpp:59
void setVisualCategory(GeoDataVisualCategory category)
Sets the symbol index of the placemark.
Definition: GeoDataFeature.cpp:770
void updateBookmark(GeoDataPlacemark *bookmark)
Definition: BookmarkManager.cpp:142
const_iterator constEnd() const
bool removeFeature(GeoDataContainer *parent, int index)
Definition: GeoDataTreeModel.cpp:826
bool isVisible() const
Return whether this feature is visible or not.
Definition: GeoDataFeature.cpp:656
A base class that can hold GeoDataFeatures.
Definition: GeoDataContainer.h:47
GeoDataDocument * m_bookmarkDocument
Definition: BookmarkManager_p.h:36
QString tr(const char *sourceText, const char *disambiguation, int n)
Definition: GeoDataDocument.h:44
int addDocument(GeoDataDocument *document)
Definition: GeoDataTreeModel.cpp:821
void bookmarksChanged()
One or more bookmarks were added or removed.
bool isNull() const
void setShowBookmarks(bool visible)
Definition: BookmarkManager.cpp:169
Definition: GeoDataParser.h:36
~BookmarkManagerPrivate()
Definition: BookmarkManager.cpp:37
static void setVisualCategory(GeoDataContainer *container)
Definition: BookmarkManager.cpp:64
void removeBookmark(GeoDataPlacemark *bookmark)
Definition: BookmarkManager.cpp:147
void setName(const QString &value)
Set a new name for this feature.
Definition: GeoDataFeature.cpp:549
void removeAllBookmarks()
remove all folders and bookmarks except default folder
Definition: BookmarkManager.cpp:226
void removeDocument(int index)
Definition: GeoDataTreeModel.cpp:872
QVector< GeoDataFolder * > folders() const
return Vector of folders
Definition: BookmarkManager.cpp:175
QVector< GeoDataFolder * > folderList() const
A convenience function that returns all folders in this container.
Definition: GeoDataContainer.cpp:197
bool isEmpty() const
Standard Marble way of writing XML This class is intended to be a standardised way of writing XML for...
Definition: GeoWriter.h:29
GeoDataTreeModel *const m_treeModel
Definition: BookmarkManager_p.h:34
void updateFeature(GeoDataFeature *feature)
Definition: GeoDataTreeModel.cpp:864
Definition: GeoDataFolder.h:50
void ensureDefaultFolder()
checks that there is at least one folder
Definition: BookmarkManager.cpp:219
const char * kmlTag_nameSpaceOgc22
Definition: KmlElementDictionary.cpp:34
void setDocumentType(const QString &documentType)
Set the current document type.
Definition: GeoWriter.cpp:79
BookmarkManager(GeoDataTreeModel *treeModel, QObject *parent=0)
Definition: BookmarkManager.cpp:75
BookmarkManagerPrivate(GeoDataTreeModel *treeModel)
Definition: BookmarkManager.cpp:29
const_iterator constBegin() const
void resetBookmarkDocument()
Definition: BookmarkManager.cpp:47
bool write(QIODevice *device, const GeoNode *feature)
The main API call to use the XML writer.
Definition: GeoWriter.cpp:28
void setZoomLevel(int index)
Sets the popularity index of the placemark.
Definition: GeoDataFeature.cpp:802
void removeBookmarkFolder(GeoDataFolder *folder)
Definition: BookmarkManager.cpp:213
a class representing a point of interest on the map
Definition: GeoDataPlacemark.h:54
bool showBookmarks() const
Definition: BookmarkManager.cpp:164
void addNewBookmarkFolder(GeoDataContainer *folder, const QString &name)
add a folder
Definition: BookmarkManager.cpp:180
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.