9 #include "ocurvesconfig.h"
13 #include <QStringList>
87 inline QwtPlot *
plot() {
return _plot; }
91 inline const QwtPlot *
plot()
const {
return _plot; }
145 void updateActive(
const QStringList &sourceNames,
const QStringList &curveNames);
279 friend class FocusPlot;
283 void viewFocusGained();
287 void viewFocusLost();
293 QStringList _activeSourceNames;
294 QStringList _visibleCurveNames;
295 QList<PlotDataCurve *> _displayCurves;
299 bool _suppressEvents;
302 QAction *_toolModeActions[ToolModeCount];
305 #endif // PLOTVIEW_H_
void setMultiTool()
Set the tool mode to MultiTool.
Definition: plotview.h:182
void legendSelectionChanged(int index)
Handles changes to the legend position combo box.
const QwtPlot * plot() const
Access the primary plotting widget.
Definition: plotview.h:91
void legendChanged(QwtLegend *legend, int position)
The legend or its position has been changed, possibly to null.
PlotZoomer * zoomer() const
Access the zooming tool.
Definition: plotview.h:120
void setZoomTool()
Set the tool mode to ZoomTool.
Definition: plotview.h:188
void copyToClipboard()
Copies the current plot view content to the clipboard.
void updateActive(const QStringList &sourceNames, const QStringList &curveNames)
Updates which plots and files this view is showing.
Definition: coloursview.h:16
ToolMode toolMode() const
Get the current tool mode.
Definition: plotview.h:95
void removeCurve(const PlotInstance *curve)
Handles curve removal or deletion, removing the corresponding display adaptor.
void addCurve(PlotInstance *curve)
Handles a new curve definition by creating an appropriate display interface.
void setLegendPosition(int pos)
Set the legend position.
void focusGained()
Emitted when this PlotView gains focus.
static const int SharedLegend
Special index for shared legend.
Definition: plotview.h:44
Pan/zoom combined tool.
Definition: plotview.h:49
int legendPosition() const
Request the current legend position.
void setSynchronised(bool sync)
Set or clear the synchronisation flag for this view.
Zoom only tool.
Definition: plotview.h:51
void zoomToFit()
Change the current zoom level to fit the currently selected plots.
An plot view viewing a Curves model.
Definition: plotview.h:36
void toolActionToggled(bool checked)
Ensures the current tool action stays checked.
void curvesCleared()
Handles removal of all curves.
void saveSettings(QSettings &settings)
Save settings for this view.
Holds data for a single curve.
Definition: plotinstance.h:43
const QStringList & visibleCurveNames() const
Retrieves the list of visible curves this view is displaying, or expecting to display.
Definition: plotview.h:157
The data model for loaded plots and curves.
Definition: curves.h:36
Custom zoom handler for Plot objects.
Definition: plotzoomer.h:22
QFrame Super
Parent class alias.
Definition: plotview.h:42
void toolModeChanged(ToolMode mode)
Emitted when the current tool mode is changed.
bool synchronised() const
Get the synchronisation state.
Definition: plotview.h:116
void setHighlight(bool active)
Set to display in the highlight or not.
A specialisation of QwtPlotCurve used to visualisation PlotInstanceData.
Definition: plotdatacurve.h:22
const QStringList & activeSourceNames() const
Retrieves the list of active sources this view is displaying, or expecting to display.
Definition: plotview.h:151
Pan only tool.
Definition: plotview.h:50
PlotView(Curves *curves, QWidget *parent=nullptr)
Create a view into curves.
Extension of QwtPlotPanner to expose moveCanvas() for synchronised panning.
Definition: plotpanner.h:15
void loadSettings(QSettings &settings)
Load settings for this view.
void setPanTool()
Set the tool mode to PanTool.
Definition: plotview.h:185
void curveDataChanged(const PlotInstance *curve)
Handles changes to curve data.
PlotPanner * panner() const
Access the panning tool.
Definition: plotview.h:124
void showNone()
Clear viewing of all items. No notification triggered.
bool isHighlighted() const
Request the current highlight state (as per setHighlight()).
void focusLost()
Emitted when this PlotView looses focus.
void synchronisedChanged(bool sync)
Emitted when the synchronised() flag changed.
QwtPlot * plot()
Access the primary plotting widget.
Definition: plotview.h:87
ToolMode
Modes for various interaction tools.
Definition: plotview.h:47
void setToolMode(ToolMode mode)
Set the tool mode for this view.