OGS

## Detailed Description

A dialog window displaying the OGS license information.

Definition at line 23 of file LicenseDialog.h.

#include <LicenseDialog.h>

[legend]
[legend]

## Private Slots

void on_okPushButton_pressed ()

void setText ()

## Constructor & Destructor Documentation

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

Definition at line 19 of file LicenseDialog.cpp.

19 : QDialog(parent)
20{
21 setupUi(this);
23 this->setText();
24}

References setText().

overridedefault

## ◆ on_okPushButton_pressed

privateslot

Definition at line 89 of file LicenseDialog.cpp.

90{
91 this->done(QDialog::Accepted);
92}

## ◆ setText()

private

Definition at line 26 of file LicenseDialog.cpp.

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