QTfrontend/about.cpp
author unc0rr
Sun, 03 Jun 2007 17:21:57 +0000
changeset 534 92fb2b0d5117
parent 486 7ea71cd3acd5
child 623 ca1c1bd15915
permissions -rw-r--r--
- Fix some bugs - 'Switch hedgehog' tool
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
187
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents:
diff changeset
     1
/*
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents:
diff changeset
     2
 * Hedgewars, a worms-like game
486
7ea71cd3acd5 - Change proto version to 4
unc0rr
parents: 479
diff changeset
     3
 * Copyright (c) 2006, 2007 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"
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);
0f451dae4251 Hedgehog on About page
unc0rr
parents: 187
diff changeset
    29
	QSvgWidget *hedgehog = new QSvgWidget(":/res/Hedgehog.svg", this);
0f451dae4251 Hedgehog on About page
unc0rr
parents: 187
diff changeset
    30
	hedgehog->setFixedSize(300, 329);
235
28903e620258 About page
unc0rr
parents: 221
diff changeset
    31
	mainLayout->addWidget(hedgehog, 0, 0, 2, 1);
28903e620258 About page
unc0rr
parents: 221
diff changeset
    32
28903e620258 About page
unc0rr
parents: 221
diff changeset
    33
	QLabel *lbl1 = new QLabel(this);
28903e620258 About page
unc0rr
parents: 221
diff changeset
    34
28903e620258 About page
unc0rr
parents: 221
diff changeset
    35
	lbl1->setOpenExternalLinks(true);
28903e620258 About page
unc0rr
parents: 221
diff changeset
    36
	lbl1->setText(
236
7ca605677704 Russian translations
unc0rr
parents: 235
diff changeset
    37
			"<div align=\"center\"><h1>Hedgewars</h1>" +
426
7523417d84d6 - Enable 'norsk' theme
unc0rr
parents: 268
diff changeset
    38
			QLabel::tr("<h3>Version 0.9</h3>") +
236
7ca605677704 Russian translations
unc0rr
parents: 235
diff changeset
    39
			"<p><a href=\"http://www.hedgewars.org/\">http://www.hedgewars.org/</a></p><br>" +
7ca605677704 Russian translations
unc0rr
parents: 235
diff changeset
    40
			QLabel::tr("This program is distributed under the GNU General Public License") +
235
28903e620258 About page
unc0rr
parents: 221
diff changeset
    41
			"</div>"
28903e620258 About page
unc0rr
parents: 221
diff changeset
    42
			);
28903e620258 About page
unc0rr
parents: 221
diff changeset
    43
	lbl1->setWordWrap(true);
28903e620258 About page
unc0rr
parents: 221
diff changeset
    44
	mainLayout->addWidget(lbl1, 0, 1);
28903e620258 About page
unc0rr
parents: 221
diff changeset
    45
460
3242b42ecad4 QTextBrowser instead of QLabel+QScrollArea
unc0rr
parents: 426
diff changeset
    46
	QTextBrowser *lbl2 = new QTextBrowser(this);
235
28903e620258 About page
unc0rr
parents: 221
diff changeset
    47
28903e620258 About page
unc0rr
parents: 221
diff changeset
    48
	lbl2->setOpenExternalLinks(true);
28903e620258 About page
unc0rr
parents: 221
diff changeset
    49
	lbl2->setText(
236
7ca605677704 Russian translations
unc0rr
parents: 235
diff changeset
    50
			QLabel::tr("<h2>Developers:</h2>") +
7ca605677704 Russian translations
unc0rr
parents: 235
diff changeset
    51
			"<p>"
235
28903e620258 About page
unc0rr
parents: 221
diff changeset
    52
			"Andrey Korotaev &lt;<a href=\"mailto:unC0Rr@gmail.com\">unC0Rr@gmail.com</a>&gt;<br>"
479
d216332610ef change Displacer's mailbox
displacer
parents: 460
diff changeset
    53
			"Igor Ulyanov (aka Displacer) &lt;<a href=\"mailto:disinbox@gmail.com\">disinbox@gmail.com</a>&gt;"
236
7ca605677704 Russian translations
unc0rr
parents: 235
diff changeset
    54
			"</p>" +
243
556b40fbd28c Add special thanks to about page
unc0rr
parents: 236
diff changeset
    55
			QLabel::tr("<h2>Translations:</h2><p>") +
235
28903e620258 About page
unc0rr
parents: 221
diff changeset
    56
			"english: Andrey Korotaev &lt;<a href=\"mailto:unC0Rr@gmail.com\">unC0Rr@gmail.com</a>&gt;<br>"
28903e620258 About page
unc0rr
parents: 221
diff changeset
    57
			"russian: Andrey Korotaev &lt;<a href=\"mailto:unC0Rr@gmail.com\">unC0Rr@gmail.com</a>&gt;"
243
556b40fbd28c Add special thanks to about page
unc0rr
parents: 236
diff changeset
    58
			"</p>" +
556b40fbd28c Add special thanks to about page
unc0rr
parents: 236
diff changeset
    59
			QLabel::tr("<h2>Special thanks:</h2><p>") +
556b40fbd28c Add special thanks to about page
unc0rr
parents: 236
diff changeset
    60
			"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
    61
			"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
    62
			"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
    63
			"Adam Higerd (aka ahigerd at FreeNode)"
460
3242b42ecad4 QTextBrowser instead of QLabel+QScrollArea
unc0rr
parents: 426
diff changeset
    64
			"</p>"
235
28903e620258 About page
unc0rr
parents: 221
diff changeset
    65
			);
460
3242b42ecad4 QTextBrowser instead of QLabel+QScrollArea
unc0rr
parents: 426
diff changeset
    66
	mainLayout->addWidget(lbl2, 1, 1);
187
96c3154efee5 "About" page, not yet filled with content
unc0rr
parents:
diff changeset
    67
}