42 QwtFigure* figure()
const;
44 QString getFigureId()
const;
45 void setFigureId(
const QString&
id);
53 DAChartWidget* createChart(
float xVersatile,
float yVersatile,
float wVersatile,
float hVersatile);
62 void addChart(
DAChartWidget* chart, qreal xVersatile, qreal yVersatile, qreal wVersatile, qreal hVersatile);
63 void addChart(
DAChartWidget* chart,
const QRectF& versatileSize);
65 QList< DAChartWidget* > getCharts()
const;
71 void setCurrentChart(QwtPlot* p);
75 QWidget* getUnderCursorWidget()
const;
81 void setBackgroundColor(
const QBrush& brush);
82 void setBackgroundColor(
const QColor& clr);
83 const QBrush& getBackgroundColor()
const;
87 void setSubChartEditorEnable(
bool enable =
true);
90 bool isEnableSubChartEditor()
const;
92 int getChartCount()
const;
94 virtual QColor getDefaultColor()
const;
96 bool hasPlot(QwtPlot* chart,
bool includeParasite =
true)
const;
98 bool bindAxisRange(QwtPlot* source, QwtPlot* follower, QwtAxisId axisid);
99 bool bindAxisRange(QwtPlot* source, QwtAxisId sourceAxisid, QwtPlot* follower, QwtAxisId followerAxisid);
100 bool unbindAxisRange(QwtPlot* source, QwtPlot* follower, QwtAxisId axisid);
101 bool unbindAxisRange(QwtPlot* source, QwtAxisId sourceAxisid, QwtPlot* follower, QwtAxisId followerAxisid);
103 QList< DAChartAxisRangeBinder* > getBindAxisRangeInfos()
const;
105 void setDataPickerGroupEnabled(
bool on);
106 bool isDataPickerGroupEnabled()
const;
107 QwtPlotSeriesDataPickerGroup* getDataPickerGroup()
const;
109 QwtPlot* findPlotById(
const QString&
id,
bool findParasite =
true)
const;
116 void copyToClipboard();
121 QRectF axesNormRect(QwtPlot* plot)
const;
123 QRectF widgetNormRect(QWidget* w)
const;
125 void addWidget(QWidget* widget, qreal left, qreal top, qreal width, qreal height);
126 void addWidget(QWidget* widget,
136 void setWidgetNormPos(QWidget* widget,
const QRectF& rect);
138 QwtPlot* plotUnderPos(
const QPoint& pos)
const;
139 void setFaceBrush(
const QBrush& brush);
140 QBrush getFaceBrush()
const;
146 bool addItem_(QwtPlotItem* item);
149 QwtPlotCurve* addCurve_(
const QVector< QPointF >& xyDatas);
150 QwtPlotCurve* addScatter_(
const QVector< QPointF >& xyDatas);
152 QwtPlotBarChart* addBar_(
const QVector< QPointF >& xyDatas);
153 QwtPlotIntervalCurve* addErrorBar_(
const QVector< double >& values,
154 const QVector< double >& mins,
155 const QVector< double >& maxs);
159 void push(QUndoCommand* cmd);
161 QUndoStack* getUndoStack();
186 void keyPressEvent(QKeyEvent* e);
187 void showEvent(QShowEvent* e);
190 void onWidgetGeometryChanged(QWidget* w,
const QRectF& oldNormGeo,
const QRectF& newNormGeo);
192 void onOverlayActiveWidgetChanged(QWidget* oldActive, QWidget* newActive);
193 void onAxesAdded(QwtPlot* newAxes);
194 void onAxesRemoved(QwtPlot* removedAxes);
195 void onCurrentAxesChanged(QwtPlot* plot);
196 void onChartPropertyChanged(
DA::DAChartWidget* chart, DAChartWidget::ChartPropertyChangeFlags flag);
201 void setupDataPickerGroup();