QTfrontend/gamecfgwidget.cpp
changeset 4525 0a81be113e21
parent 4513 1dd97c710f5a
child 4526 38afca1e4248
equal deleted inserted replaced
4524:65c294aedaea 4525:0a81be113e21
   138     connect(pMapContainer, SIGNAL(mapgenChanged(MapGenerator)), this, SLOT(mapgenChanged(MapGenerator)));
   138     connect(pMapContainer, SIGNAL(mapgenChanged(MapGenerator)), this, SLOT(mapgenChanged(MapGenerator)));
   139     connect(pMapContainer, SIGNAL(maze_sizeChanged(int)), this, SLOT(maze_sizeChanged(int)));
   139     connect(pMapContainer, SIGNAL(maze_sizeChanged(int)), this, SLOT(maze_sizeChanged(int)));
   140     connect(pMapContainer, SIGNAL(themeChanged(const QString &)), this, SLOT(themeChanged(const QString &)));
   140     connect(pMapContainer, SIGNAL(themeChanged(const QString &)), this, SLOT(themeChanged(const QString &)));
   141     connect(pMapContainer, SIGNAL(newTemplateFilter(int)), this, SLOT(templateFilterChanged(int)));
   141     connect(pMapContainer, SIGNAL(newTemplateFilter(int)), this, SLOT(templateFilterChanged(int)));
   142     connect(pMapContainer, SIGNAL(drawMapRequested()), this, SIGNAL(goToDrawMap()));
   142     connect(pMapContainer, SIGNAL(drawMapRequested()), this, SIGNAL(goToDrawMap()));
       
   143     connect(pMapContainer, SIGNAL(drawnMapChanged(const QByteArray &)), this, SLOT(onDrawnMapChanged(const QByteArray &)));
   143 }
   144 }
   144 
   145 
   145 void GameCFGWidget::jumpToSchemes()
   146 void GameCFGWidget::jumpToSchemes()
   146 {
   147 {
   147     emit goToSchemes(GameSchemes->currentIndex());
   148     emit goToSchemes(GameSchemes->currentIndex());
   527 
   528 
   528 void GameCFGWidget::resendSchemeData()
   529 void GameCFGWidget::resendSchemeData()
   529 {
   530 {
   530     schemeChanged(GameSchemes->currentIndex());
   531     schemeChanged(GameSchemes->currentIndex());
   531 }
   532 }
       
   533 
       
   534 void GameCFGWidget::onDrawnMapChanged(const QByteArray & data)
       
   535 {
       
   536     QStringList sl;
       
   537     sl << QString(qCompress(data).toBase64());
       
   538     emit paramChanged("DRAWNMAP", sl);
       
   539 }