marble
KmlBalloonStyleTagWriter.cpp
Go to the documentation of this file.
24 static GeoTagWriterRegistrar s_writerBallonStyle( GeoTagWriter::QualifiedName(GeoDataTypes::GeoDataBalloonStyleType,
35 QString const backgroundColor = KmlColorStyleTagWriter::formatColor( balloonStyle->backgroundColor() );
49 QString const displayMode = balloonStyle->displayMode() == GeoDataBalloonStyle::Hide ? "hide" : "default";
void writeOptionalElement(const QString &key, const QString &value, const QString &defaultValue=QString())
Convenience method to write value if value is not equal to defaultValue.
Definition: GeoWriter.cpp:98
A shared base class for all classes that are mapped to a specific tag (ie.
Definition: GeoDocument.h:60
virtual bool write(const GeoNode *node, GeoWriter &writer) const
Definition: KmlBalloonStyleTagWriter.cpp:28
const char * kmlTag_displayMode
Definition: KmlElementDictionary.cpp:59
QColor backgroundColor() const
Definition: GeoDataBalloonStyle.cpp:77
static void writeIdentifiers(GeoWriter &writer, const GeoDataObject *object)
Parses the id and targetId attributes and assign their values to the given object.
Definition: KmlObjectTagWriter.cpp:15
const char * kmlTag_BalloonStyle
Definition: KmlElementDictionary.cpp:42
static QString formatColor(const QColor &color)
Definition: KmlColorStyleTagWriter.cpp:43
Standard Marble way of writing XML This class is intended to be a standardised way of writing XML for...
Definition: GeoWriter.h:29
QPair< QString, QString > QualifiedName
Object Name and Namespace Pair This type is intended to be used in a similar way to.
Definition: GeoTagWriter.h:48
void writeCDATA(const QString &text)
static GeoTagWriterRegistrar s_writerBallonStyle(GeoTagWriter::QualifiedName(GeoDataTypes::GeoDataBalloonStyleType, kml::kmlTag_nameSpaceOgc22), new KmlBalloonStyleTagWriter())
const char * kmlTag_nameSpaceOgc22
Definition: KmlElementDictionary.cpp:34
bool contains(QChar ch, Qt::CaseSensitivity cs) const
QColor textColor() const
Definition: GeoDataBalloonStyle.cpp:87
const char * GeoDataBalloonStyleType
Definition: GeoDataTypes.cpp:89
DisplayMode displayMode() const
Definition: GeoDataBalloonStyle.cpp:107
void writeEndElement()
void writeStartElement(const QString &qualifiedName)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:13:40 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:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.