From d847e6bf7929c8565bff4e17d9fd077b8e0ca74d Mon Sep 17 00:00:00 2001 From: Stefan Suhren Date: Mon, 8 Jun 2015 10:27:31 +0200 Subject: Add XML files for reading and writing --- interactioncanvas.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'interactioncanvas.h') 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 m_Lines; Line *m_NewLine; @@ -42,6 +47,8 @@ private: QPoint m_MouseReleasePoint; QPoint m_LastMousePosition; + QDomDocument m_fileName; + protected: void paintEvent(QPaintEvent *paintEvent); }; -- cgit v1.2.3-70-g09d2