Marble
7 #include "KmlFolderTagHandler.h"
9 #include "MarbleDebug.h"
11 #include "KmlElementDictionary.h"
12 #include "KmlObjectTagHandler.h"
13 #include "GeoDataContainer.h"
14 #include "GeoDataFolder.h"
15 #include "GeoDataParser.h"
16 #include "GeoDataDocument.h"
22 KML_DEFINE_TAG_HANDLER(Folder)
24 GeoNode* KmlFolderTagHandler::parse(GeoParser& parser)
const
26 Q_ASSERT(parser.isStartElement() && parser.isValidElement(
QLatin1String(kmlTag_Folder)));
28 GeoStackItem parentItem = parser.parentElement();
29 GeoDataFolder *folder =
new GeoDataFolder;
30 KmlObjectTagHandler::parseIdentifiers( parser, folder );
31 if ( parentItem.represents( kmlTag_Folder ) || parentItem.represents( kmlTag_Document ) ) {
32 GeoDataContainer *parentPtr = parentItem.nodeAs<GeoDataContainer>();
33 parentPtr->append( folder );
36 }
else if (parentItem.qualifiedName().first ==
QLatin1String(kmlTag_kml)) {
37 GeoDataDocument* doc = geoDataDoc( parser );
38 doc->append( folder );
Binds a QML item to a specific geodetic location in screen coordinates.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Thu Sep 21 2023 04:12:27 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.