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
19
#include "aboutdialog.h"
23
#include <QPushButton>
25
#include <QDialogButtonBox>
30
AboutDialog::AboutDialog(QWidget * parent, Qt::WindowFlags f)
33
setWindowTitle( tr("About SMPlayer") );
35
logo = new QLabel(this);
36
logo->setPixmap( Images::icon("logo", 64) );
38
intro = new QLabel(this);
39
intro->setWordWrap(true);
41
foot = new QLabel(this);
42
foot->setOpenExternalLinks(true);
44
credits = new QTextEdit(this);
45
credits->setReadOnly(true);
46
credits->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Preferred );
48
ok_button = new QDialogButtonBox( QDialogButtonBox::Ok );
49
connect( ok_button, SIGNAL(accepted()), this, SLOT(accept()) );
51
QVBoxLayout * lright = new QVBoxLayout;
52
lright->addWidget( intro );
53
lright->addWidget( credits );
54
lright->addWidget( foot );
56
QVBoxLayout * lleft = new QVBoxLayout;
57
lleft->addWidget( logo );
60
QHBoxLayout * lmain = new QHBoxLayout;
61
lmain->addLayout( lleft );
62
lmain->addLayout( lright );
64
QHBoxLayout * lbutton = new QHBoxLayout;
65
lbutton->addStretch(1);
66
lbutton->addWidget( ok_button );
67
lbutton->addStretch(1);
69
QVBoxLayout * lwidget = new QVBoxLayout(this);
70
lwidget->addLayout( lmain );
71
//lwidget->addWidget( foot );
72
lwidget->addLayout( lbutton );
75
"<b>SMPlayer</b> © 2006-2008 RVM <rvm@escomposlinux.org><br><br>"
76
"<b>" + tr("Version: %1").arg(smplayerVersion()) + "</b><br>" +
79
tr("Compiled with KDE support") + "<br>" +
83
tr("Compiled with Qt %1").arg(QT_VERSION_STR) + "<br><br>"
85
tr("This program is free software; you can redistribute it and/or modify "
86
"it under the terms of the GNU General Public License as published by "
87
"the Free Software Foundation; either version 2 of the License, or "
88
"(at your option) any later version.") + "</i>");
93
trad(tr("German"), "Henrikx") +
94
trad(tr("Slovak"), "Sweto <peter.mendel@gmail.com>") +
95
trad(tr("Italian"), "Giancarlo Scola <giancarlo@codexcoop.it>") +
96
trad(tr("French"), tr("%1, %2 and %3")
97
.arg("Olivier g <1got@caramail.com>")
98
.arg("Temet <goondy@free.fr>")
99
.arg("Kud Gray <kud.gray@gmail.com>") ) +
100
trad(tr("Simplified-Chinese"), "Tim Green <iamtimgreen@gmail.com>") +
101
trad(tr("Russian"), tr("%1 and %2")
102
.arg("Yurkovsky Andrey <anyr@tut.by>")
103
.arg(QString::fromUtf8("Белый Владимир <wiselord1983@gmail.com>")))+
104
trad(tr("Hungarian"), "Charles Barcza <kbarcza@blackpanther.hu>") +
105
trad(tr("Polish"), tr("%1 and %2")
106
.arg("qla <qla0@vp.pl>")
107
.arg("Jarek <ajep9691@wp.pl>") ) +
108
trad(tr("Japanese"), "Nardog <nardog@e2umail.com>") +
109
trad(tr("Dutch"), "Wesley S. <wesley@ubuntu-nl.org>") +
110
trad(tr("Ukrainian"), "Motsyo Gennadi <drool@altlinux.ru>") +
111
trad(tr("Portuguese - Brazil"), "Ventura <ventura.barbeiro@terra.com.br>") +
112
trad(tr("Georgian"), "George Machitidze <giomac@gmail.com>") +
113
trad(tr("Czech"), QString::fromUtf8("Martin Dvořák <martin.dvorak@centrum.cz>")) +
114
trad(tr("Bulgarian"), "<marzeliv@mail.bg>") +
115
trad(tr("Turkish"), "alper er <alperer@gmail.com>") +
116
trad(tr("Swedish"), "Leif Larsson <leif.larsson@gmail.com>") +
117
trad(tr("Serbian"), "Kunalagon Umuhanik <kunalagon@gmail.com>") +
118
trad(tr("Traditional Chinese"), "Hoopoe <dai715.tw@yahoo.com.tw>") +
119
trad(tr("Romanian"), "DoruH <doruhushhush@hotmail.com>") +
120
trad(tr("Portuguese - Portugal"), "Waxman <waxman.pt@gmail.com>") +
121
trad(tr("Greek"), "my80s <wamy80s@gmail.com>") +
122
trad(tr("Finnish"), "peeaivo <peeaivo@gmail.com>") +
124
tr("Logo designed by %1").arg("Charles Barcza <kbarcza@blackpanther.hu>") +
131
url = tr("http://smplayer.sourceforge.net/en/windows/download.php",
132
"If the web page is translated into your language you can "
133
"change the URL so it points to the download page in the translation."
134
"Otherwise leave as is.");
136
url = tr("http://smplayer.sourceforge.net/en/linux/download.php",
137
"If the web page is translated into your language you can "
138
"change the URL so it points to the download page in the translation."
139
"Otherwise leave as is.");
142
url = "http://smplayer.sourceforge.net";
144
tr("Get updates at: %1")
145
.arg("<br><a href=\"" + url + "\">" + url +"</a>") );
149
setFixedSize( sizeHint() );
153
AboutDialog::~AboutDialog() {
156
QString AboutDialog::trad(const QString & lang, const QString & author) {
157
return "<li>"+ tr("<b>%1</b>: %2").arg(lang).arg(author) + "</li>";
160
#include "moc_aboutdialog.cpp"