/*************************************************************************** * Copyright (C) 2005-2015 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) version 3. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * 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., * * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ #include "aboutdlg.h" #include #include #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

" "©%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:") + "
"; 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:") + "
"; 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 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; }