]> Shamusworld >> Repos - architektonas/blob - src/about.cpp
Added gratuitous About screen (this time, for real).
[architektonas] / src / about.cpp
1 //
2 // about.cpp - Credits
3 //
4 // by James L. Hammons
5 // (C) 2011 Underground Software
6 //
7 // JLH = James L. 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 //      image = new QLabel();
30 //      image->setAlignment(Qt::AlignRight);
31 //      image->setPixmap(QPixmap(":/res/atns-icon.png"));
32 //      layout->addWidget(image);
33
34 #if 0
35 //      QString s = QString(tr("(Last full build was on %1 %2)<br>")).arg(__DATE__).arg(__TIME__);
36         QString s = QString(tr(""//<img src=':/res/atns-icon.png'>"//));
37 //      s.append(tr(
38 //"This is some random text. I wonder if it will be rendered correctly or not???</p>"
39                 "<table><tr><td valign='middle'>"
40                 "<table>"
41                 "<tr><td align='right'><b>Architektonas: </b></td><td>Free, <i>Industrial Strength</i> 2D Computer Aided Design</td></tr>"
42                 "<tr><td align='right'><b>Version: </b></td><td>1.0.0</td></tr>"
43                 "<tr><td align='right'><b>License: </b></td><td>GPL v3 or later</td></tr>"
44                 "<tr><td align='right'><b>Chief Architect: </b></td><td>James L. Hammons (shamus)</td></tr>"
45                 "<tr><td align='right'><b>Coders: </b></td><td>James L. Hammons (shamus)</td></tr>"
46 //              "<tr><td align='right'><b>Testers: </b></td><td>shamus</td></tr>"
47                 "<tr><td align='right'><b>Homepage: </b></td><td>http://shamusworld.gotdns.org/architektonas/</td></tr>"
48                 "</table>"
49                 "</td>"
50                 "<td><img src=':/res/atns-icon.png'></td></tr></table>"
51                 "<br><br>"
52                 "<i>The authors of Architektonas would like to express their heartfelt gratitude to:</i>"
53 //              "<br>"
54                 "<ul>"
55                 "<li>The authors of <b>Inkscape</b>, whose incredible GUI was a huge inspiration for us</li>"
56                 "<li><b>QCad</b> for sucking so bad that we just <i>had</i> to write something better</li>"
57                 "<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 came along with that. We couldn't have done it without you!</li>"
58                 "</ul>"
59         ));
60 #else
61 //      QString s = QString(tr("(Last full build was on %1 %2)<br>")).arg(__DATE__).arg(__TIME__);
62         QString s = QString(tr("<body style='background-image::/res/atns-icon.png'>"//<img src=':/res/atns-icon.png' style='float:right'>"//));
63 //      s.append(tr(
64 //"This is some random text. I wonder if it will be rendered correctly or not???</p>"
65 //              "<table><tr><td valign='middle'>"
66                 "<table style='float:left'>"
67                 "<tr><td align='right'><b>Architektonas: </b></td><td>Free, <i>Industrial Strength</i> 2D Computer Aided Design</td></tr>"
68                 "<tr><td align='right'><b>Version: </b></td><td>1.0.0</td></tr>"
69                 "<tr><td align='right'><b>License: </b></td><td>GPL v3 or later</td></tr>"
70                 "<tr><td align='right'><b>Chief Architect: </b></td><td>James L. Hammons (shamus)</td></tr>"
71                 "<tr><td align='right'><b>Coders: </b></td><td>James L. Hammons (shamus)</td></tr>"
72 //              "<tr><td align='right'><b>Testers: </b></td><td>shamus</td></tr>"
73                 "<tr><td align='right'><b>Homepage: </b></td><td>http://shamusworld.gotdns.org/architektonas/</td></tr>"
74                 "</table>"
75 "<img src=':/res/atns-icon.png' style='float:right'>"
76 //              "</td>"
77 //              "<td><img src=':/res/atns-icon.png'></td></tr></table>"
78                 "<br><br>"
79                 "<i>The authors of Architektonas would like to express their heartfelt gratitude to:</i>"
80 //              "<br>"
81                 "<ul>"
82                 "<li>The authors of <b>Inkscape</b>, whose incredible GUI was a huge inspiration for us</li>"
83                 "<li><b>QCad</b> for sucking so bad that we just <i>had</i> to write something better</li>"
84                 "<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 came along with that. We couldn't have done it without you!</li>"
85                 "</ul></body>"
86         ));
87 #endif
88
89         text = new QLabel(s);
90         text->setWordWrap(true);
91 //      text->setMaximumWidth(800);
92         layout->addWidget(text);
93 }