OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
CartesianPlotZoomer.h
Go to the documentation of this file.
1
4// ###########################################################################################################################################################################################################################################################################################################################
5
6#pragma once
7
8// OpenTwin header
10
11// Qwt header
12#include <qwt_plot_zoomer.h>
13
14namespace ot {
15
16 class CartesianPlot;
17
18 class OT_WIDGETS_API_EXPORT CartesianPlotZoomer : public QwtPlotZoomer {
19 public:
21
22 virtual void widgetMousePressEvent(QMouseEvent* _event) override;
23
24 virtual void widgetMouseDoubleClickEvent(QMouseEvent* _event) override;
25
26 virtual void widgetMouseMoveEvent(QMouseEvent* _event) override;
27
28 virtual void widgetWheelEvent(QWheelEvent* _event) override;
29
30 virtual void widgetMouseReleaseEvent(QMouseEvent* _event) override;
31
32 virtual void widgetKeyPressEvent(QKeyEvent* _event) override;
33
34 virtual void widgetKeyReleaseEvent(QKeyEvent* _event) override;
35
36 bool isControlPressed(void) const { return m_controlIsPressed; }
37
38 private:
39 CartesianPlot* m_plot;
40 bool m_mouseMoved;
41 bool m_controlIsPressed;
42 };
43
44}
#define OT_WIDGETS_API_EXPORT
Definition OTWidgetsAPIExport.h:12
Definition CartesianPlot.h:24
Definition CartesianPlotZoomer.h:18
bool isControlPressed(void) const
Definition CartesianPlotZoomer.h:36
Definition Connector.h:8