X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgui%2Fabout.cpp;h=1b3df54f035bb6575b9dfc52f101d19ba0863f06;hb=32f569e1bd09f5d7f07005d119f6408805106381;hp=dc8a93a1d5b28c645c5c4038317ec1d2daad22f6;hpb=0231914da63ed8c44751d7c7ef07f8e311ae0db1;p=virtualjaguar diff --git a/src/gui/about.cpp b/src/gui/about.cpp index dc8a93a..1b3df54 100644 --- a/src/gui/about.cpp +++ b/src/gui/about.cpp @@ -1,22 +1,25 @@ // // about.cpp - Credits // -// by James L. Hammons +// by James Hammons // (C) 2010 Underground Software // -// JLH = James L. Hammons +// JLH = James Hammons // // Who When What // --- ---------- ------------------------------------------------------------- // JLH 01/21/2010 Created this file // JLH 01/22/2010 Fleshed out the credits a bit more // JLH 01/22/2010 Fixed centering and decorating of window +// JLH 10/08/2011 Updated credits, added Esc & Return as exit keys // // STILL TO DO: // #include "about.h" +#include "version.h" + AboutWindow::AboutWindow(QWidget * parent/*= 0*/): QWidget(parent, Qt::Dialog) { @@ -26,18 +29,16 @@ AboutWindow::AboutWindow(QWidget * parent/*= 0*/): QWidget(parent, Qt::Dialog) layout->setSizeConstraint(QLayout::SetFixedSize); setLayout(layout); - image = new QLabel(); - image->setAlignment(Qt::AlignRight); - image->setPixmap(QPixmap(":/res/vj_title_small.png")); - layout->addWidget(image); - -// QString s = QString(tr("(Last full build was on %1 %2)
")).arg(__DATE__).arg(__TIME__); - QString s = QString(tr("SVN %1
")).arg(__DATE__); + QString s; s.append(tr( + "" "" - "" - "" - "" + "" + "" + "" + "" "" "
Version: 2.0.0
Coders: James L. Hammons (shamus)
Niels Wagenaar (nwagenaar)
Carwin Jones (Caz)
Adam Green
Testers: Guruma
Version: " + VJ_RELEASE_VERSION " (" VJ_RELEASE_SUBVERSION ")" + "
Coders: James Hammons (shamus)
Niels Wagenaar (nwagenaar)
Carwin Jones (Caz)
Adam Green
Testers: Cyrano Jones, LinkoVitch, partycle, ggn,
neo-rg, Robert R, TheUMan, Dissection,
overridex, geormetal
Build Team: shamus (win32)
goldenegg (MacOS)
Homepage: http://icculus.org/virtualjaguar/
" "

" @@ -45,10 +46,10 @@ AboutWindow::AboutWindow(QWidget * parent/*= 0*/): QWidget(parent, Qt::Dialog) "

" "Aaron Giles for the original CoJag sources
" "David Raingeard for the original Virtual Jaguar sources
" - "Karl Stenerud for his Musashi 68K emulator
" + "Bernd Schmidt for his UAE 68K emulator
" "Sam Lantinga for his amazing SDL libraries
" "Ryan C. Gordon for Virtual Jaguar's web presence
" - "Curt Vendel for various Jaguar & other goodies (you rock!)
" + "Curt Vendel for various Jaguar & other goodies
" "Reboot for reasons too numerous to mention
" "The Free Jaguar Project (you know why) ;-)
" "The guys over at Atari Age :-)
" @@ -57,3 +58,10 @@ AboutWindow::AboutWindow(QWidget * parent/*= 0*/): QWidget(parent, Qt::Dialog) text = new QLabel(s); layout->addWidget(text); } + + +void AboutWindow::keyPressEvent(QKeyEvent * e) +{ + if (e->key() == Qt::Key_Escape || e->key() == Qt::Key_Return) + hide(); +}