--- 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;
+}