187
|
1 |
/*
|
|
2 |
* Hedgewars, a worms-like game
|
|
3 |
* Copyright (c) 2006 Andrey Korotaev <unC0Rr@gmail.com>
|
|
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>" +
|
426
|
38 |
QLabel::tr("<h3>Version 0.9</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);
|
|
49 |
lbl2->setText(
|
236
|
50 |
QLabel::tr("<h2>Developers:</h2>") +
|
|
51 |
"<p>"
|
235
|
52 |
"Andrey Korotaev <<a href=\"mailto:unC0Rr@gmail.com\">unC0Rr@gmail.com</a>><br>"
|
|
53 |
"Igor Ulyanov <<a href=\"mailto:iulyanov@gmail.com\">iulyanov@gmail.com</a>>"
|
236
|
54 |
"</p>" +
|
243
|
55 |
QLabel::tr("<h2>Translations:</h2><p>") +
|
235
|
56 |
"english: Andrey Korotaev <<a href=\"mailto:unC0Rr@gmail.com\">unC0Rr@gmail.com</a>><br>"
|
|
57 |
"russian: Andrey Korotaev <<a href=\"mailto:unC0Rr@gmail.com\">unC0Rr@gmail.com</a>>"
|
243
|
58 |
"</p>" +
|
|
59 |
QLabel::tr("<h2>Special thanks:</h2><p>") +
|
|
60 |
"Aleksey Andreev <<a href=\"mailto:blaknayabr@gmail.com\">blaknayabr@gmail.com</a>><br>"
|
426
|
61 |
"Aleksander Rudalev <<a href=\"mailto:alexv@pomorsu.ru\">alexv@pomorsu.ru</a>><br>"
|
243
|
62 |
"Natasha Stafeeva <<a href=\"mailto:layout@pisem.net\">layout@pisem.net</a>>"
|
460
|
63 |
"</p>"
|
235
|
64 |
);
|
460
|
65 |
mainLayout->addWidget(lbl2, 1, 1);
|
187
|
66 |
}
|