From 41e1b2bfb8e2ba3d0e74180200e7cc109171213e Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Tue, 26 Jan 2016 18:15:50 +0100 Subject: Scatterplot & BarChart: initial brushing mechanism. * Both components now support brushing (support in Scatterplot for activating a brush is still incomplete, though it can be brushed on by other components) * Added a handler for linking the brushing between components * Added crosshair geometry handler to geometry lib * Fixed issue #15 --- brushinghandler.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 brushinghandler.h (limited to 'brushinghandler.h') diff --git a/brushinghandler.h b/brushinghandler.h new file mode 100644 index 0000000..ebee75a --- /dev/null +++ b/brushinghandler.h @@ -0,0 +1,25 @@ +#ifndef BRUSHINGHANDLER_H +#define BRUSHINGHANDLER_H + +#include + +class BrushingHandler + : public QObject +{ + Q_OBJECT +public: + BrushingHandler(); + + void clearBrush(); + +signals: + void itemBrushed(int item) const; + +public slots: + void brushItem(int item); + +private: + int m_brushedItem; +}; + +#endif // BRUSHINGHANDLER_H -- cgit v1.2.3