QTfrontend/about.cpp
author unc0rr
Fri, 08 Aug 2008 12:59:34 +0000
changeset 1176 2969efb7050f
parent 1135 296bdd06bbd0
child 1177 fd1548b994fa
permissions -rw-r--r--
Disallow AI to hurts itself with mortar (in quite rare cases it tries to shoot directly up)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
187
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents:
diff changeset
     1
/*
1066
1f1b3686a2b0 Update copyright headers a bit
unc0rr
parents: 1052
diff changeset
     2
 * Hedgewars, a free turn based strategy game
883
07a568ba44e0 Update copyright info in source files headers
unc0rr
parents: 872
diff changeset
     3
 * Copyright (c) 2006-2008 Andrey Korotaev <unC0Rr@gmail.com>
187
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents:
diff changeset
     4
 *
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents:
diff changeset
     5
 * This program is free software; you can redistribute it and/or modify
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents:
diff changeset
     6
 * it under the terms of the GNU General Public License as published by
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents:
diff changeset
     7
 * the Free Software Foundation; version 2 of the License
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents:
diff changeset
     8
 *
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents:
diff changeset
     9
 * This program is distributed in the hope that it will be useful,
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents:
diff changeset
    10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents:
diff changeset
    11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents:
diff changeset
    12
 * GNU General Public License for more details.
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents:
diff changeset
    13
 *
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents:
diff changeset
    14
 * You should have received a copy of the GNU General Public License
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents:
diff changeset
    15
 * along with this program; if not, write to the Free Software
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents:
diff changeset
    16
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents:
diff changeset
    17
 */
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents:
diff changeset
    18
221
0f451dae4251 Hedgehog on About page
unc0rr
parents: 187
diff changeset
    19
#include <QGridLayout>
0f451dae4251 Hedgehog on About page
unc0rr
parents: 187
diff changeset
    20
#include <QSvgWidget>
235
28903e620258 About page
unc0rr
parents: 221
diff changeset
    21
#include <QLabel>
460
3242b42ecad4 QTextBrowser instead of QLabel+QScrollArea
unc0rr
parents: 426
diff changeset
    22
#include <QTextBrowser>
187
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents:
diff changeset
    23
#include "about.h"
907
a5b0b93a39c8 Use constant generated by cmake for version string
unc0rr
parents: 888
diff changeset
    24
#include "hwconsts.h"
187
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents:
diff changeset
    25
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents:
diff changeset
    26
