36 void updateUI(QwtPlotItem* item)
override;
38 void applySetting(QwtPlotCurve* item);
40 void setTitle(
const QString& t);
41 QString getTitle()
const;
43 void setCurveStyle(QwtPlotCurve::CurveStyle v);
44 QwtPlotCurve::CurveStyle getCurveStyle()
const;
46 void setCurveAttribute(QwtPlotCurve::CurveAttribute v);
47 QwtPlotCurve::CurveAttribute getCurveAttribute()
const;
49 void setLegendAttribute(QwtPlotCurve::LegendAttributes v);
50 QwtPlotCurve::LegendAttributes getLegendAttribute()
const;
52 void enableMarkerEdit(
bool on =
true);
53 bool isEnableMarkerEdit()
const;
55 void enableFillEdit(
bool on =
true);
56 bool isEnableFillEdit()
const;
58 QPen getCurvePen()
const;
60 QBrush getFillBrush()
const;
62 double getBaseLine()
const;
63 bool isHaveBaseLine()
const;
65 void setOrientation(Qt::Orientation v);
66 Qt::Orientation getOrientation()
const;
73 void setCurvePen(
const QPen& v);
75 void setFillBrush(
const QBrush& v);
77 void setBaseLine(
double v);
80 void resetCurveStyleComboBox();
82 void onCurveStyleCurrentIndexChanged(
int index);
83 void onCheckBoxFittedClicked(
bool checked);
84 void on_checkBoxInverted_clicked(
bool checked);
85 void on_checkBoxLegendShowLine_clicked(
bool checked);
86 void on_checkBoxLegendShowSymbol_clicked(
bool checked);
87 void on_checkBoxLegendShowBrush_clicked(
bool checked);
88 void on_checkBoxEnableMarker_clicked(
bool checked);
89 void on_checkBoxEnableFill_clicked(
bool checked);
90 void onSymbolStyleChanged(QwtSymbol::Style s);
91 void onSymbolSizeChanged(
int s);
92 void onSymbolColorChanged(
const QColor& s);
93 void onSymbolOutlinePenChanged(
const QPen& s);
94 void onBrushChanged(
const QBrush& b);
95 void on_lineEditBaseLine_editingFinished();
96 void onButtonGroupOrientationClicked(QAbstractButton* b);
97 void onCurvePenChanged(
const QPen& p);
99 virtual void plotItemAttached(QwtPlotItem* plotItem,
bool on);
102 Ui::DAChartCurveItemSettingWidget* ui;