13#include <QXmlStreamReader>
14#include <QXmlStreamWriter>
42 m_paletteColor (paletteColor),
43 m_curveConnectAs (curveConnectAs)
48 m_width (
other.width ()),
49 m_paletteColor (
other.paletteColor()),
50 m_curveConnectAs (
other.curveConnectAs())
56 m_width =
other.width ();
57 m_paletteColor =
other.paletteColor();
58 m_curveConnectAs =
other.curveConnectAs();
65 return m_curveConnectAs;
119 while ((
reader.tokenType() != QXmlStreamReader::EndElement) ||
124 reader.raiseError (QObject::tr (
"Cannot read line style data"));
130 return m_paletteColor;
QString colorPaletteToString(ColorPalette colorPalette)
@ COLOR_PALETTE_TRANSPARENT
QString curveConnectAsToString(CurveConnectAs curveConnectAs)
@ CONNECT_SKIP_FOR_AXIS_CURVE
@ CONNECT_AS_FUNCTION_SMOOTH
const int INNER_RADIUS_MIN
const QString DOCUMENT_SERIALIZE_LINE_STYLE
const QString DOCUMENT_SERIALIZE_LINE_STYLE_WIDTH
const QString DOCUMENT_SERIALIZE_LINE_STYLE_COLOR
const QString DOCUMENT_SERIALIZE_LINE_STYLE_COLOR_STRING
const QString DOCUMENT_SERIALIZE_LINE_STYLE_CONNECT_AS_STRING
const QString DOCUMENT_SERIALIZE_LINE_STYLE_CONNECT_AS
const CurveConnectAs DEFAULT_LINE_CONNECT_AS_GRAPH
const int DEFAULT_LINE_WIDTH_AXES
const CurveConnectAs DEFAULT_LINE_CONNECT_AS_AXES
const ColorPalette DEFAULT_LINE_COLOR_GRAPH
const ColorPalette DEFAULT_LINE_COLOR_AXES
const int DEFAULT_LINE_WIDTH_GRAPH
log4cpp::Category * mainCat
const QString INDENTATION_DELTA
const QString SETTINGS_ENGAUGE
const QString SETTINGS_GROUP_CURVE_AXES
const QString SETTINGS_CURVE_LINE_WIDTH
const QString SETTINGS_CURVE_LINE_CONNECT_AS
const QString SETTINGS_CURVE_LINE_COLOR
const QString SETTINGS_DIGITIZER
QXmlStreamReader::TokenType loadNextFromReader(QXmlStreamReader &reader)
Load next token from xml reader.
Details for a specific Line.
static LineStyle defaultAxesCurve()
Initial default for axes curve.
void saveXml(QXmlStreamWriter &writer) const
Serialize to stream.
void setCurveConnectAs(CurveConnectAs curveConnectAs)
Set connect as.
CurveConnectAs curveConnectAs() const
Get method for connect type.
unsigned int width() const
Width of line.
ColorPalette paletteColor() const
Line color.
LineStyle()
Default constructor only for use when this class is being stored by a container that requires the def...
static LineStyle defaultGraphCurve(int index)
Initial default for index'th graph curve.
void setWidth(int width)
Set width of line.
void printStream(QString indentation, QTextStream &str) const
Debugging method that supports print method of this class and printStream method of some other class(...
void setPaletteColor(ColorPalette paletteColor)
Set method for line color.
void loadXml(QXmlStreamReader &reader)
Load model from serialized xml. Returns the curve name.
LineStyle & operator=(const LineStyle &other)
Assignment operator.
Manage storage and retrieval of the settings for the curves.
QString groupNameForNthCurve(int indexOneBased) const
Return the group name, that appears in the settings file/registry, for the specified curve index.
#define LOG4CPP_INFO_S(logger)