X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Faboutdlg.cpp;h=b5b7c76d36f238574ba1da3d48ea5dbfe1fb4ca5;hp=c3ff6e961b00c34ecab1e6d08bbb27b824626607;hb=ec86ead09bc7a03e0f264dfc4e68c385d8bec7e3;hpb=c8a195f3448a89cf3172dc2f247bdc438337d75a diff --git a/src/qtui/aboutdlg.cpp b/src/qtui/aboutdlg.cpp index c3ff6e96..b5b7c76d 100644 --- a/src/qtui/aboutdlg.cpp +++ b/src/qtui/aboutdlg.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-08 by the Quassel IRC Team * + * Copyright (C) 2005-2015 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -15,104 +15,99 @@ * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ +#include "aboutdlg.h" + #include +#include -#include "aboutdlg.h" -#include "icon.h" -#include "iconloader.h" +#include "aboutdata.h" #include "quassel.h" -AboutDlg::AboutDlg(QWidget *parent) : QDialog(parent) { - ui.setupUi(this); - ui.quasselLogo->setPixmap(DesktopIcon("quassel", IconLoader::SizeHuge)); +AboutDlg::AboutDlg(QWidget *parent) + : QDialog(parent) + , _aboutData(new AboutData(this)) +{ + AboutData::setQuasselPersons(_aboutData); - ui.versionLabel->setText(QString(tr("Version: %1
Protocol version: %2
Built: %3")) - .arg(Quassel::buildInfo().fancyVersionString) - .arg(Quassel::buildInfo().protocolVersion) - .arg(Quassel::buildInfo().buildDate)); - ui.aboutTextBrowser->setHtml(about()); - ui.authorTextBrowser->setHtml(authors()); - ui.contributorTextBrowser->setHtml(contributors()); - ui.thanksToTextBrowser->setHtml(thanksTo()); + ui.setupUi(this); + ui.quasselLogo->setPixmap(QIcon(":/icons/quassel-64.png").pixmap(64)); // don't let the icon theme affect our logo here - setWindowIcon(Icon("quassel")); + ui.versionLabel->setText(QString(tr("Version: %1
Protocol version: %2
Built: %3")) + .arg(Quassel::buildInfo().fancyVersionString) + .arg(Quassel::buildInfo().protocolVersion) + .arg(Quassel::buildInfo().buildDate)); + ui.aboutTextBrowser->setHtml(about()); + ui.authorTextBrowser->setHtml(authors()); + ui.contributorTextBrowser->setHtml(contributors()); + ui.thanksToTextBrowser->setHtml(thanksTo()); + + setWindowIcon(QIcon::fromTheme("quassel", QIcon(":/icons/quassel.png"))); } -QString AboutDlg::about() const { - QString res; - res = tr("A modern, distributed IRC Client

" - "©2005-2008 by the Quassel Project
" - "http://quassel-irc.org
" - "#quassel on Freenode

" - "Quassel IRC is dual-licensed under GPLv2 and " - "GPLv3.
" - "Most icons are © by the Oxygen Team and used under the " - "LGPL.

" - "Please use http://bugs.quassel-irc.org to report bugs." - ); - - return res; + +QString AboutDlg::about() const +{ + QString res; + res = tr("A modern, distributed IRC Client

" + "©%1 by the Quassel Project
" + "http://quassel-irc.org
" + "#quassel on Freenode

" + "Quassel IRC is dual-licensed under GPLv2 and " + "GPLv3.
" + "Most icons are © by the Oxygen Team and used under the " + "LGPL.

