diff options
| author | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-06-08 10:27:31 +0200 |
|---|---|---|
| committer | Stefan Suhren <suhren.stefan@fh-swf.de> | 2015-06-08 10:27:31 +0200 |
| commit | d847e6bf7929c8565bff4e17d9fd077b8e0ca74d (patch) | |
| tree | b3b06f5ecb08251d7ea1660ce5318a7eb38271b5 /interactioncanvas.h | |
| parent | 45813562e266cf8e58ea9cb04f655bbb542a555e (diff) | |
| download | GUI_SS2015-d847e6bf7929c8565bff4e17d9fd077b8e0ca74d.tar.gz GUI_SS2015-d847e6bf7929c8565bff4e17d9fd077b8e0ca74d.zip | |
Add XML files for reading and writing
Diffstat (limited to 'interactioncanvas.h')
| -rw-r--r-- | interactioncanvas.h | 7 |
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); }; |
