marble
#include <BookmarkManager.h>
Public Slots | |
void | setShowBookmarks (bool visible) |
Signals | |
void | bookmarksChanged () |
Public Member Functions | |
BookmarkManager (GeoDataTreeModel *treeModel, QObject *parent=0) | |
~BookmarkManager () | |
void | addBookmark (GeoDataContainer *folder, const GeoDataPlacemark &bookmark) |
void | addNewBookmarkFolder (GeoDataContainer *folder, const QString &name) |
QString | bookmarkFile () const |
GeoDataDocument * | document () const |
QVector< GeoDataFolder * > | folders () const |
bool | loadFile (const QString &relativeFilePath) |
void | removeAllBookmarks () |
void | removeBookmark (GeoDataPlacemark *bookmark) |
void | removeBookmarkFolder (GeoDataFolder *folder) |
void | renameBookmarkFolder (GeoDataFolder *folder, const QString &name) |
bool | showBookmarks () const |
void | updateBookmark (GeoDataPlacemark *bookmark) |
Detailed Description
This class is responsible for loading the book mark objects from the files and various book mark operations.
Definition at line 35 of file BookmarkManager.h.
Constructor & Destructor Documentation
|
explicit |
Definition at line 71 of file BookmarkManager.cpp.
Marble::BookmarkManager::~BookmarkManager | ( | ) |
Definition at line 77 of file BookmarkManager.cpp.
Member Function Documentation
void Marble::BookmarkManager::addBookmark | ( | GeoDataContainer * | folder, |
const GeoDataPlacemark & | bookmark | ||
) |
add bookmark in a folder
- Parameters
-
bookmark bookmark to be added folderName folder name in which bookmark to be added
Definition at line 127 of file BookmarkManager.cpp.
void Marble::BookmarkManager::addNewBookmarkFolder | ( | GeoDataContainer * | folder, |
const QString & | name | ||
) |
add a folder
- Parameters
-
folder name of folder to be created
Definition at line 170 of file BookmarkManager.cpp.
QString Marble::BookmarkManager::bookmarkFile | ( | ) | const |
return bookmark file path
Definition at line 82 of file BookmarkManager.cpp.
|
signal |
One or more bookmarks were added or removed.
GeoDataDocument * Marble::BookmarkManager::document | ( | ) | const |
Definition at line 149 of file BookmarkManager.cpp.
QVector< GeoDataFolder * > Marble::BookmarkManager::folders | ( | ) | const |
return Vector of folders
Definition at line 165 of file BookmarkManager.cpp.
bool Marble::BookmarkManager::loadFile | ( | const QString & | relativeFilePath | ) |
load bookmark file as GeoDataDocument and return true if loaded successfully else false
- Parameters
-
relativeFilePath relative path of bookmark file
Definition at line 87 of file BookmarkManager.cpp.
void Marble::BookmarkManager::removeAllBookmarks | ( | ) |
remove all folders and bookmarks except default folder
Definition at line 209 of file BookmarkManager.cpp.
void Marble::BookmarkManager::removeBookmark | ( | GeoDataPlacemark * | bookmark | ) |
Definition at line 142 of file BookmarkManager.cpp.
void Marble::BookmarkManager::removeBookmarkFolder | ( | GeoDataFolder * | folder | ) |
Definition at line 203 of file BookmarkManager.cpp.
void Marble::BookmarkManager::renameBookmarkFolder | ( | GeoDataFolder * | folder, |
const QString & | name | ||
) |
Definition at line 197 of file BookmarkManager.cpp.
|
slot |
Definition at line 159 of file BookmarkManager.cpp.
bool Marble::BookmarkManager::showBookmarks | ( | ) | const |
Definition at line 154 of file BookmarkManager.cpp.
void Marble::BookmarkManager::updateBookmark | ( | GeoDataPlacemark * | bookmark | ) |
Definition at line 137 of file BookmarkManager.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:38:55 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.