" + "Please use http://bugs.quassel-irc.org to report bugs." + ).arg("2005-2015"); + + return res; } -QString AboutDlg::authors() const { - QString res; - res = tr("Quassel IRC is mainly developed by:") + - "
" - "
Manuel \"Sputnick\" Nickschas
sput@quassel-irc.org
" - "Project Founder, Lead Developer
" - "
Marcus \"EgS\" Eggenberger
egs@quassel-irc.org
" - "Project Motivator, Lead Developer, Mac Maintainer
" - "
Alexander \"phon\" von Renteln
phon@quassel-irc.org
" - "Developer, Windows Maintainer
" - "
"; - - return res; + +QString AboutDlg::authors() const +{ + QString res; + res = tr("Quassel IRC is mainly developed by:") + "
"; + for (const auto &person : _aboutData->authors()) { + res.append("
" + person.prettyName() + "
"); + if (!person.emailAddress().isEmpty()) + res.append("" + person.emailAddress() + "
"); + res.append("" + person.task() + "
"); + } + res.append("
"); + return res; } -QString AboutDlg::contributors() const { - QString res; - res = tr("We would like to thank the following contributors (in alphabetical order) and everybody we forgot to mention here:") + "
" - "
" - "
Daniel \"al\" Albers
German translation, various fixes
" - "
Terje \"tan\" Andersen
Norwegian translation, documentation
" - "
Kevin \"KRF\" Funk
German translation
" - "
Marco \"kaffeedoktor\" Genise
Ideas, hacking, motivation
" - "
Sebastian \"seezer\" Goth
Various improvements and features
" - "
Edward \"Aides\" Hades
Russian translation
" - "
John \"nox-Hand\" Hand
Gorgeous application and tray icons
" - "
Jonas \"Dante\" Heese
Project founder, various improvements
" - "
Paul \"Haudrauf\" Klumpp
Initial design and mainwindow layout
" - "
Regis \"ZRegis\" Perrin
French translation
" - "
Diego \"Flameeyes\" Pettenò
Gentoo maintainer, build system improvements
" - "
Dennis \"DevUrandom\" Schridde
D-Bus notifications
" - "
Jussi \"jussi01\" Schultink
Tireless tester, {k|U}buntu nightly packages
" - "
Tim \"xAFFE\" Schumacher
Fixes and feedback
" - "
Harald \"apachelogger\" Sitter
{k|U}buntu packager, motivator, promoter
" - "
Daniel \"son\" Steinmetz
Early beta tester and bughunter (on Vista™!)
" - "
Adam \"adamt\" Tulinius
Early beta tester and bughunter, Danish translation
" - "
Pavel \"int\" Volkovitskiy
Early beta tester and bughunter
" - "

" - "...and anybody else finding and reporting bugs, giving feedback, helping others and being part of the community!"; - - return res; + +QString AboutDlg::contributors() const +{ + QString res; + res = tr("We would like to thank the following contributors (in alphabetical order) and everybody we forgot to mention here:") + "
"; + for (const auto &person : _aboutData->credits()) { + res.append("
" + person.prettyName() + "
" + person.task() + "
"); + } + res.append("
" + tr("...and anybody else finding and reporting bugs, giving feedback, helping others and being part of the community!")); + + return res; } -QString AboutDlg::thanksTo() const { - QString res; - res = tr("Special thanks goes to:
" - "
" - "
John \"nox\" Hand
" - "
for great artwork and the Quassel logo/icon" - "
The Oxygen Team
" - "
for creating most of the other shiny icons you see throughout Quassel
" - "
Qt Software formerly known as Trolltech
" - "
for creating Qt and Qtopia, and for sponsoring development of QuasselTopia with Greenphones and more
" - "
Nokia
" - "
for keeping Qt alive, and for sponsoring development of Quassel Mobile with N810s
" - ); - - return res; + +QString AboutDlg::thanksTo() const +{ + QString res; + res = tr("Special thanks goes to:
" + "
" + "
 John \"nox\" Hand
" + "
for the original Quassel icon - The All-Seeing Eye
" + "
 The Oxygen Team
" + "
for creating all the artwork you see throughout Quassel
" + "
 Qt Software formerly known as Trolltech
" + "
for creating Qt and Qtopia, and for sponsoring development of QuasselTopia with Greenphones and more
" + "
" + "
for sponsoring development of Quassel Mobile with N810s
" + ); + + return res; }