Autogenerate version.gen - no more outdated versions!
[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</b><br>Built: %2 %3").arg(Global::quasselVersion)
28       .arg(Global::quasselBuildDate).arg(Global::quasselBuildTime));
29   ui.aboutTextBrowser->setHtml(about());
30   ui.authorTextBrowser->setHtml(authors());
31   ui.contributorTextBrowser->setHtml(contributors());
32   ui.thanksToTextBrowser->setHtml(thanksTo());
33
34 }
35
36 QString AboutDlg::about() const {
37   QString res;
38   res = tr("<b>A modern, distributed IRC Client</b><br><br>"
39            "&copy;2005-2008 by the Quassel Project<br>"
40            "<a href=\"http://quassel-irc.org\">http://quassel-irc.org</a><br>"
41            "<a href=\"irc://irc.freenode.net/quassel\">#quassel</a> on <a href=\"http://www.freenode.net\">Freenode</a><br><br>"
42            "Quassel IRC is dual-licensed under <a href=\"http://www.gnu.org/licenses/gpl-2.0.txt\">GPLv2</a> and "
43                 "<a href=\"http://www.gnu.org/licenses/gpl-3.0.txt\">GPLv3</a>.<br>"
44            "Most icons are &copy; by the <a href=\"http://www.oxygen-icons.org\">Oxygen Team</a> and used under the "
45                 "<a href=\"http://www.gnu.org/licenses/lgpl.html\">LGPL</a>.<br><br>"
46            "Please use <a href=\"http://bugs.quassel-irc.org\">http://bugs.quassel-irc.org</a> to report bugs."
47           );
48
49   return res;
50 }
51
52 QString AboutDlg::authors() const {
53   QString res;
54   res = tr("Quassel IRC is mainly developed by:") +
55         "<dl>"
56         "<dt><b>Manuel \"Sputnick\" Nickschas</b></dt><dd><a href=\"mailto:sput@quassel-irc.org\">sput@quassel-irc.org</a><br>"
57              "Project Founder, Lead Developer</dd>"
58         "<dt><b>Marcus \"EgS\" Eggenberger</b></dt><dd><a href=\"mailto:egs@quassel-irc.org\">egs@quassel-irc.org</a><br>"
59              "Project Motivator, Lead Developer, Mac Maintainer</dd>"
60         "<dt><b>Alexander \"phon\" von Renteln</b></dt><dd><a href=\"mailto:alex@phon.name\">alex@phon.name</a><br>"
61              "Developer, Windows Maintainer</dd>"
62         "</dl>";
63
64   return res;
65 }
66
67 QString AboutDlg::contributors() const {
68   QString res;
69   res = tr("We would like to thank the following contributors (in alphabetical order) and everybody we forgot to mention here:") + "<br>"
70            "<dl>"
71            "<dt><b>Marco \"kaffeedoktor\" Genise</b></dt><dd><a href=\"mailto:kaffeedoktor@quassel-irc.org\">kaffeedoktor@quassel-irc.org</a><br>"
72                   "Ideas, Hacking, Motivation</dd>"
73            "<dt><b>John \"nox-Hand\" Hand</b></dt><dd>Gorgeous Application and Tray Icons</dd>"
74            "<dt><b>Jonas \"Dante\" Heese</b></dt><dd>Project Founder, ebuilder</dd>"
75            "<dt><b>Diego \"Flameeyes\" Petten&ograve;</b></dt><dd>Gentoo Maintainer</dd>"
76            "<dt><b>Harald \"apachelogger\" Sitter</b></dt><dd>{k|U}buntu packager, Motivator, Promoter</dd>"
77            "<dt><b>Daniel \"son\" Steinmetz</b></dt><dd>Early Beta Tester and Bughunter (on Vista&trade;!)</dd>"
78            "<dt><b>Adam \"adamt\" Tulinius</b></dt><dd>Early Beta Tester and Bughunter, Danish Translation</dd>"
79            "<dt><b>Pavel \"int\" Volkovitskiy</b></dt><dd>Early Beta Tester and Bughunter</dd>"
80            "</dl>";
81
82   return res;
83 }
84
85 QString AboutDlg::thanksTo() const {
86   QString res;
87   res = tr("Special thanks goes to:<br>"
88            "<dl>"
89            "<dt><b>John \"nox-Hand\" Hand</b></dt>"
90               "<dd>for great artwork and the Quassel logo/icon</dt>"
91            "<dt><b><a href=\"http://www.oxygen-icons.org\">The Oxygen Team</a></b></dt>"
92               "<dd>for creating most of the other shiny icons you see throughout Quassel</dd>"
93            "<dt><b><a href=\"http://www.trolltech.com\">Trolltech</a></b></dt>"
94               "<dd>for creating Qt and Qtopia, and for sponsoring development of Quasseltopia with Greenphones and more</dd>"
95           );
96
97   return res;
98 }