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>
|
187
|
22 |
#include "about.h"
|
|
23 |
|
|
24 |
About::About(QWidget * parent) :
|
|
25 |
QWidget(parent)
|
|
26 |
{
|
221
|
27 |
QGridLayout *mainLayout = new QGridLayout(this);
|
|
28 |
QSvgWidget *hedgehog = new QSvgWidget(":/res/Hedgehog.svg", this);
|
|
29 |
hedgehog->setFixedSize(300, 329);
|
235
|
30 |
mainLayout->addWidget(hedgehog, 0, 0, 2, 1);
|
|
31 |
|
|
32 |
QLabel *lbl1 = new QLabel(this);
|
|
33 |
|
|
34 |
lbl1->setOpenExternalLinks(true);
|
|
35 |
lbl1->setText(
|
236
|
36 |
"<div align=\"center\"><h1>Hedgewars</h1>" +
|
|
37 |
QLabel::tr("<h3>Version 0.8</h3>") +
|
|
38 |
"<p><a href=\"http://www.hedgewars.org/\">http://www.hedgewars.org/</a></p><br>" +
|
|
39 |
QLabel::tr("This program is distributed under the GNU General Public License") +
|
235
|
40 |
"</div>"
|
|
41 |
);
|
|
42 |
lbl1->setWordWrap(true);
|
|
43 |
mainLayout->addWidget(lbl1, 0, 1);
|
|
44 |
|
|
45 |
QLabel *lbl2 = new QLabel(this);
|
|
46 |
|
|
47 |
lbl2->setOpenExternalLinks(true);
|
|
48 |
lbl2->setText(
|
236
|
49 |
QLabel::tr("<h2>Developers:</h2>") +
|
|
50 |
"<p>"
|
235
|
51 |
"Andrey Korotaev <<a href=\"mailto:unC0Rr@gmail.com\">unC0Rr@gmail.com</a>><br>"
|
|
52 |
"Igor Ulyanov <<a href=\"mailto:iulyanov@gmail.com\">iulyanov@gmail.com</a>>"
|
236
|
53 |
"</p>" +
|
|
54 |
QLabel::tr("<h2>Translations:</h2>") +
|
235
|
55 |
"english: Andrey Korotaev <<a href=\"mailto:unC0Rr@gmail.com\">unC0Rr@gmail.com</a>><br>"
|
|
56 |
"russian: Andrey Korotaev <<a href=\"mailto:unC0Rr@gmail.com\">unC0Rr@gmail.com</a>>"
|
|
57 |
);
|
|
58 |
lbl2->setWordWrap(true);
|
|
59 |
mainLayout->addWidget(lbl2, 1, 1);
|
187
|
60 |
}
|