-
Notifications
You must be signed in to change notification settings - Fork 1
/
WARMWidget.py
165 lines (118 loc) · 5.26 KB
/
WARMWidget.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
# -*- coding: utf-8 -*-
"""
***************************************************************************
MBG
Processing
-------------------
begin : 2017-07-01
updated : 2019-10-28 by Leonardo Laipelt
copyright : (C) 2017 by HGE-IPH
email : [email protected]
***************************************************************************
***************************************************************************
* *
* 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 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************
"""
import os
from PyQt5 import QtGui, uic
from PyQt5.QtCore import pyqtSignal
FORM_CLASS, _ = uic.loadUiType(os.path.join(
os.path.dirname(__file__), 'WARMGIS_Tools_dockwidget_base.ui'))
FORM_CLASS2, _ = uic.loadUiType(os.path.join(
os.path.dirname(__file__), 'wid_open_project.ui'))
FORM_CLASS_BAL, _ = uic.loadUiType(os.path.join(
os.path.dirname(__file__), 'wid_run_balance.ui'))
FORM_CLASS_ins_wit_pon, _ = uic.loadUiType(os.path.join(
os.path.dirname(__file__), 'wid_ins_wit_pon.ui'))
FORM_CLASS_ins_wit_tab, _ = uic.loadUiType(os.path.join(
os.path.dirname(__file__), 'wid_ins_wit_tab.ui'))
FORM_CLASS_ins_stream_data, _ = uic.loadUiType(os.path.join(
os.path.dirname(__file__), 'wid_ins_stream_data.ui'))
FORM_CLASS_ins_lan_pon, _ = uic.loadUiType(os.path.join(
os.path.dirname(__file__), 'wid_ins_lan_pon.ui'))
FORM_CLASS_ins_lan_tab, _ = uic.loadUiType(os.path.join(
os.path.dirname(__file__), 'wid_ins_lan_tab.ui'))
FORM_CLASS_qual_par, _ = uic.loadUiType(os.path.join(
os.path.dirname(__file__), 'wid_qual_par.ui'))
FORM_CLASS_ins_res_pon, _ = uic.loadUiType(os.path.join(
os.path.dirname(__file__), 'wid_ins_res_pon.ui'))
FORM_CLASS_qual_obs, _ = uic.loadUiType(os.path.join(
os.path.dirname(__file__), 'wid_qual_obs.ui'))
FORM_CLASS_RUN_QUAL, _ = uic.loadUiType(os.path.join(
os.path.dirname(__file__), 'wid_run_qual.ui'))
from PyQt5 import QtCore
from PyQt5.QtWidgets import *
from qgis.core import QgsProject
class Widget(QDockWidget, FORM_CLASS):
closingPlugin = pyqtSignal()
def __init__(self, parent=None):
super(Widget, self).__init__(parent)
self.setupUi(self)
def closeEvent(self, event):
self.closingPlugin.emit()
event.accept()
class wid_open_proj(QDialog, FORM_CLASS2):
def __init__(self, parent=None):
"""Constructor."""
super(wid_open_proj, self).__init__(parent)
# Set up the user interface from Designer.
# After setupUI you can access any designer object by doing
# self.<objectname>, and you can use autoconnect slots - see
# http://qt-project.org/doc/qt-4.8/designer-using-a-ui-file.html
# #widgets-and-dialogs-with-auto-connect
self.setupUi(self)
class wid_ins_stream_data(QDialog, FORM_CLASS_ins_stream_data):
def __init__(self, parent=None):
"""Constructor."""
super(wid_ins_stream_data, self).__init__(parent)
self.setupUi(self)
class wid_run_balance(QDialog, FORM_CLASS_BAL):
def __init__(self, parent=None):
"""Constructor."""
super(wid_run_balance, self).__init__(parent)
self.setupUi(self)
class wid_run_qual(QDialog, FORM_CLASS_RUN_QUAL):
def __init__(self, parent=None):
"""Constructor."""
super(wid_run_qual, self).__init__(parent)
self.setupUi(self)
class wid_ins_wit_pon(QDialog, FORM_CLASS_ins_wit_pon):
def __init__(self, parent=None):
"""Constructor."""
super(wid_ins_wit_pon, self).__init__(parent)
self.setupUi(self)
class wid_ins_wit_tab(QDialog, FORM_CLASS_ins_wit_tab):
def __init__(self, parent=None):
"""Constructor."""
super(wid_ins_wit_tab, self).__init__(parent)
self.setupUi(self)
class wid_ins_lan_pon(QDialog, FORM_CLASS_ins_lan_pon):
def __init__(self, parent=None):
"""Constructor."""
super(wid_ins_lan_pon, self).__init__(parent)
self.setupUi(self)
class wid_ins_lan_tab(QDialog, FORM_CLASS_ins_lan_tab):
def __init__(self, parent=None):
"""Constructor."""
super(wid_ins_lan_tab, self).__init__(parent)
self.setupUi(self)
class wid_ins_res_pon(QDialog, FORM_CLASS_ins_res_pon):
def __init__(self, parent=None):
"""Constructor."""
super(wid_ins_res_pon, self).__init__(parent)
self.setupUi(self)
class wid_qual_par(QDialog, FORM_CLASS_qual_par):
def __init__(self, parent=None):
"""Constructor."""
super(wid_qual_par, self).__init__(parent)
self.setupUi(self)
class wid_qual_obs(QDialog, FORM_CLASS_qual_obs):
def __init__(self, parent=None):
"""Constructor."""
super(wid_qual_obs, self).__init__(parent)
self.setupUi(self)