X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fgui%2Fabout.cpp;fp=src%2Fgui%2Fabout.cpp;h=c3543073d6bd2a8c5c4d1ec17ea379eab18f93d4;hb=e6b7d61963423b7f9cb4c6c24d2befca50328d4f;hp=0000000000000000000000000000000000000000;hpb=5e11cea96160bd958c1b271940bf97ecfa257b15;p=virtualjaguar diff --git a/src/gui/about.cpp b/src/gui/about.cpp new file mode 100644 index 0000000..c354307 --- /dev/null +++ b/src/gui/about.cpp @@ -0,0 +1,73 @@ +// +// about.cpp - Credits +// +// by James L. Hammons +// (C) 2010 Underground Software +// +// JLH = James L. Hammons +// +// Who When What +// --- ---------- ------------------------------------------------------------- +// JLH 01/21/2010 Created this file +// + +#include "about.h" + +AboutWindow::AboutWindow(QWidget * parent/*= 0*/): QWidget() +{ + 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( + "" + "" + "" + "" + "
Version: 2.0.0
Author: byuu
Homepage: http://byuu.org/
" + )); + 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