X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fabout.cpp;h=78f33bb4c22bf485f69016de9e54ee0f3167737f;hb=742d2aa9bb46bce4f690474fa22f5980e175e55e;hp=bce636531dea867b595e3371830b5e92c56192d7;hpb=a14390c31519388a3e4f01bc53c0e4572708940c;p=architektonas diff --git a/src/about.cpp b/src/about.cpp index bce6365..78f33bb 100644 --- a/src/about.cpp +++ b/src/about.cpp @@ -1,13 +1,13 @@ // // about.cpp - Credits // -// by James L. Hammons +// by James Hammons // (C) 2011 Underground Software // -// JLH = James L. Hammons +// JLH = James 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 @@ -17,77 +17,54 @@ // #include "about.h" +//testing... #include "structs.h" AboutWindow::AboutWindow(QWidget * parent/*= 0*/): QWidget(parent, Qt::Dialog) { setWindowTitle(tr("About Architektonas...")); layout = new QVBoxLayout(); - layout->setSizeConstraint(QLayout::SetFixedSize); +// layout->setSizeConstraint(QLayout::SetFixedSize); setLayout(layout); -// image = new QLabel(); -// image->setAlignment(Qt::AlignRight); -// image->setPixmap(QPixmap(":/res/atns-icon.png")); -// layout->addWidget(image); + QString s = QString(tr( + "" + "" + "" + "
" +// "" -#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
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)
Chief Architect: James Hammons (shamus)
Coders: James 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!
  • " + "
  • 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 come 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->setMinimumWidth(480); // text->setMaximumWidth(800); layout->addWidget(text); } + +void AboutWindow::keyPressEvent(QKeyEvent * e) +{ + if (e->key() == Qt::Key_Escape || e->key() == Qt::Key_Return) + hide(); +}