Edric Milaret | 627500d | 2015-03-27 16:41:40 -0400 | [diff] [blame] | 1 | /*************************************************************************** |
Anthony Léonard | 2fde81d | 2017-04-17 10:06:55 -0400 | [diff] [blame] | 2 | * Copyright (C) 2015-2017 by Savoir-faire Linux * |
Edric Milaret | 627500d | 2015-03-27 16:41:40 -0400 | [diff] [blame] | 3 | * Author: Edric Ladent Milaret <edric.ladent-milaret@savoirfairelinux.com>* |
| 4 | * * |
| 5 | * This program is free software; you can redistribute it and/or modify * |
| 6 | * it under the terms of the GNU General Public License as published by * |
| 7 | * the Free Software Foundation; either version 3 of the License, or * |
| 8 | * (at your option) any later version. * |
| 9 | * * |
| 10 | * This program is distributed in the hope that it will be useful, * |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of * |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
| 13 | * GNU General Public License for more details. * |
| 14 | * * |
| 15 | * You should have received a copy of the GNU General Public License * |
| 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. * |
| 17 | **************************************************************************/ |
| 18 | |
| 19 | #include "aboutdialog.h" |
| 20 | #include "ui_aboutdialog.h" |
| 21 | |
Andreas Traczyk | 43c0823 | 2018-10-31 13:42:09 -0400 | [diff] [blame] | 22 | #include "version.h" |
| 23 | |
Edric Milaret | 627500d | 2015-03-27 16:41:40 -0400 | [diff] [blame] | 24 | AboutDialog::AboutDialog(QWidget *parent) : |
| 25 | QDialog(parent), |
| 26 | ui(new Ui::AboutDialog) |
| 27 | { |
| 28 | ui->setupUi(this); |
| 29 | |
Edric Milaret | 627500d | 2015-03-27 16:41:40 -0400 | [diff] [blame] | 30 | this->setFixedSize(this->width(),this->height()); |
| 31 | ui->creditsWidget->hide(); |
Andreas Traczyk | 43c0823 | 2018-10-31 13:42:09 -0400 | [diff] [blame] | 32 | ui->gitVersionLabel->setText(QString("%1: %2").arg(tr("version"), QString(VERSION_STRING))); |
Edric Milaret | 1a9495d | 2015-09-18 10:11:32 -0400 | [diff] [blame] | 33 | |
| 34 | ui->creditsBrowser->setHtml("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">" |
| 35 | "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">" |
| 36 | "p, li { white-space: pre-wrap; }" |
| 37 | "</style></head><body style=\" font-family:'Cantarell'; font-size:11pt; font-weight:400; font-style:normal;\">" |
| 38 | "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">" |
| 39 | + tr("Created by:") + "</span></p>" |
| 40 | "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Adrien Béraud</p>" |
Anthony Léonard | 4404a4d | 2016-11-03 16:33:26 -0400 | [diff] [blame] | 41 | "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Alexandr Sergheev</p>" |
Edric Milaret | 1a9495d | 2015-09-18 10:11:32 -0400 | [diff] [blame] | 42 | "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Alexandre Lision</p>" |
Anthony Léonard | 4404a4d | 2016-11-03 16:33:26 -0400 | [diff] [blame] | 43 | "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Alexandre Viau</p>" |
| 44 | "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Aline Bonnet</p>" |
| 45 | "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Andreas Traczyk</p>" |
| 46 | "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Anthony Léonard</p>" |
| 47 | "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Cyrille Béraud</p>" |
Dorina Mosku | 1efcca9 | 2016-11-10 13:54:25 -0500 | [diff] [blame] | 48 | "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Dorina Mosku</p>" |
Edric Milaret | 1a9495d | 2015-09-18 10:11:32 -0400 | [diff] [blame] | 49 | "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Édric Milaret</p>" |
| 50 | "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Éloi Bail</p>" |
| 51 | "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Emmanuel Lepage-Vallée</p>" |
Anthony Léonard | 4404a4d | 2016-11-03 16:33:26 -0400 | [diff] [blame] | 52 | "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Frédéric Guimont</p>" |
Edric Milaret | 1a9495d | 2015-09-18 10:11:32 -0400 | [diff] [blame] | 53 | "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Guillaume Roguez</p>" |
Olivier SOLDANO | 61ec64a | 2017-07-20 11:12:36 -0400 | [diff] [blame] | 54 | "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Hadrien De Sousa</p>" |
Guillaume Roguez | 5edddaf | 2015-11-13 10:06:13 -0500 | [diff] [blame] | 55 | "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Julien Grossholtz</p>" |
Anthony Léonard | 63a90c9 | 2017-07-19 11:05:27 -0400 | [diff] [blame] | 56 | "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Kateryna Kostiuk</p>" |
Anthony Léonard | 4404a4d | 2016-11-03 16:33:26 -0400 | [diff] [blame] | 57 | "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Loïc Siret</p>" |
Guillaume Roguez | 5edddaf | 2015-11-13 10:06:13 -0500 | [diff] [blame] | 58 | "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Nicolas Jäger</p>" |
Anthony Léonard | 4404a4d | 2016-11-03 16:33:26 -0400 | [diff] [blame] | 59 | "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Nicolas Reynaud</p>" |
| 60 | "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Olivier Gregoire</p>" |
| 61 | "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Olivier Soldano</p>" |
| 62 | "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Patrick Keroulas</p>" |
| 63 | "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Philippe Gorley</p>" |
| 64 | "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Romain Bertozzi</p>" |
Anthony Léonard | 63a90c9 | 2017-07-19 11:05:27 -0400 | [diff] [blame] | 65 | "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Sébastien Blin</p>" |
Anthony Léonard | 4404a4d | 2016-11-03 16:33:26 -0400 | [diff] [blame] | 66 | "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Seva Ivanov</p>" |
Anthony Léonard | 63a90c9 | 2017-07-19 11:05:27 -0400 | [diff] [blame] | 67 | "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Silbino Gonçalves Matado</p>" |
Guillaume Roguez | 5edddaf | 2015-11-13 10:06:13 -0500 | [diff] [blame] | 68 | "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Simon Désaulniers</p>" |
Edric Milaret | 1a9495d | 2015-09-18 10:11:32 -0400 | [diff] [blame] | 69 | "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Stepan Salenikovich</p>" |
Anthony Léonard | 4404a4d | 2016-11-03 16:33:26 -0400 | [diff] [blame] | 70 | "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Simon Zeni</p>" |
| 71 | "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Thibault Wittemberg</p>" |
Edric Milaret | 1a9495d | 2015-09-18 10:11:32 -0400 | [diff] [blame] | 72 | "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">" |
| 73 | + tr("Artwork by:") + "</span></p>" |
| 74 | "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Marianne Forget</p>" |
| 75 | "<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p>" |
| 76 | "<p align=\"center\" style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">" |
| 77 | + tr("Based on the SFLPhone project") + "</p>" |
| 78 | "<p align=\"center\" style=\"-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><br /></p></body></html>"); |
Edric Milaret | 627500d | 2015-03-27 16:41:40 -0400 | [diff] [blame] | 79 | } |
| 80 | |
| 81 | AboutDialog::~AboutDialog() |
| 82 | { |
| 83 | delete ui; |
| 84 | } |
| 85 | |
| 86 | void |
| 87 | AboutDialog::on_aboutButton_toggled(bool checked) |
| 88 | { |
| 89 | ui->creditsButton->setChecked(!checked); |
| 90 | ui->aboutWidget->setVisible(checked); |
| 91 | ui->creditsWidget->setVisible(!checked); |
| 92 | } |
| 93 | |
| 94 | void |
| 95 | AboutDialog::on_creditsButton_clicked(bool checked) |
| 96 | { |
| 97 | ui->aboutButton->setChecked(!checked); |
| 98 | ui->creditsWidget->setVisible(checked); |
| 99 | ui->aboutWidget->setVisible(!checked); |
| 100 | } |