summaryrefslogtreecommitdiffstats
path: root/interactioncanvas.h
diff options
context:
space:
mode:
Diffstat (limited to 'interactioncanvas.h')
-rw-r--r--interactioncanvas.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/interactioncanvas.h b/interactioncanvas.h
index efdf9a2..af5d9b6 100644
--- a/interactioncanvas.h
+++ b/interactioncanvas.h
@@ -4,6 +4,11 @@
#include <QLabel>
#include <QDebug>
#include <QMouseEvent>
+#include <QList>
+#include <QPoint>
+#include <QPainter>
+
+#include "line.h"
class InteractionCanvas : public QLabel
{
@@ -19,6 +24,19 @@ protected:
void keyPressEvent(QKeyEvent *keyEvent);
void keyReleaseEvent(QKeyEvent *keyEvent);
+private:
+ QList<Line> m_Lines;
+ Line *m_Line;
+ QPoint m_MousePressPoint;
+ QPoint m_MouseReleasePoint;
+ QPoint m_LastMousePosition;
+
+ QPainter *normalPainter;
+ QPainter *tempPainter;
+
+ // QWidget interface
+protected:
+ void paintEvent(QPaintEvent *paintEvent);
};
#endif // INTERACTIONCANVAS_H