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> &copy; 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 &lt;bjoern.nilsen@bjoernen.com&gt;<br>"
0053                         "Fredrik Berg Kj\xc3\xb8lstad &lt;fredrikbk@hotmail.com&gt;<br>")
0054                 + "<p><b>" + tr("Contributors") + "</b><br>"
0055                 + QString::fromUtf8(
0056                     "Eric Stolten &lt;stoltene2@gmail.com&gt;<br>"
0057                     "Josh Green &lt;josh@resonance.org&gt;<br>"
0058                     "Jehan Pag\xc3\xa9s<br>"
0059                 "Tim Band<br>"
0060                 "Ying-Chun Liu (PaulLiu) &lt;paulliu@debian.org&gt;<br>"
0061                 "Barak A. Pearlmutter &lt;bap@debian.org&gt;<br>"
0062                 "Cyril Brulebois &lt;kibi@debian.org&gt;<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 &lt;helb@skatekralovice.com&gt; (" + tr("Czech") + ")<br>"
0070                 "Gorazd Bizjak and Matej Lavreni &lt;info@zapstudio.net&gt; (" + tr("Slovenian") + ")<br>"
0071                 "Guillaume B &lt;littletux@zarb.org&gt; (" + tr("French") + ")<br>"
0072                 "Martin Herweg &lt;m.herweg@gmx.de&gt; (" + tr("German") + ")<br>"
0073                 + QString::fromUtf8(
0074                 "Jos\xc3\xa9 Jorge &lt;jjorge@free.fr&gt; (") + tr("Portuguese") + ")<br>"
0075                 + QString::fromUtf8(
0076                 "Manuel Qui\xc3\xb1ones &lt;manuel.por.aca@gmail.com&gt; (") + tr("Spanish") + ")<br>"
0077                 "David Hjelm &lt;dav.hjelm@spray.se&gt; (" + tr("Swedish") + ")<br>"
0078                 + QString::fromUtf8(
0079                 "Koray L\xc3\xb6ker &lt;loker@pardus.org.tr&gt; (") + tr("Turkish") + ")<br>"
0080                 "Diego Giordano &lt;fusion_machine@tin.it&gt; (" + tr("Italian") + ")<br>"
0081                 "Matteo Comisso &lt;teomatteo8.9@hotmail.it&gt; (" + tr("Italian") + ")<br>"
0082                 "Wei-Lun Chao &lt;bluebat@member.fsf.org&gt; (" + 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 &lt;gorazd@zapstudio.net&gt;<br>"
0089                 "<p><b>" + tr("Coordinating") + "</b><br>"
0090                 "Herman Robak &lt;herman@skolelinux.no&gt;<br>"
0091                 + QString::fromUtf8(
0092                 "\xc3\x98yvind Kol\xc3\xa5s &lt;pippin@gimp.org&gt;</p>")
0093                 + "<p><b>" + tr("Testing") + "</b><br>"
0094                 + QString::fromUtf8(
0095                 "Tore Sinding Bekkedal &lt;toresbe@ifi.uio.no&gt;<br>"
0096                 "Finn Arne Johansen &lt;faj@bzz.no&gt;<br>"
0097                 "Halvor Borgen &lt;halvor.borgen@hig.no&gt;<br>"
0098                 "Bj\xc3\xb8rn Are Hansen &lt;post@bahansen.net&gt;<br>"
0099                 "John Steinar Bild\xc3\xb8y &lt;johnsbil@haldenfriskole.no&gt;<br>"
0100                 "Ole-Anders Andreassen &lt;ole-anders.andreassen@sunndal.kommune.no&gt;<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