]> Shamusworld >> Repos - virtualjaguar/commitdiff
More "About..." box tweaks...
authorShamus Hammons <jlhamm@acm.org>
Fri, 22 Jan 2010 22:05:11 +0000 (22:05 +0000)
committerShamus Hammons <jlhamm@acm.org>
Fri, 22 Jan 2010 22:05:11 +0000 (22:05 +0000)
src/gui/about.cpp

index bd3df4afc1cccf288e95ec44d03c411d6df9b703..5a3c02ce9fd539c817013622be0f8f8cc68fe040 100644 (file)
@@ -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)<br>")).arg(__DATE__).arg(__TIME__);
+       QString s = QString(tr("SVN %1<br>")).arg(__DATE__);
+       s.append(tr(
                "<table>"
                "<tr><td align='right'><b>Version: </b></td><td>2.0.0</td></tr>"
-               "<tr><td align='right'><b>Author: </b></td><td>James L. Hammons & others</td></tr>"
+               "<tr><td align='right'><b>Coders: </b></td><td>James L. Hammons (shamus)<br>Niels Wagenaar (nwagenaar)<br>Carwin Jones (Caz)<br>Adam Green</td></tr>"
+               "<tr><td align='right'><b>Testers: </b></td><td>Guruma</td></tr>"
                "<tr><td align='right'><b>Homepage: </b></td><td>http://icculus.org/virtualjaguar/</td></tr>"
                "</table>"
+               "<br><br>"
+               "<i>The Virtual Jaguar team would like to express their gratitude to:</i>"
+               "<br><br>"
+               "<b>Aaron Giles</b> for the original CoJag sources<br>"
+               "<b>David Raingeard</b> for the original Virtual Jaguar sources<br>"
+               "<b>Karl Stenerud</b> for his Musashi 68K emulator<br>"
+               "<b>Sam Lantinga</b> for his amazing SDL libraries<br>"
+               "<b>Ryan C. Gordon</b> for Virtual Jaguar's web presence<br>"
+               "<b>Curt Vendel</b> for various Jaguar & other goodies (you <i>rock!</i>)<br>"
+               "<b>Reboot</b> for reasons too numerous to mention<br>"
+               "<b>The Free Jaguar Project</b> (you know why) ;-)<br>"
+               "The guys over at <b>Atari Age</b> :-)<br>"
+               "<b>byuu</b> 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() <<
-    "<table>"
-    "<tr><td align='right'><b>Version: </b></td><td>" << bsnesVersion << "</td></tr>"
-    "<tr><td align='right'><b>Author: </b></td><td>byuu</td></tr>"
-    "<tr><td align='right'><b>Homepage: </b></td><td>http://byuu.org/</td></tr>"
-    "</table>"
-  );
-  layout->addWidget(info);
-}
-
-void AboutWindow::Logo::paintEvent(QPaintEvent*) {
-  QPainter painter(this);
-  QPixmap pixmap(":/logo.png");
-  painter.drawPixmap(0, 0, pixmap);
-}
-#endif