10 #include <QTextStream>
11 #include <QXmlStreamReader>
12 #include <QXmlStreamWriter>
21 m_pointStyle (pointStyle),
22 m_lineStyle (lineStyle)
38 QXmlStreamAttributes attributes = reader.attributes();
45 while ((reader.tokenType() != QXmlStreamReader::EndElement) ||
54 if ((reader.tokenType() == QXmlStreamReader::StartElement) &&
59 }
else if ((reader.tokenType() == QXmlStreamReader::StartElement) &
69 reader.raiseError (QObject::tr (
"Cannot read curve style data"));
81 QTextStream &str)
const
83 str << indentation <<
"CurveStyle\n";
94 const QString &curveName)
const
102 writer.writeEndElement();
void loadXml(QXmlStreamReader &reader)
Load model from serialized xml. Returns the curve name.
void saveXml(QXmlStreamWriter &writer, const QString &curveName) const
Serialize to xml.
QXmlStreamReader::TokenType loadNextFromReader(QXmlStreamReader &reader)
Load next token from xml reader.
void printStream(QString indentation, QTextStream &str) const
Debugging method that supports print method of this class and printStream method of some other class(...
const QString INDENTATION_DELTA
CurveStyle()
Default constructor.
void printStream(QString indentation, QTextStream &str) const
Debugging method that supports print method of this class and printStream method of some other class(...
void loadXml(QXmlStreamReader &reader)
Load model from serialized xml. Returns the curve name.
LineStyle lineStyle() const
Get method for LineStyle.
void setPointShape(PointShape shape)
Set method for curve point shape in specified curve.
#define LOG4CPP_INFO_S(logger)
PointStyle pointStyle() const
Get method for PointStyle.
void setLineConnectAs(CurveConnectAs curveConnectAs)
Set method for connect as method for lines in specified curve.
void setLineStyle(const LineStyle &lineStyle)
Set method for LineStyle.
void printStream(QString indentation, QTextStream &str) const
Debugging method that supports print method of this class and printStream method of some other class(...
void setPointRadius(int radius)
Set method for curve point radius.
void setPointLineWidth(int width)
Set method for curve point perimeter line width.
void setShape(PointShape shape)
Set method for point shape.
void saveXml(QXmlStreamWriter &writer) const
Serialize to stream.
Details for a specific Point.
QString loadXml(QXmlStreamReader &reader)
Load from serialized xml. Returns the curve name.
const QString DOCUMENT_SERIALIZE_POINT_STYLE
const QString DOCUMENT_SERIALIZE_CURVE_STYLE
void setPaletteColor(ColorPalette paletteColor)
Set method for point color.
Details for a specific Line.
void setLineColor(ColorPalette lineColor)
Set method for line color in specified curve.
log4cpp::Category * mainCat
const QString DOCUMENT_SERIALIZE_LINE_STYLE
void setRadius(unsigned int radius)
Set method for point radius.
void setPointColor(ColorPalette curveColor)
Set method curve point color in specified curve.
void setCurveConnectAs(CurveConnectAs curveConnectAs)
Set connect as.
void setPaletteColor(ColorPalette paletteColor)
Set method for line color.
void setLineWidth(int width)
Set method for line width in specified curve.
void saveXml(QXmlStreamWriter &writer) const
Serialize to stream.
void setWidth(int width)
Set width of line.
void setPointStyle(const PointStyle &pointStyle)
Set method for PointStyle.
const QString DOCUMENT_SERIALIZE_CURVE_NAME
void setLineWidth(int width)
Set method for line width.