Marble
6 #include "KmlNetworkLinkTagHandler.h"
8 #include "GeoDataNetworkLink.h"
9 #include "GeoDataContainer.h"
10 #include "GeoDataDocument.h"
11 #include "GeoDataParser.h"
12 #include "KmlElementDictionary.h"
18 KML_DEFINE_TAG_HANDLER( NetworkLink )
20 GeoNode* KmlNetworkLinkTagHandler::parse( GeoParser& parser )
const
22 Q_ASSERT(parser.isStartElement() && parser.isValidElement(
QLatin1String(kmlTag_NetworkLink)));
24 GeoDataNetworkLink *networkLink =
new GeoDataNetworkLink;
25 GeoStackItem parentItem = parser.parentElement();
27 if( parentItem.represents( kmlTag_Folder ) || parentItem.represents( kmlTag_Document ) ) {
28 parentItem.nodeAs<GeoDataContainer>()->append( networkLink );
30 }
else if ( parentItem.qualifiedName().first == kmlTag_kml ) {
31 GeoDataDocument* doc = geoDataDoc( parser );
32 doc->append( networkLink );
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 Mon Oct 2 2023 03:52:08 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.