| 1 |
// Copyright (C) 2014 Gilles Degottex <[email protected]> |
| 2 |
|
| 3 |
// This file is part of "fmit" |
| 4 |
|
| 5 |
// "fmit" 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 2 of the License, or |
| 8 |
// (at your option) any later version. |
| 9 |
// |
| 10 |
// "fmit" 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, write to the Free Software |
| 17 |
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 18 |
|
| 19 |
|
| 20 |
#include "aboutbox.h" |
| 21 |
#include "ui_aboutbox.h" |
| 22 |
|
| 23 |
#include <QFile> |
| 24 |
#include <QTextStream> |
| 25 |
|
| 26 |
//#include "wmainwindow.h" |
| 27 |
#include "qthelper.h" |
| 28 |
//#include "qaesigproc.h" |
| 29 |
//#include "ftsound.h" |
| 30 |
|
| 31 |
extern QString FMITVersion(); |
| 32 |
|
| 33 |
AboutBox::AboutBox(QWidget *parent) : |
| 34 |
QDialog(parent), |
| 35 |
ui(new Ui::AboutBox) |
| 36 |
{ |
| 37 |
ui->setupUi(this); |
| 38 |
|
| 39 |
QString fullversion = "Version "+FMITVersion(); |
| 40 |
fullversion += "\nCompiled by "+getCompilerVersion()+" for "; |
| 41 |
#ifdef Q_PROCESSOR_X86_32 |
| 42 |
fullversion += "32bits"; |
| 43 |
#endif |
| 44 |
#ifdef Q_PROCESSOR_X86_64 |
| 45 |
fullversion += "64bits"; |
| 46 |
#endif |
| 47 |
fullversion += "\nCompiled with Qt "+QString(QT_VERSION_STR)+" Running with Qt "+qVersion(); // Add Qt versions |
| 48 |
ui->lblVersion->setText(fullversion); |
| 49 |
|
| 50 |
QString txt = ""; |
| 51 |
|
| 52 |
txt += "<h4>Purpose</h4>"; |
| 53 |
txt += "<i>FMIT</i> is a graphical utility for tuning your musical instruments, with error and volume history and advanced features. "; |
| 54 |
|
| 55 |
txt += "<p>To suggest a new functionality or report a bug, do not hesitate to <a href='https://github.com/gillesdegottex/fmit/issues'>raise an issue on GitHub.</a></p>"; |
| 56 |
|
| 57 |
txt += "<h4>Legal</h4>\ |
| 58 |
The core of this software is under the <a href=\"http://www.gnu.org/licenses/gpl.html\">GPL License</a>.\ |
| 59 |
All original source files of any kind (code source and any ressources) are under the same license, except\ |
| 60 |
the content of the \"libs\" directory, which contains imported source code under various licenses.\ |
| 61 |
<br/><br/>\ |
| 62 |
Copyright © 2004 Gilles Degottex <a href='mailto:[email protected]'><[email protected]></a><br/>\ |
| 63 |
<i>FMIT</i> is coded in C++/<a href='http://qt-project.org'>Qt</a>.\ |
| 64 |
The source code is hosted on <a href='https://github.com/gillesdegottex/fmit'>GitHub</a>."; |
| 65 |
|
| 66 |
txt += "<h4>Disclaimer</h4>\ |
| 67 |
ALL THE FUNCTIONALITIES OF <I>FMIT</I> AND ITS CODE ARE PROVIDED WITHOUT ANY WARRANTY \ |
| 68 |
(E.G. THERE IS NO WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE). \ |
| 69 |
ALSO, THE COPYRIGHT HOLDERS AND CONTRIBUTORS DO NOT TAKE ANY LEGAL RESPONSIBILITY \ |
| 70 |
REGARDING THE IMPLEMENTATIONS OF THE PROCESSING TECHNIQUES OR ALGORITHMS \ |
| 71 |
(E.G. CONSEQUENCES OF BUGS OR ERRONEOUS IMPLEMENTATIONS).<br/> \ |
| 72 |
Please see the README.txt file for additional information."; |
| 73 |
|
| 74 |
ui->txtAbout->setText(txt); |
| 75 |
|
| 76 |
|
| 77 |
// Libraries |
| 78 |
|
| 79 |
// FFT |
| 80 |
// QString fftinfostr = ""; |
| 81 |
// fftinfostr += "<i>Fast Fourier Transform (FFT):</i> "+qae::FFTwrapper::getLibraryInfo(); |
| 82 |
// fftinfostr += " ("+QString::number(sizeof(FFTTYPE)*8)+"bits("; |
| 83 |
// if(sizeof(FFTTYPE)==4) fftinfostr += "single"; |
| 84 |
// if(sizeof(FFTTYPE)==8) fftinfostr += "double"; |
| 85 |
// if(sizeof(FFTTYPE)==16) fftinfostr += "quadruple"; |
| 86 |
// fftinfostr += "); smallest: "+QString::number(20*log10(std::numeric_limits<FFTTYPE>::min()))+"dB)"; |
| 87 |
// ui->vlLibraries->addWidget(new QLabel(fftinfostr, this)); |
| 88 |
|
| 89 |
// QMessageBox::aboutQt(this, "About this software"); |
| 90 |
} |
| 91 |
|
| 92 |
AboutBox::~AboutBox() |
| 93 |
{ |
| 94 |
delete ui; |
| 95 |
} |