added basic support for Emacs style key bindings
[quassel.git] / src / qtui / aboutdlg.cpp
1 /***************************************************************************
2  *   Copyright (C) 2005-2010 by the Quassel Project                        *
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 <QDateTime>
22
23 #include "aboutdlg.h"
24 #include "icon.h"
25 #include "iconloader.h"
26 #include "quassel.h"
27
28 AboutDlg::AboutDlg(QWidget *parent) : QDialog(parent) {
29   ui.setupUi(this);
30   ui.quasselLogo->setPixmap(DesktopIcon("quassel", IconLoader::SizeHuge));
31
32   ui.versionLabel->setText(QString(tr("<b>Version:</b> %1<br><b>Protocol version:</b> %2<br><b>Built:</b> %3"))
33                            .arg(Quassel::buildInfo().fancyVersionString)
34                            .arg(Quassel::buildInfo().protocolVersion)
35                            .arg(Quassel::buildInfo().buildDate));
36   ui.aboutTextBrowser->setHtml(about());
37   ui.authorTextBrowser->setHtml(authors());
38   ui.contributorTextBrowser->setHtml(contributors());
39   ui.thanksToTextBrowser->setHtml(thanksTo());
40
41   setWindowIcon(Icon("quassel"));
42 }
43
44 QString AboutDlg::about() const {
45   QString res;
46   res = tr("<b>A modern, distributed IRC Client</b><br><br>"
47            "&copy;2005-2010 by the Quassel Project<br>"
48            "<a href=\"http://quassel-irc.org\">http://quassel-irc.org</a><br>"
49            "<a href=\"irc://irc.freenode.net/quassel\">#quassel</a> on <a href=\"http://www.freenode.net\">Freenode</a><br><br>"
50            "Quassel IRC is dual-licensed under <a href=\"http://www.gnu.org/licenses/gpl-2.0.txt\">GPLv2</a> and "
51                 "<a href=\"http://www.gnu.org/licenses/gpl-3.0.txt\">GPLv3</a>.<br>"
52            "Most icons are &copy; by the <a href=\"http://www.oxygen-icons.org\">Oxygen Team</a> and used under the "
53                 "<a href=\"http://www.gnu.org/licenses/lgpl.html\">LGPL</a>.<br><br>"
54            "Please use <a href=\"http://bugs.quassel-irc.org\">http://bugs.quassel-irc.org</a> to report bugs."
55           );
56
57   return res;
58 }
59
60 QString AboutDlg::authors() const {
61   QString res;
62   res = tr("Quassel IRC is mainly developed by:") +
63         "<dl>"
64         "<dt><b>Manuel \"Sputnick\" Nickschas</b></dt><dd><a href=\"mailto:sput@quassel-irc.org\">sput@quassel-irc.org</a><br>"
65              "Project Founder, Lead Developer</dd>"
66         "<dt><b>Marcus \"EgS\" Eggenberger</b></dt><dd><a href=\"mailto:egs@quassel-irc.org\">egs@quassel-irc.org</a><br>"
67              "Project Motivator, Lead Developer, Mac Maintainer</dd>"
68         "<dt><b>Alexander \"phon\" von Renteln</b></dt><dd><a href=\"mailto:phon@quassel-irc.org\">phon@quassel-irc.org</a><br>"
69              "Developer, Windows Maintainer</dd>"
70         "</dl>";
71
72   return res;
73 }
74
75 QString AboutDlg::contributors() const {
76   QString res;
77   res = tr("We would like to thank the following contributors (in alphabetical order) and everybody we forgot to mention here:")
78       + QString::fromUtf8("<br>"
79            "<dl>"
80            "<dt><b>Daniel \"al\" Albers</b></dt><dd>Master Of Translation, many fixes and enhancements</dd>"
81            "<dt><b>Terje \"tan\" Andersen</b></dt><dd>Norwegian translation, documentation</dd>"
82            "<dt><b>Tomáš \"scarabeus\" Chvátal</b></dt><dd>Czech translation</dd>"
83            "<dt><b>Joshua \"tvakah\" Corbin</b></dt><dd>Various fixes</dd>"
84            "<dt><b>Matthias \"pennywise\" Coy</b></dt><dd>German translation</dd>"
85            "<dt><b>Chris \"stitch\" Fuenty</b></dt><dd>SASL support</dd>"
86            "<dt><b>Kevin \"KRF\" Funk</b></dt><dd>German translation</dd>"
87            "<dt><b>Fabiano \"elbryan\" Francesconi</b></dt><dd>Italian translation</dd>"
88            "<dt><b>Aurélien \"agateau\" Gâteau</b></dt><dd>Message Indicator support</dd>"
89            "<dt><b>Marco \"kaffeedoktor\" Genise</b></dt><dd>Ideas, hacking, motivation</dd>"
90            "<dt><b>Sebastian \"seezer\" Goth</b></dt><dd>Various improvements and features</dd>"
91            "<dt><b>Michael \"brot\" Groh</b></dt><dd>German translation</dd>"
92            "<dt><b>H. İbrahim \"igungor\" Güngör</b></dt><dd>Turkish translation</dd>"
93            "<dt><b>John \"nox\" Hand</b></dt><dd>Former All-Seeing Eye logo</dd>"
94            "<dt><b>Jonas \"Dante\" Heese</b></dt><dd>Project founder, various improvements</dd>"
95            "<dt><b>Thomas \"Datafreak\" Hogh</b></dt><dd>Windows builder</dd>"
96            "<dt><b>Johannes \"j0hu\" Huber</b></dt><dd>Various fixes and features</dd>"
97            "<dt><b>Scott \"ScottK\" Kitterman<b></dt><dd>Kubuntu nightly packager, (packaging/build system) bughunter</dd>"
98            "<dt><b>Paul \"Haudrauf\" Klumpp</b></dt><dd>Initial design and mainwindow layout</dd>"
99            "<dt><b>Maia Kozheva</b></dt><dd>Russian translation</dd>"
100            "<dt><b>Hendrik \"nevcairiel\" Leppkes</b></dt><dd>Various features</dd>"
101            "<dt><b>Martin \"m4yer\" Mayer</b></dt><dd>German translation</dd>"
102            "<dt><b>Gábor \"ELITE_x\" Németh</b></dt><dd>Hungarian translation</dd>"
103            "<dt><b>Marco \"Quizzlo\" Paolone</b></dt><dd>Italian translation</dd>"
104            "<dt><b>Drew \"LinuxDolt\" Patridge</b></dt><dd>BluesTheme stylesheet</dd>"
105            "<dt><b>Celeste \"seele\" Paul</b></dt><dd>Usability Queen</dd>"
106            "<dt><b>David Planella</b></dt><dd>Translation fixes</dd>"
107            "<dt><b>Regis \"ZRegis\" Perrin</b></dt><dd>French translation</dd>"
108            "<dt><b>Diego \"Flameeyes\" Petten&ograve;</b></dt><dd>Gentoo maintainer, build system improvements</dd>"
109            "<dt><b>Daniel \"billie\" Pielmeier</b></dt><dd>Gentoo maintainer</dd>"
110            "<dt><b>Nuno \"pinheiro\" Pinheiro</b></dt><dd>Tons of Oxygen icons including our application icon</dd>"
111            "<dt><b>Jure \"JLP\" Repinc</b></dt><dd>Slovenian translation</dd>"
112            "<dt><b>Patrick \"TheOneRing\" von Reth</b></dt><dd>MinGW support</dd>"
113            "<dt><b>Dirk \"MarcLandis\" Rettschlag</b></dt><dd>Various features</dd>"
114            "<dt><b>Henning \"honk\" Rohlfs</b></dt><dd>Various fixes</dd>"
115            "<dt><b>Dennis \"DevUrandom\" Schridde</b></dt><dd>D-Bus notifications</dd>"
116            "<dt><b>Jussi \"jussi01\" Schultink</b></dt><dd>Tireless tester, {ku|U}buntu tester and lobbyist, liters of delicious Finnish alcohol</dd>"
117            "<dt><b>Tim \"xAFFE\" Schumacher</b></dt><dd>Fixes and feedback</dd>"
118            "<dt><b>Harald \"apachelogger\" Sitter</b></dt><dd>{ku|U}buntu packager, motivator, promoter</dd>"
119            "<dt><b>Daniel \"son\" Steinmetz</b></dt><dd>Early beta tester and bughunter (on Vista&trade;!)</dd>"
120            "<dt><b>Jesper Thomschütz</b></dt><dd>Various fixes</dd>"
121            "<dt><b>Edward \"Aides\" Toroshchin</b></dt><dd>Russian translation</dd>"
122            "<dt><b>Adam \"adamt\" Tulinius</b></dt><dd>Early beta tester and bughunter, Danish translation</dd>"
123            "<dt><b>Frederik M.J. Vestre</b></dt><dd>Norwegian translation</dd>"
124            "<dt><b>Atte Virtanen</b></dt><dd>Finnish translation</dd>"
125            "<dt><b>Pavel \"int\" Volkovitskiy</b></dt><dd>Early beta tester and bughunter</dd>"
126            "<dt><b>Benjamin \"zbenjamin\" Zeller</b></dt><dd>Windows build system fixes</dd>"
127            "</dl><br>"
128            "...and anybody else finding and reporting bugs, giving feedback, helping others and being part of the community!");
129
130   return res;
131 }
132
133 QString AboutDlg::thanksTo() const {
134   QString res;
135   res = tr("Special thanks goes to:<br>"
136            "<dl>"
137            "<dt><img src=\":/pics/quassel-eye.png\">&nbsp;<b>John \"nox\" Hand</b></dt>"
138               "<dd>for the original Quassel icon - The All-Seeing Eye</dt>"
139            "<dt><img src=\":/pics/oxygen.png\">&nbsp;<b><a href=\"http://www.oxygen-icons.org\">The Oxygen Team</a></b></dt>"
140               "<dd>for creating all the artwork you see throughout Quassel</dd>"
141            "<dt><img src=\":/pics/qt-logo-32.png\">&nbsp;<b><a href=\"http://www.trolltech.com\">Qt Software formerly known as Trolltech</a></b></dt>"
142               "<dd>for creating Qt and Qtopia, and for sponsoring development of QuasselTopia with Greenphones and more</dd>"
143            "<dt><a href=\"http://www.nokia.com\"><img src=\":/pics/nokia.png\"></a></b></dt>"
144               "<dd>for keeping Qt alive, and for sponsoring development of Quassel Mobile with N810s</dd>"
145           );
146
147   return res;
148 }