- Add icons for each theme
authorunc0rr
Sat, 16 Aug 2008 20:15:27 +0000
changeset 1224 0b9fbee5ceda
parent 1223 41d7283934c1
child 1225 f882a92ef872
- Add icons for each theme - Show theme icon in theme selection list
QTfrontend/SDLs.cpp
QTfrontend/mapContainer.cpp
share/hedgewars/Data/Themes/City/CMakeLists.txt
share/hedgewars/Data/Themes/City/icon.png
share/hedgewars/Data/Themes/EarthRise/CMakeLists.txt
share/hedgewars/Data/Themes/EarthRise/icon.png
share/hedgewars/Data/Themes/Island/CMakeLists.txt
share/hedgewars/Data/Themes/Island/icon.png
share/hedgewars/Data/Themes/Sheep/CMakeLists.txt
share/hedgewars/Data/Themes/Sheep/icon.png
share/hedgewars/Data/Themes/Snow/CMakeLists.txt
share/hedgewars/Data/Themes/Snow/icon.png
share/hedgewars/Data/Themes/hell/CMakeLists.txt
share/hedgewars/Data/Themes/hell/icon.png
share/hedgewars/Data/Themes/nature/CMakeLists.txt
share/hedgewars/Data/Themes/nature/icon.png
--- a/QTfrontend/SDLs.cpp	Sat Aug 16 14:28:44 2008 +0000
+++ b/QTfrontend/SDLs.cpp	Sat Aug 16 20:15:27 2008 +0000
@@ -34,7 +34,7 @@
 
 SDLInteraction::~SDLInteraction()
 {
-//	SDL_Quit();
+	SDL_Quit();
 }
 
 QStringList SDLInteraction::getResolutions() const
--- a/QTfrontend/mapContainer.cpp	Sat Aug 16 14:28:44 2008 +0000
+++ b/QTfrontend/mapContainer.cpp	Sat Aug 16 20:15:27 2008 +0000
@@ -28,6 +28,7 @@
 #include <QLabel>
 #include <QListWidget>
 #include <QVBoxLayout>
+#include <QIcon>
 
 #include "hwconsts.h"
 #include "mapContainer.h"
@@ -149,6 +150,7 @@
 void HWMapContainer::themeSelected(int currentRow)
 {
 	theme = Themes->at(currentRow);
+	gbThemes->setIcon(QIcon(QString("%1/Themes/%2/icon.png").arg(datadir->absolutePath()).arg(theme)));
 	emit themeChanged(theme);
 }
 
--- a/share/hedgewars/Data/Themes/City/CMakeLists.txt	Sat Aug 16 14:28:44 2008 +0000
+++ b/share/hedgewars/Data/Themes/City/CMakeLists.txt	Sat Aug 16 20:15:27 2008 +0000
@@ -2,6 +2,7 @@
 	Border.png
 	Flake.png
 	horizont.png
+	icon.png
 	LandTex.png
 	plant1.png
 	plant2.png
Binary file share/hedgewars/Data/Themes/City/icon.png has changed
--- a/share/hedgewars/Data/Themes/EarthRise/CMakeLists.txt	Sat Aug 16 14:28:44 2008 +0000
+++ b/share/hedgewars/Data/Themes/EarthRise/CMakeLists.txt	Sat Aug 16 20:15:27 2008 +0000
@@ -3,6 +3,7 @@
 	Clouds.png
 	Flake.png
 	horizont.png
+	icon.png
 	LandTex.png
 	rock1.png
 	rock2.png
Binary file share/hedgewars/Data/Themes/EarthRise/icon.png has changed
--- a/share/hedgewars/Data/Themes/Island/CMakeLists.txt	Sat Aug 16 14:28:44 2008 +0000
+++ b/share/hedgewars/Data/Themes/Island/CMakeLists.txt	Sat Aug 16 20:15:27 2008 +0000
@@ -2,6 +2,7 @@
 	Border.png
 	Flake.png
 	horizont.png
+	icon.png
 	LandTex.png
 	plant1.png
 	plant2.png
Binary file share/hedgewars/Data/Themes/Island/icon.png has changed
--- a/share/hedgewars/Data/Themes/Sheep/CMakeLists.txt	Sat Aug 16 14:28:44 2008 +0000
+++ b/share/hedgewars/Data/Themes/Sheep/CMakeLists.txt	Sat Aug 16 20:15:27 2008 +0000
@@ -1,4 +1,5 @@
 install(FILES
+	icon.png
 	mouton2.png
 	Border.png
 	mouton3.png
Binary file share/hedgewars/Data/Themes/Sheep/icon.png has changed
--- a/share/hedgewars/Data/Themes/Snow/CMakeLists.txt	Sat Aug 16 14:28:44 2008 +0000
+++ b/share/hedgewars/Data/Themes/Snow/CMakeLists.txt	Sat Aug 16 20:15:27 2008 +0000
@@ -2,6 +2,7 @@
 	Border.png
 	Flake.png
 	horizont.png
+	icon.png
 	LandTex.png
 	plant1.png
 	plant2.png
Binary file share/hedgewars/Data/Themes/Snow/icon.png has changed
--- a/share/hedgewars/Data/Themes/hell/CMakeLists.txt	Sat Aug 16 14:28:44 2008 +0000
+++ b/share/hedgewars/Data/Themes/hell/CMakeLists.txt	Sat Aug 16 20:15:27 2008 +0000
@@ -3,6 +3,7 @@
 	Clouds.png
 	Flake.png
 	horizont.png
+	icon.png
 	LandTex.png
 	plant1.png
 	plant2.png
Binary file share/hedgewars/Data/Themes/hell/icon.png has changed
--- a/share/hedgewars/Data/Themes/nature/CMakeLists.txt	Sat Aug 16 14:28:44 2008 +0000
+++ b/share/hedgewars/Data/Themes/nature/CMakeLists.txt	Sat Aug 16 20:15:27 2008 +0000
@@ -2,6 +2,7 @@
 	Border.png
 	Flake.png
 	horizont.png
+	icon.png
 	LandTex.png
 	plant1.png
 	plant2.png
Binary file share/hedgewars/Data/Themes/nature/icon.png has changed