improved backlog replay performance
[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 "global.h"
23
24 AboutDlg::AboutDlg(QWidget *parent) : QDialog(parent) {
25   ui.setupUi(this);
26
27   ui.versionLabel->setText(QString("<b>Version %1, Build &ge; %2 (%3)</b>").arg(Global::quasselVersion).arg(Global::quasselBuild).arg(Global::quasselDate));
28   ui.aboutTextBrowser->setHtml(about());
29   ui.authorTextBrowser->setHtml(authors());
30   ui.contributorTextBrowser->setHtml(contributors());
31   ui.thanksToTextBrowser->setHtml(thanksTo());
32
33 }
34
35 QString AboutDlg::about() const {
36   QString res;
37   res = tr("<b>A modern, distributed IRC Client</b><br><br>"
38            "&copy;2005-2008 by the Quassel Project<br>"
39            "<a href=\"http://quassel-irc.org\">http://quassel-irc.org</a><br>"
40            "<a href=\"irc://irc.freenode.net/quassel\">#quassel</a> on <a href=\"http://www.freenode.net\">Freenode</a><br><br>"
41            "Quassel IRC is dual-licensed under <a href=\"http://www.gnu.org/licenses/gpl-2.0.txt\">GPLv2</a> and "
42                 "<a href=\"http://www.gnu.org/licenses/gpl-3.0.txt\">GPLv3</a>.<br>"
43            "Most icons are &copy; by the <a href=\"http://www.oxygen-icons.org\">Oxygen Team</a> and used under the "
44                 "<a href=\"http://www.gnu.org/licenses/lgpl.html\">LGPL</a>.<br><br>"
45            "Please use <a href=\"http://bugs.quassel-irc.org\">http://bugs.quassel-irc.org</a> to report bugs."
46           );
47
48   return res;
49 }
50
51 QString AboutDlg::authors() const {
52   QString res;
53   res = tr("Quassel IRC is mainly developed by:") +
54         "<dl>"
55         "<dt>Manuel \"Sputnick\" Nickschas</dt><dd><a href=\"mailto:sput@quassel-irc.org\">sput@quassel-irc.org</a><br>"
56              "Project Founder, Lead Developer</dd><br>"
57         "<dt>Marcus \"EgS\" Eggenberger</dt><dd><a href=\"mailto:egs@quassel-irc.org\">egs@quassel-irc.org</a><br>"
58              "Project Motivator, Lead Developer, Mac Maintainer</dd><br>"
59         "<dt>Alexander \"phon\" von Renteln</dt><dd><a href=\"mailto:alex@phon.name\">alex@phon.name</a><br>"
60              "Developer, Windows Maintainer</dd>"
61         "</dl>";
62
63   return res;
64 }
65
66 QString AboutDlg::contributors() const {
67   QString res;
68   res = tr("We would like to thank the following contributors (in alphabetical order) and everybody we forgot to mention here:") + "<br>"
69            "<dl>"
70            "<dt>Marco \"kaffeedoktor\" Genise</dt><dd><a href=\"mailto:kaffeedoktor@quassel-irc.org\">kaffeedoktor@quassel-irc.org</a><br>"
71                   "Ideas, Hacking, Motivation</dd><br>"
72            "<dt>Jonas \"Dante\" Heese</dt><dd>Project Founder, ebuilder</dd><br>"
73            "<dt>Daniel \"son\" Steinmetz</dt><dd>Early Beta Tester and Bughunter (on Vista&trade;!)</dd><br>"
74            "<dt>Adam \"adamt\" Tulinius</dt><dd>Early Beta Tester and Bughunter, Danish Translation</dd><br>"
75            "<dt>Pavel \"int\" Volkovitskiy</dt><dd>Early Beta Tester and Bughunter</dd><br>"
76            "</dl>";
77
78   return res;
79 }
80
81 QString AboutDlg::thanksTo() const {
82   QString res;
83   res = tr("Special thanks goes to:<br>"
84            "<dl>"
85            "<dt><a href=\"http://www.oxygen-icons.org\">The Oxygen Team</a></dt>"
86               "<dd>for creating most of the shiny icons you see throughout Quassel</dd><br>"
87            "<dt><a href=\"http://www.trolltech.com\">Trolltech</a></dt>"
88               "<dd>for creating Qt and Qtopia, and for sponsoring development of Quasseltopia with Greenphones and more</dd>"
89           );
90
91   return res;
92 }