From a14390c31519388a3e4f01bc53c0e4572708940c Mon Sep 17 00:00:00 2001 From: Shamus Hammons Date: Wed, 1 Jun 2011 14:22:47 +0000 Subject: [PATCH] Added gratuitous About screen (this time, for real). --- res/dimension-tool.png | Bin 0 -> 404 bytes res/dimension-tool.xcf | Bin 0 -> 2209 bytes src/about.cpp | 93 +++++++++++++++++++++++++++++++++++++++++ src/about.h | 42 +++++++++++++++++++ 4 files changed, 135 insertions(+) create mode 100644 res/dimension-tool.png create mode 100644 res/dimension-tool.xcf create mode 100644 src/about.cpp create mode 100644 src/about.h diff --git a/res/dimension-tool.png b/res/dimension-tool.png new file mode 100644 index 0000000000000000000000000000000000000000..2ea612556bd26c2d03006bdd131bf2464dbd6939 GIT binary patch literal 404 zcmeAS@N?(olHy`uVBq!ia0vp^4j|0I1|(Ny7TyC=jKx9jP7LeL$-D$|*pj^6T^Rm@ z;DWu&Cj&(|3p^r=85p>QL70(Y)*K0-AbW|YuPgg)Hbxc(u>zixEI=XI%#er@=ltB< z)VvZPmw~~#C^fMpHASI3vm`^o-P1Q9MK6^dDE`{h#WAGf*4tZW`4|la7#_^!HGltq zNgm&0mut(GXlI1)m+L%HbNi?8#F>{*q|alsKg=u>Ra@wCr&!{|mk#2QHIatUOLYzcu7-KN$2rFLH&QY5kO>jBR}1nO1>33I;ug-uFz)12Nk) zoBn^OZjgqEgUAF!!(Zz+h%h9`#?3E2lKS_S=I0&D4`d}*Xf!S5f6JSc&2#I)TedY% zr+KZv_xk6{>qiW($9&%V^#3%8EshMLJ41patJkxiPrAUi_23~hi#IAOIGBKjZYgH% WuPD#-^!D}wS>oyH=d#Wzp$PyrQI1^z literal 0 HcmV?d00001 diff --git a/res/dimension-tool.xcf b/res/dimension-tool.xcf new file mode 100644 index 0000000000000000000000000000000000000000..0de1ad08488014fd2806aefbf3184f53e459f0cb GIT binary patch literal 2209 zcmeHG&2G~`5FR^QoTRk;Bye7-ikhklN)OGchpGrw9FTYc4z6Rn7KvSKSG1>yH{eP7 zNPP((eOSKPtRW6Yx#Ym1BYpm6XLe>*`>n%hek1R^KnBswC)l|G`>z1Y!lwtcFMbj+ zV0}OU&w#ha=Y4Om{}Q|xqV32_=5s&Ju_jKwexLeo?oZ|SD8H7MA3uHO%uBsBn!BMt z3e#xHG3>TznC15~UuMZHnjUqBLFgs3B$Y!=qcps7<@nuLTZ40AQb#DgYACJp^4|`Z z-eotg7sa7Gsb(Q~-xM^l(QO>%GK#%xKjZo&2r@taeL$}MJG6|{OZgs*Sr3&5J~!YS z-Mw(VuVI?p#`@Z9gxFXWR!0GC{=w@7Jt~{d8Zc4&G&Yzt +// +// 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/
" + "
" + "

" + "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/
" +"" +// "
" + "

" + "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 -- 2.37.2