]> Shamusworld >> Repos - architektonas/commitdiff
Added gratuitous About screen (this time, for real).
authorShamus Hammons <jlhamm@acm.org>
Wed, 1 Jun 2011 14:22:47 +0000 (14:22 +0000)
committerShamus Hammons <jlhamm@acm.org>
Wed, 1 Jun 2011 14:22:47 +0000 (14:22 +0000)
res/dimension-tool.png [new file with mode: 0644]
res/dimension-tool.xcf [new file with mode: 0644]
src/about.cpp [new file with mode: 0644]
src/about.h [new file with mode: 0644]

diff --git a/res/dimension-tool.png b/res/dimension-tool.png
new file mode 100644 (file)
index 0000000..2ea6125
Binary files /dev/null and b/res/dimension-tool.png differ
diff --git a/res/dimension-tool.xcf b/res/dimension-tool.xcf
new file mode 100644 (file)
index 0000000..0de1ad0
Binary files /dev/null and b/res/dimension-tool.xcf differ
diff --git a/src/about.cpp b/src/about.cpp
new file mode 100644 (file)
index 0000000..bce6365
--- /dev/null
@@ -0,0 +1,93 @@
+//
+// about.cpp - Credits
+//
+// by James L. Hammons
+// (C) 2011 Underground Software
+//
+// JLH = James L. Hammons <jlhamm@acm.org>
+//
+// Who  When        What
+// ---  ----------  -------------------------------------------------------------
+// JLH  01/21/2010  Created this file
+// JLH  01/22/2010  Fleshed out the credits a bit more
+// JLH  01/22/2010  Fixed centering and decorating of window
+//
+
+// STILL TO DO:
+//
+
+#include "about.h"
+
+AboutWindow::AboutWindow(QWidget * parent/*= 0*/): QWidget(parent, Qt::Dialog)
+{
+       setWindowTitle(tr("About Architektonas..."));
+
+       layout = new QVBoxLayout();
+       layout->setSizeConstraint(QLayout::SetFixedSize);
+       setLayout(layout);
+
+//     image = new QLabel();
+//     image->setAlignment(Qt::AlignRight);
+//     image->setPixmap(QPixmap(":/res/atns-icon.png"));
+//     layout->addWidget(image);
+
+#if 0
+//     QString s = QString(tr("(Last full build was on %1 %2)<br>")).arg(__DATE__).arg(__TIME__);
+       QString s = QString(tr(""//<img src=':/res/atns-icon.png'>"//));
+//     s.append(tr(
+//"This is some random text. I wonder if it will be rendered correctly or not???</p>"
+               "<table><tr><td valign='middle'>"
+               "<table>"
+               "<tr><td align='right'><b>Architektonas: </b></td><td>Free, <i>Industrial Strength</i> 2D Computer Aided Design</td></tr>"
+               "<tr><td align='right'><b>Version: </b></td><td>1.0.0</td></tr>"
+               "<tr><td align='right'><b>License: </b></td><td>GPL v3 or later</td></tr>"
+               "<tr><td align='right'><b>Chief Architect: </b></td><td>James L. Hammons (shamus)</td></tr>"
+               "<tr><td align='right'><b>Coders: </b></td><td>James L. Hammons (shamus)</td></tr>"
+//             "<tr><td align='right'><b>Testers: </b></td><td>shamus</td></tr>"
+               "<tr><td align='right'><b>Homepage: </b></td><td>http://shamusworld.gotdns.org/architektonas/</td></tr>"
+               "</table>"
+               "</td>"
+               "<td><img src=':/res/atns-icon.png'></td></tr></table>"
+               "<br><br>"
+               "<i>The authors of Architektonas would like to express their heartfelt gratitude to:</i>"
+//             "<br>"
+               "<ul>"
+               "<li>The authors of <b>Inkscape</b>, whose incredible GUI was a huge inspiration for us</li>"
+               "<li><b>QCad</b> for sucking so bad that we just <i>had</i> to write something better</li>"
+               "<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>"
+               "</ul>"
+       ));
+#else
+//     QString s = QString(tr("(Last full build was on %1 %2)<br>")).arg(__DATE__).arg(__TIME__);
+       QString s = QString(tr("<body style='background-image::/res/atns-icon.png'>"//<img src=':/res/atns-icon.png' style='float:right'>"//));
+//     s.append(tr(
+//"This is some random text. I wonder if it will be rendered correctly or not???</p>"
+//             "<table><tr><td valign='middle'>"
+               "<table style='float:left'>"
+               "<tr><td align='right'><b>Architektonas: </b></td><td>Free, <i>Industrial Strength</i> 2D Computer Aided Design</td></tr>"
+               "<tr><td align='right'><b>Version: </b></td><td>1.0.0</td></tr>"
+               "<tr><td align='right'><b>License: </b></td><td>GPL v3 or later</td></tr>"
+               "<tr><td align='right'><b>Chief Architect: </b></td><td>James L. Hammons (shamus)</td></tr>"
+               "<tr><td align='right'><b>Coders: </b></td><td>James L. Hammons (shamus)</td></tr>"
+//             "<tr><td align='right'><b>Testers: </b></td><td>shamus</td></tr>"
+               "<tr><td align='right'><b>Homepage: </b></td><td>http://shamusworld.gotdns.org/architektonas/</td></tr>"
+               "</table>"
+"<img src=':/res/atns-icon.png' style='float:right'>"
+//             "</td>"
+//             "<td><img src=':/res/atns-icon.png'></td></tr></table>"
+               "<br><br>"
+               "<i>The authors of Architektonas would like to express their heartfelt gratitude to:</i>"
+//             "<br>"
+               "<ul>"
+               "<li>The authors of <b>Inkscape</b>, whose incredible GUI was a huge inspiration for us</li>"
+               "<li><b>QCad</b> for sucking so bad that we just <i>had</i> to write something better</li>"
+               "<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>"
+               "</ul></body>"
+       ));
+#endif
+
+       text = new QLabel(s);
+       text->setWordWrap(true);
+//     text->setMaximumWidth(800);
+       layout->addWidget(text);
+}
diff --git a/src/about.h b/src/about.h
new file mode 100644 (file)
index 0000000..7397e3b
--- /dev/null
@@ -0,0 +1,42 @@
+//
+// about.h: Credits where credits are due ;-)
+//
+// by James L. Hammons
+// (C) 2010 Underground Software
+//
+
+#ifndef __ABOUT_H__
+#define __ABOUT_H__
+
+#include <QtGui>
+
+class AboutWindow: public QWidget
+{
+       public:
+               AboutWindow(QWidget * parent = 0);
+
+       private:
+               QVBoxLayout * layout;
+               QLabel * text;
+               QLabel * image;
+};
+
+#endif // __ABOUT_H__
+
+
+#if 0
+class AboutWindow : public QbWindow {
+  Q_OBJECT
+
+public:
+  QVBoxLayout *layout;
+  struct Logo : public QWidget {
+    void paintEvent(QPaintEvent*);
+  } *logo;
+  QLabel *info;
+
+  AboutWindow();
+};
+
+extern AboutWindow *aboutWindow;
+#endif