187
|
1 |
/*
|
|
2 |
* Hedgewars, a worms-like game
|
486
|
3 |
* Copyright (c) 2006, 2007 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"
|
|
24 |
|
|
25 |
About::About(QWidget * parent) :
|
|
26 |
QWidget(parent)
|
|
27 |
{
|
221
|
28 |
QGridLayout *mainLayout = new QGridLayout(this);
|
|
29 |
QSvgWidget *hedgehog = new QSvgWidget(":/res/Hedgehog.svg", this);
|
|
30 |
hedgehog->setFixedSize(300, 329);
|
235
|
31 |
mainLayout->addWidget(hedgehog, 0, 0, 2, 1);
|
|
32 |
|
|
33 |
QLabel *lbl1 = new QLabel(this);
|
|
34 |
|
|
35 |
lbl1->setOpenExternalLinks(true);
|
|
36 |
lbl1->setText(
|
236
|
37 |
"<div align=\"center\"><h1>Hedgewars</h1>" +
|
720
|
38 |
QLabel::tr("<h3>Version 0.9.2</h3>") +
|
236
|
39 |
"<p><a href=\"http://www.hedgewars.org/\">http://www.hedgewars.org/</a></p><br>" +
|
|
40 |
QLabel::tr("This program is distributed under the GNU General Public License") +
|
235
|
41 |
"</div>"
|
|
42 |
);
|
|
43 |
lbl1->setWordWrap(true);
|
|
44 |
mainLayout->addWidget(lbl1, 0, 1);
|
|
45 |
|
460
|
46 |
QTextBrowser *lbl2 = new QTextBrowser(this);
|
235
|
47 |
|
|
48 |
lbl2->setOpenExternalLinks(true);
|
623
|
49 |
lbl2->setText( QString("<h2>") +
|
|
50 |
QLabel::tr("Developers:") +
|
|
51 |
"</h2><p>"
|
235
|
52 |
"Andrey Korotaev <<a href=\"mailto:unC0Rr@gmail.com\">unC0Rr@gmail.com</a>><br>"
|
739
|
53 |
"Igor Ulyanov <<a href=\"mailto:disinbox@gmail.com\">disinbox@gmail.com</a>>"
|
623
|
54 |
"</p><h2>" +
|
|
55 |
QLabel::tr("Art:") + "</h2><p>"
|
|
56 |
"Volcano map and theme: Damion Brookes <<a href=\"mailto:nintendo_wii33@hotmail.co.uk\">nintendo_wii33@hotmail.co.uk</a>>"
|
|
57 |
"</p><h2>" +
|
|
58 |
QLabel::tr("Translations:") + "</h2><p>"
|
235
|
59 |
"english: Andrey Korotaev <<a href=\"mailto:unC0Rr@gmail.com\">unC0Rr@gmail.com</a>><br>"
|
792
|
60 |
"russian: Andrey Korotaev <<a href=\"mailto:unC0Rr@gmail.com\">unC0Rr@gmail.com</a>><br>" +
|
|
61 |
QString::fromUtf8("polish: Maciej Mroziński <<a href=\"mailto:mynick2@o2.pl\">mynick2@o2.pl</a>><br>") +
|
623
|
62 |
"</p><h2>" +
|
|
63 |
QLabel::tr("Special thanks:") + "</h2><p>"
|
243
|
64 |
"Aleksey Andreev <<a href=\"mailto:blaknayabr@gmail.com\">blaknayabr@gmail.com</a>><br>"
|
426
|
65 |
"Aleksander Rudalev <<a href=\"mailto:alexv@pomorsu.ru\">alexv@pomorsu.ru</a>><br>"
|
479
|
66 |
"Natasha Stafeeva <<a href=\"mailto:layout@pisem.net\">layout@pisem.net</a>><br>"
|
|
67 |
"Adam Higerd (aka ahigerd at FreeNode)"
|
460
|
68 |
"</p>"
|
235
|
69 |
);
|
460
|
70 |
mainLayout->addWidget(lbl2, 1, 1);
|
187
|
71 |
}
|