QTfrontend/drawmapwidget.cpp
changeset 4560 5d6c7f88db73
parent 4556 c7f4eb6cbd0c
child 4586 4ba4f021070f
--- a/QTfrontend/drawmapwidget.cpp	Sat Dec 18 21:19:26 2010 +0300
+++ b/QTfrontend/drawmapwidget.cpp	Sat Dec 18 23:02:39 2010 +0300
@@ -1,3 +1,5 @@
+#include <QFile>
+
 #include "drawmapwidget.h"
 
 DrawMapWidget::DrawMapWidget(QWidget *parent) :
@@ -5,6 +7,8 @@
     ui(new Ui::DrawMapWidget)
 {
     ui->setupUi(this);
+
+    m_scene = 0;
 }
 
 DrawMapWidget::~DrawMapWidget()
@@ -43,3 +47,23 @@
 
     resizeEvent(0);
 }
+
+void DrawMapWidget::undo()
+{
+    if(m_scene) m_scene->undo();
+}
+
+void DrawMapWidget::clear()
+{
+    if(m_scene) m_scene->clear();
+}
+
+void DrawMapWidget::save(const QString & fileName)
+{
+    Q_UNUSED(fileName);
+}
+
+void DrawMapWidget::load(const QString & fileName)
+{
+    Q_UNUSED(fileName);
+}