X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Faboutdlg.cpp;h=6b775b7f4d469d064e9547545486f1caebfef8d2;hp=0c55277eedc1018d376be3d1252b55fbbe58eef4;hb=aec9c711900a443bfa7860fa86c6e9c86b81a3e7;hpb=cb1918d94b5d8ec9f05a192c96fab938782dabf5 diff --git a/src/qtui/aboutdlg.cpp b/src/qtui/aboutdlg.cpp index 0c55277e..6b775b7f 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-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -15,84 +15,105 @@ * 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 "global.h" -AboutDlg::AboutDlg(QWidget *parent) : QDialog(parent) { - ui.setupUi(this); +#include +#include - ui.versionLabel->setText(QString("Version %1
Built: %2 %3").arg(Global::quasselVersion) - .arg(Global::quasselBuildDate).arg(Global::quasselBuildTime)); - ui.aboutTextBrowser->setHtml(about()); - ui.authorTextBrowser->setHtml(authors()); - ui.contributorTextBrowser->setHtml(contributors()); - ui.thanksToTextBrowser->setHtml(thanksTo()); +#include "aboutdata.h" +#include "quassel.h" +AboutDlg::AboutDlg(QWidget *parent) + : QDialog(parent) + , _aboutData(new AboutData(this)) +{ + AboutData::setQuasselPersons(_aboutData); + + ui.setupUi(this); + ui.quasselLogo->setPixmap(QIcon(":/icons/quassel-64.png").pixmap(64)); // don't let the icon theme affect our logo here + + ui.versionLabel->setText(QString(tr("Version: %1
Version date: %2
Protocol version: %3")) + .arg(Quassel::buildInfo().fancyVersionString) + .arg(Quassel::buildInfo().commitDate) + .arg(Quassel::buildInfo().protocolVersion)); + 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 {tr("A modern, distributed IRC Client

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

" + "Quassel IRC is dual-licensed under GPLv2 and " + "GPLv3.
" + "Breeze icon theme © Uri Herrera and others, licensed under the " + "LGPLv3.
" + "Oxygen icon theme © Nuno Pinheiro and others, licensed under the " + "LGPLv3.

" + "Please use https://bugs.quassel-irc.org to report bugs." + ).arg("2005-2018") + }; + + 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
alex@phon.name
" - "Developer, Windows Maintainer
" - "
"; - - return res; + +QString AboutDlg::authors() const +{ + QString res {tr("Quassel IRC is mainly developed by:") + "
"}; + for (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:") + "
" - "
" - "
Marco \"kaffeedoktor\" Genise
kaffeedoktor@quassel-irc.org
" - "Ideas, Hacking, Motivation
" - "
John \"nox-Hand\" Hand
Gorgeous Application and Tray Icons
" - "
Jonas \"Dante\" Heese
Project Founder, ebuilder
" - "
Diego \"Flameeyes\" Pettenò
Gentoo Maintainer
" - "
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
" - "
"; - - return res; + +QString AboutDlg::contributors() const +{ + QString res {tr("We would like to thank the following contributors (in alphabetical order) and everybody we forgot to mention here:") + "
"}; + for (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\" Hand
" - "
for great artwork and the Quassel logo/icon" - "
The Oxygen Team
" - "
for creating most of the other shiny icons you see throughout Quassel
" - "
Trolltech
" - "
for creating Qt and Qtopia, and for sponsoring development of Quasseltopia with Greenphones and more
" - ); - - return res; + +QString AboutDlg::thanksTo() const +{ + QString res {tr("Special thanks goes to:") + "
" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "
 John \"nox\" Hand
" + tr("for the original Quassel logo - The All-Seeing Eye") + "
Nuno Pinheiro
" + tr("for the current Quassel logo") + "
The KDE Visual Design Group
" + tr("for the amazing Breeze and Oxygen icon themes") + "
The Qt Company (formerly known as Qt Software, Nokia, Trolltech)
" + tr("for creating an awesome framework, and for sponsoring development with Greenphones, N810s, N950s and more") + "
" + }; + + return res; }