]> Shamusworld >> Repos - schematic/blob - src/about.cpp
86d3ac2527abebda5c760b9b5f4f97b75262ce3b
[schematic] / src / about.cpp
1 //
2 // about.cpp - Credits
3 //
4 // by James Hammons
5 // (C) 2012 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 //
13
14 #include "about.h"
15 //#include "version.h"
16
17 AboutWindow::AboutWindow(QWidget * parent/*= 0*/): QWidget(parent, Qt::Dialog)
18 {
19         setWindowTitle(tr("About SCheMatic..."));
20
21         layout = new QVBoxLayout();
22         layout->setSizeConstraint(QLayout::SetFixedSize);
23         setLayout(layout);
24
25         image = new QLabel();
26         image->setAlignment(Qt::AlignRight);
27         image->setPixmap(QPixmap(":/res/schematic.png"));
28         layout->addWidget(image);
29
30         QString s;
31         s.append(tr(
32                 "<table>"
33                 "<tr><td align='right'><b>Version: </b></td><td>"
34 //              VJ_RELEASE_VERSION " (" VJ_RELEASE_SUBVERSION ")"
35                 "0.0.1 (Testing)"
36                 "</td></tr>"
37                 "<tr><td align='right'><b>Coders: </b></td><td>James \"Shamus\" Hammons</td></tr>"
38                 "<tr><td align='right'><b>Testers: </b></td><td>Jason O'Neal</td></tr>"
39 //              "<tr><td align='right'><b>Build Team: </b></td><td>ggn (win32)<br>LinkoVitch, goldenegg (MacOS)</td></tr>"
40 //              "<tr><td align='right'><b>Homepage: </b></td><td>http://icculus.org/virtualjaguar/</td></tr>"
41                 "</table>"
42                 "<br><br>"
43                 "<i>The SCheMatic team would like to express their gratitude to:</i>"
44                 "<br><br>"
45                 "Everyone who helped make SCheMatic a reality.<br>"
46 //              "<b>David Raingeard</b> for the original Virtual Jaguar sources<br>"
47 //              "<b>Bernd Schmidt</b> for his UAE 68K emulator<br>"
48 //              "<b>Sam Lantinga</b> for his amazing SDL libraries<br>"
49 //              "<b>Ryan C. Gordon</b> for Virtual Jaguar's web presence<br>"
50 //              "<b>Curt Vendel</b> for various Jaguar & other goodies (you <i>rock!</i>)<br>"
51 //              "<b>Reboot</b> for reasons too numerous to mention<br>"
52 //              "<b>The Free Jaguar Project</b> (you know why) ;-)<br>"
53 //              "The guys over at <b>Atari Age</b> :-)<br>"
54 //              "<b>byuu</b> for BSNES and showing us what was possible"
55         ));
56         text = new QLabel(s);
57         layout->addWidget(text);
58 }
59
60 void AboutWindow::keyPressEvent(QKeyEvent * e)
61 {
62         if (e->key() == Qt::Key_Escape || e->key() == Qt::Key_Return)
63                 hide();
64 }