marble
FileManager.cpp
Go to the documentation of this file.
79 void FileManager::addFile( const QString& filepath, const QString& property, const GeoDataStyle* style, DocumentRole role, bool recenter )
93 FileLoader* loader = new FileLoader( this, d->m_model, recenter, filepath, property, style, role );
97 void FileManager::addFile( const QStringList& filepaths, const QStringList& propertyList, const QList<const GeoDataStyle*>& styles, DocumentRole role )
A container for Features, Styles and in the future Schemas.
Definition: GeoDataDocument.h:65
int pendingFiles() const
Returns the number of files being opened at the moment.
Definition: FileManager.cpp:189
This file contains the headers for MarbleModel.
const T & at(int i) const
Definition: FileLoader.h:25
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
QString tr(const char *sourceText, const char *disambiguation, int n)
int size() const
void start(Priority priority)
bool isFinished() const
void addData(const QString &name, const QString &data, DocumentRole role)
add Data containing KML code as string
Definition: FileManager.cpp:104
void setName(const QString &value)
Set a new name for this feature.
Definition: GeoDataFeature.cpp:549
void closeFile(const GeoDataDocument *document)
Definition: FileManager.cpp:164
void setWindowTitle(const QString &title)
This class is responsible for loading the different files into Geodata model.
Definition: FileManager.h:36
bool isEmpty() const
void setText(const QString &text)
void removeFile(const QString &fileName)
removes an existing file from the manager
Definition: FileManager.cpp:119
Standard Marble way of writing XML This class is intended to be a standardised way of writing XML for...
Definition: GeoWriter.h:29
void setIcon(Icon)
GeoDataLatLonAltBox latLonAltBox() const
A convenience function that returns the LatLonAltBox of all placemarks in this container.
Definition: GeoDataContainer.cpp:160
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
const char * kmlTag_nameSpaceOgc22
Definition: KmlElementDictionary.cpp:34
int exec()
void setDocumentType(const QString &documentType)
Set the current document type.
Definition: GeoWriter.cpp:79
FileManager(MarbleModel *model, QObject *parent=0)
Creates a new file manager.
Definition: FileManager.cpp:67
virtual void close()
The data model (not based on QAbstractModel) for a MarbleWidget.
Definition: MarbleModel.h:97
bool wait(unsigned long time)
void saveFile(const QString &fileName, const GeoDataDocument *document)
Definition: FileManager.cpp:150
bool write(QIODevice *device, const GeoNode *feature)
The main API call to use the XML writer.
Definition: GeoWriter.cpp:28
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
A class that defines a 2D bounding box for geographic data.
Definition: GeoDataLatLonBox.h:51
void addFile(const QString &fileName, const QString &property, const GeoDataStyle *style, DocumentRole role, bool recenter=false)
Loads a new file into the manager.
Definition: FileManager.cpp:79
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:39 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:39 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.