# HG changeset patch
# User smxx
# Date 1269980284 0
# Node ID 19d84448835fa6b8bd0d6590dbce9cb89c5e1161
# Parent 4f02f6a834b797188277917d438fa05b0b6408d3
Frontend:
* Added separator and better sorting to map selection
* Updated German translation
diff -r 4f02f6a834b7 -r 19d84448835f QTfrontend/main.cpp
--- a/QTfrontend/main.cpp Tue Mar 30 20:17:12 2010 +0000
+++ b/QTfrontend/main.cpp Tue Mar 30 20:18:04 2010 +0000
@@ -104,6 +104,10 @@
"background-color: rgba(13, 5, 68, 70%);"
"}"
+ "QComboBox::separator {"
+ "border: solid; border-width: 3px; border-color: #ffcc00;"
+ "}"
+
"QPushButton, QListWidget, QTableView, QLineEdit, QHeaderView, "
"QTextBrowser, QSpinBox, QToolBox, QComboBox, "
"QComboBox QAbstractItemView, IconedGroupBox, "
diff -r 4f02f6a834b7 -r 19d84448835f QTfrontend/mapContainer.cpp
--- a/QTfrontend/mapContainer.cpp Tue Mar 30 20:17:12 2010 +0000
+++ b/QTfrontend/mapContainer.cpp Tue Mar 30 20:18:04 2010 +0000
@@ -63,6 +63,9 @@
chooseMap->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
chooseMap->addItem(QComboBox::tr("generated map..."));
chooseMap->addItem(QComboBox::tr("generated maze..."));
+ chooseMap->insertSeparator(chooseMap->count()); // separator between generators and missions
+
+ int missionindex = chooseMap->count();
for (int i = 0; i < mapList->size(); ++i) {
QString map = (*mapList)[i];
QFile mapCfgFile(
@@ -88,10 +91,14 @@
else
mapInfo.push_back(18);
mapInfo.push_back(mapLuaFile.exists());
- chooseMap->addItem(mapLuaFile.exists() ? (QComboBox::tr("Mission") + ": " + map) : map, mapInfo);
+ if(mapLuaFile.exists())
+ chooseMap->insertItem(missionindex++, QComboBox::tr("Mission") + ": " + map, mapInfo);
+ else
+ chooseMap->addItem(map, mapInfo);
mapCfgFile.close();
}
}
+ chooseMap->insertSeparator(missionindex); // separator between missions and maps
connect(chooseMap, SIGNAL(currentIndexChanged(int)), this, SLOT(mapChanged(int)));
mainLayout.addWidget(chooseMap, 1, 1);
diff -r 4f02f6a834b7 -r 19d84448835f hedgewars/uStore.pas
--- a/hedgewars/uStore.pas Tue Mar 30 20:17:12 2010 +0000
+++ b/hedgewars/uStore.pas Tue Mar 30 20:18:04 2010 +0000
@@ -355,7 +355,7 @@
with Fontz[fi] do
begin
s:= Pathz[ptFonts] + '/' + Name;
- WriteToConsole(msgLoading + s + '... ');
+ WriteToConsole(msgLoading + s + ' (' + inttostr(Height) + 'pt)... ');
Handle:= TTF_OpenFont(Str2PChar(s), Height);
SDLTry(Handle <> nil, true);
TTF_SetFontStyle(Handle, style);
diff -r 4f02f6a834b7 -r 19d84448835f share/hedgewars/Data/Locale/hedgewars_de.qm
Binary file share/hedgewars/Data/Locale/hedgewars_de.qm has changed
diff -r 4f02f6a834b7 -r 19d84448835f share/hedgewars/Data/Locale/hedgewars_de.ts
--- a/share/hedgewars/Data/Locale/hedgewars_de.ts Tue Mar 30 20:17:12 2010 +0000
+++ b/share/hedgewars/Data/Locale/hedgewars_de.ts Tue Mar 30 20:18:04 2010 +0000
@@ -716,7 +716,7 @@
QComboBox
- Generierte Karte ...
+ Zufallskarte...
@@ -736,7 +736,7 @@
- Generiertes Labyrinth ...
+ Zufallslabyrinth...