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