1 /***************************************************************************
2 * Copyright (C) 2005-2018 by the Quassel Project *
3 * devel@quassel-irc.org *
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. *
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. *
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 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
19 ***************************************************************************/
26 #include "aboutdata.h"
29 AboutDlg::AboutDlg(QWidget *parent)
31 , _aboutData(new AboutData(this))
33 AboutData::setQuasselPersons(_aboutData);
36 ui.quasselLogo->setPixmap(QIcon(":/icons/quassel-64.png").pixmap(64)); // don't let the icon theme affect our logo here
38 ui.versionLabel->setText(QString(tr("<b>Version:</b> %1<br><b>Version date:</b> %2<br><b>Protocol version:</b> %3"))
39 .arg(Quassel::buildInfo().fancyVersionString)
40 .arg(Quassel::buildInfo().commitDate)
41 .arg(Quassel::buildInfo().protocolVersion));
42 ui.aboutTextBrowser->setHtml(about());
43 ui.authorTextBrowser->setHtml(authors());
44 ui.contributorTextBrowser->setHtml(contributors());
45 ui.thanksToTextBrowser->setHtml(thanksTo());
47 setWindowIcon(QIcon::fromTheme("quassel", QIcon(":/icons/quassel.png")));
51 QString AboutDlg::about() const
53 QString res {tr("<b>A modern, distributed IRC Client</b><br><br>"
54 "©%1 by the Quassel Project<br>"
55 "<a href=\"https://quassel-irc.org\">https://quassel-irc.org</a><br>"
56 "<a href=\"irc://irc.freenode.net/quassel\">#quassel</a> on <a href=\"https://www.freenode.net\">Freenode</a><br><br>"
57 "Quassel IRC is dual-licensed under <a href=\"https://www.gnu.org/licenses/gpl-2.0.txt\">GPLv2</a> and "
58 "<a href=\"https://www.gnu.org/licenses/gpl-3.0.txt\">GPLv3</a>.<br>"
59 "<a href=\"https://api.kde.org/frameworks/breeze-icons/html\">Breeze icon theme</a> © Uri Herrera and others, licensed under the "
60 "<a href=\"https://github.com/KDE/breeze-icons/blob/21ffd9b/COPYING-ICONS\">LGPLv3</a>.<br>"
61 "<a href=\"https://api.kde.org/frameworks/oxygen-icons5/html\">Oxygen icon theme</a> © Nuno Pinheiro and others, licensed under the "
62 "<a href=\"https://github.com/KDE/oxygen-icons/blob/master/COPYING\">LGPLv3</a>.<br><br>"
63 "Please use <a href=\"https://bugs.quassel-irc.org\">https://bugs.quassel-irc.org</a> to report bugs."
71 QString AboutDlg::authors() const
73 QString res {tr("Quassel IRC is mainly developed by:") + "<dl>"};
74 for (auto &&person : _aboutData->authors()) {
75 res.append("<dt><b>" + person.prettyName() + "</b></dt><dd>");
76 if (!person.emailAddress().isEmpty())
77 res.append("<a href=\"mailto:" + person.emailAddress() + "\">" + person.emailAddress() + "</a><br>");
78 res.append("<i>" + person.task() + "</i><br></dd>");
85 QString AboutDlg::contributors() const
87 QString res {tr("We would like to thank the following contributors (in alphabetical order) and everybody we forgot to mention here:") + "<br><dl>"};
88 for (auto &&person : _aboutData->credits()) {
89 res.append("<dt><b>" + person.prettyName() + "</b></dt><dd><i>" + person.task() + "</i><br></dd>");
91 res.append("</dl>" + tr("...and anybody else finding and reporting bugs, giving feedback, helping others and being part of the community!"));
96 QString AboutDlg::thanksTo() const
98 QString res {tr("Special thanks goes to:") + "<br>"
100 "<tr><td rowspan='2' valign='middle'><img src=':/pics/quassel-eye.png'> </td>"
101 "<td><b>John \"nox\" Hand</b></td></tr>"
102 "<tr><td><i>" + tr("for the original Quassel logo - The All-Seeing Eye") + "</i></td></tr>"
104 "<tr><td rowspan='2' valign='middle'><img src=':/icons/quassel-32.png'></td>"
105 "<td><b>Nuno Pinheiro</b></td></tr>"
106 "<tr><td><i>" + tr("for the current Quassel logo") + "</i></td></tr>"
108 "<tr><td rowspan='2' valign='middle'><img src=':/pics/kde-vdg.png'></td>"
109 "<td><b><a href='https://vdesign.kde.org'>The KDE Visual Design Group</a></b></td></tr>"
110 "<tr><td><i>" + tr("for the amazing Breeze and Oxygen icon themes") + "</i></td></tr>"
112 "<tr><td rowspan='2' valign='middle'><img src=':/pics/qt-logo-32.png'></td>"
113 "<td><b><a href='https://www.qt.io/'>The Qt Company</a></b> (formerly known as Qt Software, Nokia, Trolltech)</td></tr>"
114 "<tr><td><i>" + tr("for creating an awesome framework, and for sponsoring development with Greenphones, N810s, N950s and more") + "</i></td></tr>"