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"
18KML_DEFINE_TAG_HANDLER( NetworkLink )
20GeoNode* 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-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:18:17 by
doxygen 1.10.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.