About::About(QWidget * parent) :
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents:
diff changeset
    27
  QWidget(parent)
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents:
diff changeset
    28
{
221
0f451dae4251 Hedgehog on About page
unc0rr
parents: 187
diff changeset
    29
	QGridLayout *mainLayout = new QGridLayout(this);
0f451dae4251 Hedgehog on About page
unc0rr
parents: 187
diff changeset
    30
	QSvgWidget *hedgehog = new QSvgWidget(":/res/Hedgehog.svg", this);
0f451dae4251 Hedgehog on About page
unc0rr
parents: 187
diff changeset
    31
	hedgehog->setFixedSize(300, 329);
235
28903e620258 About page
unc0rr
parents: 221
diff changeset
    32
	mainLayout->addWidget(hedgehog, 0, 0, 2, 1);
28903e620258 About page
unc0rr
parents: 221
diff changeset
    33
28903e620258 About page
unc0rr
parents: 221
diff changeset
    34
	QLabel *lbl1 = new QLabel(this);
28903e620258 About page
unc0rr
parents: 221
diff changeset
    35
28903e620258 About page
unc0rr
parents: 221
diff changeset
    36
	lbl1->setOpenExternalLinks(true);
28903e620258 About page
unc0rr
parents: 221
diff changeset
    37
	lbl1->setText(
907
a5b0b93a39c8 Use constant generated by cmake for version string
unc0rr
parents: 888
diff changeset
    38
			"<div align=\"center\"><h1>Hedgewars</h1>"
a5b0b93a39c8 Use constant generated by cmake for version string
unc0rr
parents: 888
diff changeset
    39
			"<h3>" + QLabel::tr("Version") + " " + *cVersionString + "</h3>"
236
7ca605677704 Russian translations
unc0rr
parents: 235
diff changeset
    40
			"<p><a href=\"http://www.hedgewars.org/\">http://www.hedgewars.org/</a></p><br>" +
7ca605677704 Russian translations
unc0rr
parents: 235
diff changeset
    41
			QLabel::tr("This program is distributed under the GNU General Public License") +
235
28903e620258 About page
unc0rr
parents: 221
diff changeset
    42
			"</div>"
28903e620258 About page
unc0rr
parents: 221
diff changeset
    43
			);
28903e620258 About page
unc0rr
parents: 221
diff changeset
    44
	lbl1->setWordWrap(true);
28903e620258 About page
unc0rr
parents: 221
diff changeset
    45
	mainLayout->addWidget(lbl1, 0, 1);
28903e620258 About page
unc0rr
parents: 221
diff changeset
    46
460
3242b42ecad4 QTextBrowser instead of QLabel+QScrollArea
unc0rr
parents: 426
diff changeset
    47
	QTextBrowser *lbl2 = new QTextBrowser(this);
235
28903e620258 About page
unc0rr
parents: 221
diff changeset
    48
28903e620258 About page
unc0rr
parents: 221
diff changeset
    49
	lbl2->setOpenExternalLinks(true);
623
ca1c1bd15915 Respect omen on about page
unc0rr
parents: 486
diff changeset
    50
	lbl2->setText(  QString("<h2>") +
ca1c1bd15915 Respect omen on about page
unc0rr
parents: 486
diff changeset
    51
			QLabel::tr("Developers:") +
ca1c1bd15915 Respect omen on about page
unc0rr
parents: 486
diff changeset
    52
			"</h2><p>"
235
28903e620258 About page
unc0rr
parents: 221
diff changeset
    53
			"Andrey Korotaev &lt;<a href=\"mailto:unC0Rr@gmail.com\">unC0Rr@gmail.com</a>&gt;<br>"
739
b6849ece8fee name fix
displacer
parents: 720
diff changeset
    54
			"Igor Ulyanov &lt;<a href=\"mailto:disinbox@gmail.com\">disinbox@gmail.com</a>&gt;"
623
ca1c1bd15915 Respect omen on about page
unc0rr
parents: 486
diff changeset
    55
			"</p><h2>" +
1029
d90fc508fa24 Oops, forgot file
unc0rr
parents: 1006
diff changeset
    56
			
872
d5f32e2dc166 Mention Tyuri in copyrights and on About page
unc0rr
parents: 792
diff changeset
    57
			QLabel::tr("Art:") + "</h2>"
1087
69ee85df0283 Update copyright info
unc0rr
parents: 1084
diff changeset
    58
			"<p>All sprites, all themes except for \"Cheese\" and \"Volcano\": Finn Brice &lt;<a href=\"mailto:tiyuri@gmail.com\">tiyuri@gmail.com</a>&gt;"
872
d5f32e2dc166 Mention Tyuri in copyrights and on About page
unc0rr
parents: 792
diff changeset
    59
			"<br>"
1087
69ee85df0283 Update copyright info
unc0rr
parents: 1084
diff changeset
    60
			"\"Bamboo\", \"EarthRise\" maps and themes: Joshua Frese &lt;<a href=\"mailto:joshfrese@gmail.com\">joshfrese@gmail.com</a>&gt;"
623
ca1c1bd15915 Respect omen on about page
unc0rr
parents: 486
diff changeset
    61
			"</p><h2>" +
1029
d90fc508fa24 Oops, forgot file
unc0rr
parents: 1006
diff changeset
    62
			
1100
03f53192fc53 Mention audio guys on About page and readme
unc0rr
parents: 1087
diff changeset
    63
			QLabel::tr("Sounds:") + "</h2>"
1119
be9700b424b2 Mention Stephen Alexander's e-mail in copyrights
unc0rr
parents: 1100
diff changeset
    64
			"Hedgehogs voice: Stephen Alexander &lt;<a href=\"mailto:ArmagonNo1@gmail.com\">ArmagonNo1@gmail.com</a>&gt;"
1100
03f53192fc53 Mention audio guys on About page and readme
unc0rr
parents: 1087
diff changeset
    65
			"<br>"
1134
4ede07a6803d - Update pirate, added snow soundtrack
unc0rr
parents: 1119
diff changeset
    66
			"\"Nature\" music theme: Finn Brice &lt;<a href=\"mailto:tiyuri@gmail.com\">tiyuri@gmail.com</a>&gt;"
1100
03f53192fc53 Mention audio guys on About page and readme
unc0rr
parents: 1087
diff changeset
    67
			"<br>"
1134
4ede07a6803d - Update pirate, added snow soundtrack
unc0rr
parents: 1119
diff changeset
    68
			"\"Pirate\", \"City\", \"Oriental\", \"Snow\" music themes: Jonatan Nilsson &lt;<a href=\"mailto:jonatanfan@gmail.com\">jonatanfan@gmail.com</a>&gt;"
1100
03f53192fc53 Mention audio guys on About page and readme
unc0rr
parents: 1087
diff changeset
    69
			"</p><h2>" +
03f53192fc53 Mention audio guys on About page and readme
unc0rr
parents: 1087
diff changeset
    70
			
623
ca1c1bd15915 Respect omen on about page
unc0rr
parents: 486
diff changeset
    71
			QLabel::tr("Translations:") + "</h2><p>"
1052
b80ff18a45af Mention french translator on About page
unc0rr
parents: 1030
diff changeset
    72
			+ QString::fromUtf8(
1030
c3ab6f503706 Mention translators on about page
unc0rr
parents: 1029
diff changeset
    73
			"Bulgarian: Svetoslav Stefanov<br>"
c3ab6f503706 Mention translators on about page
unc0rr
parents: 1029
diff changeset
    74
			"English: Andrey Korotaev &lt;<a href=\"mailto:unC0Rr@gmail.com\">unC0Rr@gmail.com</a>&gt;<br>"
1052
b80ff18a45af Mention french translator on About page
unc0rr
parents: 1030
diff changeset
    75
			"French: Antoine Turmel &lt;<a href=\"mailto:geekshadow@gmail.com\">geekshadow@gmail.com</a>&gt;<br>"
b80ff18a45af Mention french translator on About page
unc0rr
parents: 1030
diff changeset
    76
			"German: Peter Hüwe &lt;<a href=\"mailto:PeterHuewe@gmx.de\">PeterHuewe@gmx.de</a>&gt;<br>"
1030
c3ab6f503706 Mention translators on about page
unc0rr
parents: 1029
diff changeset
    77
			"Italian: Luca Bonora &lt;<a href=\"mailto:bonora.luca@gmail.com\">bonora.luca@gmail.com</a>&gt;<br>"
1052
b80ff18a45af Mention french translator on About page
unc0rr
parents: 1030
diff changeset
    78
			"Polish: Maciej Mroziński &lt;<a href=\"mailto:mynick2@o2.pl\">mynick2@o2.pl</a>&gt;<br>"
1030
c3ab6f503706 Mention translators on about page
unc0rr
parents: 1029
diff changeset
    79
			"Russian: Andrey Korotaev &lt;<a href=\"mailto:unC0Rr@gmail.com\">unC0Rr@gmail.com</a>&gt;<br>"
c3ab6f503706 Mention translators on about page
unc0rr
parents: 1029
diff changeset
    80
			"Slovak: Jose Riha"
1052
b80ff18a45af Mention french translator on About page
unc0rr
parents: 1030
diff changeset
    81
			"</p><h2>") +
1029
d90fc508fa24 Oops, forgot file
unc0rr
parents: 1006
diff changeset
    82
			
623
ca1c1bd15915 Respect omen on about page
unc0rr
parents: 486
diff changeset
    83
			QLabel::tr("Special thanks:") + "</h2><p>"
243
556b40fbd28c Add special thanks to about page
unc0rr
parents: 236
diff changeset
    84
			"Aleksey Andreev &lt;<a href=\"mailto:blaknayabr@gmail.com\">blaknayabr@gmail.com</a>&gt;<br>"
426
7523417d84d6 - Enable 'norsk' theme
unc0rr
parents: 268
diff changeset
    85
			"Aleksander Rudalev &lt;<a href=\"mailto:alexv@pomorsu.ru\">alexv@pomorsu.ru</a>&gt;<br>"
479
d216332610ef change Displacer's mailbox
displacer
parents: 460
diff changeset
    86
			"Natasha Stafeeva &lt;<a href=\"mailto:layout@pisem.net\">layout@pisem.net</a>&gt;<br>"
d216332610ef change Displacer's mailbox
displacer
parents: 460
diff changeset
    87
			"Adam Higerd (aka ahigerd at FreeNode)"
460
3242b42ecad4 QTextBrowser instead of QLabel+QScrollArea
unc0rr
parents: 426
diff changeset
    88
			"</p>"
235
28903e620258 About page
unc0rr
parents: 221
diff changeset
    89
			);
460
3242b42ecad4 QTextBrowser instead of QLabel+QScrollArea
unc0rr
parents: 426
diff changeset
    90
	mainLayout->addWidget(lbl2, 1, 1);
187
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents:
diff changeset
    91
}