]> Shamusworld >> Repos - guemap/blob - src/about.cpp
Initial commit of GUEmap v3.
[guemap] / src / about.cpp
1 //
2 // about.cpp - Credits
3 //
4 // by James Hammons
5 // (C) 2019 Underground Software
6 //
7
8 #include "about.h"
9
10
11 AboutWindow::AboutWindow(QWidget * parent/*= 0*/): QWidget(parent, Qt::Dialog)
12 {
13         setWindowTitle(tr("About GUEmap..."));
14
15         layout = new QVBoxLayout();
16 //      layout->setSizeConstraint(QLayout::SetFixedSize);
17         setLayout(layout);
18
19         QString s = QString(tr(
20                 "<table>"
21                 "<tr>"
22                 "<td style='padding-right:15px; float:left'><img src=':/res/guemap.ico'></td>"
23                 "<td>"
24 //              "<img src=':/res/about-logo.png' style='padding-right:15px; float:left'>"
25
26                 "<table>"
27                 "<tr><td align='right' width='140'><b>GUEmap: </b></td><td>Free, IF Mapping Software</td></tr>"
28                 "<tr><td align='right'><b>Version: </b></td><td>3.0.0</td></tr>"
29                 "<tr><td align='right'><b>License: </b></td><td>GPL v2 or later</td></tr>"
30                 "<tr><td align='right'><b>Chief Architect: </b></td><td>James Hammons (shamus)</td></tr>"
31                 "<tr><td align='right'><b>Coders: </b></td><td>James Hammons (shamus)<br>Christopher J. Madsen</td></tr>"
32 //              "<tr><td align='right'><b>Testers: </b></td><td>shamus</td></tr>"
33                 "<tr><td align='right'><b>Homepage: </b></td><td>http://shamusworld.gotdns.org/guemap/</td></tr>"
34                 "</table>"
35                 "</td>"
36                 "</tr>"
37                 "</table>"
38
39                 "<table>"
40                 "<tr><td>"
41                 "<br>"
42                 "This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.<br><br>"
43                 "This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.<br><br>"
44                 "You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
45                 "<br><hr><br>"
46                 "<i>&ldquo;Do nothing without deliberation; and when you have acted, do not regret it.  Do not go on a path full of hazards, and do not stumble over stony ground.  Do not be overconfident on a smooth way, and give good heed to your paths.&rdquo;</i>"
47                 "</td></tr>"
48                 "<tr><td align='right'>"
49                 "<i>&mdash;Sirach 32:19-22</i>"
50                 "</td></tr>"
51                 "</table>"
52         ));
53
54         text = new QLabel(s);
55         text->setWordWrap(true);
56 //      text->setMinimumWidth(480);
57 //      text->setMaximumWidth(800);
58         layout->addWidget(text);
59 }
60
61
62 void AboutWindow::keyPressEvent(QKeyEvent * e)
63 {
64         if (e->key() == Qt::Key_Escape || e->key() == Qt::Key_Return)
65                 hide();
66 }
67