]> Shamusworld >> Repos - schematic/blob - src/about.cpp
Move DB access to NoteDialog class, new AlertDialog class.
[schematic] / src / about.cpp
1 //
2 // about.cpp - Credits
3 //
4 // by James Hammons
5 // (C) 2012 Underground Software
6 //
7 // JLH = James Hammons <jlhamm@acm.org>
8 //
9 // Who  When        What
10 // ---  ----------  -------------------------------------------------------------
11 // JLH  01/21/2010  Created this file
12 //
13
14 #include "about.h"
15 //#include "version.h"
16
17
18 AboutWindow::AboutWindow(QWidget * parent/*= 0*/): QWidget(parent, Qt::Dialog)
19 {
20         setWindowTitle(tr("About SCheMatic..."));
21
22         layout = new QVBoxLayout();
23         layout->setSizeConstraint(QLayout::SetFixedSize);
24         setLayout(layout);
25
26         QString s;
27         s.append(tr(
28                 "<p>"
29                 "<img src=':/res/schematic.png' style='float:right'>"
30                 "<b>SCheMatic</b><br>"
31                 "<i>The Supply Chain Manager-O-Matic</i><br><br>"
32                 "<table>"
33                 "<tr><td align='right'><b>Version: </b></td><td>"
34 //              VJ_RELEASE_VERSION " (" VJ_RELEASE_SUBVERSION ")"
35                 "0.0.1 (Testing)"
36                 "</td></tr>"
37                 "<tr><td align='right'><b>Coders: </b></td><td>James \"Shamus\" Hammons</td></tr>"
38                 "<tr><td align='right'><b>Testers: </b></td><td>Jason O'Neal</td></tr>"
39                 "</table>"
40                 "<br><br>"
41                 "<i>The SCheMatic team would like to express their gratitude to:</i>"
42                 "<br><br>"
43                 "Everyone who helped make SCheMatic a reality.<br></p>"
44         ));
45         text = new QLabel(s);
46         layout->addWidget(text);
47 }
48
49
50 void AboutWindow::keyPressEvent(QKeyEvent * e)
51 {
52         if (e->key() == Qt::Key_Escape || e->key() == Qt::Key_Return)
53                 hide();
54 }
55