File: aboutbox.cpp

package info (click to toggle)
fmit 1.2.6-0.2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 2,828 kB
  • sloc: cpp: 9,490; sh: 62; makefile: 15
file content (96 lines) | stat: -rw-r--r-- 3,847 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
/*
Copyright (C) 2014  Gilles Degottex <gilles.degottex@gmail.com>

This file is part of FMIT.

FMIT is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

FMIT is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

A copy of the GNU General Public License is available in the LICENSE.txt
file provided in the source code of FMIT. Another copy can be found at
<http://www.gnu.org/licenses/>.
*/

#include "aboutbox.h"
#include "ui_aboutbox.h"

#include <QFile>
#include <QTextStream>

//#include "wmainwindow.h"
#include "qthelper.h"
//#include "qaesigproc.h"
//#include "ftsound.h"

extern QString FMITVersion();

AboutBox::AboutBox(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::AboutBox)
{
    ui->setupUi(this);

    QString fullversion = "Version "+FMITVersion();
    fullversion += "\nCompiled by "+getCompilerVersion()+" for ";
    #ifdef Q_PROCESSOR_X86_32
      fullversion += "32bits";
    #endif
    #ifdef Q_PROCESSOR_X86_64
      fullversion += "64bits";
    #endif
    fullversion += "\nCompiled with Qt "+QString(QT_VERSION_STR)+" Running with Qt "+qVersion(); // Add Qt versions
    ui->lblVersion->setText(fullversion);

    QString txt = "";

    txt += "<h4>Purpose</h4>";
    txt += "<i>FMIT</i> is a graphical utility for tuning your musical instruments, with error and volume history and advanced features. ";

    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>";

    txt += "<h4>Legal</h4>\
            The core of this software is under the <a href=\"http://www.gnu.org/licenses/gpl.html\">GPL License</a>.\
            All original source files of any kind (code source and any ressources) are under the same license, except\
            the content of the \"libs\" directory, which contains imported source code under various licenses.\
            <br/><br/>\
            Copyright &copy; 2004 Gilles Degottex <a href='mailto:gilles.degottex@gmail.com'>&lt;gilles.degottex@gmail.com&gt;</a><br/>\
            <i>FMIT</i> is coded in C++/<a href='http://qt-project.org'>Qt</a>.\
            The source code is hosted on <a href='https://github.com/gillesdegottex/fmit'>GitHub</a>.";

    txt += "<h4>Disclaimer</h4>\
            ALL THE FUNCTIONALITIES OF <I>FMIT</I> AND ITS CODE ARE PROVIDED WITHOUT ANY WARRANTY \
            (E.G. THERE IS NO WARRANTY OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE). \
            ALSO, THE COPYRIGHT HOLDERS AND CONTRIBUTORS DO NOT TAKE ANY LEGAL RESPONSIBILITY \
            REGARDING THE IMPLEMENTATIONS OF THE PROCESSING TECHNIQUES OR ALGORITHMS \
            (E.G. CONSEQUENCES OF BUGS OR ERRONEOUS IMPLEMENTATIONS).<br/> \
            Please see the README.txt file for additional information.";

    ui->txtAbout->setText(txt);


    // Libraries

    // FFT
//    QString fftinfostr = "";
//    fftinfostr += "<i>Fast Fourier Transform (FFT):</i> "+qae::FFTwrapper::getLibraryInfo();
//    fftinfostr += " ("+QString::number(sizeof(FFTTYPE)*8)+"bits(";
//    if(sizeof(FFTTYPE)==4)  fftinfostr += "single";
//    if(sizeof(FFTTYPE)==8)  fftinfostr += "double";
//    if(sizeof(FFTTYPE)==16)  fftinfostr += "quadruple";
//    fftinfostr += "); smallest: "+QString::number(20*log10(std::numeric_limits<FFTTYPE>::min()))+"dB)";
//    ui->vlLibraries->addWidget(new QLabel(fftinfostr, this));

    //    QMessageBox::aboutQt(this, "About this software");
}

AboutBox::~AboutBox()
{
    delete ui;
}