10 #include "ColorPalette.h" 11 #include "CurveStyle.h" 16 class QXmlStreamReader;
17 class QXmlStreamWriter;
19 typedef QHash<QString, CurveStyle> CurveStylesInternal;
44 ColorPalette
lineColor (
const QString &curveName)
const;
47 CurveConnectAs
lineConnectAs (
const QString &curveName)
const;
53 int lineWidth (
const QString &curveName)
const;
56 void loadXml (QXmlStreamReader &reader);
59 ColorPalette
pointColor (
const QString &curveName)
const;
74 PointShape
pointShape(
const QString &curveName)
const;
80 void saveXml(QXmlStreamWriter &writer)
const;
88 ColorPalette lineColor);
92 CurveConnectAs curveConnectAs);
100 ColorPalette curveColor);
120 CurveStylesInternal m_curveStyles;
124 #endif // CURVE_STYLES_H void setLineColor(const QString &curveName, ColorPalette lineColor)
Set method for line color in specified curve.
CurveStyle curveStyle(const QString &curveName) const
CurveStyle in specified curve.
void setLineConnectAs(const QString &curveName, CurveConnectAs curveConnectAs)
Set method for connect as method for lines in specified curve.
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.
QStringList curveNames() const
List of all curve names.
Model for DlgSettingsCurveProperties and CmdSettingsCurveProperties.
int lineWidth(const QString &curveName) const
Get method for line width in specified curve.
CurveStyles & operator=(const CurveStyles &other)
Assignment constructor.
Storage of data belonging to one coordinate system.
void loadXml(QXmlStreamReader &reader)
Load from serialized xml.
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 saveXml(QXmlStreamWriter &writer) const
Serialize to xml.
PointShape pointShape(const QString &curveName) const
Get method for curve point shape.
bool pointIsCircle(const QString &curveName) const
Get method for curve point is circle in specified curve.
void setCurveStyle(const QString &curveName, const CurveStyle &curveStyle)
Set method for curve style.
ColorPalette pointColor(const QString &curveName) const
Get method for curve point color in specified curve.
Details for a specific Point.
QPolygonF pointPolygon(const QString &curveName) const
Get method for curve point polygon in specified curve.
const LineStyle lineStyle(const QString &curveName) const
Get method for copying one line style in one step.
int pointRadius(const QString &curveName) const
Get method for curve point radius.
Container for LineStyle and PointStyle for one Curve.
Details for a specific Line.
void setPointRadius(const QString &curveName, int radius)
Set method for curve point radius.
CurveConnectAs lineConnectAs(const QString &curveName) const
Get method for connect as method for lines in specified curve.
void setPointIsCircle(const QString &curveName, bool pointIsCircle)
Set method for curve point is circle in specified curve.
ColorPalette lineColor(const QString &curveName) const
Get method for line color in specified curve.
int pointLineWidth(const QString &curveName) const
Get method for curve point line width.
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.