Engauge Digitizer 2
Loading...
Searching...
No Matches
DlgAbout Class Reference

About Engauge dialog. This provides a hidden shortcut for triggering ENGAUGE_ASSERT. More...

#include <DlgAbout.h>

Inheritance diagram for DlgAbout:
Inheritance graph
Collaboration diagram for DlgAbout:
Collaboration graph

Public Member Functions

 DlgAbout (MainWindow &mainWindow)
 Single constructor.

Detailed Description

About Engauge dialog. This provides a hidden shortcut for triggering ENGAUGE_ASSERT.

Definition at line 15 of file DlgAbout.h.

Constructor & Destructor Documentation

◆ DlgAbout()

DlgAbout::DlgAbout ( MainWindow & mainWindow)

Single constructor.

Definition at line 13 of file DlgAbout.cpp.

13 :
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

The documentation for this class was generated from the following files: