AstRawDark
Manage your astrophoto dark frames
 All Classes Functions Variables Enumerations Enumerator Pages
aboutDialog.cpp
1 /*
2  * AstRawDark
3  *
4  * Copyright (C) 2015 - Frédéric CORNU
5  *
6  * This program is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program. If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #include "aboutDialog.h"
21 #include "ui_aboutDialog.h"
22 #include "globals.h"
23 
24 AboutDialog::AboutDialog(QWidget *parent) :
25  QDialog(parent),
26  ui(new Ui::AboutDialog)
27 {
28  ui->setupUi(this);
29 
30  QString aboutString;
31 
32  aboutString.append( "<center>" )
33  .append( "<h2>" )
34  .append( "AstRawDark" )
35  .append( "</h2>" )
36  .append( "<p>" )
37  .append( tr( "Version" ) )
38  .append( " : " )
39  .append( Globals::VERSION_STRING )
40  .append( "</p>" )
41  .append( "<p>" )
42  .append( tr( "Author" ) )
43  .append(
44  " : Fr&eacute;d&eacute;ric CORNU <a href=\"mailto:fcornu@wardsback.org\">fcornu@wardsback.org</a>" )
45  .append( "</p>" )
46  .append( "<p>" )
47  .append( tr( "License" ) )
48  .append( " : <a href=\"http://www.gnu.org/licenses/gpl-3.0.txt\">General Public License v3</a>" )
49  .append( "</p>" )
50  .append( "</center>" );
51 
52  ui->aboutLabel->setText( aboutString );
53 
54  QLabel* lblCreditExiv2 = new QLabel(this);
55 
56  lblCreditExiv2->setText(QString("<a href=\"http://www.exiv2.org/\">Exiv2 library</a> : ")
57  .append(tr("EXIF metadata handling")));
58 
59  lblCreditExiv2->setOpenExternalLinks(true);
60  ui->grpCredits->layout()->addWidget(lblCreditExiv2);
61 
62  QLabel* lblCreditsQCustomPlot = new QLabel(this);
63 
64  lblCreditsQCustomPlot->setText(QString("<a href=\"http://www.qcustomplot.com/\">QCustomPlot Widget</a> : ")
65  .append(tr("Data plotting")));
66 
67  lblCreditsQCustomPlot->setOpenExternalLinks(true);
68  ui->grpCredits->layout()->addWidget(lblCreditsQCustomPlot);
69 
70 }
71 
73 {
74  delete ui;
75 }
76 
77 void AboutDialog::changeEvent(QEvent *e)
78 {
80  switch (e->type()) {
81  case QEvent::LanguageChange:
82  ui->retranslateUi(this);
83  break;
84  default:
85  break;
86  }
87 }