Loading [MathJax]/extensions/tex2jax.js
OGS
LicenseDialog Class Reference

Detailed Description

A dialog window displaying the OGS license information.

Definition at line 23 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 19 of file LicenseDialog.cpp.

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

References setText().

◆ ~LicenseDialog()

LicenseDialog::~LicenseDialog ( )
overridedefault

Member Function Documentation

◆ on_okPushButton_pressed

void LicenseDialog::on_okPushButton_pressed ( )
privateslot

Definition at line 88 of file LicenseDialog.cpp.

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

◆ setText()

void LicenseDialog::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-2025, 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:" << "<br />"
51 << "'This product includes software developed by the OpenGeoSys "
52 "Community.'</li>"
53 << "<li>Neither the name of the OpenGeoSys Community nor the"
54 << "names of its contributors may be used to endorse or promote "
55 "products"
56 << "derived from this software without specific prior written "
57 "permission.</li>"
58 << "<li>Attribute the OpenGeoSys Community, preferably citing an "
59 "appropriate"
60 << "paper listed on the OpenGeoSys Community homepage:"
61 << "<a "
62 "href='http://www.opengeosys.org/papers'>http://www.opengeosys.org/"
63 "papers</a></li>"
64 << "</ol></p>"
65 << "<p>THIS SOFTWARE IS PROVIDED BY THE OpenGeoSys Community ''AS IS'' "
66 "AND ANY"
67 << "EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE "
68 "IMPLIED"
69 << "WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE "
70 "ARE"
71 << "DISCLAIMED. IN NO EVENT SHALL THE OpenGeoSys Community BE LIABLE "
72 "FOR ANY"
73 << "DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL "
74 "DAMAGES"
75 << "(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR "
76 "SERVICES;"
77 << "LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER "
78 "CAUSED AND"
79 << "ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, "
80 "OR TORT"
81 << "(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE "
82 "USE OF THIS"
83 << "SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</p>";
84
85 this->licenseTextBrowser->setHtml(*(stream.string()));
86}

Referenced by LicenseDialog().


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