204 lines
12 KiB
Python

# Form implementation generated from reading ui file './ui/ControllerUI/power.ui'
#
# Created by: PyQt6 UI code generator 6.6.1
#
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt6 import QtCore, QtGui, QtWidgets
class Ui_Controller(object):
def setupUi(self, Controller):
Controller.setObjectName("Controller")
Controller.resize(273, 350)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(Controller.sizePolicy().hasHeightForWidth())
Controller.setSizePolicy(sizePolicy)
Controller.setMinimumSize(QtCore.QSize(273, 350))
Controller.setMaximumSize(QtCore.QSize(273, 350))
self.centralwidget = QtWidgets.QWidget(parent=Controller)
self.centralwidget.setObjectName("centralwidget")
self.formLayoutWidget = QtWidgets.QWidget(parent=self.centralwidget)
self.formLayoutWidget.setGeometry(QtCore.QRect(0, 0, 284, 251))
self.formLayoutWidget.setObjectName("formLayoutWidget")
self.formLayout = QtWidgets.QFormLayout(self.formLayoutWidget)
self.formLayout.setRowWrapPolicy(QtWidgets.QFormLayout.RowWrapPolicy.DontWrapRows)
self.formLayout.setLabelAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter)
self.formLayout.setContentsMargins(10, 10, 0, 0)
self.formLayout.setVerticalSpacing(8)
self.formLayout.setObjectName("formLayout")
self.ComPort = QtWidgets.QLabel(parent=self.formLayoutWidget)
font = QtGui.QFont()
font.setFamily("Ubuntu Sans")
self.ComPort.setFont(font)
self.ComPort.setObjectName("ComPort")
self.formLayout.setWidget(0, QtWidgets.QFormLayout.ItemRole.LabelRole, self.ComPort)
self.DeviceSelection = QtWidgets.QComboBox(parent=self.formLayoutWidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.DeviceSelection.sizePolicy().hasHeightForWidth())
self.DeviceSelection.setSizePolicy(sizePolicy)
self.DeviceSelection.setMaximumSize(QtCore.QSize(110, 16777215))
font = QtGui.QFont()
font.setFamily("Arial")
font.setPointSize(10)
self.DeviceSelection.setFont(font)
self.DeviceSelection.setObjectName("DeviceSelection")
self.DeviceSelection.addItem("")
self.formLayout.setWidget(0, QtWidgets.QFormLayout.ItemRole.FieldRole, self.DeviceSelection)
self.DmxAddress = QtWidgets.QLabel(parent=self.formLayoutWidget)
self.DmxAddress.setObjectName("DmxAddress")
self.formLayout.setWidget(1, QtWidgets.QFormLayout.ItemRole.LabelRole, self.DmxAddress)
self.DmxAddressField = QtWidgets.QLineEdit(parent=self.formLayoutWidget)
self.DmxAddressField.setMaximumSize(QtCore.QSize(45, 16777215))
self.DmxAddressField.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
self.DmxAddressField.setObjectName("DmxAddressField")
self.formLayout.setWidget(1, QtWidgets.QFormLayout.ItemRole.FieldRole, self.DmxAddressField)
self.Personality = QtWidgets.QLabel(parent=self.formLayoutWidget)
self.Personality.setObjectName("Personality")
self.formLayout.setWidget(2, QtWidgets.QFormLayout.ItemRole.LabelRole, self.Personality)
self.Current1 = QtWidgets.QLabel(parent=self.formLayoutWidget)
self.Current1.setObjectName("Current1")
self.formLayout.setWidget(3, QtWidgets.QFormLayout.ItemRole.LabelRole, self.Current1)
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.Current1Field = QtWidgets.QLineEdit(parent=self.formLayoutWidget)
self.Current1Field.setMaximumSize(QtCore.QSize(45, 16777215))
self.Current1Field.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
self.Current1Field.setObjectName("Current1Field")
self.horizontalLayout_2.addWidget(self.Current1Field)
self.ma1 = QtWidgets.QLabel(parent=self.formLayoutWidget)
self.ma1.setMaximumSize(QtCore.QSize(16777215, 16777215))
self.ma1.setObjectName("ma1")
self.horizontalLayout_2.addWidget(self.ma1)
self.formLayout.setLayout(3, QtWidgets.QFormLayout.ItemRole.FieldRole, self.horizontalLayout_2)
self.Current2 = QtWidgets.QLabel(parent=self.formLayoutWidget)
self.Current2.setObjectName("Current2")
self.formLayout.setWidget(4, QtWidgets.QFormLayout.ItemRole.LabelRole, self.Current2)
self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.Current2Field = QtWidgets.QLineEdit(parent=self.formLayoutWidget)
self.Current2Field.setMaximumSize(QtCore.QSize(45, 16777215))
self.Current2Field.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
self.Current2Field.setObjectName("Current2Field")
self.horizontalLayout_3.addWidget(self.Current2Field)
self.ma2 = QtWidgets.QLabel(parent=self.formLayoutWidget)
self.ma2.setObjectName("ma2")
self.horizontalLayout_3.addWidget(self.ma2)
self.formLayout.setLayout(4, QtWidgets.QFormLayout.ItemRole.FieldRole, self.horizontalLayout_3)
self.Current3 = QtWidgets.QLabel(parent=self.formLayoutWidget)
self.Current3.setObjectName("Current3")
self.formLayout.setWidget(5, QtWidgets.QFormLayout.ItemRole.LabelRole, self.Current3)
self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
self.Current3Field = QtWidgets.QLineEdit(parent=self.formLayoutWidget)
self.Current3Field.setMaximumSize(QtCore.QSize(45, 16777215))
self.Current3Field.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
self.Current3Field.setObjectName("Current3Field")
self.horizontalLayout_4.addWidget(self.Current3Field)
self.ma3 = QtWidgets.QLabel(parent=self.formLayoutWidget)
self.ma3.setObjectName("ma3")
self.horizontalLayout_4.addWidget(self.ma3)
self.formLayout.setLayout(5, QtWidgets.QFormLayout.ItemRole.FieldRole, self.horizontalLayout_4)
self.Current4 = QtWidgets.QLabel(parent=self.formLayoutWidget)
self.Current4.setObjectName("Current4")
self.formLayout.setWidget(6, QtWidgets.QFormLayout.ItemRole.LabelRole, self.Current4)
self.horizontalLayout_5 = QtWidgets.QHBoxLayout()
self.horizontalLayout_5.setObjectName("horizontalLayout_5")
self.Current4Field = QtWidgets.QLineEdit(parent=self.formLayoutWidget)
self.Current4Field.setMaximumSize(QtCore.QSize(45, 16777215))
self.Current4Field.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
self.Current4Field.setObjectName("Current4Field")
self.horizontalLayout_5.addWidget(self.Current4Field)
self.ma4 = QtWidgets.QLabel(parent=self.formLayoutWidget)
self.ma4.setObjectName("ma4")
self.horizontalLayout_5.addWidget(self.ma4)
self.formLayout.setLayout(6, QtWidgets.QFormLayout.ItemRole.FieldRole, self.horizontalLayout_5)
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setContentsMargins(-1, -1, 0, -1)
self.horizontalLayout.setSpacing(0)
self.horizontalLayout.setObjectName("horizontalLayout")
self.ModeSelection = QtWidgets.QComboBox(parent=self.formLayoutWidget)
self.ModeSelection.setMaximumSize(QtCore.QSize(131, 32))
font = QtGui.QFont()
font.setFamily("Arial")
font.setPointSize(9)
self.ModeSelection.setFont(font)
self.ModeSelection.setFrame(True)
self.ModeSelection.setObjectName("ModeSelection")
self.ModeSelection.addItem("")
self.horizontalLayout.addWidget(self.ModeSelection)
self.ModeInfo = QtWidgets.QPushButton(parent=self.formLayoutWidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.ModeInfo.sizePolicy().hasHeightForWidth())
self.ModeInfo.setSizePolicy(sizePolicy)
self.ModeInfo.setMaximumSize(QtCore.QSize(32, 32))
self.ModeInfo.setText("")
icon = QtGui.QIcon.fromTheme("dialog-question")
self.ModeInfo.setIcon(icon)
self.ModeInfo.setIconSize(QtCore.QSize(20, 20))
self.ModeInfo.setCheckable(False)
self.ModeInfo.setObjectName("ModeInfo")
self.horizontalLayout.addWidget(self.ModeInfo)
self.formLayout.setLayout(2, QtWidgets.QFormLayout.ItemRole.FieldRole, self.horizontalLayout)
self.verticalLayoutWidget = QtWidgets.QWidget(parent=self.centralwidget)
self.verticalLayoutWidget.setGeometry(QtCore.QRect(0, 250, 271, 101))
self.verticalLayoutWidget.setObjectName("verticalLayoutWidget")
self.verticalLayout = QtWidgets.QVBoxLayout(self.verticalLayoutWidget)
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
self.verticalLayout.setObjectName("verticalLayout")
self.horizontalLayout_6 = QtWidgets.QHBoxLayout()
self.horizontalLayout_6.setContentsMargins(10, -1, 10, -1)
self.horizontalLayout_6.setSpacing(50)
self.horizontalLayout_6.setObjectName("horizontalLayout_6")
self.Read = QtWidgets.QPushButton(parent=self.verticalLayoutWidget)
self.Read.setObjectName("Read")
self.horizontalLayout_6.addWidget(self.Read)
self.Write = QtWidgets.QPushButton(parent=self.verticalLayoutWidget)
self.Write.setObjectName("Write")
self.horizontalLayout_6.addWidget(self.Write)
self.verticalLayout.addLayout(self.horizontalLayout_6)
self.horizontalLayout_7 = QtWidgets.QHBoxLayout()
self.horizontalLayout_7.setContentsMargins(0, -1, -1, -1)
self.horizontalLayout_7.setObjectName("horizontalLayout_7")
self.Check = QtWidgets.QCheckBox(parent=self.verticalLayoutWidget)
self.Check.setMaximumSize(QtCore.QSize(97, 16777215))
self.Check.setObjectName("Check")
self.horizontalLayout_7.addWidget(self.Check)
self.verticalLayout.addLayout(self.horizontalLayout_7)
self.Status = QtWidgets.QLabel(parent=self.verticalLayoutWidget)
self.Status.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
self.Status.setObjectName("Status")
self.verticalLayout.addWidget(self.Status)
Controller.setCentralWidget(self.centralwidget)
self.retranslateUi(Controller)
QtCore.QMetaObject.connectSlotsByName(Controller)
def retranslateUi(self, Controller):
_translate = QtCore.QCoreApplication.translate
Controller.setWindowTitle(_translate("Controller", "Controller"))
self.ComPort.setText(_translate("Controller", "COM Порт:"))
self.DmxAddress.setText(_translate("Controller", "DMX Адрес:"))
self.DmxAddressField.setPlaceholderText(_translate("Controller", ""))
self.Personality.setText(_translate("Controller", "Personality:"))
self.Current1.setText(_translate("Controller", " I1"))
self.ma1.setText(_translate("Controller", " mA"))
self.Current2.setText(_translate("Controller", " I2"))
self.ma2.setText(_translate("Controller", " mA"))
self.Current3.setText(_translate("Controller", " I3"))
self.ma3.setText(_translate("Controller", " mA"))
self.Current4.setText(_translate("Controller", " I4"))
self.ma4.setText(_translate("Controller", " mA"))
self.Read.setText(_translate("Controller", "Чтение"))
self.Write.setText(_translate("Controller", "Запись"))
self.Check.setText(_translate("Controller", "Проверить"))
self.Status.setText(_translate("Controller", "Пожалуйста, выберите порт"))