Go to the documentation of this file.
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();
const QString DOCUMENT_SERIALIZE_POINT_STYLE
void setRadius(unsigned int radius)
Set method for point radius.
void setShape(PointShape shape)
Set method for point shape.
QString loadXml(QXmlStreamReader &reader)
Load from serialized xml. Returns the curve name.
LineStyle lineStyle() const
Get 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 setLineWidth(int width)
Set method for line width.
void setPointColor(ColorPalette curveColor)
Set method curve point color in specified curve.
const QString DOCUMENT_SERIALIZE_CURVE_NAME
void setLineColor(ColorPalette lineColor)
Set method for line color in specified curve.
void saveXml(QXmlStreamWriter &writer, const QString &curveName) const
Serialize to xml.
void loadXml(QXmlStreamReader &reader)
Load model from serialized xml. Returns the curve name.
void setPaletteColor(ColorPalette paletteColor)
Set method for point color.
void setLineWidth(int width)
Set method for line width in specified curve.
void setPointStyle(const PointStyle &pointStyle)
Set method for PointStyle.
Details for a specific Line.
CurveStyle()
Default constructor.
const QString DOCUMENT_SERIALIZE_LINE_STYLE
void loadXml(QXmlStreamReader &reader)
Load model from serialized xml. Returns the curve name.
#define LOG4CPP_INFO_S(logger)
void saveXml(QXmlStreamWriter &writer) const
Serialize to stream.
void printStream(QString indentation, QTextStream &str) const
Debugging method that supports print method of this class and printStream method of some other class(...
PointStyle pointStyle() const
Get method for PointStyle.
void setCurveConnectAs(CurveConnectAs curveConnectAs)
Set connect as.
log4cpp::Category * mainCat
void setLineStyle(const LineStyle &lineStyle)
Set method for LineStyle.
void saveXml(QXmlStreamWriter &writer) const
Serialize to stream.
Details for a specific Point.
const QString INDENTATION_DELTA
void setPointLineWidth(int width)
Set method for curve point perimeter line width.
void setWidth(int width)
Set width of line.
void setPaletteColor(ColorPalette paletteColor)
Set method for line color.
void setLineConnectAs(CurveConnectAs curveConnectAs)
Set method for connect as method for lines in specified curve.
void setPointShape(PointShape shape)
Set method for curve point shape in specified curve.
const QString DOCUMENT_SERIALIZE_CURVE_STYLE
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(...
void setPointRadius(int radius)
Set method for curve point radius.