Ksetiwatch API Documentation


about.cpp

Go to the documentation of this file.
00001 /***************************************************************************/
00014 #include <kapp.h>
00015 #include <klocale.h>
00016 #include <kiconloader.h>
00017 #include <ktextbrowser.h>
00018 
00019 #include <qlabel.h>
00020 #include <qscrollview.h>
00021 #include <qpushbutton.h>
00022 #include <qframe.h>
00023 
00024 #include "about.h"
00025 #include "../config.h"
00026 
00027 /*------------------------------------------------------------------------ */
00028 About::About(QWidget *parent, const char *name) : QWidget(parent,name)
00029 {
00030   const QString translator("<li><b>%1</b> (%2)</li>");
00031   
00032   this->resize(400,100);
00033   QLabel_1= new QLabel(this);
00034   QLabel_1->move(10,15);
00035   QLabel_1->setPixmap(DesktopIcon("ksetiwatch"));
00036   QLabel_1->resize(QLabel_1->sizeHint());
00037 
00038   Help = new QPushButton(this);
00039   Help->setMinimumSize(75, 25);
00040   Help->move(48,18);
00041   Help->setText(i18n("Help"));
00042   Help->resize(Help->sizeHint());
00043   connect(Help, SIGNAL(clicked()), SLOT(slotShowHelp()) );
00044 
00045   QLabel_2= new QLabel(this);
00046   QLabel_2->move(10,65);
00047   QLabel_2->setPixmap(DesktopIcon("MadeWithKDev"));
00048   QLabel_2->resize(QLabel_2->sizeHint());
00049 
00050   AboutView = new KTextBrowser(this);
00051   AboutView->setGeometry(48 + Help->size().width() + 7, 5, 490, 100);
00052   QString buffer = 
00053     i18n("This is <a href=\"http://ksetiwatch.sf.net\">Ksetiwatch</a> %1, developed by "
00054          "<a href=\"mailto:gmachel@users.sf.net\">Gordon Machel</a> "
00055          "(gmachel@users.sf.net).").arg(VERSION) +
00056     i18n("<p>Ksetiwatch monitors multiple "
00057          "<a href=\"http://setiathome.ssl.berkeley.edu/index.html\">SETI@home</a> "
00058          "instances running on your computer or in your network. It "
00059          "shares the same look-and-feel of the popular "
00060          "<a href=\"http://members.shaw.ca/mloukko/SETI.html\">SETIWatch</a> "
00061          "tool for the Windows platforms, written by Mark Loukko.</p>") +
00062     i18n("<p>To make full use of this program, the latest version of the SETI@home "
00063          "client is required. Command-line clients for various platforms "
00064          "can be found <a href=\"http://setiathome.ssl.berkeley.edu/unix.html\">here</a>.</p>") +
00065     i18n("<p>Ksetiwatch is published under the GNU Public License (GPL), version 2.</p>") +
00066     i18n("<p>Special thanks to <b>%1, %2, %3,</b> and <b>%4</b> for providing precompiled "
00067          "packages for various Linux distributions.</p>")
00068          .arg("John Aldrich")
00069          .arg("Renaud Michel")
00070          .arg("Stephan Windischmann")
00071          .arg("Diego Iastrubni") +
00072     i18n("<p>Ksetiwatch has been translated to many different languages. Credits for this "
00073          "work go to:</p>") +
00074     "<ul>" +
00075     translator.arg("Marco Wegner").arg(i18n("Coordination with the KDE i18n teams")) +
00076     translator.arg("Juan Manuel García Molina, Luis Bolinches Martinez").arg(i18n("Spanish")) +
00077     translator.arg("Renaud Michel").arg(i18n("French")) +
00078     translator.arg("Diego Iastrubni").arg(i18n("Hebrew")) +
00079     translator.arg("Marc").arg(i18n("German handbook")) +
00080     translator.arg("Tamas Szanto").arg(i18n("Hungarian")) +
00081     translator.arg("Stefan Asserhäll").arg(i18n("Swedish")) +
00082     //translator.arg("Görkem Çetin").arg(i18n("Turkish")) +
00083     translator.arg("Albert Astals Cid").arg(i18n("Catalan")) +
00084     translator.arg("Pedro Morais").arg(i18n("Portuguese")) +
00085     translator.arg("Vladimir Vuksan").arg(i18n("Croatian")) +
00086     "</ul>" +
00087     i18n("<p>Many thanks for helpful hints, patches, and suggestions are given to: ") +
00088          "Frode Tennebø, Christian Sørensen, Kenny Lim, Hans Motshärg, Roeland Th. Jansen, "
00089          "Matthew Soffen, Peter Drumm, Stefan Pfeiffer, Hugues Talbot, Jan Knutar, Pelon, "
00090          "Dan Crooks, Xet Erixon, " + i18n("and") + " Kjell Randa.</p>";
00091   AboutView->setText(buffer);
00092 }
00093 
00094 /*------------------------------------------------------------------------ */
00095 About::~About()
00096 {
00097 }
00098 
00099 /*------------------------------------------------------------------------ */
00100 void About::resizeEvent(QResizeEvent*)
00101 {
00102 AboutView->resize(490, this->height()-10);
00103 }
00104 
00105 /*------------------------------------------------------------------------ */
00106 void About::slotShowHelp()
00107 {
00108 kapp->invokeHelp();
00109 }
00110 
00111 #include "about.moc"
00112 
KDE Logo
This file is part of the documentation for Ksetiwatch API Version 2.6.1.
Documentation copyright © 2000-2003 Gordon Machel.
Generated on Fri Jun 6 00:28:12 2003 by doxygen 1.2.18, written by Dimitri van Heesch, © 1997-2002