40 virtual void updateUI(QwtPlotItem* item)
override;
42 void applySetting(QwtPlotBarChart* item);
44 void setTitle(
const QString& t);
45 QString getTitle()
const;
47 void setBarLegendMode(QwtPlotBarChart::LegendMode v);
48 QwtPlotBarChart::LegendMode getBarLegendMode()
const;
50 void setEnableFillEdit(
bool on =
true);
51 bool isEnableFillEdit()
const;
53 void setEnableEdgeEdit(
bool on =
true);
54 bool isEnableEdgeEdit()
const;
56 QBrush getFillBrush()
const;
58 QPen getEdgePen()
const;
60 double getBaseLine()
const;
61 bool isHaveBaseLine()
const;
68 void setLayoutPolicy(QwtPlotAbstractBarChart::LayoutPolicy policy);
69 QwtPlotAbstractBarChart::LayoutPolicy getLayoutPolicy()
const;
70 void setLayoutHint(
double hint);
71 double getLayoutHint()
const;
73 void setSpacing(
int spacing);
74 int getSpacing()
const;
76 void setMargin(
int margin);
77 int getMargin()
const;
79 int getCurrentSelectFrameStyle()
const;
83 void setFillBrush(
const QBrush& v);
85 void setEdgePen(
const QPen& pen);
87 void setBaseLine(
double v);
90 void onCheckBoxLegendModeChartClicked(
bool checked);
91 void onCheckBoxLegendModeBarClicked(
bool checked);
92 void onGroupBoxFillClicked(
bool on);
93 void onGroupBoxEdgeClicked(
bool on);
94 void onFillBrushChanged(
const QBrush& b);
95 void onEdgePenChanged(
const QPen& p);
96 void on_lineEditBaseLine_editingFinished();
97 void onLayoutPolicyChanged(
int index);
98 void onSpacingValueChanged(
int value);
99 void onMarginValueChanged(
int value);
100 void onLayoutHintValueChanged(
double value);
101 void onButtonGroupFrameStyleClicked(QAbstractButton* button);
103 virtual void plotItemAttached(QwtPlotItem* plotItem,
bool on)
override;
106 Ui::DAChartBarItemSettingWidget* ui;