aboutsummaryrefslogtreecommitdiff
path: root/brushinghandler.h
diff options
context:
space:
mode:
authorSamuel Fadel <samuelfadel@gmail.com>2016-01-26 18:15:50 +0100
committerSamuel Fadel <samuelfadel@gmail.com>2016-01-26 18:15:50 +0100
commit41e1b2bfb8e2ba3d0e74180200e7cc109171213e (patch)
tree27c7dbaa8fcdcc7efb300c0ea0a44b28d2ac76c0 /brushinghandler.h
parent7f0f945c35bc8c12d55efbce7545995fc76892c1 (diff)
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
Diffstat (limited to 'brushinghandler.h')
-rw-r--r--brushinghandler.h25
1 files changed, 25 insertions, 0 deletions
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 <QObject>
+
+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