marble
#include <FileManager.h>
Signals | |
void | centeredDocument (const GeoDataLatLonBox &) |
void | fileAdded (const QString &key) |
void | fileRemoved (const QString &key) |
Public Member Functions | |
FileManager (MarbleModel *model, QObject *parent=0) | |
~FileManager () | |
void | addData (const QString &name, const QString &data, DocumentRole role) |
void | addFile (const QString &fileName, const QString &property, GeoDataStyle *style, DocumentRole role, bool recenter=false) |
void | addFile (const QStringList &fileNames, const QStringList &propertyList, const QList< GeoDataStyle * > &styles, DocumentRole role) |
GeoDataDocument * | at (const QString &key) |
void | closeFile (GeoDataDocument *document) |
void | removeFile (const QString &fileName) |
void | saveFile (GeoDataDocument *document) |
int | size () const |
Detailed Description
This class is responsible for loading the different files into Geodata model.
The loaded data are accessible via various models in MarbleModel.
Definition at line 36 of file FileManager.h.
Constructor & Destructor Documentation
|
explicit |
Creates a new file manager.
- Parameters
-
parent The parent object.
Definition at line 65 of file FileManager.cpp.
FileManager::~FileManager | ( | ) |
Destroys the file manager.
Definition at line 72 of file FileManager.cpp.
Member Function Documentation
void FileManager::addData | ( | const QString & | name, |
const QString & | data, | ||
DocumentRole | role | ||
) |
add Data containing KML code as string
Definition at line 102 of file FileManager.cpp.
void FileManager::addFile | ( | const QString & | fileName, |
const QString & | property, | ||
GeoDataStyle * | style, | ||
DocumentRole | role, | ||
bool | recenter = false |
||
) |
Loads a new file into the manager.
Definition at line 77 of file FileManager.cpp.
void FileManager::addFile | ( | const QStringList & | fileNames, |
const QStringList & | propertyList, | ||
const QList< GeoDataStyle * > & | styles, | ||
DocumentRole | role | ||
) |
Loads multiple files into the manager.
Definition at line 95 of file FileManager.cpp.
GeoDataDocument * FileManager::at | ( | const QString & | key | ) |
Definition at line 170 of file FileManager.cpp.
|
signal |
void FileManager::closeFile | ( | GeoDataDocument * | document | ) |
Definition at line 153 of file FileManager.cpp.
|
signal |
|
signal |
void FileManager::removeFile | ( | const QString & | fileName | ) |
removes an existing file from the manager
Definition at line 117 of file FileManager.cpp.
void FileManager::saveFile | ( | GeoDataDocument * | document | ) |
Definition at line 148 of file FileManager.cpp.
int FileManager::size | ( | ) | const |
Definition at line 165 of file FileManager.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.