WebPreview is now delayed by 2 seconds.
[quassel.git] / src / qtui / aboutdlg.cpp
1 /***************************************************************************
2  *   Copyright (C) 2005-08 by the Quassel IRC Team                         *
3  *   devel@quassel-irc.org                                                 *
4  *                                                                         *
5  *   This program is free software; you can redistribute it and/or modify  *
6  *   it under the terms of the GNU General Public License as published by  *
7  *   the Free Software Foundation; either version 2 of the License, or     *
8  *   (at your option) version 3.                                           *
9  *                                                                         *
10  *   This program is distributed in the hope that it will be useful,       *
11  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
12  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
13  *   GNU General Public License for more details.                          *
14  *                                                                         *
15  *   You should have received a copy of the GNU General Public License     *
16  *   along with this program; if not, write to the                         *
17  *   Free Software Foundation, Inc.,                                       *
18  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
19  ***************************************************************************/
20
21 #include "aboutdlg.h"
22 #include "icon.h"
23 #include "iconloader.h"
24 #include "quassel.h"
25
26 AboutDlg::AboutDlg(QWidget *parent) : QDialog(parent) {
27   ui.setupUi(this);
28   ui.quasselLogo->setPixmap(DesktopIcon("quassel", IconLoader::SizeHuge));
29
30   ui.versionLabel->setText(QString(tr("<b>Version %1</b><br>Protocol version: %2<br>Built: %3 %4")).arg(Global::quasselVersion)
31                            .arg(Global::protocolVersion)
32                            .arg(Global::quasselBuildDate).arg(Global::quasselBuildTime));
33   ui.aboutTextBrowser->setHtml(about());
34   ui.authorTextBrowser->setHtml(authors());
35   ui.contributorTextBrowser->setHtml(contributors());
36   ui.thanksToTextBrowser->setHtml(thanksTo());
37
38   setWindowIcon(Icon("quassel"));
39 }
40
41 QString AboutDlg::about() const {
42   QString res;
43   res = tr("<b>A modern, distributed IRC Client</b><br><br>"
44            "&copy;2005-2008 by the Quassel Project<br>"
45            "<a href=\"http://quassel-irc.org\">http://quassel-irc.org</a><br>"
46            "<a href=\"irc://irc.freenode.net/quassel\">#quassel</a> on <a href=\"http://www.freenode.net\">Freenode</a><br><br>"
47            "Quassel IRC is dual-licensed under <a href=\"http://www.gnu.org/licenses/gpl-2.0.txt\">GPLv2</a> and "
48                 "<a href=\"http://www.gnu.org/licenses/gpl-3.0.txt\">GPLv3</a>.<br>"
49            "Most icons are &copy; by the <a href=\"http://www.oxygen-icons.org\">Oxygen Team</a> and used under the "
50                 "<a href=\"http://www.gnu.org/licenses/lgpl.html\">LGPL</a>.<br><br>"
51            "Please use <a href=\"http://bugs.quassel-irc.org\">http://bugs.quassel-irc.org</a> to report bugs."
52           );
53
54   return res;
55 }
56
57 QString AboutDlg::authors() const {
58   QString res;
59   res = tr("Quassel IRC is mainly developed by:") +
60         "<dl>"
61         "<dt><b>Manuel \"Sputnick\" Nickschas</b></dt><dd><a href=\"mailto:sput@quassel-irc.org\">sput@quassel-irc.org</a><br>"
62              "Project Founder, Lead Developer</dd>"
63         "<dt><b>Marcus \"EgS\" Eggenberger</b></dt><dd><a href=\"mailto:egs@quassel-irc.org\">egs@quassel-irc.org</a><br>"
64              "Project Motivator, Lead Developer, Mac Maintainer</dd>"
65         "<dt><b>Alexander \"phon\" von Renteln</b></dt><dd><a href=\"mailto:phon@quassel-irc.org\">phon@quassel-irc.org</a><br>"
66              "Developer, Windows Maintainer</dd>"
67         "</dl>";
68
69   return res;
70 }
71
72 QString AboutDlg::contributors() const {
73   QString res;
74   res = tr("We would like to thank the following contributors (in alphabetical order) and everybody we forgot to mention here:") + "<br>"
75            "<dl>"
76            "<dt><b>Daniel \"al\" Albers</b></dt><dd>German translation, various fixes</dd>"
77            "<dt><b>Terje \"tan\" Andersen</b></dt><dd>Norwegian translation, documentation</dd>"
78            "<dt><b>Marco \"kaffeedoktor\" Genise</b></dt><dd>Ideas, hacking, motivation</dd>"
79            "<dt><b>Sebastian \"seezer\" Goth</b></dt><dd>Various improvements and features</dd>"
80            "<dt><b>John \"nox-Hand\" Hand</b></dt><dd>Gorgeous application and tray icons</dd>"
81            "<dt><b>Jonas \"Dante\" Heese</b></dt><dd>Project founder, various improvements</dd>"
82            "<dt><b>Paul \"Haudrauf\" Klumpp</b></dt><dd>Initial design and mainwindow layout</dd>"
83            "<dt><b>Regis \"ZRegis\" Perrin</b></dt><dd>French translation</dd>"
84            "<dt><b>Diego \"Flameeyes\" Petten&ograve;</b></dt><dd>Gentoo maintainer, build system improvements</dd>"
85            "<dt><b>Dennis \"DevUrandom\" Schridde</b></dt><dd>D-Bus notifications</dd>"
86            "<dt><b>Jussi \"jussi01\" Schultink</b></dt><dd>Tireless tester, {k|U}buntu nightly packages</dd>"
87            "<dt><b>Tim \"xAFFE\" Schumacher</b></dt><dd>Fixes and feedback</dd>"
88            "<dt><b>Harald \"apachelogger\" Sitter</b></dt><dd>{k|U}buntu packager, motivator, promoter</dd>"
89            "<dt><b>Daniel \"son\" Steinmetz</b></dt><dd>Early beta tester and bughunter (on Vista&trade;!)</dd>"
90            "<dt><b>Adam \"adamt\" Tulinius</b></dt><dd>Early beta tester and bughunter, Danish translation</dd>"
91            "<dt><b>Pavel \"int\" Volkovitskiy</b></dt><dd>Early beta tester and bughunter</dd>"
92            "</dl><br>"
93            "...and anybody else finding and reporting bugs, giving feedback, helping others and being part of the community!";
94
95   return res;
96 }
97
98 QString AboutDlg::thanksTo() const {
99   QString res;
100   res = tr("Special thanks goes to:<br>"
101            "<dl>"
102            "<dt><b>John \"nox-Hand\" Hand</b></dt>"
103               "<dd>for great artwork and the Quassel logo/icon</dt>"
104            "<dt><b><a href=\"http://www.oxygen-icons.org\">The Oxygen Team</a></b></dt>"
105               "<dd>for creating most of the other shiny icons you see throughout Quassel</dd>"
106            "<dt><b><a href=\"http://www.trolltech.com\">Trolltech</a></b></dt>"
107               "<dd>for creating Qt and Qtopia, and for sponsoring development of Quasseltopia with Greenphones and more</dd>"
108           );
109
110   return res;
111 }