X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fgui%2Fabout.cpp;h=71cec73ffad216747b191aa4fcc8b5c835f2d35d;hb=c9d57b57d70ab2ae842144828175820fb207a3b0;hp=bd3df4afc1cccf288e95ec44d03c411d6df9b703;hpb=90217c7d09fe1b0c7c78e911f3b0c90333f8f9c2;p=virtualjaguar diff --git a/src/gui/about.cpp b/src/gui/about.cpp index bd3df4a..71cec73 100644 --- a/src/gui/about.cpp +++ b/src/gui/about.cpp @@ -1,79 +1,66 @@ // // 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("About Virtual Jaguar..."); + 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); - image = new QLabel(); - image->setPixmap(QPixmap(":/res/vj_title_small.png")); -//hrm, this doesn't work - layout->addWidget(image); - - text = new QLabel(tr( + QString s; + s.append(tr( + "" "" - "" - "" + "" + "" + "" + "" "" "
Version: 2.0.0
Author: James L. Hammons & others
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/
" + "

" + "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
" + "Reboot for reasons too numerous to mention
" + "The guys over at Atari Age :-)
" + "byuu for BSNES Higan 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