]> Shamusworld >> Repos - architektonas/blob - src/about.cpp
f821b21903fabfad166512151799a378a65be140
[architektonas] / src / about.cpp
1 //
2 // about.cpp - Credits
3 //
4 // by James Hammons
5 // (C) 2011 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 // JLH  01/22/2010  Fleshed out the credits a bit more
13 // JLH  01/22/2010  Fixed centering and decorating of window
14 //
15
16 // STILL TO DO:
17 //
18
19 #include "about.h"
20
21 AboutWindow::AboutWindow(QWidget * parent/*= 0*/): QWidget(parent, Qt::Dialog)
22 {
23         setWindowTitle(tr("About Architektonas..."));
24
25         layout = new QVBoxLayout();
26 //      layout->setSizeConstraint(QLayout::SetFixedSize);
27         setLayout(layout);
28
29         QString s = QString(tr(
30                 "<table>"
31                 "<tr>"
32                 "<td style='padding-right:15px; float:left'><img src=':/res/about-logo.png'></td>"
33                 "<td>"
34 //              "<img src=':/res/about-logo.png' style='padding-right:15px; float:left'>"
35
36                 "<table>"
37                 "<tr><td align='right' width='130'><b>Architektonas: </b></td><td>Free, <i>Industrial Strength</i> 2D Computer Aided Design</td></tr>"
38                 "<tr><td align='right'><b>Version: </b></td><td>1.0.0</td></tr>"
39                 "<tr><td align='right'><b>License: </b></td><td>GPL v3 or later</td></tr>"
40                 "<tr><td align='right'><b>Chief Architect: </b></td><td>James Hammons (shamus)</td></tr>"
41                 "<tr><td align='right'><b>Coders: </b></td><td>James Hammons (shamus)</td></tr>"
42 //              "<tr><td align='right'><b>Testers: </b></td><td>shamus</td></tr>"
43                 "<tr><td align='right'><b>Homepage: </b></td><td>http://shamusworld.gotdns.org/architektonas/</td></tr>"
44                 "</table>"
45
46                 "<br><br>"
47                 "<i>The authors of Architektonas would like to express their heartfelt gratitude to:</i>"
48                 "<ul>"
49                 "<li>The authors of <b>Inkscape</b>, whose incredible GUI was a huge inspiration for us</li>"
50                 "<li><b>QCad</b> for sucking so bad that we just <i>had</i> to write something better</li>"
51                 "<li>Every other 2D CAD package out there that's mired in a legacy of the bad old days of pencil and paper, and all the attendant horrors that come along with that. We couldn't have done it without you!</li>"
52                 "</ul>"
53                 "</td>"
54                 "</tr>"
55                 "</table>"
56         ));
57
58         text = new QLabel(s);
59         text->setWordWrap(true);
60 //      text->setMinimumWidth(480);
61 //      text->setMaximumWidth(800);
62         layout->addWidget(text);
63 }
64
65
66 void AboutWindow::keyPressEvent(QKeyEvent * e)
67 {
68         if (e->key() == Qt::Key_Escape || e->key() == Qt::Key_Return)
69                 hide();
70 }
71