From: Shamus Hammons
Date: Wed, 1 Jun 2011 14:22:47 +0000 (+0000)
Subject: Added gratuitous About screen (this time, for real).
X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a14390c31519388a3e4f01bc53c0e4572708940c;p=architektonas
Added gratuitous About screen (this time, for real).
---
diff --git a/res/dimension-tool.png b/res/dimension-tool.png
new file mode 100644
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
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
index 0000000..bce6365
--- /dev/null
+++ b/src/about.cpp
@@ -0,0 +1,93 @@
+//
+// about.cpp - Credits
+//
+// by James L. Hammons
+// (C) 2011 Underground Software
+//
+// JLH = James L. Hammons
+//
+// 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)
")).arg(__DATE__).arg(__TIME__);
+ QString s = QString(tr(""//
"//));
+// s.append(tr(
+//"This is some random text. I wonder if it will be rendered correctly or not???
"
+ ""
+ ""
+ "Architektonas: | Free, Industrial Strength 2D Computer Aided Design | "
+ "Version: | 1.0.0 | "
+ "License: | GPL v3 or later | "
+ "Chief Architect: | James L. Hammons (shamus) | "
+ "Coders: | James L. Hammons (shamus) | "
+// "Testers: | shamus | "
+ "Homepage: | http://shamusworld.gotdns.org/architektonas/ | "
+ " "
+ " | "
+ "![](:/res/atns-icon.png) |
"
+ "
"
+ "The authors of Architektonas would like to express their heartfelt gratitude to:"
+// "
"
+ ""
+ "- The authors of Inkscape, whose incredible GUI was a huge inspiration for us
"
+ "- QCad for sucking so bad that we just had to write something better
"
+ "- 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!
"
+ "
"
+ ));
+#else
+// QString s = QString(tr("(Last full build was on %1 %2)
")).arg(__DATE__).arg(__TIME__);
+ QString s = QString(tr(""//
"//));
+// s.append(tr(
+//"This is some random text. I wonder if it will be rendered correctly or not???"
+// ""
+ ""
+ "Architektonas: | Free, Industrial Strength 2D Computer Aided Design | "
+ "Version: | 1.0.0 | "
+ "License: | GPL v3 or later | "
+ "Chief Architect: | James L. Hammons (shamus) | "
+ "Coders: | James L. Hammons (shamus) | "
+// "Testers: | shamus | "
+ "Homepage: | http://shamusworld.gotdns.org/architektonas/ | "
+ " "
+" "
+// " | "
+// "![](:/res/atns-icon.png) |
"
+ "
"
+ "The authors of Architektonas would like to express their heartfelt gratitude to:"
+// "
"
+ ""
+ "- The authors of Inkscape, whose incredible GUI was a huge inspiration for us
"
+ "- QCad for sucking so bad that we just had to write something better
"
+ "- 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!
"
+ "
"
+ ));
+#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
index 0000000..7397e3b
--- /dev/null
+++ b/src/about.h
@@ -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
+
+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