This repository has been archived by the owner on Feb 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathAboutDialog.py
59 lines (39 loc) · 2.12 KB
/
AboutDialog.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
"""
/***************************************************************************
qgSurf - plugin for Quantum GIS
Processing of geological planes and surfaces
-------------------
begin : 2011-12-21
copyright : (C) 2011-2019 by Mauro Alberti
email : alberti.m65@gmail.com
***************************************************************************/
# licensed under the terms of GNU GPL 3
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 3 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
"""
# -*- coding: utf-8 -*-
from qgis.PyQt.QtWidgets import QDialog, QVBoxLayout, QTextBrowser
from .config.general_params import *
class AboutDialog(QDialog):
def __init__(self, version):
super(AboutDialog, self).__init__()
dialog_layout = QVBoxLayout()
htmlText = """
<h3>{} - release {}</h3>
Created by M. Alberti (alberti.m65@gmail.com).
<br /><br /><a href="https://github.com/mauroalberti/qgSurf">https://github.com/mauroalberti/qgSurf</a>
<br /><br />Processing of geological data.
<br /><br />Licensed under the terms of GNU GPL 3.
""".format(plugin_nm, version)
aboutQTextBrowser = QTextBrowser(self)
aboutQTextBrowser.insertHtml(htmlText)
aboutQTextBrowser.setMinimumSize(400, 200)
dialog_layout.addWidget(aboutQTextBrowser)
self.setLayout(dialog_layout)
self.setWindowTitle('{} about'.format(plugin_nm))