author | nemo |
Fri, 16 Oct 2009 12:58:21 +0000 | |
changeset 2481 | e0d89f88dea2 |
parent 2460 | ac0c497fb842 |
child 2525 | e6cdc0251cd1 |
permissions | -rw-r--r-- |
187 | 1 |
/* |
1066 | 2 |
* Hedgewars, a free turn based strategy game |
883 | 3 |
* Copyright (c) 2006-2008 Andrey Korotaev <unC0Rr@gmail.com> |
187 | 4 |
* |
5 |
* This program is free software; you can redistribute it and/or modify |
|
6 |
* it under the terms of the GNU General Public License as published by |
|
7 |
* the Free Software Foundation; version 2 of the License |
|
8 |
* |
|
9 |
* This program is distributed in the hope that it will be useful, |
|
10 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12 |
* GNU General Public License for more details. |
|
13 |
* |
|
14 |
* You should have received a copy of the GNU General Public License |
|
15 |
* along with this program; if not, write to the Free Software |
|
16 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA |
|
17 |
*/ |
|
18 |
||
221 | 19 |
#include <QGridLayout> |
20 |
#include <QSvgWidget> |
|
235 | 21 |
#include <QLabel> |
460 | 22 |
#include <QTextBrowser> |
187 | 23 |
#include "about.h" |
907 | 24 |
#include "hwconsts.h" |
187 | 25 |
|
26 |
About::About(QWidget * parent) : |
|
27 |
QWidget(parent) |
|
28 |
{ |
|
221 | 29 |
QGridLayout *mainLayout = new QGridLayout(this); |
30 |
QSvgWidget *hedgehog = new QSvgWidget(":/res/Hedgehog.svg", this); |
|
31 |
hedgehog->setFixedSize(300, 329); |
|
235 | 32 |
mainLayout->addWidget(hedgehog, 0, 0, 2, 1); |
33 |
||
34 |
QLabel *lbl1 = new QLabel(this); |
|
35 |
||
36 |
lbl1->setOpenExternalLinks(true); |
|
37 |
lbl1->setText( |
|
1897 | 38 |
"<style type=\"text/css\">" |
39 |
"a { color: #ffcc00; }" |
|
40 |
// "a:hover { color: yellow; }" |
|
2377 | 41 |
"</style>" |
907 | 42 |
"<div align=\"center\"><h1>Hedgewars</h1>" |
43 |
"<h3>" + QLabel::tr("Version") + " " + *cVersionString + "</h3>" |
|
236 | 44 |
"<p><a href=\"http://www.hedgewars.org/\">http://www.hedgewars.org/</a></p><br>" + |
45 |
QLabel::tr("This program is distributed under the GNU General Public License") + |
|
235 | 46 |
"</div>" |
47 |
); |
|
48 |
lbl1->setWordWrap(true); |
|
49 |
mainLayout->addWidget(lbl1, 0, 1); |
|
50 |
||
460 | 51 |
QTextBrowser *lbl2 = new QTextBrowser(this); |
235 | 52 |
|
53 |
lbl2->setOpenExternalLinks(true); |
|
1897 | 54 |
lbl2->setText( |
55 |
"<style type=\"text/css\">" |
|
56 |
"a { color: #ffcc00; }" |
|
57 |
// "a:hover { color: yellow; }" |
|
58 |
"</style>" + |
|
59 |
QString("<h2>") + |
|
623 | 60 |
QLabel::tr("Developers:") + |
61 |
"</h2><p>" |
|
1606 | 62 |
"Engine, frontend, net server: Andrey Korotaev <<a href=\"mailto:unC0Rr@gmail.com\">unC0Rr@gmail.com</a>><br>" |
63 |
"Many frontend improvements: Igor Ulyanov <<a href=\"mailto:disinbox@gmail.com\">disinbox@gmail.com</a>><br>" |
|
1983 | 64 |
"Many engine and frontend improvements: Derek Pomery <<a href=\"mailto:nemo@m8y.org\">nemo@m8y.org</a>><br>" |
65 |
"Drill rocket, Ballgun, RC Plane weapons: Martin Boze <<a href=\"mailto:afffect@gmail.com\">afffect@gmail.com</a>><br>" |
|
2132 | 66 |
"Mine number and time game settings: David A. Cuadrado <<a href=\"mailto:krawek@gmail.com\">krawek@gmail.com</a>><br>" |
1983 | 67 |
"Frontend improvements: Martin Minarik <<a href=\"mailto:ttsmj@pokec.sk\">ttsmj@pokec.sk</a>><br>" |
68 |
"Frontend improvements: Kristian Lehmann <<a href=\"mailto:email@thexception.net\">email@thexception.net</a>><br>" |
|
2460 | 69 |
"Mac OS X port, OpenAL wrapper library: Vittorio Giovara <<a href=\"mailto:vittorio.giovara@gmail.com\">vittorio.giovara@gmail.com</a>><br>" |
70 |
"Gamepad support and additional effects: Mario Liebisch <<a href=\"mailto:mario.liebisch+hw@googlemail.com\">mario.liebisch+hw@googlemail.com</a>>" |
|
623 | 71 |
"</p><h2>" + |
2377 | 72 |
|
872 | 73 |
QLabel::tr("Art:") + "</h2>" |
1177 | 74 |
+ QString::fromUtf8( |
1983 | 75 |
"<p>Finn Brice <<a href=\"mailto:tiyuri@gmail.com\">tiyuri@gmail.com</a>>" |
872 | 76 |
"<br>" |
1983 | 77 |
"Joshua Frese <<a href=\"mailto:joshfrese@gmail.com\">joshfrese@gmail.com</a>>" |
78 |
"<br>" |
|
79 |
"Stanko Tadić <<a href=\"mailto:stanko@mfhinc.net\">stanko@mfhinc.net</a>>" |
|
1177 | 80 |
"<br>" |
1983 | 81 |
"Julien Koesten <<a href=\"mailto:julienkoesten@aol.com\">julienkoesten@aol.com</a>>" |
1208
9f4704f3c6ea
Add Sheep theme by Julien Koesten. Will be slightly corrected a bit later.
unc0rr
parents:
1205
diff
changeset
|
82 |
"<br>" |
1983 | 83 |
"Joshua O'Sullivan <<a href=\"mailto:battysausage@hotmail.co.uk\">battysausage@hotmail.co.uk</a>>" |
1661 | 84 |
"<br>" |
1983 | 85 |
"Nils Lück <<a href=\"mailto:nils.luck.design@gmail.com\">nils.luck.design@gmail.com</a>>" |
2075 | 86 |
"<br>" |
2095 | 87 |
"Hats: Trey Perry <<a href=\"mailto:tx.perry.j@gmail.com\">tx.perry.j@gmail.com</a>>" |
1177 | 88 |
"</p><h2>") + |
1100 | 89 |
QLabel::tr("Sounds:") + "</h2>" |
1119 | 90 |
"Hedgehogs voice: Stephen Alexander <<a href=\"mailto:ArmagonNo1@gmail.com\">ArmagonNo1@gmail.com</a>>" |
1100 | 91 |
"<br>" |
1983 | 92 |
"Finn Brice <<a href=\"mailto:tiyuri@gmail.com\">tiyuri@gmail.com</a>>" |
1100 | 93 |
"<br>" |
1983 | 94 |
"Jonatan Nilsson <<a href=\"mailto:jonatanfan@gmail.com\">jonatanfan@gmail.com</a>>" |
95 |
"<br>" |
|
2109 | 96 |
"Daniel Martin <<a href=\"mailto:elhombresinremedio@gmail.com\">elhombresinremedio@gmail.com</a>>" |
1100 | 97 |
"</p><h2>" + |
2377 | 98 |
|
623 | 99 |
QLabel::tr("Translations:") + "</h2><p>" |
1052 | 100 |
+ QString::fromUtf8( |
1380
f3bdfe2452f2
Mention Romulo Fernandes Machado on about page for Brazilian Portuguese translation
unc0rr
parents:
1287
diff
changeset
|
101 |
"Brazilian Portuguese: Romulo Fernandes Machado <<a href=\"mailto:abra185@gmail.com\">abra185@gmail.com</a>><br>" |
1030 | 102 |
"Bulgarian: Svetoslav Stefanov<br>" |
1429 | 103 |
"Czech: Petr Řezáček <<a href=\"mailto:rezacek@gmail.com\">rezacek@gmail.com</a>><br>" |
1691 | 104 |
"Chinese: Jie Luo <<a href=\"mailto:lililjlj@gmail.com\">lililjlj@gmail.com</a>><br>" |
1030 | 105 |
"English: Andrey Korotaev <<a href=\"mailto:unC0Rr@gmail.com\">unC0Rr@gmail.com</a>><br>" |
1796 | 106 |
"Finnish: Nina Kuisma <<a href=\"mailto:ninnnu@gmail.com\">ninnnu@gmail.com</a>><br>" |
1052 | 107 |
"French: Antoine Turmel <<a href=\"mailto:geekshadow@gmail.com\">geekshadow@gmail.com</a>><br>" |
108 |
"German: Peter Hüwe <<a href=\"mailto:PeterHuewe@gmx.de\">PeterHuewe@gmx.de</a>><br>" |
|
1030 | 109 |
"Italian: Luca Bonora <<a href=\"mailto:bonora.luca@gmail.com\">bonora.luca@gmail.com</a>><br>" |
2460 | 110 |
"Japanese: ADAM Etienne <<a href=\"mailto:etienne.adam@gmail.com\">etienne.adam@gmail.com</a>><br>" |
1949 | 111 |
"Polish: Maciej Mroziński <<a href=\"mailto:mynick2@o2.pl\">mynick2@o2.pl</a>>, Wojciech Latkowski <<a href=\"mailto:magik_15l@poczta.fm\">magik_15l@poczta.fm</a>>, Maciej Górny<br>" |
1030 | 112 |
"Russian: Andrey Korotaev <<a href=\"mailto:unC0Rr@gmail.com\">unC0Rr@gmail.com</a>><br>" |
1203
7a7a2fd6a3af
Mention Niklas Grahn for his translation on about page
unc0rr
parents:
1177
diff
changeset
|
113 |
"Slovak: Jose Riha<br>" |
1247 | 114 |
"Spanish: Carlos Vives <<a href=\"mailto:mail@carlosvives.es\">mail@carlosvives.es</a>><br>" |
1264
e8ac58bbd10f
Mention Eugene Lyubimkin in translators list for his Ukrainian translation
unc0rr
parents:
1247
diff
changeset
|
115 |
"Swedish: Niklas Grahn <<a href=\"mailto:raewolusjoon@yaoo.com\">raewolusjoon@yaoo.com</a>><br>" |
1287 | 116 |
"Ukrainian: Eugene V. Lyubimkin <<a href=\"mailto:jackyf.devel@gmail.com\">jackyf.devel@gmail.com</a>>" |
1052 | 117 |
"</p><h2>") + |
2377 | 118 |
|
623 | 119 |
QLabel::tr("Special thanks:") + "</h2><p>" |
243 | 120 |
"Aleksey Andreev <<a href=\"mailto:blaknayabr@gmail.com\">blaknayabr@gmail.com</a>><br>" |
426 | 121 |
"Aleksander Rudalev <<a href=\"mailto:alexv@pomorsu.ru\">alexv@pomorsu.ru</a>><br>" |
479 | 122 |
"Natasha Stafeeva <<a href=\"mailto:layout@pisem.net\">layout@pisem.net</a>><br>" |
123 |
"Adam Higerd (aka ahigerd at FreeNode)" |
|
460 | 124 |
"</p>" |
235 | 125 |
); |
460 | 126 |
mainLayout->addWidget(lbl2, 1, 1); |
187 | 127 |
} |