]> Shamusworld >> Repos - guemap/blob - src/about.cpp
Fix room adding to work properly, misc. small changes.
[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 AboutWindow::AboutWindow(QWidget * parent/*= 0*/): QWidget(parent, Qt::Dialog)
11 {
12         setWindowTitle(tr("About GUEmap..."));
13
14         layout = new QVBoxLayout();
15 //      layout->setSizeConstraint(QLayout::SetFixedSize);
16         setLayout(layout);
17
18         QString s = QString(tr(
19                 "<table>"
20                 "<tr>"
21                 "<td style='padding-right:15px; float:left'><img src=':/res/guemap.ico'></td>"
22                 "<td>"
23 //              "<img src=':/res/about-logo.png' style='padding-right:15px; float:left'>"
24
25                 "<table>"
26                 "<tr><td align='right' width='140'><b>GUEmap: </b></td><td>Free, IF Mapping Software</td></tr>"
27                 "<tr><td align='right'><b>Version: </b></td><td>3.0.2</td></tr>"
28                 "<tr><td align='right'><b>License: </b></td><td>GPL v2 or later</td></tr>"
29                 "<tr><td align='right'><b>Chief Architect: </b></td><td>James Hammons (shamus)</td></tr>"
30                 "<tr><td align='right'><b>Coders: </b></td><td>James Hammons (shamus)<br>Christopher J. Madsen</td></tr>"
31 //              "<tr><td align='right'><b>Testers: </b></td><td>shamus</td></tr>"
32                 "<tr><td align='right'><b>Homepage: </b></td><td>http://shamusworld.gotdns.org/guemap/</td></tr>"
33                 "</table>"
34                 "</td>"
35                 "</tr>"
36                 "</table>"
37
38                 "<table>"
39                 "<tr><td>"
40                 "<br>"
41                 "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>"
42                 "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>"
43                 "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."
44                 "<br><hr><br>"
45                 "<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>"
46                 "</td></tr>"
47                 "<tr><td align='right'>"
48                 "<i>&mdash;Sirach 32:19-22</i>"
49                 "</td></tr>"
50                 "</table>"
51         ));
52
53         text = new QLabel(s);
54         text->setWordWrap(true);
55 //      text->setMinimumWidth(480);
56 //      text->setMaximumWidth(800);
57         layout->addWidget(text);
58 }
59
60 void AboutWindow::keyPressEvent(QKeyEvent * e)
61 {
62         if (e->key() == Qt::Key_Escape || e->key() == Qt::Key_Return)
63                 hide();
64 }