Newer
Older
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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
# -*- coding: utf-8 -*-
################################################################################
## Form generated from reading UI file 'module.ui'
##
## Created by: Qt User Interface Compiler version 6.8.0
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################
from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
QMetaObject, QObject, QPoint, QRect,
QSize, QTime, QUrl, Qt)
from PySide6.QtGui import (QBrush, QColor, QConicalGradient, QCursor,
QFont, QFontDatabase, QGradient, QIcon,
QImage, QKeySequence, QLinearGradient, QPainter,
QPalette, QPixmap, QRadialGradient, QTransform)
from PySide6.QtWidgets import (QApplication, QDoubleSpinBox, QFrame, QGridLayout,
QHBoxLayout, QLabel, QLayout, QLineEdit,
QSizePolicy, QSpacerItem, QVBoxLayout, QWidget)
class Ui_module(object):
def setupUi(self, module):
if not module.objectName():
module.setObjectName(u"module")
module.resize(442, 639)
self.verticalLayout = QVBoxLayout(module)
self.verticalLayout.setObjectName(u"verticalLayout")
self.verticalLayout.setSizeConstraint(QLayout.SetFixedSize)
self.side_frame_auto = QFrame(module)
self.side_frame_auto.setObjectName(u"side_frame_auto")
self.side_frame_auto.setMaximumSize(QSize(16777215, 16777215))
self.side_frame_auto.setFrameShape(QFrame.StyledPanel)
self.side_frame_auto.setFrameShadow(QFrame.Plain)
self.side_frame_auto.setLineWidth(0)
self.horizontalLayout = QHBoxLayout(self.side_frame_auto)
self.horizontalLayout.setSpacing(8)
self.horizontalLayout.setObjectName(u"horizontalLayout")
self.horizontalLayout.setSizeConstraint(QLayout.SetMinimumSize)
self.horizontalLayout.setContentsMargins(10, 10, 10, 10)
self.module_layout_auto = QVBoxLayout()
self.module_layout_auto.setSpacing(10)
self.module_layout_auto.setObjectName(u"module_layout_auto")
self.auto_module = QWidget(self.side_frame_auto)
self.auto_module.setObjectName(u"auto_module")
self.auto_module.setStyleSheet(u"#auto_module {\n"
" border: 0;\n"
" color: #444b59;\n"
" background-color: #2c2e36;\n"
" border-radius: 5px;\n"
"}\n"
"#auto_module QLabel {\n"
" color: #f2f2f2;\n"
"}\n"
"#auto_module #module_title_auto {\n"
" color: #ffffff;\n"
" font-weight: 600;\n"
" font-size: 16px;\n"
" border: 0;\n"
" margin: 10px 0px 5px 2px;\n"
"}")
self.verticalLayout_14 = QVBoxLayout(self.auto_module)
self.verticalLayout_14.setObjectName(u"verticalLayout_14")
self.verticalLayout_14.setContentsMargins(0, 0, 0, 0)
self.module_title_auto = QLabel(self.auto_module)
self.module_title_auto.setObjectName(u"module_title_auto")
self.module_title_auto.setMargin(0)
self.verticalLayout_14.addWidget(self.module_title_auto)
self.title_line = QFrame(self.auto_module)
self.title_line.setObjectName(u"title_line")
self.title_line.setMaximumSize(QSize(16777215, 2))
self.title_line.setStyleSheet(u"background: #12141a;\n"
"background-color: #12141a;\n"
"color: #12141a;")
self.title_line.setFrameShadow(QFrame.Plain)
self.title_line.setLineWidth(1)
self.title_line.setFrameShape(QFrame.Shape.HLine)
self.verticalLayout_14.addWidget(self.title_line)
self.graph_layout = QVBoxLayout()
self.graph_layout.setSpacing(5)
self.graph_layout.setObjectName(u"graph_layout")
self.graph_layout.setSizeConstraint(QLayout.SetFixedSize)
self.graph_layout.setContentsMargins(5, 5, 5, 5)
self.horizontalLayout_2 = QHBoxLayout()
self.horizontalLayout_2.setSpacing(0)
self.horizontalLayout_2.setObjectName(u"horizontalLayout_2")
self.horizontalSpacer = QSpacerItem(40, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum)
self.horizontalLayout_2.addItem(self.horizontalSpacer)
self.frame = QFrame(self.auto_module)
self.frame.setObjectName(u"frame")
self.frame.setStyleSheet(u"background: #585b66;\n"
"padding: 2px 3px 3px 3px;\n"
"border: 0;\n"
"border-radius: 5px;")
self.frame.setFrameShape(QFrame.StyledPanel)
self.frame.setFrameShadow(QFrame.Raised)
self.gridLayout = QGridLayout(self.frame)
self.gridLayout.setSpacing(0)
self.gridLayout.setObjectName(u"gridLayout")
self.gridLayout.setContentsMargins(0, 0, 0, 0)
self.label_units = QLabel(self.frame)
self.label_units.setObjectName(u"label_units")
sizePolicy = QSizePolicy(QSizePolicy.Policy.Maximum, QSizePolicy.Policy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.label_units.sizePolicy().hasHeightForWidth())
self.label_units.setSizePolicy(sizePolicy)
font = QFont()
font.setBold(True)
self.label_units.setFont(font)
self.label_units.setStyleSheet(u"")
self.label_units.setAlignment(Qt.AlignCenter)
self.gridLayout.addWidget(self.label_units, 0, 0, 1, 1)
self.horizontalLayout_2.addWidget(self.frame)
self.graph_layout.addLayout(self.horizontalLayout_2)
self.verticalLayout_14.addLayout(self.graph_layout)
self.param_line = QFrame(self.auto_module)
self.param_line.setObjectName(u"param_line")
self.param_line.setMaximumSize(QSize(16777215, 2))
self.param_line.setStyleSheet(u"background: #12141a;\n"
"background-color: #12141a;\n"
"color: #12141a;")
self.param_line.setFrameShadow(QFrame.Plain)
self.param_line.setLineWidth(1)
self.param_line.setFrameShape(QFrame.Shape.HLine)
self.verticalLayout_14.addWidget(self.param_line)
self.auto_module_grid_layout_5 = QGridLayout()
self.auto_module_grid_layout_5.setSpacing(10)
self.auto_module_grid_layout_5.setObjectName(u"auto_module_grid_layout_5")
self.auto_module_grid_layout_5.setContentsMargins(10, 10, 10, 10)
self.field_layout_t0_9 = QVBoxLayout()
self.field_layout_t0_9.setSpacing(4)
self.field_layout_t0_9.setObjectName(u"field_layout_t0_9")
self.field_layout_t0_9.setSizeConstraint(QLayout.SetFixedSize)
self.field_layout_t0_9.setContentsMargins(-1, -1, -1, 6)
self.label_33 = QLabel(self.auto_module)
self.label_33.setObjectName(u"label_33")
sizePolicy1 = QSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Fixed)
sizePolicy1.setHorizontalStretch(0)
sizePolicy1.setVerticalStretch(0)
sizePolicy1.setHeightForWidth(self.label_33.sizePolicy().hasHeightForWidth())
self.label_33.setSizePolicy(sizePolicy1)
self.label_33.setMinimumSize(QSize(120, 0))
self.label_33.setMaximumSize(QSize(16777215, 16777215))
self.label_33.setAlignment(Qt.AlignBottom|Qt.AlignLeading|Qt.AlignLeft)
self.field_layout_t0_9.addWidget(self.label_33)
self.pid_kp = QDoubleSpinBox(self.auto_module)
self.pid_kp.setObjectName(u"pid_kp")
self.pid_kp.setMinimumSize(QSize(80, 0))
self.pid_kp.setMaximumSize(QSize(100, 16777215))
font1 = QFont()
font1.setPointSize(10)
self.pid_kp.setFont(font1)
self.pid_kp.setFocusPolicy(Qt.ClickFocus)
self.pid_kp.setMinimum(-1000.000000000000000)
self.pid_kp.setMaximum(1000.000000000000000)
self.field_layout_t0_9.addWidget(self.pid_kp)
self.auto_module_grid_layout_5.addLayout(self.field_layout_t0_9, 1, 0, 1, 1)
self.field_layout_t0_10 = QVBoxLayout()
self.field_layout_t0_10.setSpacing(4)
self.field_layout_t0_10.setObjectName(u"field_layout_t0_10")
self.field_layout_t0_10.setSizeConstraint(QLayout.SetFixedSize)
self.field_layout_t0_10.setContentsMargins(-1, -1, -1, 6)
self.label_34 = QLabel(self.auto_module)
self.label_34.setObjectName(u"label_34")
sizePolicy1.setHeightForWidth(self.label_34.sizePolicy().hasHeightForWidth())
self.label_34.setSizePolicy(sizePolicy1)
self.label_34.setMinimumSize(QSize(120, 0))
self.label_34.setMaximumSize(QSize(16777215, 16777215))
self.label_34.setAlignment(Qt.AlignBottom|Qt.AlignLeading|Qt.AlignLeft)
self.field_layout_t0_10.addWidget(self.label_34)
self.pid_ki = QDoubleSpinBox(self.auto_module)
self.pid_ki.setObjectName(u"pid_ki")
self.pid_ki.setMinimumSize(QSize(80, 0))
self.pid_ki.setMaximumSize(QSize(100, 16777215))
self.pid_ki.setFont(font1)
self.pid_ki.setFocusPolicy(Qt.ClickFocus)
self.pid_ki.setMinimum(-1000.000000000000000)
self.pid_ki.setMaximum(1000.000000000000000)
self.field_layout_t0_10.addWidget(self.pid_ki)
self.auto_module_grid_layout_5.addLayout(self.field_layout_t0_10, 1, 1, 1, 1)
self.field_layout_t0_11 = QVBoxLayout()
self.field_layout_t0_11.setSpacing(4)
self.field_layout_t0_11.setObjectName(u"field_layout_t0_11")
self.field_layout_t0_11.setSizeConstraint(QLayout.SetFixedSize)
self.field_layout_t0_11.setContentsMargins(-1, -1, -1, 6)
self.label_35 = QLabel(self.auto_module)
self.label_35.setObjectName(u"label_35")
sizePolicy1.setHeightForWidth(self.label_35.sizePolicy().hasHeightForWidth())
self.label_35.setSizePolicy(sizePolicy1)
self.label_35.setMinimumSize(QSize(120, 0))
self.label_35.setMaximumSize(QSize(16777215, 16777215))
self.label_35.setAlignment(Qt.AlignBottom|Qt.AlignLeading|Qt.AlignLeft)
self.field_layout_t0_11.addWidget(self.label_35)
self.pid_kd = QDoubleSpinBox(self.auto_module)
self.pid_kd.setObjectName(u"pid_kd")
self.pid_kd.setMinimumSize(QSize(80, 0))
self.pid_kd.setMaximumSize(QSize(100, 16777215))
self.pid_kd.setFont(font1)
self.pid_kd.setFocusPolicy(Qt.ClickFocus)
self.pid_kd.setMinimum(-1000.000000000000000)
self.pid_kd.setMaximum(1000.000000000000000)
self.field_layout_t0_11.addWidget(self.pid_kd)
self.auto_module_grid_layout_5.addLayout(self.field_layout_t0_11, 1, 2, 1, 1)
self.field_layout_t0_8 = QVBoxLayout()
self.field_layout_t0_8.setSpacing(4)
self.field_layout_t0_8.setObjectName(u"field_layout_t0_8")
self.field_layout_t0_8.setSizeConstraint(QLayout.SetFixedSize)
self.field_layout_t0_8.setContentsMargins(-1, -1, -1, 6)
self.label_32 = QLabel(self.auto_module)
self.label_32.setObjectName(u"label_32")
sizePolicy1.setHeightForWidth(self.label_32.sizePolicy().hasHeightForWidth())
self.label_32.setSizePolicy(sizePolicy1)
self.label_32.setMinimumSize(QSize(120, 0))
self.label_32.setMaximumSize(QSize(16777215, 16777215))
self.label_32.setAlignment(Qt.AlignBottom|Qt.AlignLeading|Qt.AlignLeft)
self.field_layout_t0_8.addWidget(self.label_32)
self.setpoint = QDoubleSpinBox(self.auto_module)
self.setpoint.setObjectName(u"setpoint")
self.setpoint.setMinimumSize(QSize(80, 0))
self.setpoint.setMaximumSize(QSize(100, 16777215))
self.setpoint.setFont(font1)
self.setpoint.setFocusPolicy(Qt.ClickFocus)
self.setpoint.setMaximum(9999999.000000000000000)
self.field_layout_t0_8.addWidget(self.setpoint)
self.auto_module_grid_layout_5.addLayout(self.field_layout_t0_8, 0, 0, 1, 1)
self.field_layout_t0_12 = QVBoxLayout()
self.field_layout_t0_12.setSpacing(4)
self.field_layout_t0_12.setObjectName(u"field_layout_t0_12")
self.field_layout_t0_12.setSizeConstraint(QLayout.SetFixedSize)
self.field_layout_t0_12.setContentsMargins(-1, -1, -1, 6)
self.label_36 = QLabel(self.auto_module)
self.label_36.setObjectName(u"label_36")
sizePolicy1.setHeightForWidth(self.label_36.sizePolicy().hasHeightForWidth())
self.label_36.setSizePolicy(sizePolicy1)
self.label_36.setMinimumSize(QSize(120, 0))
self.label_36.setMaximumSize(QSize(16777215, 16777215))
self.label_36.setAlignment(Qt.AlignBottom|Qt.AlignLeading|Qt.AlignLeft)
self.field_layout_t0_12.addWidget(self.label_36)
self.true_pressure = QLineEdit(self.auto_module)
self.true_pressure.setObjectName(u"true_pressure")
self.true_pressure.setEnabled(False)
self.true_pressure.setMaximumSize(QSize(80, 16777215))
self.field_layout_t0_12.addWidget(self.true_pressure)
self.auto_module_grid_layout_5.addLayout(self.field_layout_t0_12, 0, 2, 1, 1)
self.verticalLayout_14.addLayout(self.auto_module_grid_layout_5)
self.module_layout_auto.addWidget(self.auto_module)
self.verticalSpacer = QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding)
self.module_layout_auto.addItem(self.verticalSpacer)
self.horizontalLayout.addLayout(self.module_layout_auto)
self.verticalLayout.addWidget(self.side_frame_auto)
self.retranslateUi(module)
QMetaObject.connectSlotsByName(module)
# setupUi
def retranslateUi(self, module):
module.setWindowTitle(QCoreApplication.translate("module", u"Form", None))
self.module_title_auto.setText(QCoreApplication.translate("module", u"Autowaveguide", None))
self.label_units.setText(QCoreApplication.translate("module", u"\u03bcbar", None))
self.label_33.setText(QCoreApplication.translate("module", u"<html><head/><body><p>K<span style=\" vertical-align:sub;\">p</span></p></body></html>", None))
self.label_34.setText(QCoreApplication.translate("module", u"<html><head/><body><p>K<span style=\" vertical-align:sub;\">i</span></p></body></html>", None))
self.label_35.setText(QCoreApplication.translate("module", u"<html><head/><body><p>K<span style=\" vertical-align:sub;\">d</span></p></body></html>", None))
self.label_32.setText(QCoreApplication.translate("module", u"<html><head/><body><p>Set point ( \u03bcbar)</p></body></html>", None))
self.label_36.setText(QCoreApplication.translate("module", u"<html><head/><body><p>True pressure ( \u03bcbar)</p></body></html>", None))
# retranslateUi