From: Shamus Hammons Date: Fri, 22 Jan 2010 22:05:11 +0000 (+0000) Subject: More "About..." box tweaks... X-Git-Tag: 2.0.0~34^2~46 X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7de4f207c14185e6fceb8f6b0c63e7ec5bb5d546;p=virtualjaguar More "About..." box tweaks... --- diff --git a/src/gui/about.cpp b/src/gui/about.cpp index bd3df4a..5a3c02c 100644 --- a/src/gui/about.cpp +++ b/src/gui/about.cpp @@ -9,71 +9,51 @@ // 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 +// + +// STILL TO DO: // #include "about.h" -AboutWindow::AboutWindow(QWidget * parent/*= 0*/): QWidget() +AboutWindow::AboutWindow(QWidget * parent/*= 0*/): QWidget(parent, Qt::Dialog) { setWindowTitle("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->setAlignment(Qt::AlignRight); image->setPixmap(QPixmap(":/res/vj_title_small.png")); -//hrm, this doesn't work layout->addWidget(image); - text = new QLabel(tr( +// QString s = QString(tr("(Last full build was on %1 %2)
")).arg(__DATE__).arg(__TIME__); + QString s = QString(tr("SVN %1
")).arg(__DATE__); + s.append(tr( "" "" - "" + "" + "" "" "
Version: 2.0.0
Author: James L. Hammons & others
Coders: James L. Hammons (shamus)
Niels Wagenaar (nwagenaar)
Carwin Jones (Caz)
Adam Green
Testers: Guruma
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
" + "Karl Stenerud for his Musashi 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); -} -#endif