X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgui%2Fabout.cpp;h=14ccfd801395f6a0a388c19374e494cdaa90b6fd;hb=8103796dd981a8a1c2e18979fd5ef3a1f3f1ccdb;hp=c3543073d6bd2a8c5c4d1ec17ea379eab18f93d4;hpb=e6b7d61963423b7f9cb4c6c24d2befca50328d4f;p=virtualjaguar diff --git a/src/gui/about.cpp b/src/gui/about.cpp index c354307..14ccfd8 100644 --- a/src/gui/about.cpp +++ b/src/gui/about.cpp @@ -1,73 +1,65 @@ // // 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() +AboutWindow::AboutWindow(QWidget * parent/*= 0*/): QWidget(parent, Qt::Dialog) { + setWindowTitle(tr("About Virtual Jaguar...")); + layout = new QVBoxLayout(); layout->setSizeConstraint(QLayout::SetFixedSize); -// layout->setMargin(Style::WindowMargin); -// layout->setSpacing(Style::WidgetSpacing); setLayout(layout); -// logo = new Logo; -// logo->setFixedSize(600, 106); -// layout->addWidget(logo); - - text = new QLabel(tr( + QString s; + s.append(tr( + "" "" - "" - "" - "" + "" + "" + "" + "" + "" "
Version: 2.0.0
Author: byuu
Homepage: http://byuu.org/
Version: " + VJ_RELEASE_VERSION " (" VJ_RELEASE_SUBVERSION ")" + "
Coders: James Hammons (shamus)
Niels Wagenaar (nwagenaar)
Carwin Jones (Caz)
Adam Green
Testers: Cyrano Jones, LinkoVitch, neo-rg, Robert R,
TheUMan, Dissection, overridex, geormetal
Build Team: ggn (win32)
LinkoVitch, goldenegg (MacOS)
Homepage: http://icculus.org/virtualjaguar/
" + "

" + "The Virtual Jaguar team would like to express their gratitude to:" + "

" + "Aaron Giles for the original CoJag sources
" + "David Raingeard for the original Virtual Jaguar sources
" + "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!)
" + "Reboot for reasons too numerous to mention
" + "The Free Jaguar Project (you know why) ;-)
" + "The guys over at Atari Age :-)
" + "byuu for BSNES and showing us what was possible" )); + text = new QLabel(s); layout->addWidget(text); } - -// Byuu's version... -#if 0 -#include "about.moc" -AboutWindow *aboutWindow; - -AboutWindow::AboutWindow() : QbWindow(config().geometry.aboutWindow) { - setObjectName("about-window"); - setWindowTitle("About bsnes ..."); - - layout = new QVBoxLayout; - layout->setSizeConstraint(QLayout::SetFixedSize); - layout->setMargin(Style::WindowMargin); - layout->setSpacing(Style::WidgetSpacing); - setLayout(layout); - - logo = new Logo; - logo->setFixedSize(600, 106); - layout->addWidget(logo); - - info = new QLabel(string() << - "" - "" - "" - "" - "
Version: " << bsnesVersion << "
Author: byuu
Homepage: http://byuu.org/
" - ); - layout->addWidget(info); -} - -void AboutWindow::Logo::paintEvent(QPaintEvent*) { - QPainter painter(this); - QPixmap pixmap(":/logo.png"); - painter.drawPixmap(0, 0, pixmap); +void AboutWindow::keyPressEvent(QKeyEvent * e) +{ + if (e->key() == Qt::Key_Escape || e->key() == Qt::Key_Return) + hide(); } -#endif