]> Shamusworld >> Repos - architektonas/blob - src/about.cpp
7a8a210158736c5a5290be3fcf668d969253b107
[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 //testing... #include "structs.h"
21
22
23 AboutWindow::AboutWindow(QWidget * parent/*= 0*/): QWidget(parent, Qt::Dialog)
24 {
25         setWindowTitle(tr("About Architektonas..."));
26
27         layout = new QVBoxLayout();
28 //      layout->setSizeConstraint(QLayout::SetFixedSize);
29         setLayout(layout);
30
31         QString s = QString(tr(
32                 "<table>"
33                 "<tr>"
34                 "<td style='padding-right:15px; float:left'><img src=':/res/about-logo.png'></td>"
35                 "<td>"
36 //              "<img src=':/res/about-logo.png' style='padding-right:15px; float:left'>"
37
38                 "<table>"
39                 "<tr><td align='right' width='130'><b>Architektonas: </b></td><td>Free, <i>Industrial Strength</i> 2D Computer Aided Design</td></tr>"
40                 "<tr><td align='right'><b>Version: </b></td><td>1.0.0</td></tr>"
41                 "<tr><td align='right'><b>License: </b></td><td>GPL v3 or later</td></tr>"
42                 "<tr><td align='right'><b>Chief Architect: </b></td><td>James Hammons (shamus)</td></tr>"
43                 "<tr><td align='right'><b>Coders: </b></td><td>James Hammons (shamus)</td></tr>"
44 //              "<tr><td align='right'><b>Testers: </b></td><td>shamus</td></tr>"
45                 "<tr><td align='right'><b>Homepage: </b></td><td>http://shamusworld.gotdns.org/architektonas/</td></tr>"
46                 "</table>"
47
48                 "<br><br>"
49                 "<i>The authors of Architektonas would like to express their heartfelt gratitude to:</i>"
50                 "<ul>"
51                 "<li>The authors of <b>Inkscape</b>, whose incredible GUI was a huge inspiration for us</li>"
52                 "<li><b>QCad</b> for sucking so bad that we just <i>had</i> to write something better</li>"
53                 "<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>"
54                 "</ul>"
55                 "</td>"
56                 "</tr>"
57                 "</table>"
58         ));
59
60         text = new QLabel(s);
61         text->setWordWrap(true);
62 //      text->setMinimumWidth(480);
63 //      text->setMaximumWidth(800);
64         layout->addWidget(text);
65 }
66
67
68 void AboutWindow::keyPressEvent(QKeyEvent * e)
69 {
70         if (e->key() == Qt::Key_Escape || e->key() == Qt::Key_Return)
71                 hide();
72 }
73