Engauge Digitizer 2
Loading...
Searching...
No Matches
DlgAbout.cpp
Go to the documentation of this file.
1/******************************************************************************************************
2 * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3 * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4 * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5 ******************************************************************************************************/
6
7#include "DlgAbout.h"
8#include "MainWindow.h"
9#include <QGridLayout>
10#include <QSpacerItem>
11#include "Version.h"
12
14 QMessageBox (&mainWindow),
15 m_mainWindow (mainWindow)
16{
17 setWindowTitle (tr ("About Engauge"));
18 setTextFormat (Qt::RichText);
19
20 // Do not embed single quotes in the strings below since that will interfere with the translations
21 setText (QString ("<p>%1 %2 %3</p> <p>&copy; Mark Mitchell</p><p>%4</p><p>%5</p><p>%6</p><p>%7</p><p>%8:</p>"
22 "<ul>"
23 "<li><a href=\"https://github.com/markummitchell/engauge-digitizer\">%9</a></li>"
24 "<li><a href=\"https://gitter.im/markummitchell/engauge-digitizer\">%10</a></li>"
25 "</ul>"
26 "<p>FFTW 3.X.X:</p>"
27 "<ul>"
28 "<li><a href=\"http://www.fftw.org\">%11</a></li>"
29 "</ul>"
30 "<p>OpenJPEG 2.X:</p>"
31 "<ul>"
32 "<li><a href=\"http://www.openjpeg.org\">%12</a></li>"
33 "</ul>")
34 .arg (tr ("Engauge Digitizer"))
35 .arg (tr ("Version"))
36 .arg (VERSION_NUMBER)
37 .arg (tr ("Engauge Digitizer is an open source tool for efficiently extracting accurate numeric data from "
38 "images of graphs. The process may be considered as inverse graphing. When you engauge a document, "
39 "you are converting pixels into numbers."))
40 .arg (tr ("This is free software, and you are welcome to redistribute it under "
41 "certain conditions according to the GNU General Public License Version 2,"
42 "or (at your option) any later version."))
43 .arg (tr ("Engauge Digitizer comes with ABSOLUTELY NO WARRANTY."))
44 .arg (tr ("Read the included LICENSE file for details."))
45 .arg (tr ("Engauge Digitizer"))
46 .arg (tr ("Project Home Page"))
47 .arg (tr ("Gitter Forum"))
48 .arg (tr ("Project Page"))
49 .arg (tr ("Project Page")));
50
51 // Calling setMinimumWidth has no effect so we insert spacer to prevent overly narrow dialog in linux.
52 // Hack from https://forum.qt.io/topic/24213/qmessagebox-too-small/9
53 QSpacerItem *spacer = new QSpacerItem (800,
54 0,
55 QSizePolicy::Minimum,
56 QSizePolicy::Expanding);
57 QGridLayout *layout = dynamic_cast<QGridLayout *> (this->layout());
58 layout->addItem (spacer,
59 layout->rowCount(),
60 0,
61 1,
62 layout->columnCount());
63}
const char * VERSION_NUMBER
Definition Version.cpp:13
DlgAbout(MainWindow &mainWindow)
Single constructor.
Definition DlgAbout.cpp:13
Main window consisting of menu, graphics scene, status bar and optional toolbars as a Single Document...
Definition MainWindow.h:95