QTfrontend/about.cpp
author nemo
Sun, 24 Jan 2010 16:46:06 +0000
changeset 2712 8f4527c9137c
parent 2525 e6cdc0251cd1
child 2751 2a3091b13ce4
permissions -rw-r--r--
Minor tweak, try to make long flavour text last longer, move the hurt self messages to unused messages group, so they don't get wiped by crate an instant later.
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>
235
28903e620258 About page
unc0rr
parents: 221
diff changeset
    20
#include <QLabel>
460
3242b42ecad4 QTextBrowser instead of QLabel+QScrollArea
unc0rr
parents: 426
diff changeset
    21
#include <QTextBrowser>
187
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents:
diff changeset
    22
#include "about.h"
907
a5b0b93a39c8 Use constant generated by cmake for version string
unc0rr
parents: 888
diff changeset
    23
#include "hwconsts.h"
187
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents:
diff changeset
    24
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents:
diff changeset
    25
About::About(QWidget * parent) :
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents:
diff changeset
    26
  QWidget(parent)
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents:
diff changeset
    27
{
221
0f451dae4251 Hedgehog on About page
unc0rr
parents: 187
diff changeset
    28
	QGridLayout *mainLayout = new QGridLayout(this);
2525
e6cdc0251cd1 remove the svg dependency
koda
parents: 2460
diff changeset
    29
        QLabel *imageLabel = new QLabel;
e6cdc0251cd1 remove the svg dependency
koda
parents: 2460
diff changeset
    30
        QImage image(":/res/Hedgehog.png");
e6cdc0251cd1 remove the svg dependency
koda
parents: 2460
diff changeset
    31
e6cdc0251cd1 remove the svg dependency
koda
parents: 2460
diff changeset
    32
        imageLabel->setPixmap(QPixmap::fromImage(image));
e6cdc0251cd1 remove the svg dependency
koda
parents: 2460
diff changeset
    33
        imageLabel->setScaledContents(true);
e6cdc0251cd1 remove the svg dependency
koda
parents: 2460
diff changeset
    34
e6cdc0251cd1 remove the svg dependency
koda
parents: 2460
diff changeset
    35
        imageLabel->setMinimumWidth(2.8);
e6cdc0251cd1 remove the svg dependency
koda
parents: 2460
diff changeset
    36
        imageLabel->setMaximumWidth(280);
e6cdc0251cd1 remove the svg dependency
koda
parents: 2460
diff changeset
    37
        imageLabel->setMinimumHeight(30);
e6cdc0251cd1 remove the svg dependency
koda
parents: 2460
diff changeset
    38
        imageLabel->setMaximumHeight(300);
e6cdc0251cd1 remove the svg dependency
koda
parents: 2460
diff changeset
    39
        mainLayout->addWidget(imageLabel, 0, 0, 2, 1);
235
28903e620258 About page
unc0rr
parents: 221
diff changeset
    40
28903e620258 About page
unc0rr
parents: 221
diff changeset
    41
	QLabel *lbl1 = new QLabel(this);
28903e620258 About page
unc0rr
parents: 221
diff changeset
    42
28903e620258 About page
unc0rr
parents: 221
diff changeset
    43
	lbl1->setOpenExternalLinks(true);
28903e620258 About page
unc0rr
parents: 221
diff changeset
    44
	lbl1->setText(
1897
e9dcb47013c7 - Some style changes by nemo
unc0rr
parents: 1796
diff changeset
    45
            "<style type=\"text/css\">"
e9dcb47013c7 - Some style changes by nemo
unc0rr
parents: 1796
diff changeset
    46
            "a { color: #ffcc00; }"
e9dcb47013c7 - Some style changes by nemo
unc0rr
parents: 1796
diff changeset
    47
//            "a:hover { color: yellow; }"
2377
f3fab2b09e0c And in frontend
nemo
parents: 2132
diff changeset
    48
            "</style>"
907
a5b0b93a39c8 Use constant generated by cmake for version string
unc0rr
parents: 888
diff changeset
    49
			"<div align=\"center\"><h1>Hedgewars</h1>"
a5b0b93a39c8 Use constant generated by cmake for version string
unc0rr
parents: 888
diff changeset
    50
			"<h3>" + QLabel::tr("Version") + " " + *cVersionString + "</h3>"
236
7ca605677704 Russian translations
unc0rr
parents: 235
diff changeset
    51
			"<p><a href=\"http://www.hedgewars.org/\">http://www.hedgewars.org/</a></p><br>" +
7ca605677704 Russian translations
unc0rr
parents: 235
diff changeset
    52
			QLabel::tr("This program is distributed under the GNU General Public License") +
235
28903e620258 About page
unc0rr
parents: 221
diff changeset
    53
			"</div>"
28903e620258 About page
unc0rr
parents: 221
diff changeset
    54
			);
28903e620258 About page
unc0rr
parents: 221
diff changeset
    55
	lbl1->setWordWrap(true);
28903e620258 About page
unc0rr
parents: 221
diff changeset
    56
	mainLayout->addWidget(lbl1, 0, 1);
28903e620258 About page
unc0rr
parents: 221
diff changeset
    57
460
3242b42ecad4 QTextBrowser instead of QLabel+QScrollArea
unc0rr
parents: 426
diff changeset
    58
	QTextBrowser *lbl2 = new QTextBrowser(this);
235
28903e620258 About page
unc0rr
parents: 221
diff changeset
    59
28903e620258 About page
unc0rr
parents: 221
diff changeset
    60
	lbl2->setOpenExternalLinks(true);
1897
e9dcb47013c7 - Some style changes by nemo
unc0rr
parents: 1796
diff changeset
    61
	lbl2->setText(
e9dcb47013c7 - Some style changes by nemo
unc0rr
parents: 1796
diff changeset
    62
            "<style type=\"text/css\">"
e9dcb47013c7 - Some style changes by nemo
unc0rr
parents: 1796
diff changeset
    63
            "a { color: #ffcc00; }"
e9dcb47013c7 - Some style changes by nemo
unc0rr
parents: 1796
diff changeset
    64
//            "a:hover { color: yellow; }"
e9dcb47013c7 - Some style changes by nemo
unc0rr
parents: 1796
diff changeset
    65
            "</style>" +
e9dcb47013c7 - Some style changes by nemo
unc0rr
parents: 1796
diff changeset
    66
            QString("<h2>") +
623
ca1c1bd15915 Respect omen on about page
unc0rr
parents: 486
diff changeset
    67
			QLabel::tr("Developers:") +
ca1c1bd15915 Respect omen on about page
unc0rr
parents: 486
diff changeset
    68
			"</h2><p>"
1606
5d270db8be9e Add Martin Boze to developers list
unc0rr
parents: 1467
diff changeset
    69
			"Engine, frontend, net server: Andrey Korotaev &lt;<a href=\"mailto:unC0Rr@gmail.com\">unC0Rr@gmail.com</a>&gt;<br>"
5d270db8be9e Add Martin Boze to developers list
unc0rr
parents: 1467
diff changeset
    70
			"Many frontend improvements: Igor Ulyanov &lt;<a href=\"mailto:disinbox@gmail.com\">disinbox@gmail.com</a>&gt;<br>"
1983
fd1f418ea577 update about page
unc0rr
parents: 1977
diff changeset
    71
			"Many engine and frontend improvements: Derek Pomery &lt;<a href=\"mailto:nemo@m8y.org\">nemo@m8y.org</a>&gt;<br>"
fd1f418ea577 update about page
unc0rr
parents: 1977
diff changeset
    72
			"Drill rocket, Ballgun, RC Plane weapons: Martin Boze &lt;<a href=\"mailto:afffect@gmail.com\">afffect@gmail.com</a>&gt;<br>"
2132
370581ce983f Add david_ac to credits
nemo
parents: 2109
diff changeset
    73
			"Mine number and time game settings: David A. Cuadrado &lt;<a href=\"mailto:krawek@gmail.com\">krawek@gmail.com</a>&gt;<br>"
1983
fd1f418ea577 update about page
unc0rr
parents: 1977
diff changeset
    74
			"Frontend improvements: Martin Minarik &lt;<a href=\"mailto:ttsmj@pokec.sk\">ttsmj@pokec.sk</a>&gt;<br>"
fd1f418ea577 update about page
unc0rr
parents: 1977
diff changeset
    75
			"Frontend improvements: Kristian Lehmann &lt;<a href=\"mailto:email@thexception.net\">email@thexception.net</a>&gt;<br>"
2460
ac0c497fb842 Adjustments to training mode and credits by Smaxx
nemo
parents: 2377
diff changeset
    76
			"Mac OS X port, OpenAL wrapper library: Vittorio Giovara &lt;<a href=\"mailto:vittorio.giovara@gmail.com\">vittorio.giovara@gmail.com</a>&gt;<br>"
ac0c497fb842 Adjustments to training mode and credits by Smaxx
nemo
parents: 2377
diff changeset
    77
			"Gamepad support and additional effects: Mario Liebisch &lt;<a href=\"mailto:mario.liebisch+hw@googlemail.com\">mario.liebisch+hw@googlemail.com</a>&gt;"
623
ca1c1bd15915 Respect omen on about page
unc0rr
parents: 486
diff changeset
    78
			"</p><h2>" +
2377
f3fab2b09e0c And in frontend
nemo
parents: 2132
diff changeset
    79
872
d5f32e2dc166 Mention Tyuri in copyrights and on About page
unc0rr
parents: 792
diff changeset
    80
			QLabel::tr("Art:") + "</h2>"
1177
fd1548b994fa Add "Castle" map copyright info
unc0rr
parents: 1135
diff changeset
    81
			+ QString::fromUtf8(
1983
fd1f418ea577 update about page
unc0rr
parents: 1977
diff changeset
    82
			"<p>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
    83
			"<br>"
1983
fd1f418ea577 update about page
unc0rr
parents: 1977
diff changeset
    84
			"Joshua Frese &lt;<a href=\"mailto:joshfrese@gmail.com\">joshfrese@gmail.com</a>&gt;"
fd1f418ea577 update about page
unc0rr
parents: 1977
diff changeset
    85
			"<br>"
fd1f418ea577 update about page
unc0rr
parents: 1977
diff changeset
    86
			"Stanko Tadić &lt;<a href=\"mailto:stanko@mfhinc.net\">stanko@mfhinc.net</a>&gt;"
1177
fd1548b994fa Add "Castle" map copyright info
unc0rr
parents: 1135
diff changeset
    87
			"<br>"
1983
fd1f418ea577 update about page
unc0rr
parents: 1977
diff changeset
    88
			"Julien Koesten &lt;<a href=\"mailto:julienkoesten@aol.com\">julienkoesten@aol.com</a>&gt;"
1208
9f4704f3c6ea Add Sheep theme by Julien Koesten. Will be slightly corrected a bit later.
unc0rr
parents: 1205
diff changeset
    89
			"<br>"
1983
fd1f418ea577 update about page
unc0rr
parents: 1977
diff changeset
    90
			"Joshua O'Sullivan &lt;<a href=\"mailto:battysausage@hotmail.co.uk\">battysausage@hotmail.co.uk</a>&gt;"
1661
08c6e3665025 Mention Josh on about page
unc0rr
parents: 1606
diff changeset
    91
			"<br>"
1983
fd1f418ea577 update about page
unc0rr
parents: 1977
diff changeset
    92
			"Nils Lück &lt;<a href=\"mailto:nils.luck.design@gmail.com\">nils.luck.design@gmail.com</a>&gt;"
2075
53399947c944 add Firefox to creds
nemo
parents: 1983
diff changeset
    93
			"<br>"
2095
81dd8a012554 correct Firefox e-mail addy
nemo
parents: 2075
diff changeset
    94
			"Hats: Trey Perry &lt;<a href=\"mailto:tx.perry.j@gmail.com\">tx.perry.j@gmail.com</a>&gt;"
1177
fd1548b994fa Add "Castle" map copyright info
unc0rr
parents: 1135
diff changeset
    95
			"</p><h2>") +
1100
03f53192fc53 Mention audio guys on About page and readme
unc0rr
parents: 1087
diff changeset
    96
			QLabel::tr("Sounds:") + "</h2>"
1119
be9700b424b2 Mention Stephen Alexander's e-mail in copyrights
unc0rr
parents: 1100
diff changeset
    97
			"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
    98
			"<br>"
1983
fd1f418ea577 update about page
unc0rr
parents: 1977
diff changeset
    99
			"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
   100
			"<br>"
1983
fd1f418ea577 update about page
unc0rr
parents: 1977
diff changeset
   101
			"Jonatan Nilsson &lt;<a href=\"mailto:jonatanfan@gmail.com\">jonatanfan@gmail.com</a>&gt;"
fd1f418ea577 update about page
unc0rr
parents: 1977
diff changeset
   102
			"<br>"
2109
nemo
parents: 2095
diff changeset
   103
			"Daniel Martin &lt;<a href=\"mailto:elhombresinremedio@gmail.com\">elhombresinremedio@gmail.com</a>&gt;"
1100
03f53192fc53 Mention audio guys on About page and readme
unc0rr
parents: 1087
diff changeset
   104
			"</p><h2>" +
2377
f3fab2b09e0c And in frontend
nemo
parents: 2132
diff changeset
   105
623
ca1c1bd15915 Respect omen on about page
unc0rr
parents: 486
diff changeset
   106
			QLabel::tr("Translations:") + "</h2><p>"
1052
b80ff18a45af Mention french translator on About page
unc0rr
parents: 1030
diff changeset
   107
			+ QString::fromUtf8(
1380
f3bdfe2452f2 Mention Romulo Fernandes Machado on about page for Brazilian Portuguese translation
unc0rr
parents: 1287
diff changeset
   108
			"Brazilian Portuguese: Romulo Fernandes Machado &lt;<a href=\"mailto:abra185@gmail.com\">abra185@gmail.com</a>&gt;<br>"
1030
c3ab6f503706 Mention translators on about page
unc0rr
parents: 1029
diff changeset
   109
			"Bulgarian: Svetoslav Stefanov<br>"
1429
24ae7a81aa03 Update Czech translation
unc0rr
parents: 1423
diff changeset
   110
			"Czech: Petr Řezáček &lt;<a href=\"mailto:rezacek@gmail.com\">rezacek@gmail.com</a>&gt;<br>"
1691
7e964ebbcc82 Update zh_CN translation
unc0rr
parents: 1661
diff changeset
   111
			"Chinese: Jie Luo &lt;<a href=\"mailto:lililjlj@gmail.com\">lililjlj@gmail.com</a>&gt;<br>"
1030
c3ab6f503706 Mention translators on about page
unc0rr
parents: 1029
diff changeset
   112
			"English: Andrey Korotaev &lt;<a href=\"mailto:unC0Rr@gmail.com\">unC0Rr@gmail.com</a>&gt;<br>"
1796
4bcdf0bf58b8 Finnish translation
unc0rr
parents: 1699
diff changeset
   113
			"Finnish: Nina Kuisma &lt;<a href=\"mailto:ninnnu@gmail.com\">ninnnu@gmail.com</a>&gt;<br>"
1052
b80ff18a45af Mention french translator on About page
unc0rr
parents: 1030
diff changeset
   114
			"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
   115
			"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
   116
			"Italian: Luca Bonora &lt;<a href=\"mailto:bonora.luca@gmail.com\">bonora.luca@gmail.com</a>&gt;<br>"
2460
ac0c497fb842 Adjustments to training mode and credits by Smaxx
nemo
parents: 2377
diff changeset
   117
			"Japanese: ADAM Etienne &lt;<a href=\"mailto:etienne.adam@gmail.com\">etienne.adam@gmail.com</a>&gt;<br>"
1949
9f3ea865f00c Update some translations
unc0rr
parents: 1897
diff changeset
   118
			"Polish: Maciej Mroziński &lt;<a href=\"mailto:mynick2@o2.pl\">mynick2@o2.pl</a>&gt;, Wojciech Latkowski &lt;<a href=\"mailto:magik_15l@poczta.fm\">magik_15l@poczta.fm</a>&gt;, Maciej Górny<br>"
1030
c3ab6f503706 Mention translators on about page
unc0rr
parents: 1029
diff changeset
   119
			"Russian: Andrey Korotaev &lt;<a href=\"mailto:unC0Rr@gmail.com\">unC0Rr@gmail.com</a>&gt;<br>"
1203
7a7a2fd6a3af Mention Niklas Grahn for his translation on about page
unc0rr
parents: 1177
diff changeset
   120
			"Slovak: Jose Riha<br>"
1247
890b6741251d Add Spanish translation by Carlos Vives
unc0rr
parents: 1229
diff changeset
   121
			"Spanish: Carlos Vives &lt;<a href=\"mailto:mail@carlosvives.es\">mail@carlosvives.es</a>&gt;<br>"
1264
e8ac58bbd10f Mention Eugene Lyubimkin in translators list for his Ukrainian translation
unc0rr
parents: 1247
diff changeset
   122
			"Swedish: Niklas Grahn &lt;<a href=\"mailto:raewolusjoon@yaoo.com\">raewolusjoon@yaoo.com</a>&gt;<br>"
1287
4a0cbcbe3521 Move preview icons into comboboxes
unc0rr
parents: 1264
diff changeset
   123
			"Ukrainian: Eugene V. Lyubimkin &lt;<a href=\"mailto:jackyf.devel@gmail.com\">jackyf.devel@gmail.com</a>&gt;"
1052
b80ff18a45af Mention french translator on About page
unc0rr
parents: 1030
diff changeset
   124
			"</p><h2>") +
2377
f3fab2b09e0c And in frontend
nemo
parents: 2132
diff changeset
   125
623
ca1c1bd15915 Respect omen on about page
unc0rr
parents: 486
diff changeset
   126
			QLabel::tr("Special thanks:") + "</h2><p>"
243
556b40fbd28c Add special thanks to about page
unc0rr
parents: 236
diff changeset
   127
			"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
   128
			"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
   129
			"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
   130
			"Adam Higerd (aka ahigerd at FreeNode)"
460
3242b42ecad4 QTextBrowser instead of QLabel+QScrollArea
unc0rr
parents: 426
diff changeset
   131
			"</p>"
235
28903e620258 About page
unc0rr
parents: 221
diff changeset
   132
			);
460
3242b42ecad4 QTextBrowser instead of QLabel+QScrollArea
unc0rr
parents: 426
diff changeset
   133
	mainLayout->addWidget(lbl2, 1, 1);
187
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents:
diff changeset
   134
}