OGS
LicenseDialog Class Reference

Detailed Description

A dialog window displaying the OGS license information.

Definition at line 12 of file LicenseDialog.h.

#include <LicenseDialog.h>

Inheritance diagram for LicenseDialog:
[legend]
Collaboration diagram for LicenseDialog:
[legend]

Public Member Functions

 LicenseDialog (QDialog *parent=nullptr)
 ~LicenseDialog () override=default

Private Slots

void on_okPushButton_pressed ()

Private Member Functions

void setText ()

Constructor & Destructor Documentation

◆ LicenseDialog()

LicenseDialog::LicenseDialog ( QDialog * parent = nullptr)
explicit

Definition at line 8 of file LicenseDialog.cpp.

8 : QDialog(parent)
9{
10 setupUi(this);
11 this->licenseTextBrowser->setOpenExternalLinks(true);
12 this->setText();
13}

References setText().

◆ ~LicenseDialog()

LicenseDialog::~LicenseDialog ( )
overridedefault

Member Function Documentation

◆ on_okPushButton_pressed

void LicenseDialog::on_okPushButton_pressed ( )
privateslot

Definition at line 77 of file LicenseDialog.cpp.

78{
79 this->done(QDialog::Accepted);
80}

◆ setText()

void LicenseDialog::setText ( )
private

Definition at line 15 of file LicenseDialog.cpp.

16{
17 QString text;
18 QTextStream stream(&text);
19 stream
20 << "<p>Copyright (c) 2012-2026, OpenGeoSys Community "
21 << "(<a "
22 "href='http://www.opengeosys.org'>http://www.opengeosys.org</a>)<br "
23 "/>"
24 << "All rights reserved.</p>"
25 << "<p>Redistribution and use in source and binary forms, with or "
26 "without"
27 << "modification, are permitted provided that the following conditions "
28 "are met:"
29 << "<ol>"
30 << "<li>Redistributions of source code must retain the above copyright"
31 << "notice, this list of conditions and the following disclaimer.</li>"
32 << "<li>Redistributions in binary form must reproduce the above "
33 "copyright"
34 << "notice, this list of conditions and the following disclaimer in the"
35 << "documentation and/or other materials provided with the "
36 "distribution.</li>"
37 << "<li>All advertising materials mentioning features or use of this "
38 "software"
39 << "must display the following acknowledgement:" << "<br />"
40 << "'This product includes software developed by the OpenGeoSys "
41 "Community.'</li>"
42 << "<li>Neither the name of the OpenGeoSys Community nor the"
43 << "names of its contributors may be used to endorse or promote "
44 "products"
45 << "derived from this software without specific prior written "
46 "permission.</li>"
47 << "<li>Attribute the OpenGeoSys Community, preferably citing an "
48 "appropriate"
49 << "paper listed on the OpenGeoSys Community homepage:"
50 << "<a "
51 "href='http://www.opengeosys.org/papers'>http://www.opengeosys.org/"
52 "papers</a></li>"
53 << "</ol></p>"
54 << "<p>THIS SOFTWARE IS PROVIDED BY THE OpenGeoSys Community ''AS IS'' "
55 "AND ANY"
56 << "EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE "
57 "IMPLIED"
58 << "WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE "
59 "ARE"
60 << "DISCLAIMED. IN NO EVENT SHALL THE OpenGeoSys Community BE LIABLE "
61 "FOR ANY"
62 << "DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL "
63 "DAMAGES"
64 << "(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR "
65 "SERVICES;"
66 << "LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER "
67 "CAUSED AND"
68 << "ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, "
69 "OR TORT"
70 << "(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE "
71 "USE OF THIS"
72 << "SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</p>";
73
74 this->licenseTextBrowser->setHtml(*(stream.string()));
75}

Referenced by LicenseDialog().


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