summaryrefslogtreecommitdiffstats
path: root/interactioncanvas.h
diff options
context:
space:
mode:
Diffstat (limited to 'interactioncanvas.h')
-rw-r--r--interactioncanvas.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/interactioncanvas.h b/interactioncanvas.h
index 397865d..d87165e 100644
--- a/interactioncanvas.h
+++ b/interactioncanvas.h
@@ -24,6 +24,10 @@ public:
void addEllipse();
void addPolygon();
+ //QDom methods
+ void read(QFile *file);
+ void write(QFile *file);
+
protected:
void mouseMoveEvent(QMouseEvent *mouseEvent);
void mousePressEvent(QMouseEvent *mouseEvent);
@@ -34,6 +38,7 @@ protected:
private:
void changeSelectedLine(Line *newSelectedLine);
void addNewLine(Line *newLine);
+ void clearLines();
QList<Line *> m_Lines;
Line *m_NewLine;
@@ -42,6 +47,8 @@ private:
QPoint m_MouseReleasePoint;
QPoint m_LastMousePosition;
+ QDomDocument m_fileName;
+
protected:
void paintEvent(QPaintEvent *paintEvent);
};