OGS
LicenseDialog.cpp
Go to the documentation of this file.
1
15#include "LicenseDialog.h"
16
17#include <QTextStream>
18
19LicenseDialog::LicenseDialog(QDialog* parent) : QDialog(parent)
20{
21 setupUi(this);
22 this->licenseTextBrowser->setOpenExternalLinks(true);
23 this->setText();
24}
25
27{
28 QString text;
29 QTextStream stream(&text);
30 stream
31 << "<p>Copyright (c) 2012-2024, OpenGeoSys Community "
32 << "(<a "
33 "href='http://www.opengeosys.org'>http://www.opengeosys.org</a>)<br "
34 "/>"
35 << "All rights reserved.</p>"
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 "
44 "copyright"
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
86 this->licenseTextBrowser->setHtml(*(stream.string()));
87}
88
90{
91 this->done(QDialog::Accepted);
92}
Definition of the LicenseDialog class.
void on_okPushButton_pressed()
LicenseDialog(QDialog *parent=nullptr)