# Form implementation generated from reading ui file 'device.ui'
#
# Created by: PyQt6 UI code generator 6.4.0
#
# 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_Device(object):
    def setupUi(self, Device):
        Device.setObjectName("Device")
        Device.resize(506, 374)
        font = QtGui.QFont()
        font.setFamily("Ubuntu")
        font.setPointSize(-1)
        font.setBold(False)
        font.setWeight(50)
        Device.setFont(font)
        Device.setAutoFillBackground(False)
        Device.setStyleSheet("background-color:rgb(35,39,42);\n"
"color:white;\n"
"font-size:16px;\n"
"label{\n"
"font:bold}")
        self.gridLayoutWidget = QtWidgets.QWidget(Device)
        self.gridLayoutWidget.setGeometry(QtCore.QRect(40, 20, 431, 341))
        self.gridLayoutWidget.setObjectName("gridLayoutWidget")
        self.device_params_grid = QtWidgets.QGridLayout(self.gridLayoutWidget)
        self.device_params_grid.setContentsMargins(0, 0, 0, 0)
        self.device_params_grid.setObjectName("device_params_grid")
        self.device_params_label = QtWidgets.QLabel(self.gridLayoutWidget)
        self.device_params_label.setStyleSheet("font-size:20px;\n"
"font:bold;\n"
"border:1px solid white;\n"
"border-radius:10px;")
        self.device_params_label.setAlignment(QtCore.Qt.AlignmentFlag.AlignCenter)
        self.device_params_label.setObjectName("device_params_label")
        self.device_params_grid.addWidget(self.device_params_label, 0, 0, 1, 2)
        self.status_label = QtWidgets.QLabel(self.gridLayoutWidget)
        self.status_label.setStyleSheet("font:bold;\n"
" font-size:16px;")
        self.status_label.setObjectName("status_label")
        self.device_params_grid.addWidget(self.status_label, 1, 0, 1, 1)
        self.device_status = QtWidgets.QLabel(self.gridLayoutWidget)
        self.device_status.setToolTip("")
        self.device_status.setStyleSheet("font-size:16px;")
        self.device_status.setObjectName("device_status")
        self.device_params_grid.addWidget(self.device_status, 1, 1, 1, 1)
        self.baud_rate_label = QtWidgets.QLabel(self.gridLayoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Fixed, QtWidgets.QSizePolicy.Policy.Fixed)
        sizePolicy.setHorizontalStretch(235)
        sizePolicy.setVerticalStretch(57)
        sizePolicy.setHeightForWidth(self.baud_rate_label.sizePolicy().hasHeightForWidth())
        self.baud_rate_label.setSizePolicy(sizePolicy)
        self.baud_rate_label.setStyleSheet("font:bold;")
        self.baud_rate_label.setObjectName("baud_rate_label")
        self.device_params_grid.addWidget(self.baud_rate_label, 6, 0, 1, 1)
        self.device_name = QtWidgets.QLabel(self.gridLayoutWidget)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.device_name.sizePolicy().hasHeightForWidth())
        self.device_name.setSizePolicy(sizePolicy)
        self.device_name.setStyleSheet("font-size:16px;")
        self.device_name.setObjectName("device_name")
        self.device_params_grid.addWidget(self.device_name, 3, 1, 1, 1)
        self.name_label = QtWidgets.QLabel(self.gridLayoutWidget)
        self.name_label.setStyleSheet("font:bold;\n"
"font-size:16px;")
        self.name_label.setObjectName("name_label")
        self.device_params_grid.addWidget(self.name_label, 3, 0, 1, 1)
        self.baud_rate_edit = QtWidgets.QLineEdit(self.gridLayoutWidget)
        self.baud_rate_edit.setFocusPolicy(QtCore.Qt.FocusPolicy.ClickFocus)
        self.baud_rate_edit.setStyleSheet("color:white; \n"
"font-size:16px;\n"
"border:none;\n"
"")
        self.baud_rate_edit.setObjectName("baud_rate_edit")
        self.device_params_grid.addWidget(self.baud_rate_edit, 6, 1, 1, 1)
        self.id_label = QtWidgets.QLabel(self.gridLayoutWidget)
        self.id_label.setStyleSheet("font:bold;")
        self.id_label.setObjectName("id_label")
        self.device_params_grid.addWidget(self.id_label, 2, 0, 1, 1)
        self.id_edit = QtWidgets.QLineEdit(self.gridLayoutWidget)
        self.id_edit.setFocusPolicy(QtCore.Qt.FocusPolicy.ClickFocus)
        self.id_edit.setStyleSheet("QLineEdit\n"
"{color:white; \n"
"font-size:16px;\n"
"border:none;\n"
"}\n"
"")
        self.id_edit.setObjectName("id_edit")
        self.device_params_grid.addWidget(self.id_edit, 2, 1, 1, 1)

        self.retranslateUi(Device)
        QtCore.QMetaObject.connectSlotsByName(Device)

    def retranslateUi(self, Device):
        _translate = QtCore.QCoreApplication.translate
        Device.setWindowTitle(_translate("Device", "none"))
        self.device_params_label.setText(_translate("Device", "<html><head/><body><p>Параметры устройства</p></body></html>"))
        self.status_label.setText(_translate("Device", "Статус устройства"))
        self.device_status.setText(_translate("Device", "none"))
        self.baud_rate_label.setText(_translate("Device", "Скорость передачи данных (ред.)"))
        self.device_name.setText(_translate("Device", "none"))
        self.name_label.setText(_translate("Device", "Название устройства"))
        self.id_label.setText(_translate("Device", "ID (ред.)"))
