QTfrontend/gamecfgwidget.cpp
changeset 4525 0a81be113e21
parent 4513 1dd97c710f5a
child 4526 38afca1e4248
--- a/QTfrontend/gamecfgwidget.cpp	Tue Dec 14 20:01:27 2010 +0300
+++ b/QTfrontend/gamecfgwidget.cpp	Tue Dec 14 20:46:50 2010 +0300
@@ -140,6 +140,7 @@
     connect(pMapContainer, SIGNAL(themeChanged(const QString &)), this, SLOT(themeChanged(const QString &)));
     connect(pMapContainer, SIGNAL(newTemplateFilter(int)), this, SLOT(templateFilterChanged(int)));
     connect(pMapContainer, SIGNAL(drawMapRequested()), this, SIGNAL(goToDrawMap()));
+    connect(pMapContainer, SIGNAL(drawnMapChanged(const QByteArray &)), this, SLOT(onDrawnMapChanged(const QByteArray &)));
 }
 
 void GameCFGWidget::jumpToSchemes()
@@ -529,3 +530,10 @@
 {
     schemeChanged(GameSchemes->currentIndex());
 }
+
+void GameCFGWidget::onDrawnMapChanged(const QByteArray & data)
+{
+    QStringList sl;
+    sl << QString(qCompress(data).toBase64());
+    emit paramChanged("DRAWNMAP", sl);
+}
\ No newline at end of file