OGS
LicenseDialog.cpp
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2
// SPDX-License-Identifier: BSD-3-Clause
3
4
#include "
LicenseDialog.h
"
5
6
#include <QTextStream>
7
8
LicenseDialog::LicenseDialog
(QDialog* parent) : QDialog(parent)
9
{
10
setupUi(
this
);
11
this->licenseTextBrowser->setOpenExternalLinks(
true
);
12
this->
setText
();
13
}
14
15
void
LicenseDialog::setText
()
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
}
76
77
void
LicenseDialog::on_okPushButton_pressed
()
78
{
79
this->done(QDialog::Accepted);
80
}
LicenseDialog.h
LicenseDialog::on_okPushButton_pressed
void on_okPushButton_pressed()
Definition
LicenseDialog.cpp:77
LicenseDialog::setText
void setText()
Definition
LicenseDialog.cpp:15
LicenseDialog::LicenseDialog
LicenseDialog(QDialog *parent=nullptr)
Definition
LicenseDialog.cpp:8
Applications
DataExplorer
DataView
LicenseDialog.cpp
Generated by
1.14.0