]> Shamusworld >> Repos - architektonas/blob - src/about.cpp
Fixed inconsistent tool states.
[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 //      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(
62                 "<table>"
63                 "<tr>"
64                 "<td  style='padding-right:15px'><img src=':/res/about-logo.png'></td>"
65                 "<td>"
66                 "<table>"
67 //              "<tr><td align='right'><b>Architektonas: </b></td><td width='100'>Free, <i>Industrial Strength</i> 2D Computer Aided Design</td></tr>"
68                 "<tr><td align='right' width='100'><b>Architektonas: </b></td><td>Free, <i>Industrial Strength</i> 2D Computer Aided Design</td></tr>"
69                 "<tr><td align='right'><b>Version: </b></td><td>1.0.0</td></tr>"
70                 "<tr><td align='right'><b>License: </b></td><td>GPL v3 or later</td></tr>"
71                 "<tr><td align='right'><b>Chief Architect: </b></td><td>James Hammons (shamus)</td></tr>"
72                 "<tr><td align='right'><b>Coders: </b></td><td>James Hammons (shamus)</td></tr>"
73 //              "<tr><td align='right'><b>Testers: </b></td><td>shamus</td></tr>"
74                 "<tr><td align='right'><b>Homepage: </b></td><td>http://shamusworld.gotdns.org/architektonas/</td></tr>"
75                 "</table>"
76                 "<br><br>"
77                 "<i>The authors of Architektonas would like to express their heartfelt gratitude to:</i>"
78                 "<ul>"
79                 "<li>The authors of <b>Inkscape</b>, whose incredible GUI was a huge inspiration for us</li>"
80                 "<li><b>QCad</b> for sucking so bad that we just <i>had</i> to write something better</li>"
81                 "<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>"
82                 "</ul>"
83                 "</td>"
84                 "</tr>"
85                 "</table>"
86         ));
87 #endif
88
89         text = new QLabel(s);
90         text->setWordWrap(true);
91 //      text->setMinimumWidth(480);
92 //      text->setMaximumWidth(800);
93         layout->addWidget(text);
94 }