4 #include "ColorPalette.h"
5 #include "CurveStyle.h"
10 class QXmlStreamReader;
11 class QXmlStreamWriter;
13 typedef QHash<QString, CurveStyle> CurveStylesInternal;
38 ColorPalette
lineColor (
const QString &curveName)
const;
41 CurveConnectAs
lineConnectAs (
const QString &curveName)
const;
47 int lineWidth (
const QString &curveName)
const;
50 void loadXml (QXmlStreamReader &reader);
53 ColorPalette
pointColor (
const QString &curveName)
const;
68 PointShape
pointShape(
const QString &curveName)
const;
74 void saveXml(QXmlStreamWriter &writer)
const;
82 ColorPalette lineColor);
86 CurveConnectAs curveConnectAs);
94 ColorPalette curveColor);
114 CurveStylesInternal m_curveStyles;
118 #endif // CURVE_STYLES_H
void setLineColor(const QString &curveName, ColorPalette lineColor)
Set method for line color in specified curve.
QStringList curveNames() const
List of all curve names.
QPolygonF pointPolygon(const QString &curveName) const
Get method for curve point polygon in specified curve.
void setLineConnectAs(const QString &curveName, CurveConnectAs curveConnectAs)
Set method for connect as method for lines in specified curve.
bool pointIsCircle(const QString &curveName) const
Get method for curve point is circle in specified curve.
const PointStyle pointStyle(const QString &curveName) const
Get method for copying one point style. Cannot return just a reference or else there is a warning abo...
void setLineWidth(const QString &curveName, int width)
Set method for line width in specified curve.
CurveStyles()
Default constructor.
void setPointLineWidth(const QString &curveName, int width)
Set method for curve point perimeter line width.
Model for DlgSettingsCurveProperties and CmdSettingsCurveProperties.
CurveStyles & operator=(const CurveStyles &other)
Assignment constructor.
void loadXml(QXmlStreamReader &reader)
Load from serialized xml.
int pointRadius(const QString &curveName) const
Get method for curve point radius.
int lineWidth(const QString &curveName) const
Get method for line width in specified curve.
ColorPalette lineColor(const QString &curveName) const
Get method for line color in specified curve.
const LineStyle lineStyle(const QString &curveName) const
Get method for copying one line style in one step.
void setCurveStyle(const QString &curveName, const CurveStyle &curveStyle)
Set method for curve style.
Details for a specific Point.
CurveConnectAs lineConnectAs(const QString &curveName) const
Get method for connect as method for lines in specified curve.
Container for LineStyle and PointStyle for one Curve.
Storage of one imported image and the data attached to that image.
Details for a specific Line.
PointShape pointShape(const QString &curveName) const
Get method for curve point shape.
ColorPalette pointColor(const QString &curveName) const
Get method for curve point color in specified curve.
void setPointRadius(const QString &curveName, int radius)
Set method for curve point radius.
void saveXml(QXmlStreamWriter &writer) const
Serialize to xml.
void setPointIsCircle(const QString &curveName, bool pointIsCircle)
Set method for curve point is circle in specified curve.
int pointLineWidth(const QString &curveName) const
Get method for curve point line width.
CurveStyle curveStyle(const QString &curveName) const
CurveStyle in specified curve.
void setPointShape(const QString &curveName, PointShape shape)
Set method for curve point shape in specified curve.
void setPointColor(const QString &curveName, ColorPalette curveColor)
Set method curve point color in specified curve.