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(
|
907
|
38 |
"<div align=\"center\"><h1>Hedgewars</h1>"
|
|
39 |
"<h3>" + QLabel::tr("Version") + " " + *cVersionString + "</h3>"
|
236
|
40 |
"<p><a href=\"http://www.hedgewars.org/\">http://www.hedgewars.org/</a></p><br>" +
|
|
41 |
QLabel::tr("This program is distributed under the GNU General Public License") +
|
235
|
42 |
"</div>"
|
|
43 |
);
|
|
44 |
lbl1->setWordWrap(true);
|
|
45 |
mainLayout->addWidget(lbl1, 0, 1);
|
|
46 |
|
460
|
47 |
QTextBrowser *lbl2 = new QTextBrowser(this);
|
235
|
48 |
|
|
49 |
lbl2->setOpenExternalLinks(true);
|
623
|
50 |
lbl2->setText( QString("<h2>") +
|
|
51 |
QLabel::tr("Developers:") +
|
|
52 |
"</h2><p>"
|
235
|
53 |
"Andrey Korotaev <<a href=\"mailto:unC0Rr@gmail.com\">unC0Rr@gmail.com</a>><br>"
|
739
|
54 |
"Igor Ulyanov <<a href=\"mailto:disinbox@gmail.com\">disinbox@gmail.com</a>>"
|
623
|
55 |
"</p><h2>" +
|
1029
|
56 |
|
872
|
57 |
QLabel::tr("Art:") + "</h2>"
|
1087
|
58 |
"<p>All sprites, all themes except for \"Cheese\" and \"Volcano\": Finn Brice <<a href=\"mailto:tiyuri@gmail.com\">tiyuri@gmail.com</a>>"
|
872
|
59 |
"<br>"
|
1087
|
60 |
"\"Bamboo\", \"EarthRise\" maps and themes: Joshua Frese <<a href=\"mailto:joshfrese@gmail.com\">joshfrese@gmail.com</a>>"
|
1084
|
61 |
"<br>"
|
1087
|
62 |
"\"Volcano\" map and theme: Damion Brookes <<a href=\"mailto:nintendo_wii33@hotmail.co.uk\">nintendo_wii33@hotmail.co.uk</a>>"
|
623
|
63 |
"</p><h2>" +
|
1029
|
64 |
|
623
|
65 |
QLabel::tr("Translations:") + "</h2><p>"
|
1052
|
66 |
+ QString::fromUtf8(
|
1030
|
67 |
"Bulgarian: Svetoslav Stefanov<br>"
|
|
68 |
"English: Andrey Korotaev <<a href=\"mailto:unC0Rr@gmail.com\">unC0Rr@gmail.com</a>><br>"
|
1052
|
69 |
"French: Antoine Turmel <<a href=\"mailto:geekshadow@gmail.com\">geekshadow@gmail.com</a>><br>"
|
|
70 |
"German: Peter Hüwe <<a href=\"mailto:PeterHuewe@gmx.de\">PeterHuewe@gmx.de</a>><br>"
|
1030
|
71 |
"Italian: Luca Bonora <<a href=\"mailto:bonora.luca@gmail.com\">bonora.luca@gmail.com</a>><br>"
|
1052
|
72 |
"Polish: Maciej Mroziński <<a href=\"mailto:mynick2@o2.pl\">mynick2@o2.pl</a>><br>"
|
1030
|
73 |
"Russian: Andrey Korotaev <<a href=\"mailto:unC0Rr@gmail.com\">unC0Rr@gmail.com</a>><br>"
|
|
74 |
"Slovak: Jose Riha"
|
1052
|
75 |
"</p><h2>") +
|
1029
|
76 |
|
623
|
77 |
QLabel::tr("Special thanks:") + "</h2><p>"
|
243
|
78 |
"Aleksey Andreev <<a href=\"mailto:blaknayabr@gmail.com\">blaknayabr@gmail.com</a>><br>"
|
426
|
79 |
"Aleksander Rudalev <<a href=\"mailto:alexv@pomorsu.ru\">alexv@pomorsu.ru</a>><br>"
|
479
|
80 |
"Natasha Stafeeva <<a href=\"mailto:layout@pisem.net\">layout@pisem.net</a>><br>"
|
|
81 |
"Adam Higerd (aka ahigerd at FreeNode)"
|
460
|
82 |
"</p>"
|
235
|
83 |
);
|
460
|
84 |
mainLayout->addWidget(lbl2, 1, 1);
|
187
|
85 |
}
|