File indexing completed on 2024-05-12 16:23:31
0001 /*************************************************************************** 0002 * Copyright (C) 2005-2017 by Linuxstopmotion contributors; * 0003 * see the AUTHORS file for details. * 0004 * * 0005 * This program is free software; you can redistribute it and/or modify * 0006 * it under the terms of the GNU General Public License as published by * 0007 * the Free Software Foundation; either version 2 of the License, or * 0008 * (at your option) any later version. * 0009 * * 0010 * This program is distributed in the hope that it will be useful, * 0011 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 0012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 0013 * GNU General Public License for more details. * 0014 * * 0015 * You should have received a copy of the GNU General Public License * 0016 * along with this program; if not, write to the * 0017 * Free Software Foundation, Inc., * 0018 * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 0019 ***************************************************************************/ 0020 #include "aboutdialog.h" 0021 0022 #include "licence.h" 0023 #include "graphics/stopmotion_logo.xpm" 0024 0025 #include <QLabel> 0026 #include <QPushButton> 0027 #include <QTextEdit> 0028 #include <QVBoxLayout> 0029 0030 AboutDialog::AboutDialog(QWidget *parent) 0031 : QDialog(parent) 0032 { 0033 tabWidget = new QTabWidget; 0034 0035 QWidget *widget = new QWidget; 0036 QVBoxLayout *layout = new QVBoxLayout; 0037 QLabel *label = new QLabel; 0038 label->setPixmap(QPixmap(stopmotion_logo)); 0039 label->setScaledContents(true); 0040 layout->addWidget(label); 0041 layout->addWidget( new QLabel( 0042 "<p>" + tr("This is the Stopmotion application for creating stop motion animations.") + "</p>" 0043 + QString::fromUtf8( 0044 "<p> © 2005-2016 Bj\xc3\xb8rn Erik Nilsen, Fredrik Berg Kj\xc3\xb8lstad et al </p>"))); 0045 widget->setLayout(layout); 0046 0047 tabWidget->addTab(widget, tr("&About") ); 0048 0049 tabWidget->addTab( new QLabel( 0050 "<p><b>" + tr("Main developers") + "</b><br>" 0051 + QString::fromUtf8( 0052 "Bj\xc3\xb8rn Erik Nilsen <bjoern.nilsen@bjoernen.com><br>" 0053 "Fredrik Berg Kj\xc3\xb8lstad <fredrikbk@hotmail.com><br>") 0054 + "<p><b>" + tr("Contributors") + "</b><br>" 0055 + QString::fromUtf8( 0056 "Eric Stolten <stoltene2@gmail.com><br>" 0057 "Josh Green <josh@resonance.org><br>" 0058 "Jehan Pag\xc3\xa9s<br>" 0059 "Tim Band<br>" 0060 "Ying-Chun Liu (PaulLiu) <paulliu@debian.org><br>" 0061 "Barak A. Pearlmutter <bap@debian.org><br>" 0062 "Cyril Brulebois <kibi@debian.org><br>") 0063 + "<p>"), 0064 tr("A&uthors")); 0065 0066 QTextEdit *qte = new QTextEdit; 0067 qte->setHtml( 0068 "<p><b>" + tr("Translation") + "</b><br>" 0069 "George Helebrant <helb@skatekralovice.com> (" + tr("Czech") + ")<br>" 0070 "Gorazd Bizjak and Matej Lavreni <info@zapstudio.net> (" + tr("Slovenian") + ")<br>" 0071 "Guillaume B <littletux@zarb.org> (" + tr("French") + ")<br>" 0072 "Martin Herweg <m.herweg@gmx.de> (" + tr("German") + ")<br>" 0073 + QString::fromUtf8( 0074 "Jos\xc3\xa9 Jorge <jjorge@free.fr> (") + tr("Portuguese") + ")<br>" 0075 + QString::fromUtf8( 0076 "Manuel Qui\xc3\xb1ones <manuel.por.aca@gmail.com> (") + tr("Spanish") + ")<br>" 0077 "David Hjelm <dav.hjelm@spray.se> (" + tr("Swedish") + ")<br>" 0078 + QString::fromUtf8( 0079 "Koray L\xc3\xb6ker <loker@pardus.org.tr> (") + tr("Turkish") + ")<br>" 0080 "Diego Giordano <fusion_machine@tin.it> (" + tr("Italian") + ")<br>" 0081 "Matteo Comisso <teomatteo8.9@hotmail.it> (" + tr("Italian") + ")<br>" 0082 "Wei-Lun Chao <bluebat@member.fsf.org> (" + tr("Traditional Chinese") +")<br>" 0083 "Maysara Abdulhaq and Ahmad Gharbeia of Arab Digital Expression Foundation (" + tr("Arabic") + ")<br>" 0084 "Denis Fokin (" + tr("Russian") + ")<br>" 0085 "Yaron (sh-yaron) (" + tr("Hebrew") + ")<br>" 0086 "</p>" 0087 "<p><b>" + tr("Logo") + "</b><br>" 0088 "Gorazd Bizjak <gorazd@zapstudio.net><br>" 0089 "<p><b>" + tr("Coordinating") + "</b><br>" 0090 "Herman Robak <herman@skolelinux.no><br>" 0091 + QString::fromUtf8( 0092 "\xc3\x98yvind Kol\xc3\xa5s <pippin@gimp.org></p>") 0093 + "<p><b>" + tr("Testing") + "</b><br>" 0094 + QString::fromUtf8( 0095 "Tore Sinding Bekkedal <toresbe@ifi.uio.no><br>" 0096 "Finn Arne Johansen <faj@bzz.no><br>" 0097 "Halvor Borgen <halvor.borgen@hig.no><br>" 0098 "Bj\xc3\xb8rn Are Hansen <post@bahansen.net><br>" 0099 "John Steinar Bild\xc3\xb8y <johnsbil@haldenfriskole.no><br>" 0100 "Ole-Anders Andreassen <ole-anders.andreassen@sunndal.kommune.no><br>" 0101 "</p>") 0102 ); 0103 qte->setReadOnly(true); 0104 qte->setBackgroundRole(backgroundRole()); 0105 tabWidget->addTab(qte, tr("&Thanks To")); 0106 0107 QTextEdit *licenceText = new QTextEdit; 0108 licenceText->setReadOnly(true); 0109 licenceText->setPlainText(licence); 0110 tabWidget->addTab(licenceText, tr("&Licence Agreement")); 0111 0112 QPushButton *okButton = new QPushButton(tr("OK"), this); 0113 connect(okButton, SIGNAL(clicked()), this, SLOT(close())); 0114 0115 QHBoxLayout *buttonLayout = new QHBoxLayout; 0116 buttonLayout->addStretch(1); 0117 buttonLayout->addWidget(okButton); 0118 0119 QVBoxLayout *mainLayout = new QVBoxLayout; 0120 mainLayout->addWidget(tabWidget); 0121 mainLayout->addLayout(buttonLayout); 0122 setLayout(mainLayout); 0123 0124 setAttribute(Qt::WA_DeleteOnClose); 0125 setWindowTitle(tr("About")); 0126 setMinimumWidth(550); 0127 } 0128