28 linesInterpolate, Qt::Orientation sticksOrientation,
double 29 sticksBaseline,
bool stepsInvert,
size_t penWidth, Qt::PenStyle
30 penStyle,
bool renderAntialias) :
33 linesInterpolate_(linesInterpolate),
34 sticksOrientation_(sticksOrientation),
35 sticksBaseline_(sticksBaseline),
36 stepsInvert_(stepsInvert),
39 renderAntialias_(renderAntialias) {
158 settings.setValue(
"type",
type_);
165 settings.setValue(
"pen_width", QVariant::fromValue<qulonglong>(
penWidth_));
166 settings.setValue(
"pen_style", (
int)
penStyle_);
171 setType(static_cast<Type>(settings.value(
"type",
Lines).toInt()));
175 "sticks_orientation", Qt::Vertical).toInt()));
179 setPenWidth(settings.value(
"pen_width", 1).toULongLong());
180 setPenStyle(static_cast<Qt::PenStyle>(settings.value(
181 "pen_style", (
int)Qt::SolidLine).toInt()));
199 stream << (int)
type_;
212 int type, sticksOrientation, penStyle;
213 bool linesInterpolate, stepsInvert, renderAntialias;
214 double sticksBaseline;
218 setType(static_cast<Type>(type));
220 stream >> linesInterpolate;
222 stream >> sticksOrientation;
224 stream >> sticksBaseline;
226 stream >> stepsInvert;
233 stream >> renderAntialias;
void sticksOrientationChanged(int orientation)
void penStyleChanged(int style)
CurveStyleConfig(QObject *parent=0, Type type=Lines, bool linesInterpolate=false, Qt::Orientation sticksOrientation=Qt::Vertical, double sticksBaseline=0.0, bool stepsInvert=false, size_t penWidth=1, Qt::PenStyle penStyle=Qt::SolidLine, bool renderAntialias=false)
bool isRenderAntialiased() const
double getSticksBaseline() const
void setLinesInterpolate(bool interpolate)
void renderAntialiasChanged(bool antialias)
Qt::PenStyle getPenStyle() const
void setPenWidth(size_t width)
Qt::Orientation sticksOrientation_
void save(QSettings &settings) const
void sticksBaselineChanged(double baseline)
void setSticksBaseline(double baseline)
void write(QDataStream &stream) const
void typeChanged(int type)
void penWidthChanged(size_t width)
bool areStepsInverted() const
void setPenStyle(Qt::PenStyle style)
void setSticksOrientation(Qt::Orientation orientation)
void linesInterpolateChanged(bool interpolate)
Qt::Orientation getSticksOrientation() const
void load(QSettings &settings)
void setRenderAntialias(bool antialias)
void setStepsInvert(bool invert)
CurveStyleConfig & operator=(const CurveStyleConfig &src)
void read(QDataStream &stream)
bool areLinesInterpolated() const
void stepsInvertChanged(bool invert)
size_t getPenWidth() const