1
/* smplayer, GUI front-end for mplayer.
2
Copyright (C) 2006-2008 Ricardo Villalba <rvm@escomposlinux.org>
4
This program is free software; you can redistribute it and/or modify
5
it under the terms of the GNU General Public License as published by
6
the Free Software Foundation; either version 2 of the License, or
7
(at your option) any later version.
9
This program is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
GNU General Public License for more details.
14
You should have received a copy of the GNU General Public License
15
along with this program; if not, write to the Free Software
16
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23
#include "preferences.h"
29
About::About(QWidget * parent, Qt::WindowFlags f)
33
setWindowIcon( Images::icon("logo", 64) );
35
logo->setPixmap( Images::icon("logo", 64) );
36
contrib_icon->setPixmap( Images::icon("contributors" ) );
37
translators_icon->setPixmap( Images::icon("translators" ) );
38
license_icon->setPixmap( Images::icon("license" ) );
40
QString mplayer_version;
41
if (pref->mplayer_detected_version > 0) {
42
mplayer_version = tr("Using MPlayer SVN r%1").arg(pref->mplayer_detected_version) + "<br><br>";
46
"<b>SMPlayer</b> © 2006-2008 Ricardo Villalba <rvm@escomposlinux.org><br><br>"
47
"<b>" + tr("Version: %1").arg(smplayerVersion()) + "</b>" +
49
tr("Compiled with Qt %1").arg(QT_VERSION_STR) + "<br><br>" +
51
tr("Visit our web for updates:") +" "+ link("http://smplayer.sf.net") +
53
tr("Get help in our forum:") +" " + link("http://smplayer.sf.net/forums") +
55
tr("You can support SMPlayer by making a donation.") +" "+
56
link("https://sourceforge.net/donate/index.php?group_id=185512", tr("More info"))
60
QString license_file = Helper::doc("gpl.html", pref->language);
61
if (QFile::exists(license_file)) {
63
fixed_font.setStyleHint(QFont::TypeWriter);
64
fixed_font.setFamily("Courier");
65
license->setFont(fixed_font);
67
QFile f(license_file);
68
if (f.open(QIODevice::ReadOnly)) {
69
license->setText(QString::fromUtf8(f.readAll().constData()));
75
tr("This program is free software; you can redistribute it and/or modify "
76
"it under the terms of the GNU General Public License as published by "
77
"the Free Software Foundation; either version 2 of the License, or "
78
"(at your option) any later version.") + "</i>");
81
translators->setText( getTranslators() );
83
contributions->setText(
84
tr("Some people have helped with their contributions:") +
86
contr("Charles Barcza <kbarcza@blackpanther.hu>", tr("SMPlayer logo")) +
87
contr("Florin Braghis <florin@libertv.ro>", tr("file associations for Windows")) +
88
contr("Matvey Kozhev <sikon@lucidfox.org>", tr("manpage for linux")) +
89
contr("profoX", tr("support for colored console output")) +
90
contr("redxii", tr("icon for file associations")) +
91
contr("LoRd_MuldeR", tr("patch for file associations")) +
95
// Copy the background color ("window") of the tab widget to the "base" color of the qtextbrowsers
96
// Problem, it doesn't work with some styles, so first we change the "window" color of the tab widgets.
97
info_tab->setAutoFillBackground(true);
98
contributions_tab->setAutoFillBackground(true);
99
translations_tab->setAutoFillBackground(true);
100
license_tab->setAutoFillBackground(true);
102
QPalette pal = info_tab->palette();
103
pal.setColor(QPalette::Window, palette().color(QPalette::Window) );
105
info_tab->setPalette(pal);
106
contributions_tab->setPalette(pal);
107
translations_tab->setPalette(pal);
108
license_tab->setPalette(pal);
110
QPalette p = info->palette();
111
//p.setBrush(QPalette::Base, info_tab->palette().window());
112
p.setColor(QPalette::Base, info_tab->palette().color(QPalette::Window));
115
contributions->setPalette(p);
116
translators->setPalette(p);
117
//license->setPalette(p);
123
QString About::getTranslators() {
125
tr("The following people have contributed with translations:") +
127
trad(tr("German"), "Henrikx") +
128
trad(tr("Slovak"), "Sweto <peter.mendel@gmail.com>") +
129
trad(tr("Italian"), "Giancarlo Scola <giancarlo@codexcoop.it>") +
130
trad(tr("French"), tr("%1, %2 and %3")
131
.arg("Olivier g <1got@caramail.com>")
132
.arg("Temet <goondy@free.fr>")
133
.arg("Kud Gray <kud.gray@gmail.com>") ) +
134
trad(tr("Simplified-Chinese"), "Tim Green <iamtimgreen@gmail.com>") +
135
trad(tr("Russian"), tr("%1 and %2")
136
.arg("Yurkovsky Andrey <anyr@tut.by>")
137
.arg(QString::fromUtf8("Белый Владимир <wiselord1983@gmail.com>")))+
138
trad(tr("Hungarian"), "Charles Barcza <kbarcza@blackpanther.hu>") +
139
trad(tr("Polish"), tr("%1 and %2")
140
.arg("qla <qla0@vp.pl>")
141
.arg("Jarek <ajep9691@wp.pl>") ) +
142
trad(tr("Japanese"), "Nardog <nardog@e2umail.com>") +
143
trad(tr("Dutch"), "Wesley S. <wesley@ubuntu-nl.org>") +
144
trad(tr("Ukrainian"), "Motsyo Gennadi <drool@altlinux.ru>") +
145
trad(tr("Portuguese - Brazil"), "Ventura <ventura.barbeiro@terra.com.br>") +
146
trad(tr("Georgian"), "George Machitidze <giomac@gmail.com>") +
147
trad(tr("Czech"), QString::fromUtf8("Martin Dvořák <martin.dvorak@centrum.cz>")) +
148
trad(tr("Bulgarian"), "<marzeliv@mail.bg>") +
149
trad(tr("Turkish"), "alper er <alperer@gmail.com>") +
150
trad(tr("Swedish"), "Leif Larsson <leif.larsson@gmail.com>") +
151
trad(tr("Serbian"), "Kunalagon Umuhanik <kunalagon@gmail.com>") +
152
trad(tr("Traditional Chinese"), "Hoopoe <dai715.tw@yahoo.com.tw>") +
153
trad(tr("Romanian"), "DoruH <doruhushhush@hotmail.com>") +
154
trad(tr("Portuguese - Portugal"), "Waxman <waxman.pt@gmail.com>") +
155
trad(tr("Greek"), "my80s <wamy80s@gmail.com>") +
156
trad(tr("Finnish"), "peeaivo <peeaivo@gmail.com>") +
157
trad(tr("Korean"), "Heesu Yoon <imsu30@gmail.com>") +
161
QString About::trad(const QString & lang, const QString & author) {
162
return "<li>"+ tr("<b>%1</b>: %2").arg(lang).arg(author) + "</li>";
165
QString About::link(const QString & url, QString name) {
166
if (name.isEmpty()) name = url;
167
return QString("<a href=\"" + url + "\">" + name +"</a>");
170
QString About::contr(const QString & author, const QString & thing) {
171
return "<li>"+ tr("<b>%1</b> (%2)").arg(author).arg(thing) +"</li>";
174
#include "moc_about.cpp"