]> Shamusworld >> Repos - virtualjaguar/blob - src/gui/about.cpp
Fixes for compilation against GCC 6.
[virtualjaguar] / src / gui / about.cpp
1 //
2 // about.cpp - Credits
3 //
4 // by James Hammons
5 // (C) 2010 Underground Software
6 //
7 // JLH = James Hammons <jlhamm@acm.org>
8 //
9 // Who  When        What
10 // ---  ----------  -------------------------------------------------------------
11 // JLH  01/21/2010  Created this file
12 // JLH  01/22/2010  Fleshed out the credits a bit more
13 // JLH  01/22/2010  Fixed centering and decorating of window
14 // JLH  10/08/2011  Updated credits, added Esc & Return as exit keys
15 //
16
17 // STILL TO DO:
18 //
19
20 #include "about.h"
21 #include "version.h"
22
23
24 AboutWindow::AboutWindow(QWidget * parent/*= 0*/): QWidget(parent, Qt::Dialog)
25 {
26         setWindowTitle(tr("About Virtual Jaguar..."));
27
28         layout = new QVBoxLayout();
29         layout->setSizeConstraint(QLayout::SetFixedSize);
30         setLayout(layout);
31
32         QString s;
33         s.append(tr(
34                 "<img src=':/res/vj_title_small.png' style='float: right'>"
35                 "<table>"
36                 "<tr><td align='right'><b>Version: </b></td><td>"
37                 VJ_RELEASE_VERSION " (" VJ_RELEASE_SUBVERSION ")"
38                 "</td></tr>"
39                 "<tr><td align='right'><b>Coders: </b></td><td>James Hammons (shamus)<br>Niels Wagenaar (nwagenaar)<br>Carwin Jones (Caz)<br>Adam Green</td></tr>"
40                 "<tr><td align='right'><b>Testers: </b></td><td>Cyrano Jones, LinkoVitch, partycle, ggn,<br>neo-rg, Robert R, TheUMan, Dissection,<br>overridex, geormetal</td></tr>"
41                 "<tr><td align='right'><b>Build Team: </b></td><td>shamus (win32)<br>goldenegg (MacOS)</td></tr>"
42                 "<tr><td align='right'><b>Homepage: </b></td><td>http://icculus.org/virtualjaguar/</td></tr>"
43                 "</table>"
44                 "<br><br>"
45                 "<i>The Virtual Jaguar team would like to express their gratitude to:</i>"
46                 "<br><br>"
47                 "<b>Aaron Giles</b> for the original CoJag sources<br>"
48                 "<b>David Raingeard</b> for the original Virtual Jaguar sources<br>"
49                 "<b>Bernd Schmidt</b> for his UAE 68K emulator<br>"
50                 "<b>Sam Lantinga</b> for his amazing SDL libraries<br>"
51                 "<b>Ryan C. Gordon</b> for Virtual Jaguar's web presence<br>"
52                 "<b>Curt Vendel</b> for various Jaguar & other goodies<br>"
53                 "<b>Reboot</b> for reasons too numerous to mention<br>"
54                 "The guys over at <b>Atari Age</b> :-)<br>"
55                 "<b>byuu</b> for <s>BSNES</s> Higan and showing us what was possible"
56         ));
57         text = new QLabel(s);
58         layout->addWidget(text);
59 }
60
61
62 void AboutWindow::keyPressEvent(QKeyEvent * e)
63 {
64         if (e->key() == Qt::Key_Escape || e->key() == Qt::Key_Return)
65                 hide();
66 }