a6cbfc3a2f1b88c7d58a2cf5c6c461328c079803
[quassel.git] / src / uisupport / aboutdata.cpp
1 /***************************************************************************
2  *   Copyright (C) 2005-2015 by the Quassel Project                        *
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  *   51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.         *
19  ***************************************************************************/
20
21 #include "aboutdata.h"
22
23 #include <QImage>
24
25 #include "quassel.h"
26
27
28 AboutPerson::AboutPerson(const QString &name, const QString &nick, const QString &task, const QString &emailAddress, QLocale::Language translatedLanguage)
29     : _name(name)
30     , _nick(nick)
31     , _task(task)
32     , _emailAddress(emailAddress)
33     , _language(translatedLanguage)
34 {
35
36 }
37
38
39 QString AboutPerson::name() const
40 {
41     return _name;
42 }
43
44
45 QString AboutPerson::nick() const
46 {
47     return _nick;
48 }
49
50
51 QString AboutPerson::task() const
52 {
53     return _task;
54 }
55
56
57 QString AboutPerson::emailAddress() const
58 {
59     return _emailAddress;
60 }
61
62
63 QLocale::Language AboutPerson::translatedLanguage() const
64 {
65     return _language;
66 }
67
68
69 QString AboutPerson::prettyName() const
70 {
71     if (!name().isEmpty() && !nick().isEmpty())
72         return name() + " (" + nick() + ')';
73
74     if (name().isEmpty() && !nick().isEmpty())
75         return nick();
76
77     return name();
78 }
79
80
81 /**************************************************************************************************/
82
83
84 AboutData::AboutData(QObject *parent)
85     : QObject(parent)
86 {
87
88 }
89
90
91 QList<AboutPerson> AboutData::authors() const
92 {
93     return _authors;
94 }
95
96
97 QList<AboutPerson> AboutData::credits() const
98 {
99     return _credits;
100 }
101
102
103 AboutData &AboutData::addAuthor(const AboutPerson &author)
104 {
105     _authors.append(author);
106     return *this;
107 }
108
109
110 AboutData &AboutData::addAuthors(std::initializer_list<AboutPerson> authors)
111 {
112     _authors.append(authors);
113     return *this;
114 }
115
116
117 AboutData &AboutData::addCredit(const AboutPerson &credit)
118 {
119     _credits.append(credit);
120     return *this;
121 }
122
123
124 AboutData &AboutData::addCredits(std::initializer_list<AboutPerson> credits)
125 {
126     _credits.append(credits);
127     return *this;
128 }
129
130 #ifdef HAVE_KF5
131
132 KAboutData AboutData::kAboutData() const
133 {
134     KAboutData aboutData(
135         Quassel::buildInfo().applicationName,
136         tr("Quassel IRC"),
137         Quassel::buildInfo().plainVersionString
138     );
139     aboutData.addLicense(KAboutLicense::GPL_V2);
140     aboutData.addLicense(KAboutLicense::GPL_V3);
141     aboutData.setShortDescription(tr("A modern, distributed IRC client"));
142     aboutData.setProgramLogo(QVariant::fromValue(QImage(":/pics/quassel-logo.png")));
143     aboutData.setBugAddress("http://bugs.quassel-irc.org/projects/quassel-irc/issues/new");
144     aboutData.setOrganizationDomain(Quassel::buildInfo().organizationDomain.toUtf8());
145
146     for (const auto &person : authors()) {
147         aboutData.addAuthor(person.prettyName(), person.task(), person.emailAddress());
148     }
149
150     for (const auto &person : credits()) {
151         aboutData.addCredit(person.prettyName(), person.task(), person.emailAddress());
152     }
153
154     return aboutData;
155 }
156
157 #endif
158
159
160 /**************************************************************************************************/
161
162 /*
163  * NOTE: The list of contributors was retrieved from the Git history, but sometimes things fall
164  *       through the cracks... especially for translations, we don't have an easy way to track
165  *       contributors' names.
166  *       If you find wrong data for yourself, want your nickname and/or mail addresses added or
167  *       removed, or feel left out or unfairly credited, please don't hesitate to let us know! We
168  *       do want to credit everyone who has contributed to Quassel development.
169  */
170
171 void AboutData::setQuasselPersons(AboutData *aboutData)
172 {
173     aboutData->addAuthors({
174         { "Manuel Nickschas", "Sputnick", tr("Project Founder, Lead Developer"), "sputnick@quassel-irc.org" },
175         { "Marcus Eggenberger", "EgS", tr("Project Motivator, Lead Developer"), "egs@quassel-irc.org" },
176         { "Alexander von Renteln", "phon", tr("Former Lead Developer"), "phon@quassel-irc.org" },
177         { "Daniel Albers", "al", tr("Master of Translation, many fixes and enhancements, Travis support") },
178         { "Sebastian Goth", "seezer", tr("Many features, fixes and improvements") },
179         { "Bas Pape", "Tucos", tr("Many fixes and improvements, bug and patch triaging, community support") },
180         { "Shane Synan", "digitalcircuit", tr("IRCv3 support, documentation, many other improvements, outstanding PRs") },
181     });
182
183     aboutData->addCredits({
184         { "A. V. Lukyanov", "", tr("OSX UI improvements") },
185         { "Adam Harwood", "2kah", tr("Chatview improvements") },
186         { "Adam Tulinius", "adamt", tr("Early beta tester and bughunter, Danish translation"), "", QLocale::Danish },
187         { "Adolfo Jayme Barrientos", "", tr("Spanish translation"), "", QLocale::Spanish },
188         { "Alexander Stein", "", tr("Tray icon fix") },
189         { "Alf Gaida", "agaida", tr("Language improvements") },
190         { "Allan Jude", "", tr("Documentation improvements") },
191         { "Andrew Brown", "", tr("Fixes") },
192         { "Arthur Titeica", "roentgen", tr("Romanian translation"), "", QLocale::Romanian },
193         { "Atte Virtanen", "", tr("Finnish translation"), "", QLocale::Finnish },
194         { "Aurélien Gâteau", "agateau", tr("Message indicator support") },
195         { "Awad Mackie", "firesock", tr("Chatview improvements") },
196         { "Armin K", "", tr("Build sytem fix") },
197         { "", "Ayonix", tr("Build system fix") },
198         { "Benjamin Zeller", "zbenjamin", tr("Windows build system fixes") },
199         { "Ben Rosser", "", tr("AppData metadata") },
200         { "Bernhard Scheirle", "", tr("Nicer tooltips, spell check and other improvements") },
201         { "Bruno Brigras", "", tr("Crash fixes") },
202         { "Bruno Patri", "", tr("French translation"), "", QLocale::French },
203         { "Celeste Paul", "seele", tr("Usability review") },
204         { "Chris Fuenty", "stitch", tr("SASL support") },
205         { "Chris Holland", "Shade / Zren", tr("Various improvements") },
206         { "Chris Le Sueur", "Fish-Face", tr("Various fixes and improvements") },
207         { "Chris Moeller", "kode54", tr("Various fixes and improvements") },
208         { "", "Condex", tr("Galician translation"), "", QLocale::Galician },
209         { "", "cordata", tr("Esperanto translation"), "", QLocale::Esperanto },
210         { "Daniel E. Moctezuma", "", tr("Japanese translation"), "", QLocale::Japanese },
211         { "Daniel Meltzer", "hydrogen", tr("Various fixes and improvements") },
212         { "Daniel Pielmeier", "billie", tr("Gentoo maintainer") },
213         { "Daniel Schaal", "", tr("Certificate handling improvements") },
214         { "Daniel Steinmetz", "son", tr("Early beta tester and bughunter (on Vista™!)") },
215         { "David Planella", "", tr("Translation system fixes") },
216         { "David Sansome", "", tr("OSX Notification Center support") },
217         { "David Roden", "Bombe", tr("Fixes") },
218         { "Deniz Türkoglu", "", tr("Mac fixes") },
219         { "Dennis Schridde", "devurandom", tr("D-Bus notifications") },
220         { "", "derpella", tr("Polish translation"), "", QLocale::Polish },
221         { "Diego Pettenò", "Flameeyes", tr("Build system improvements") },
222         { "Dirk Rettschlag", "MarcLandis", tr("Formatting support and other input line improvements, many other fixes") },
223         { "", "Dorian", tr("French translation"), "", QLocale::French },
224         { "Drew Patridge", "LinuxDolt", tr("BluesTheme stylesheet") },
225         { "Edward Hades", "", tr("Russian translation"), "", QLocale::Russian },
226         { "Fabiano Francesconi", "elbryan", tr("Italian translation"), "", QLocale::Italian },
227         { "Felix Geyer", "debfx", tr("Certificate handling improvements") },
228         { "Florent Castelli", "", tr("Sanitize topic handling") },
229         { "Frederik M.J. Vestre", "freqmod", tr("Norwegian translation"), "", QLocale::Norwegian },
230         { "Gábor Németh", "ELITE_x", tr("Hungarian translation"), "", QLocale::Hungarian },
231         { "Gryllida A", "gry", tr("IRC parser improvements") },
232         { "H. İbrahim Güngör", "igungor", tr("Turkish translation"), "", QLocale::Turkish },
233         { "Hannah von Reth", "TheOneRing", tr("Windows build support and Appveyor maintenance, snorenotify backend") },
234         { "Harald Fernengel", "harryF", tr("Initial Qt5 support") },
235         { "Harald Sitter", "apachelogger", tr("{Ku|U}buntu packager, motivator, promoter") },
236         { "Hendrik Leppkes", "nevcairiel", tr("Various features and improvements") },
237         { "Henning Rohlfs", "honk", tr("Various fixes") },
238         { "J-P Nurmi", "", tr("Various fixes") },
239         { "Jaak Ristioja", "", tr("Bugfixes") },
240         { "Jan Alexander Steffens", "heftig", tr("Fixes") },
241         { "Janne Koschinski", "justJanne", tr("QuasselDroid and Java wizardess, documentation, bugfixes, many valuable technical discussions") },
242         { "Jason Joyce", "", tr("Python improvements") },
243         { "Jason Lynch", "", tr("Bugfixes") },
244         { "Jens Arnold", "amiconn", tr("Postgres migration fixes") },
245         { "Jerome Leclanche", "Adys", tr("Context menu fixes") },
246         { "Jesper Thomschütz", "", tr("Various fixes") },
247         { "Jiri Grönroos", "", tr("Finnish translation"), "", QLocale::Finnish },
248         { "Johannes Huber", "johu", tr("Many fixes and improvements, bug triaging") },
249         { "John Hand", "nox", tr("Original \"All-Seeing Eye\" logo") },
250         { "Jonas Heese", "Dante", tr("Project founder, various improvements") },
251         { "Joshua T Corbin", "tvakah", tr("Various fixes") },
252         { "Jovan Jojkić", "", tr("Serbian translation"), "", QLocale::Serbian },
253         { "Jure Repinc", "JLP", tr("Slovenian translation"), "", QLocale::Slovenian },
254         { "Jussi Schultink", "jussi01", tr("Tireless tester, {Ku|U}buntu tester and lobbyist, liters of delicious Finnish alcohol") },
255         { "K. Ernest Lee", "iFire", tr("Qt5 porting help, Travis CI setup") },
256         { "Kevin Funk", "KRF", tr("German translation"), "", QLocale::German },
257         { "Kimmo Huoman", "kipe", tr("Buffer merge improvements") },
258         { "Konstantin Bläsi", "", tr("Fixes") },
259         { "", "Larso", tr("Finnish translation"), "", QLocale::Finnish },
260         { "Lasse Liehu", "", tr("Finnish translation"), "", QLocale::Finnish },
261         { "Leo Franchi", "", tr("OSX improvements") },
262         { "Liudas Alisauskas", "", tr("Lithuanian translation"), "", QLocale::Lithuanian },
263         { "Luke Faraone", "", tr("Documentation fixes") },
264         { "Maia Kozheva", "", tr("Russian translation"), "", QLocale::Russian },
265         { "Marco Genise", "kaffeedoktor", tr("Ideas, hacking, initial motivation") },
266         { "Marco Paolone", "Quizzlo", tr("Italian translation"), "", QLocale::Italian },
267         { "Martin Mayer", "m4yer", tr("German translation"), "", QLocale::German },
268         { "Martin Sandsmark", "sandsmark", tr("Many fixes and improvements, Sonnet support, QuasselDroid") },
269         { "Matthias Coy", "pennywise", tr("German translation"), "", QLocale::German },
270         { "Mattia Basaglia", "", tr("Fixes") },
271         { "Michael Groh", "brot", tr("German translation, fixes"), "", QLocale::German },
272         { "Michael Kedzierski", "ycros", tr("Mac fixes") },
273         { "Michael Marley", "mamarley", tr("Many fixes and improvements; Ubuntu PPAs") },
274         { "Miguel Revilla", "", tr("Spanish translation"), "", QLocale::Spanish },
275         { "Nuno Pinheiro", "", tr("Tons of Oxygen icons including the Quassel logo") },
276         { "Patrick Lauer", "bonsaikitten", tr("Gentoo maintainer") },
277         { "Paul Klumpp", "Haudrauf", tr("Initial design and main window layout") },
278         { "Pavel Volkovitskiy", "int", tr("Early beta tester and bughunter") },
279         { "Per Nielsen", "", tr("Danish translation"), "", QLocale::Danish },
280         { "Pete Beardmore", "elbeardmorez", tr("Linewrap for input line") },
281         { "Petr Bena", "", tr("Performance improvements and cleanups") },
282         { "Pierre-Hugues Husson", "", tr("/print command") },
283         { "Pierre Schweitzer", "", tr("Performance improvements") },
284         { "Ramanathan Sivagurunathan", "", tr("Bugfixes") },
285         { "Regis Perrin", "ZRegis", tr("French translation"), "", QLocale::French },
286         { "Rolf Eike Beer", "", tr("Build system fixes") },
287         { "Roscoe van Wyk", "", tr("Bugfixes") },
288         { "Rüdiger Sonderfeld", "ruediger", tr("Emacs keybindings") },
289         { "Sai Nane", "esainane", tr("Various fixes") },
290         { "", "salnx", tr("Highlight configuration improvements") },
291         { "Scott Kitterman", "ScottK", tr("Kubuntu packager, (packaging/build system) bughunter") },
292         { "Sebastian Meyer", "", tr("Bugfixes") },
293         { "Sebastien Fricker", "", tr("Audio backend improvements") },
294         { "Ryan Bales", "selabnayr", tr("Improvements") },
295         { "", "sfionov", tr("Russian translation"), "", QLocale::Russian },
296         { "Simon Philips", "", tr("Dutch translation"), "", QLocale::Dutch },
297         { "Sjors Gielen", "dazjorz", tr("Bugfixes") },
298         { "Stefanos Sofroniou", "", tr("Greek translation"), "", QLocale::Greek },
299         { "Stella Rouzi", "differentreality", tr("Greek translation"), "", QLocale::Greek },
300         { "Rafael Belmonte", "EagleScreen", tr("Spanish translation"), "", QLocale::Spanish },
301         { "Raul Salinas-Monteagudo", "", tr("Fixes") },
302         { "Rolf Eike Beer", "DerDakon", tr("Build system improvements") },
303         { "Rolf Michael Bislin", "romibi", tr("Windows build support, automated OSX builds in Travis, various improvements") },
304         { "Sergiu Bivol", "", tr("Romanian translation"), "", QLocale::Romanian },
305         { "Tae-Hoon Kwon", "", tr("Korean translation"), "", QLocale::Korean },
306         { "Terje Andersen", "tan", tr("Norwegian translation, documentation") },
307         { "Theo Chatzimichos", "tampakrap", tr("Greek translation"), "", QLocale::Greek },
308         { "Theofilos Intzoglou", "", tr("Greek translation"), "", QLocale::Greek },
309         { "Thomas Hogh", "Datafreak", tr("Former Windows builder") },
310         { "Thomas Müller", "", tr("Fixes, Debian packaging") },
311         { "Tim Schumacher", "xAFFE", tr("Fixes and feedback") },
312         { "", "ToBeFree", tr("German translation"), "", QLocale::German },
313         { "Tomáš Chvátal", "scarabeus", tr("Czech translation"), "", QLocale::Czech },
314         { "Veeti Paananen", "", tr("Certificate handling improvements") },
315         { "Vit Pelcak", "", tr("Czech translation"), "", QLocale::Czech },
316         { "Volkan Gezer", "", tr("Turkish translation"), "", QLocale::Turkish },
317         { "Weng Xuetian", "wengxt", tr("Build system fix") },
318         { "Yaohan Chen", "hagabaka", tr("Network detection improvements") },
319         { "Yuri Chornoivan", "", tr("Ukrainian translation"), "", QLocale::Ukrainian },
320         { "Zé", "", tr("Portuguese translation"), "", QLocale::Portuguese },
321         { "", "zeugma", tr("Turkish translation"), "", QLocale::Turkish }
322     });
323 }