/* smplayer, GUI front-end for mplayer. Copyright (C) 2007 Ricardo Villalba 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) any later version. 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "aboutdialog.h" #include #include #include #include "images.h" #include #include "version.h" AboutDialog::AboutDialog(QWidget * parent, const char * name, bool modal, WFlags f) : QDialog(parent, name, modal, f) { setCaption( tr("About SMPlayer") ); logo = new QLabel(this); logo->setPixmap( Images::icon("logo", 64) ); intro = new QLabel(this); #if QT_VERSION >= 0x040000 intro->setWordWrap(true); #endif foot = new QLabel(this), credits = new QTextEdit(this); credits->setReadOnly(true); ok_button = new QPushButton( tr("&Ok"), this ); ok_button->setDefault(true); ok_button->setAutoDefault(true); ok_button->setFocus(); connect( ok_button, SIGNAL(clicked()), this, SLOT(accept()) ); QVBoxLayout * lright = new QVBoxLayout(0, 4, 2); lright->addWidget( intro ); lright->addWidget( credits ); lright->addWidget( foot ); QVBoxLayout * lleft = new QVBoxLayout(0, 4, 2); lleft->addWidget( logo ); lleft->addStretch(1); QHBoxLayout * lmain = new QHBoxLayout(0, 4, 2); lmain->addLayout( lleft ); lmain->addLayout( lright ); QHBoxLayout * lbutton = new QHBoxLayout(0, 4, 2); lbutton->addStretch(1); lbutton->addWidget( ok_button ); lbutton->addStretch(1); QVBoxLayout * lwidget = new QVBoxLayout(this, 4, 2); lwidget->addLayout( lmain ); //lwidget->addWidget( foot ); lwidget->addLayout( lbutton ); intro->setText( "SMPlayer © 2006-2007 RVM <rvm@escomposlinux.org>

" "" + tr("Version: %1").arg(VERSION) + "
" + #if KDE_SUPPORT tr("Compiled with KDE support") + "
" + #endif "
" + tr("Qt version: %1").arg(QT_VERSION_STR) + "

" "" + tr("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) any later version.") + ""); credits->setText( tr("Translators:") + "
" "
    " "
  • Henrikx <forum.gleitz.info> (" + tr("German") + ")
  • " "
  • Sweto <peter.mendel@gmail.com> (" +tr("Slovak") + ")
  • " "
  • Giancarlo Scola <giancarlo@codexcoop.it> (" +tr("Italian") + ")
  • " "
  • " + tr("%1 and %2 (%3)").arg("Olivier g <1got@caramail.com>").arg("Temet <goondy@free.fr>").arg(tr("French")) + "
  • " "
  • Tim Green <iamtimgreen@gmail.com> (" +tr("Simplified-Chinese") + ")
  • " "
  • Yurkovsky Andrey <anyr@tut.by> (" +tr("Russian") + ")
  • " "
  • Charles Barcza <kbarcza@blackpanther.hu> (" +tr("Hungarian") + ")
  • " "
  • " + tr("%1 and %2 (%3)").arg("qla <qla0@vp.pl>").arg("Jarek <ajep9691@wp.pl>").arg(tr("Polish")) +"
  • " "
  • Nardog <nardog@e2umail.com> (" +tr("Japanese") + ")
  • " "
  • Wesley S. <wesley@ubuntu-nl.org> (" +tr("Dutch") + ")
  • " "
  • Motsyo Gennadi <drool@altlinux.ru> (" +tr("Ukrainian") + ")
  • " "
  • Ventura <ventura.barbeiro@terra.com.br> (" +tr("Portuguese - Brazil") + ")
  • " "
  • George Machitidze <giomac@gmail.com> (" +tr("Georgian") + ")
  • " "
  • " + QString::fromUtf8("Martin Dvořák") + " <martin.dvorak@centrum.cz> (" +tr("Czech") + ")
  • " "
  • <marzeliv@mail.bg> (" +tr("Bulgarian") + ")
  • " "
  • alper er <alperer@gmail.com> (" +tr("Turkish") + ")
  • " "
  • Leif Larsson <leif.larsson@gmail.com> (" +tr("Swedish") + ")
  • " "
  • Kunalagon Umuhanik <kunalagon@gmail.com> (" +tr("Serbian") + ")
  • " "
  • Hoopoe <dai715.tw@yahoo.com.tw> (" +tr("Traditional Chinese") + ")
  • " "
  • DoruH <doruhushhush@hotmail.com> (" +tr("Romanian") + ")
  • " "
  • Waxman <waxman.pt@gmail.com> (" +tr("Portuguese - Portugal") + ")
  • " "
" + tr("Logo designed by %1").arg("Charles Barcza <kbarcza@blackpanther.hu>") ); foot->setText( tr("Get updates at: %1") .arg("http://smplayer.sourceforge.net/") ); adjustSize(); setFixedSize( sizeHint() ); } AboutDialog::~AboutDialog() { }