QTfrontend/ui/widget/about.cpp
changeset 6616 f77bb02b669f
parent 6175 a80833ddaef0
child 6700 e04da46ee43c
equal deleted inserted replaced
6615:65602f1ef0f8 6616:f77bb02b669f
    25 #include "SDLInteraction.h"
    25 #include "SDLInteraction.h"
    26 
    26 
    27 #include "about.h"
    27 #include "about.h"
    28 
    28 
    29 About::About(QWidget * parent) :
    29 About::About(QWidget * parent) :
    30   QWidget(parent)
    30     QWidget(parent)
    31 {
    31 {
    32     QGridLayout *mainLayout = new QGridLayout(this);
    32     QGridLayout *mainLayout = new QGridLayout(this);
    33 
    33 
    34     QLabel *imageLabel = new QLabel;
    34     QLabel *imageLabel = new QLabel;
    35     QImage image(":/res/Hedgehog.png");
    35     QImage image(":/res/Hedgehog.png");
    43     mainLayout->addWidget(imageLabel, 0, 0, 2, 1);
    43     mainLayout->addWidget(imageLabel, 0, 0, 2, 1);
    44 
    44 
    45     QLabel *lbl1 = new QLabel(this);
    45     QLabel *lbl1 = new QLabel(this);
    46     lbl1->setOpenExternalLinks(true);
    46     lbl1->setOpenExternalLinks(true);
    47     lbl1->setText(
    47     lbl1->setText(
    48             "<style type=\"text/css\">"
    48         "<style type=\"text/css\">"
    49             "a { color: #ffcc00; }"
    49         "a { color: #ffcc00; }"
    50 //            "a:hover { color: yellow; }"
    50 //            "a:hover { color: yellow; }"
    51             "</style>"
    51         "</style>"
    52             "<div align=\"center\"><h1>Hedgewars</h1>"
    52         "<div align=\"center\"><h1>Hedgewars</h1>"
    53             "<h3>" + QLabel::tr("Version") + " " + *cVersionString + "</h3>"
    53         "<h3>" + QLabel::tr("Version") + " " + *cVersionString + "</h3>"
    54             "<p><a href=\"http://www.hedgewars.org/\">http://www.hedgewars.org/</a></p><br>" +
    54         "<p><a href=\"http://www.hedgewars.org/\">http://www.hedgewars.org/</a></p><br>" +
    55             QLabel::tr("This program is distributed under the GNU General Public License v2") +
    55         QLabel::tr("This program is distributed under the GNU General Public License v2") +
    56             "</div>"
    56         "</div>"
    57             );
    57     );
    58     lbl1->setWordWrap(true);
    58     lbl1->setWordWrap(true);
    59     mainLayout->addWidget(lbl1, 0, 1);
    59     mainLayout->addWidget(lbl1, 0, 1);
    60 
    60 
    61     lbl2 = new QTextBrowser(this);
    61     lbl2 = new QTextBrowser(this);
    62 
    62 
    63     lbl2->setOpenExternalLinks(true);
    63     lbl2->setOpenExternalLinks(true);
    64     lbl2->setText(
    64     lbl2->setText(
    65             "<style type=\"text/css\">"
    65         "<style type=\"text/css\">"
    66             "a { color: #ffcc00; }"
    66         "a { color: #ffcc00; }"
    67 //            "a:hover { color: yellow; }"
    67 //            "a:hover { color: yellow; }"
    68             "</style>" +
    68         "</style>" +
    69             QString("<h2>") +
    69         QString("<h2>") +
    70             QLabel::tr("Developers:") +
    70         QLabel::tr("Developers:") +
    71             "</h2><p>"
    71         "</h2><p>"
    72             "Engine, frontend, net server: Andrey Korotaev &lt;<a href=\"mailto:unC0Rr@gmail.com\">unC0Rr@gmail.com</a>&gt;<br>"
    72         "Engine, frontend, net server: Andrey Korotaev &lt;<a href=\"mailto:unC0Rr@gmail.com\">unC0Rr@gmail.com</a>&gt;<br>"
    73             "Many frontend improvements: Igor Ulyanov &lt;<a href=\"mailto:disinbox@gmail.com\">disinbox@gmail.com</a>&gt;<br>"
    73         "Many frontend improvements: Igor Ulyanov &lt;<a href=\"mailto:disinbox@gmail.com\">disinbox@gmail.com</a>&gt;<br>"
    74             "Many engine and frontend improvements: Derek Pomery &lt;<a href=\"mailto:nemo@m8y.org\">nemo@m8y.org</a>&gt;<br>"
    74         "Many engine and frontend improvements: Derek Pomery &lt;<a href=\"mailto:nemo@m8y.org\">nemo@m8y.org</a>&gt;<br>"
    75             "Drill rocket, Ballgun, RC Plane weapons: Martin Boze &lt;<a href=\"mailto:afffect@gmail.com\">afffect@gmail.com</a>&gt;<br>"
    75         "Drill rocket, Ballgun, RC Plane weapons: Martin Boze &lt;<a href=\"mailto:afffect@gmail.com\">afffect@gmail.com</a>&gt;<br>"
    76             "Mine number and time game settings: David A. Cuadrado &lt;<a href=\"mailto:krawek@gmail.com\">krawek@gmail.com</a>&gt;<br>"
    76         "Mine number and time game settings: David A. Cuadrado &lt;<a href=\"mailto:krawek@gmail.com\">krawek@gmail.com</a>&gt;<br>"
    77             "Frontend improvements: Martin Minarik &lt;<a href=\"mailto:ttsmj@pokec.sk\">ttsmj@pokec.sk</a>&gt;<br>"
    77         "Frontend improvements: Martin Minarik &lt;<a href=\"mailto:ttsmj@pokec.sk\">ttsmj@pokec.sk</a>&gt;<br>"
    78             "Frontend improvements: Kristian Lehmann &lt;<a href=\"mailto:email@thexception.net\">email@thexception.net</a>&gt;<br>"
    78         "Frontend improvements: Kristian Lehmann &lt;<a href=\"mailto:email@thexception.net\">email@thexception.net</a>&gt;<br>"
    79             "Mac OS X/iPhone port, OpenGL-ES conversion: Vittorio Giovara &lt;<a href=\"mailto:vittorio.giovara@gmail.com\">vittorio.giovara@gmail.com</a>&gt;<br>"
    79         "Mac OS X/iPhone port, OpenGL-ES conversion: Vittorio Giovara &lt;<a href=\"mailto:vittorio.giovara@gmail.com\">vittorio.giovara@gmail.com</a>&gt;<br>"
    80             "Many engine and frontend improvements (and bugs): Richard Karolyi &lt;<a href=\"mailto:sheepluva@" "ercatec.net\">sheepluva@" "ercatec.net</a>&gt;<br>"
    80         "Many engine and frontend improvements (and bugs): Richard Karolyi &lt;<a href=\"mailto:sheepluva@" "ercatec.net\">sheepluva@" "ercatec.net</a>&gt;<br>"
    81             "Gamepad and Lua integration: Mario Liebisch &lt;<a href=\"mailto:mario.liebisch@gmail.com\">mario.liebisch@gmail.com</a>&gt;<br>"
    81         "Gamepad and Lua integration: Mario Liebisch &lt;<a href=\"mailto:mario.liebisch@gmail.com\">mario.liebisch@gmail.com</a>&gt;<br>"
    82             "Many engine improvements and graphics: Carlos Vives &lt;<a href=\"mailto:mail@carlosvives.es\">mail@carlosvives.es</a>&gt;<br>"
    82         "Many engine improvements and graphics: Carlos Vives &lt;<a href=\"mailto:mail@carlosvives.es\">mail@carlosvives.es</a>&gt;<br>"
    83             "Maze maps: Henning K&uuml;hn &lt;<a href=\"mailto:prg@cooco.de\">prg@cooco.de</a>&gt;<br>"
    83         "Maze maps: Henning K&uuml;hn &lt;<a href=\"mailto:prg@cooco.de\">prg@cooco.de</a>&gt;<br>"
    84             "Engine and frontend improvements: Henrik Rostedt &lt;<a href=\"mailto:henrik.rostedt@gmail.com\">henrik.rostedt@gmail.com</a>&gt;<br>"
    84         "Engine and frontend improvements: Henrik Rostedt &lt;<a href=\"mailto:henrik.rostedt@gmail.com\">henrik.rostedt@gmail.com</a>&gt;<br>"
    85             "Lua game modes and missions: John Lambert &lt;<a href=\"mailto:redgrinner@gmail.com\">redgrinner@gmail.com</a>&gt;<br>"
    85         "Lua game modes and missions: John Lambert &lt;<a href=\"mailto:redgrinner@gmail.com\">redgrinner@gmail.com</a>&gt;<br>"
    86             "Frontend improvements: Mayur Pawashe &lt;<a href=\"mailto:zorgiepoo@gmail.com\">zorgiepoo@gmail.com</a>&gt;<br>"
    86         "Frontend improvements: Mayur Pawashe &lt;<a href=\"mailto:zorgiepoo@gmail.com\">zorgiepoo@gmail.com</a>&gt;<br>"
    87             "Android port: Richard Deurwaarder &lt;<a href=\"mailto:xeli@xelification.com\">xeli@xelification.com</a>&gt;<br>"
    87         "Android port: Richard Deurwaarder &lt;<a href=\"mailto:xeli@xelification.com\">xeli@xelification.com</a>&gt;<br>"
    88             "</p><h2>" +
    88         "</p><h2>" +
    89 
    89 
    90             QLabel::tr("Art:") + "</h2>"
    90         QLabel::tr("Art:") + "</h2>"
    91             + QString::fromUtf8(
    91         + QString::fromUtf8(
    92             "<p>John Dum &lt;<a href=\"mailto:fizzy@gmail.com\">fizzy@gmail.com</a>&gt;"
    92             "<p>John Dum &lt;<a href=\"mailto:fizzy@gmail.com\">fizzy@gmail.com</a>&gt;"
    93             "<br>"
    93             "<br>"
    94             "Joshua Frese &lt;<a href=\"mailto:joshfrese@gmail.com\">joshfrese@gmail.com</a>&gt;"
    94             "Joshua Frese &lt;<a href=\"mailto:joshfrese@gmail.com\">joshfrese@gmail.com</a>&gt;"
    95             "<br>"
    95             "<br>"
    96             "Stanko Tadić &lt;<a href=\"mailto:stanko@mfhinc.net\">stanko@mfhinc.net</a>&gt;"
    96             "Stanko Tadić &lt;<a href=\"mailto:stanko@mfhinc.net\">stanko@mfhinc.net</a>&gt;"
   103             "<br>"
   103             "<br>"
   104             "Guillaume Englert &lt;<a href=\"mailto:genglert@hybird.org\">genglert@hybird.org</a>&gt;"
   104             "Guillaume Englert &lt;<a href=\"mailto:genglert@hybird.org\">genglert@hybird.org</a>&gt;"
   105             "<br>"
   105             "<br>"
   106             "Hats: Trey Perry &lt;<a href=\"mailto:tx.perry.j@gmail.com\">tx.perry.j@gmail.com</a>&gt;"
   106             "Hats: Trey Perry &lt;<a href=\"mailto:tx.perry.j@gmail.com\">tx.perry.j@gmail.com</a>&gt;"
   107             "</p><h2>") +
   107             "</p><h2>") +
   108             QLabel::tr("Sounds:") + "</h2>"
   108         QLabel::tr("Sounds:") + "</h2>"
   109             "Hedgehogs voice: Stephen Alexander &lt;<a href=\"mailto:ArmagonNo1@gmail.com\">ArmagonNo1@gmail.com</a>&gt;"
   109         "Hedgehogs voice: Stephen Alexander &lt;<a href=\"mailto:ArmagonNo1@gmail.com\">ArmagonNo1@gmail.com</a>&gt;"
   110             "<br>"
   110         "<br>"
   111             "John Dum &lt;<a href=\"mailto:fizzy@gmail.com\">fizzy@gmail.com</a>&gt;"
   111         "John Dum &lt;<a href=\"mailto:fizzy@gmail.com\">fizzy@gmail.com</a>&gt;"
   112             "<br>"
   112         "<br>"
   113             "Jonatan Nilsson &lt;<a href=\"mailto:jonatanfan@gmail.com\">jonatanfan@gmail.com</a>&gt;"
   113         "Jonatan Nilsson &lt;<a href=\"mailto:jonatanfan@gmail.com\">jonatanfan@gmail.com</a>&gt;"
   114             "<br>"
   114         "<br>"
   115             "Daniel Martin &lt;<a href=\"mailto:elhombresinremedio@gmail.com\">elhombresinremedio@gmail.com</a>&gt;"
   115         "Daniel Martin &lt;<a href=\"mailto:elhombresinremedio@gmail.com\">elhombresinremedio@gmail.com</a>&gt;"
   116             "</p><h2>" +
   116         "</p><h2>" +
   117 
   117 
   118             QLabel::tr("Translations:") + "</h2><p>"
   118         QLabel::tr("Translations:") + "</h2><p>"
   119             + QString::fromUtf8(
   119         + QString::fromUtf8(
   120             "Brazilian Portuguese: Romulo Fernandes Machado &lt;<a href=\"mailto:abra185@gmail.com\">abra185@gmail.com</a>&gt;<br>"
   120             "Brazilian Portuguese: Romulo Fernandes Machado &lt;<a href=\"mailto:abra185@gmail.com\">abra185@gmail.com</a>&gt;<br>"
   121             "Bulgarian: Svetoslav Stefanov<br>"
   121             "Bulgarian: Svetoslav Stefanov<br>"
   122             "Czech: Petr Řezáček &lt;<a href=\"mailto:rezacek@gmail.com\">rezacek@gmail.com</a>&gt;<br>"
   122             "Czech: Petr Řezáček &lt;<a href=\"mailto:rezacek@gmail.com\">rezacek@gmail.com</a>&gt;<br>"
   123             "Chinese: Jie Luo &lt;<a href=\"mailto:lililjlj@gmail.com\">lililjlj@gmail.com</a>&gt;<br>"
   123             "Chinese: Jie Luo &lt;<a href=\"mailto:lililjlj@gmail.com\">lililjlj@gmail.com</a>&gt;<br>"
   124             "English: Andrey Korotaev &lt;<a href=\"mailto:unC0Rr@gmail.com\">unC0Rr@gmail.com</a>&gt;<br>"
   124             "English: Andrey Korotaev &lt;<a href=\"mailto:unC0Rr@gmail.com\">unC0Rr@gmail.com</a>&gt;<br>"
   137             "Spanish: Carlos Vives &lt;<a href=\"mailto:mail@carlosvives.es\">mail@carlosvives.es</a>&gt;<br>"
   137             "Spanish: Carlos Vives &lt;<a href=\"mailto:mail@carlosvives.es\">mail@carlosvives.es</a>&gt;<br>"
   138             "Swedish: Niklas Grahn &lt;<a href=\"mailto:raewolusjoon@yaoo.com\">raewolusjoon@yaoo.com</a>&gt;, Henrik Rostedt &lt;<a href=\"mailto:henrik.rostedt@gmail.com\">henrik.rostedt@gmail.com</a>&gt;<br>"
   138             "Swedish: Niklas Grahn &lt;<a href=\"mailto:raewolusjoon@yaoo.com\">raewolusjoon@yaoo.com</a>&gt;, Henrik Rostedt &lt;<a href=\"mailto:henrik.rostedt@gmail.com\">henrik.rostedt@gmail.com</a>&gt;<br>"
   139             "Ukrainian: Eugene V. Lyubimkin &lt;<a href=\"mailto:jackyf.devel@gmail.com\">jackyf.devel@gmail.com</a>&gt;, Igor Paliychuk &lt;<a href=\"mailto:mansonigor@gmail.com\">mansonigor@gmail.com</a>&gt;, Eugene Sakara &lt;<a href=\"mailto:eresid@gmail.com\">eresid@gmail.com</a>&gt;"
   139             "Ukrainian: Eugene V. Lyubimkin &lt;<a href=\"mailto:jackyf.devel@gmail.com\">jackyf.devel@gmail.com</a>&gt;, Igor Paliychuk &lt;<a href=\"mailto:mansonigor@gmail.com\">mansonigor@gmail.com</a>&gt;, Eugene Sakara &lt;<a href=\"mailto:eresid@gmail.com\">eresid@gmail.com</a>&gt;"
   140             "</p><h2>") +
   140             "</p><h2>") +
   141 
   141 
   142             QLabel::tr("Special thanks:") + "</h2><p>"
   142         QLabel::tr("Special thanks:") + "</h2><p>"
   143             "Aleksey Andreev &lt;<a href=\"mailto:blaknayabr@gmail.com\">blaknayabr@gmail.com</a>&gt;<br>"
   143         "Aleksey Andreev &lt;<a href=\"mailto:blaknayabr@gmail.com\">blaknayabr@gmail.com</a>&gt;<br>"
   144             "Aleksander Rudalev &lt;<a href=\"mailto:alexv@pomorsu.ru\">alexv@pomorsu.ru</a>&gt;<br>"
   144         "Aleksander Rudalev &lt;<a href=\"mailto:alexv@pomorsu.ru\">alexv@pomorsu.ru</a>&gt;<br>"
   145             "Natasha Korotaeva &lt;<a href=\"mailto:layout@pisem.net\">layout@pisem.net</a>&gt;<br>"
   145         "Natasha Korotaeva &lt;<a href=\"mailto:layout@pisem.net\">layout@pisem.net</a>&gt;<br>"
   146             "Adam Higerd (aka ahigerd at FreeNode)"
   146         "Adam Higerd (aka ahigerd at FreeNode)"
   147             "</p>"
   147         "</p>"
   148             );
   148     );
   149     mainLayout->addWidget(lbl2, 1, 1);
   149     mainLayout->addWidget(lbl2, 1, 1);
   150 
   150 
   151     setAcceptDrops(true);
   151     setAcceptDrops(true);
   152 }
   152 }
   153 
   153