QTfrontend/mapContainer.cpp
changeset 1797 fedd8649fdd9
parent 1790 c84223511ca8
child 1802 dd148e2506e2
--- a/QTfrontend/mapContainer.cpp	Sat Feb 14 21:04:51 2009 +0000
+++ b/QTfrontend/mapContainer.cpp	Sun Feb 15 14:38:02 2009 +0000
@@ -41,6 +41,7 @@
 {
 	hhSmall.load(":/res/hh_small.png");
 	hhLimit = 18;
+    templateFilter = 0;
 	
 	mainLayout.setContentsMargins(QApplication::style()->pixelMetric(QStyle::PM_LayoutLeftMargin),
 		1,
@@ -198,7 +199,7 @@
 	pMap = new HWMap();
 	connect(pMap, SIGNAL(ImageReceived(const QImage)), this, SLOT(setImage(const QImage)));
 	connect(pMap, SIGNAL(HHLimitReceived(int)), this, SLOT(setHHLimit(int)));
-	pMap->getImage(m_seed.toStdString());
+	pMap->getImage(m_seed.toStdString(), templateFilter);
 }
 
 void HWMapContainer::themeSelected(int currentRow)
@@ -284,3 +285,8 @@
 	quint32 themeNum = rand() % Themes->size();
 	lwThemes->setCurrentRow(themeNum);
 }
+
+void HWMapContainer::setTemplateFilter(int filter)
+{
+   templateFilter = filter;   
+}