# -*- coding: utf-8 -*-

# Form implementation generated from reading ui file 'brickv/plugin_system/plugins/rs485/ui/rs485.ui'
#
# Created by: PyQt5 UI code generator 5.15.6
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again.  Do not edit this file unless you know what you are doing.


from PyQt5 import QtCore, QtGui, QtWidgets


class Ui_RS485(object):
    def setupUi(self, RS485):
        RS485.setObjectName("RS485")
        RS485.resize(821, 905)
        self.verticalLayout = QtWidgets.QVBoxLayout(RS485)
        self.verticalLayout.setObjectName("verticalLayout")
        self.text = QtWidgets.QPlainTextEdit(RS485)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.text.sizePolicy().hasHeightForWidth())
        self.text.setSizePolicy(sizePolicy)
        self.text.setMinimumSize(QtCore.QSize(675, 0))
        font = QtGui.QFont()
        font.setFamily("Ubuntu Mono")
        self.text.setFont(font)
        self.text.setUndoRedoEnabled(False)
        self.text.setReadOnly(True)
        self.text.setPlainText("")
        self.text.setTextInteractionFlags(QtCore.Qt.TextSelectableByKeyboard|QtCore.Qt.TextSelectableByMouse)
        self.text.setObjectName("text")
        self.verticalLayout.addWidget(self.text)
        self.modbus_master_tree = QtWidgets.QTreeWidget(RS485)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.modbus_master_tree.sizePolicy().hasHeightForWidth())
        self.modbus_master_tree.setSizePolicy(sizePolicy)
        self.modbus_master_tree.setRootIsDecorated(False)
        self.modbus_master_tree.setObjectName("modbus_master_tree")
        self.verticalLayout.addWidget(self.modbus_master_tree)
        self.modbus_slave_tree = QtWidgets.QTreeWidget(RS485)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.modbus_slave_tree.sizePolicy().hasHeightForWidth())
        self.modbus_slave_tree.setSizePolicy(sizePolicy)
        self.modbus_slave_tree.setRootIsDecorated(False)
        self.modbus_slave_tree.setObjectName("modbus_slave_tree")
        self.verticalLayout.addWidget(self.modbus_slave_tree)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.label_3 = QtWidgets.QLabel(RS485)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 2, 0, 1, 1)
        self.modbus_slave_address_spinbox = QtWidgets.QSpinBox(RS485)
        self.modbus_slave_address_spinbox.setMinimum(1)
        self.modbus_slave_address_spinbox.setMaximum(255)
        self.modbus_slave_address_spinbox.setObjectName("modbus_slave_address_spinbox")
        self.gridLayout.addWidget(self.modbus_slave_address_spinbox, 6, 1, 1, 1)
        self.baudrate_spinbox = QtWidgets.QSpinBox(RS485)
        self.baudrate_spinbox.setMinimum(100)
        self.baudrate_spinbox.setMaximum(2997070)
        self.baudrate_spinbox.setProperty("value", 115200)
        self.baudrate_spinbox.setObjectName("baudrate_spinbox")
        self.gridLayout.addWidget(self.baudrate_spinbox, 1, 1, 1, 1)
        self.wordlength_spinbox = QtWidgets.QSpinBox(RS485)
        self.wordlength_spinbox.setMinimum(5)
        self.wordlength_spinbox.setMaximum(8)
        self.wordlength_spinbox.setProperty("value", 8)
        self.wordlength_spinbox.setObjectName("wordlength_spinbox")
        self.gridLayout.addWidget(self.wordlength_spinbox, 4, 1, 1, 1)
        self.label = QtWidgets.QLabel(RS485)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 4, 0, 1, 1)
        self.label_6 = QtWidgets.QLabel(RS485)
        self.label_6.setObjectName("label_6")
        self.gridLayout.addWidget(self.label_6, 0, 0, 1, 1)
        self.label_4 = QtWidgets.QLabel(RS485)
        self.label_4.setObjectName("label_4")
        self.gridLayout.addWidget(self.label_4, 3, 0, 1, 1)
        self.modbus_slave_address_label = QtWidgets.QLabel(RS485)
        self.modbus_slave_address_label.setObjectName("modbus_slave_address_label")
        self.gridLayout.addWidget(self.modbus_slave_address_label, 6, 0, 1, 1)
        self.stopbits_spinbox = QtWidgets.QSpinBox(RS485)
        self.stopbits_spinbox.setMinimum(1)
        self.stopbits_spinbox.setMaximum(2)
        self.stopbits_spinbox.setObjectName("stopbits_spinbox")
        self.gridLayout.addWidget(self.stopbits_spinbox, 3, 1, 1, 1)
        self.parity_combobox = QtWidgets.QComboBox(RS485)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.parity_combobox.sizePolicy().hasHeightForWidth())
        self.parity_combobox.setSizePolicy(sizePolicy)
        self.parity_combobox.setObjectName("parity_combobox")
        self.parity_combobox.addItem("")
        self.parity_combobox.addItem("")
        self.parity_combobox.addItem("")
        self.gridLayout.addWidget(self.parity_combobox, 2, 1, 1, 1)
        self.label_7 = QtWidgets.QLabel(RS485)
        self.label_7.setObjectName("label_7")
        self.gridLayout.addWidget(self.label_7, 5, 0, 1, 1)
        self.label_2 = QtWidgets.QLabel(RS485)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
        self.duplex_combobox = QtWidgets.QComboBox(RS485)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.duplex_combobox.sizePolicy().hasHeightForWidth())
        self.duplex_combobox.setSizePolicy(sizePolicy)
        self.duplex_combobox.setObjectName("duplex_combobox")
        self.duplex_combobox.addItem("")
        self.duplex_combobox.addItem("")
        self.gridLayout.addWidget(self.duplex_combobox, 5, 1, 1, 1)
        self.mode_combobox = QtWidgets.QComboBox(RS485)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(9)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.mode_combobox.sizePolicy().hasHeightForWidth())
        self.mode_combobox.setSizePolicy(sizePolicy)
        self.mode_combobox.setObjectName("mode_combobox")
        self.mode_combobox.addItem("")
        self.mode_combobox.addItem("")
        self.mode_combobox.addItem("")
        self.gridLayout.addWidget(self.mode_combobox, 0, 1, 1, 1)
        self.modbus_master_request_timeout_label = QtWidgets.QLabel(RS485)
        self.modbus_master_request_timeout_label.setObjectName("modbus_master_request_timeout_label")
        self.gridLayout.addWidget(self.modbus_master_request_timeout_label, 7, 0, 1, 1)
        self.modbus_master_request_timeout_spinbox = QtWidgets.QSpinBox(RS485)
        self.modbus_master_request_timeout_spinbox.setMinimum(1)
        self.modbus_master_request_timeout_spinbox.setMaximum(60000)
        self.modbus_master_request_timeout_spinbox.setObjectName("modbus_master_request_timeout_spinbox")
        self.gridLayout.addWidget(self.modbus_master_request_timeout_spinbox, 7, 1, 1, 1)
        self.apply_button = QtWidgets.QPushButton(RS485)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.apply_button.sizePolicy().hasHeightForWidth())
        self.apply_button.setSizePolicy(sizePolicy)
        self.apply_button.setObjectName("apply_button")
        self.gridLayout.addWidget(self.apply_button, 8, 1, 1, 1)
        self.horizontalLayout_2.addLayout(self.gridLayout)
        self.line_3 = QtWidgets.QFrame(RS485)
        self.line_3.setFrameShape(QtWidgets.QFrame.VLine)
        self.line_3.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_3.setObjectName("line_3")
        self.horizontalLayout_2.addWidget(self.line_3)
        self.gridLayout_2 = QtWidgets.QGridLayout()
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.modbus_master_param1_spinbox = LeadingZeroSpinBox(RS485)
        self.modbus_master_param1_spinbox.setMinimum(1)
        self.modbus_master_param1_spinbox.setMaximum(65536)
        self.modbus_master_param1_spinbox.setObjectName("modbus_master_param1_spinbox")
        self.gridLayout_2.addWidget(self.modbus_master_param1_spinbox, 6, 1, 1, 1)
        self.text_type_combobox = QtWidgets.QComboBox(RS485)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(9)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.text_type_combobox.sizePolicy().hasHeightForWidth())
        self.text_type_combobox.setSizePolicy(sizePolicy)
        self.text_type_combobox.setObjectName("text_type_combobox")
        self.text_type_combobox.addItem("")
        self.text_type_combobox.addItem("")
        self.gridLayout_2.addWidget(self.text_type_combobox, 1, 1, 1, 1)
        self.modbus_master_slave_address_label = QtWidgets.QLabel(RS485)
        self.modbus_master_slave_address_label.setObjectName("modbus_master_slave_address_label")
        self.gridLayout_2.addWidget(self.modbus_master_slave_address_label, 5, 0, 1, 1)
        self.modbus_slave_behaviour_label = QtWidgets.QLabel(RS485)
        self.modbus_slave_behaviour_label.setObjectName("modbus_slave_behaviour_label")
        self.gridLayout_2.addWidget(self.modbus_slave_behaviour_label, 3, 0, 1, 1)
        self.label_show_text_as = QtWidgets.QLabel(RS485)
        self.label_show_text_as.setObjectName("label_show_text_as")
        self.gridLayout_2.addWidget(self.label_show_text_as, 1, 0, 1, 1)
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.combo_input = QtWidgets.QComboBox(RS485)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.combo_input.sizePolicy().hasHeightForWidth())
        self.combo_input.setSizePolicy(sizePolicy)
        self.combo_input.setEditable(True)
        self.combo_input.setMaxCount(65534)
        self.combo_input.setInsertPolicy(QtWidgets.QComboBox.InsertAtBottom)
        self.combo_input.setObjectName("combo_input")
        self.horizontalLayout_3.addWidget(self.combo_input)
        self.rs485_input_line_ending_combobox = QtWidgets.QComboBox(RS485)
        self.rs485_input_line_ending_combobox.setObjectName("rs485_input_line_ending_combobox")
        self.rs485_input_line_ending_combobox.addItem("")
        self.rs485_input_line_ending_combobox.setItemText(0, "")
        self.rs485_input_line_ending_combobox.addItem("")
        self.rs485_input_line_ending_combobox.addItem("")
        self.rs485_input_line_ending_combobox.addItem("")
        self.rs485_input_line_ending_combobox.addItem("")
        self.rs485_input_line_ending_combobox.addItem("")
        self.rs485_input_line_ending_combobox.addItem("")
        self.horizontalLayout_3.addWidget(self.rs485_input_line_ending_combobox)
        self.rs485_input_line_ending_lineedit = QtWidgets.QLineEdit(RS485)
        self.rs485_input_line_ending_lineedit.setEnabled(False)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.rs485_input_line_ending_lineedit.sizePolicy().hasHeightForWidth())
        self.rs485_input_line_ending_lineedit.setSizePolicy(sizePolicy)
        self.rs485_input_line_ending_lineedit.setMaximumSize(QtCore.QSize(80, 16777215))
        self.rs485_input_line_ending_lineedit.setObjectName("rs485_input_line_ending_lineedit")
        self.horizontalLayout_3.addWidget(self.rs485_input_line_ending_lineedit)
        self.gridLayout_2.addLayout(self.horizontalLayout_3, 2, 1, 1, 1)
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.modbus_master_param2_dec_spinbox = QtWidgets.QSpinBox(RS485)
        self.modbus_master_param2_dec_spinbox.setObjectName("modbus_master_param2_dec_spinbox")
        self.horizontalLayout_4.addWidget(self.modbus_master_param2_dec_spinbox)
        self.modbus_master_param2_hex_spinbox = SpinBoxHex(RS485)
        self.modbus_master_param2_hex_spinbox.setMinimum(0)
        self.modbus_master_param2_hex_spinbox.setMaximum(65535)
        self.modbus_master_param2_hex_spinbox.setObjectName("modbus_master_param2_hex_spinbox")
        self.horizontalLayout_4.addWidget(self.modbus_master_param2_hex_spinbox)
        self.modbus_master_param2_bool_combobox = QtWidgets.QComboBox(RS485)
        self.modbus_master_param2_bool_combobox.setObjectName("modbus_master_param2_bool_combobox")
        self.modbus_master_param2_bool_combobox.addItem("")
        self.modbus_master_param2_bool_combobox.addItem("")
        self.horizontalLayout_4.addWidget(self.modbus_master_param2_bool_combobox)
        self.modbus_master_param2_combobox = QtWidgets.QComboBox(RS485)
        self.modbus_master_param2_combobox.setEditable(True)
        self.modbus_master_param2_combobox.setObjectName("modbus_master_param2_combobox")
        self.horizontalLayout_4.addWidget(self.modbus_master_param2_combobox)
        self.gridLayout_2.addLayout(self.horizontalLayout_4, 7, 1, 1, 1)
        self.modbus_master_slave_address_spinbox = QtWidgets.QSpinBox(RS485)
        self.modbus_master_slave_address_spinbox.setMaximum(255)
        self.modbus_master_slave_address_spinbox.setProperty("value", 1)
        self.modbus_master_slave_address_spinbox.setObjectName("modbus_master_slave_address_spinbox")
        self.gridLayout_2.addWidget(self.modbus_master_slave_address_spinbox, 5, 1, 1, 1)
        self.modbus_master_param2_label = QtWidgets.QLabel(RS485)
        self.modbus_master_param2_label.setObjectName("modbus_master_param2_label")
        self.gridLayout_2.addWidget(self.modbus_master_param2_label, 7, 0, 1, 1)
        self.modbus_master_function_label = QtWidgets.QLabel(RS485)
        self.modbus_master_function_label.setObjectName("modbus_master_function_label")
        self.gridLayout_2.addWidget(self.modbus_master_function_label, 4, 0, 1, 1)
        self.modbus_slave_behaviour_combobox = QtWidgets.QComboBox(RS485)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(9)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.modbus_slave_behaviour_combobox.sizePolicy().hasHeightForWidth())
        self.modbus_slave_behaviour_combobox.setSizePolicy(sizePolicy)
        self.modbus_slave_behaviour_combobox.setObjectName("modbus_slave_behaviour_combobox")
        self.modbus_slave_behaviour_combobox.addItem("")
        self.modbus_slave_behaviour_combobox.addItem("")
        self.gridLayout_2.addWidget(self.modbus_slave_behaviour_combobox, 3, 1, 1, 1)
        self.modbus_master_function_combobox = QtWidgets.QComboBox(RS485)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(9)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.modbus_master_function_combobox.sizePolicy().hasHeightForWidth())
        self.modbus_master_function_combobox.setSizePolicy(sizePolicy)
        self.modbus_master_function_combobox.setObjectName("modbus_master_function_combobox")
        self.modbus_master_function_combobox.addItem("")
        self.modbus_master_function_combobox.addItem("")
        self.modbus_master_function_combobox.addItem("")
        self.modbus_master_function_combobox.addItem("")
        self.modbus_master_function_combobox.addItem("")
        self.modbus_master_function_combobox.addItem("")
        self.modbus_master_function_combobox.addItem("")
        self.modbus_master_function_combobox.addItem("")
        self.gridLayout_2.addWidget(self.modbus_master_function_combobox, 4, 1, 1, 1)
        spacerItem = QtWidgets.QSpacerItem(20, 0, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.gridLayout_2.addItem(spacerItem, 10, 0, 1, 2)
        self.rs485_input_label = QtWidgets.QLabel(RS485)
        self.rs485_input_label.setObjectName("rs485_input_label")
        self.gridLayout_2.addWidget(self.rs485_input_label, 2, 0, 1, 1)
        self.modbus_master_param1_label = QtWidgets.QLabel(RS485)
        self.modbus_master_param1_label.setObjectName("modbus_master_param1_label")
        self.gridLayout_2.addWidget(self.modbus_master_param1_label, 6, 0, 1, 1)
        self.button_clear_text = QtWidgets.QPushButton(RS485)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.button_clear_text.sizePolicy().hasHeightForWidth())
        self.button_clear_text.setSizePolicy(sizePolicy)
        self.button_clear_text.setAutoDefault(False)
        self.button_clear_text.setDefault(False)
        self.button_clear_text.setObjectName("button_clear_text")
        self.gridLayout_2.addWidget(self.button_clear_text, 0, 1, 1, 1)
        self.label_5 = QtWidgets.QLabel(RS485)
        self.label_5.setObjectName("label_5")
        self.gridLayout_2.addWidget(self.label_5, 0, 0, 1, 1)
        self.modbus_master_send_button = QtWidgets.QPushButton(RS485)
        self.modbus_master_send_button.setDefault(True)
        self.modbus_master_send_button.setObjectName("modbus_master_send_button")
        self.gridLayout_2.addWidget(self.modbus_master_send_button, 8, 1, 1, 1)
        self.button_write = QtWidgets.QPushButton(RS485)
        self.button_write.setDefault(False)
        self.button_write.setObjectName("button_write")
        self.gridLayout_2.addWidget(self.button_write, 9, 1, 1, 1)
        self.horizontalLayout_2.addLayout(self.gridLayout_2)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.line_2 = QtWidgets.QFrame(RS485)
        self.line_2.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_2.setObjectName("line_2")
        self.verticalLayout.addWidget(self.line_2)
        self.widget_errors = QtWidgets.QWidget(RS485)
        self.widget_errors.setObjectName("widget_errors")
        self.gridLayout_5 = QtWidgets.QGridLayout(self.widget_errors)
        self.gridLayout_5.setContentsMargins(0, 0, 0, 0)
        self.gridLayout_5.setObjectName("gridLayout_5")
        self.gridLayout_4 = QtWidgets.QGridLayout()
        self.gridLayout_4.setObjectName("gridLayout_4")
        self.label_error_modbus_checksum_name = QtWidgets.QLabel(self.widget_errors)
        self.label_error_modbus_checksum_name.setObjectName("label_error_modbus_checksum_name")
        self.gridLayout_4.addWidget(self.label_error_modbus_checksum_name, 1, 2, 1, 1)
        self.label_error_modbus_timeout_name = QtWidgets.QLabel(self.widget_errors)
        self.label_error_modbus_timeout_name.setObjectName("label_error_modbus_timeout_name")
        self.gridLayout_4.addWidget(self.label_error_modbus_timeout_name, 1, 0, 1, 1)
        self.label_error_modbus_frame_size_name = QtWidgets.QLabel(self.widget_errors)
        self.label_error_modbus_frame_size_name.setObjectName("label_error_modbus_frame_size_name")
        self.gridLayout_4.addWidget(self.label_error_modbus_frame_size_name, 1, 4, 1, 1)
        self.label_error_modbus_slave_device_failure = QtWidgets.QLabel(self.widget_errors)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_error_modbus_slave_device_failure.sizePolicy().hasHeightForWidth())
        self.label_error_modbus_slave_device_failure.setSizePolicy(sizePolicy)
        self.label_error_modbus_slave_device_failure.setObjectName("label_error_modbus_slave_device_failure")
        self.gridLayout_4.addWidget(self.label_error_modbus_slave_device_failure, 2, 7, 1, 1)
        self.label_error_modbus_frame_size = QtWidgets.QLabel(self.widget_errors)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_error_modbus_frame_size.sizePolicy().hasHeightForWidth())
        self.label_error_modbus_frame_size.setSizePolicy(sizePolicy)
        self.label_error_modbus_frame_size.setObjectName("label_error_modbus_frame_size")
        self.gridLayout_4.addWidget(self.label_error_modbus_frame_size, 1, 5, 1, 1)
        self.label_error_modbus_checksum = QtWidgets.QLabel(self.widget_errors)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_error_modbus_checksum.sizePolicy().hasHeightForWidth())
        self.label_error_modbus_checksum.setSizePolicy(sizePolicy)
        self.label_error_modbus_checksum.setObjectName("label_error_modbus_checksum")
        self.gridLayout_4.addWidget(self.label_error_modbus_checksum, 1, 3, 1, 1)
        self.label_error_modbus_slave_device_failure_name = QtWidgets.QLabel(self.widget_errors)
        self.label_error_modbus_slave_device_failure_name.setObjectName("label_error_modbus_slave_device_failure_name")
        self.gridLayout_4.addWidget(self.label_error_modbus_slave_device_failure_name, 2, 6, 1, 1)
        self.label_error_modbus_illegal_function_name = QtWidgets.QLabel(self.widget_errors)
        self.label_error_modbus_illegal_function_name.setObjectName("label_error_modbus_illegal_function_name")
        self.gridLayout_4.addWidget(self.label_error_modbus_illegal_function_name, 2, 0, 1, 1)
        self.label_error_modbus_timeout = QtWidgets.QLabel(self.widget_errors)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_error_modbus_timeout.sizePolicy().hasHeightForWidth())
        self.label_error_modbus_timeout.setSizePolicy(sizePolicy)
        self.label_error_modbus_timeout.setObjectName("label_error_modbus_timeout")
        self.gridLayout_4.addWidget(self.label_error_modbus_timeout, 1, 1, 1, 1)
        self.label_error_modbus_illegal_data_address_name = QtWidgets.QLabel(self.widget_errors)
        self.label_error_modbus_illegal_data_address_name.setObjectName("label_error_modbus_illegal_data_address_name")
        self.gridLayout_4.addWidget(self.label_error_modbus_illegal_data_address_name, 2, 2, 1, 1)
        self.label_error_modbus_illegal_function = QtWidgets.QLabel(self.widget_errors)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_error_modbus_illegal_function.sizePolicy().hasHeightForWidth())
        self.label_error_modbus_illegal_function.setSizePolicy(sizePolicy)
        self.label_error_modbus_illegal_function.setObjectName("label_error_modbus_illegal_function")
        self.gridLayout_4.addWidget(self.label_error_modbus_illegal_function, 2, 1, 1, 1)
        self.label_error_modbus_illegal_data_value = QtWidgets.QLabel(self.widget_errors)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_error_modbus_illegal_data_value.sizePolicy().hasHeightForWidth())
        self.label_error_modbus_illegal_data_value.setSizePolicy(sizePolicy)
        self.label_error_modbus_illegal_data_value.setObjectName("label_error_modbus_illegal_data_value")
        self.gridLayout_4.addWidget(self.label_error_modbus_illegal_data_value, 2, 5, 1, 1)
        self.label_error_modbus_illegal_data_address = QtWidgets.QLabel(self.widget_errors)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_error_modbus_illegal_data_address.sizePolicy().hasHeightForWidth())
        self.label_error_modbus_illegal_data_address.setSizePolicy(sizePolicy)
        self.label_error_modbus_illegal_data_address.setObjectName("label_error_modbus_illegal_data_address")
        self.gridLayout_4.addWidget(self.label_error_modbus_illegal_data_address, 2, 3, 1, 1)
        self.label_error_modbus_illegal_data_value_name = QtWidgets.QLabel(self.widget_errors)
        self.label_error_modbus_illegal_data_value_name.setObjectName("label_error_modbus_illegal_data_value_name")
        self.gridLayout_4.addWidget(self.label_error_modbus_illegal_data_value_name, 2, 4, 1, 1)
        self.label_error_overrun_name = QtWidgets.QLabel(self.widget_errors)
        self.label_error_overrun_name.setObjectName("label_error_overrun_name")
        self.gridLayout_4.addWidget(self.label_error_overrun_name, 0, 0, 1, 1)
        self.label_error_overrun = QtWidgets.QLabel(self.widget_errors)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_error_overrun.sizePolicy().hasHeightForWidth())
        self.label_error_overrun.setSizePolicy(sizePolicy)
        self.label_error_overrun.setObjectName("label_error_overrun")
        self.gridLayout_4.addWidget(self.label_error_overrun, 0, 1, 1, 1)
        self.label_error_parity_name = QtWidgets.QLabel(self.widget_errors)
        self.label_error_parity_name.setObjectName("label_error_parity_name")
        self.gridLayout_4.addWidget(self.label_error_parity_name, 0, 2, 1, 1)
        self.label_error_parity = QtWidgets.QLabel(self.widget_errors)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_error_parity.sizePolicy().hasHeightForWidth())
        self.label_error_parity.setSizePolicy(sizePolicy)
        self.label_error_parity.setObjectName("label_error_parity")
        self.gridLayout_4.addWidget(self.label_error_parity, 0, 3, 1, 1)
        self.label_error_stream_name = QtWidgets.QLabel(self.widget_errors)
        self.label_error_stream_name.setObjectName("label_error_stream_name")
        self.gridLayout_4.addWidget(self.label_error_stream_name, 0, 4, 1, 1)
        self.label_error_stream = QtWidgets.QLabel(self.widget_errors)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_error_stream.sizePolicy().hasHeightForWidth())
        self.label_error_stream.setSizePolicy(sizePolicy)
        self.label_error_stream.setObjectName("label_error_stream")
        self.gridLayout_4.addWidget(self.label_error_stream, 0, 5, 1, 1)
        self.gridLayout_5.addLayout(self.gridLayout_4, 0, 0, 1, 1)
        self.verticalLayout.addWidget(self.widget_errors)

        self.retranslateUi(RS485)
        self.rs485_input_line_ending_combobox.setCurrentIndex(3)
        QtCore.QMetaObject.connectSlotsByName(RS485)
        RS485.setTabOrder(self.text, self.modbus_master_tree)
        RS485.setTabOrder(self.modbus_master_tree, self.modbus_slave_tree)
        RS485.setTabOrder(self.modbus_slave_tree, self.mode_combobox)
        RS485.setTabOrder(self.mode_combobox, self.baudrate_spinbox)
        RS485.setTabOrder(self.baudrate_spinbox, self.parity_combobox)
        RS485.setTabOrder(self.parity_combobox, self.stopbits_spinbox)
        RS485.setTabOrder(self.stopbits_spinbox, self.wordlength_spinbox)
        RS485.setTabOrder(self.wordlength_spinbox, self.duplex_combobox)
        RS485.setTabOrder(self.duplex_combobox, self.modbus_slave_address_spinbox)
        RS485.setTabOrder(self.modbus_slave_address_spinbox, self.modbus_master_request_timeout_spinbox)
        RS485.setTabOrder(self.modbus_master_request_timeout_spinbox, self.apply_button)
        RS485.setTabOrder(self.apply_button, self.button_clear_text)
        RS485.setTabOrder(self.button_clear_text, self.text_type_combobox)
        RS485.setTabOrder(self.text_type_combobox, self.combo_input)
        RS485.setTabOrder(self.combo_input, self.rs485_input_line_ending_combobox)
        RS485.setTabOrder(self.rs485_input_line_ending_combobox, self.rs485_input_line_ending_lineedit)
        RS485.setTabOrder(self.rs485_input_line_ending_lineedit, self.modbus_slave_behaviour_combobox)
        RS485.setTabOrder(self.modbus_slave_behaviour_combobox, self.modbus_master_function_combobox)
        RS485.setTabOrder(self.modbus_master_function_combobox, self.modbus_master_slave_address_spinbox)
        RS485.setTabOrder(self.modbus_master_slave_address_spinbox, self.modbus_master_param1_spinbox)
        RS485.setTabOrder(self.modbus_master_param1_spinbox, self.modbus_master_param2_dec_spinbox)
        RS485.setTabOrder(self.modbus_master_param2_dec_spinbox, self.modbus_master_param2_hex_spinbox)
        RS485.setTabOrder(self.modbus_master_param2_hex_spinbox, self.modbus_master_param2_bool_combobox)
        RS485.setTabOrder(self.modbus_master_param2_bool_combobox, self.modbus_master_send_button)
        RS485.setTabOrder(self.modbus_master_send_button, self.button_write)

    def retranslateUi(self, RS485):
        _translate = QtCore.QCoreApplication.translate
        RS485.setWindowTitle(_translate("RS485", "Form"))
        self.modbus_master_tree.headerItem().setText(0, _translate("RS485", "Time"))
        self.modbus_master_tree.headerItem().setText(1, _translate("RS485", "Request ID"))
        self.modbus_master_tree.headerItem().setText(2, _translate("RS485", "Slave Address"))
        self.modbus_master_tree.headerItem().setText(3, _translate("RS485", "Function"))
        self.modbus_master_tree.headerItem().setText(4, _translate("RS485", "Entity Number"))
        self.modbus_master_tree.headerItem().setText(5, _translate("RS485", "Count"))
        self.modbus_master_tree.headerItem().setText(6, _translate("RS485", "Data [Hex]"))
        self.modbus_slave_tree.headerItem().setText(0, _translate("RS485", "Time"))
        self.modbus_slave_tree.headerItem().setText(1, _translate("RS485", "Request ID"))
        self.modbus_slave_tree.headerItem().setText(2, _translate("RS485", "Function"))
        self.modbus_slave_tree.headerItem().setText(3, _translate("RS485", "Entity Number"))
        self.modbus_slave_tree.headerItem().setText(4, _translate("RS485", "Count"))
        self.modbus_slave_tree.headerItem().setText(5, _translate("RS485", "Data [Hex]"))
        self.label_3.setText(_translate("RS485", "Parity:"))
        self.label.setText(_translate("RS485", "Word Length:"))
        self.label_6.setText(_translate("RS485", "Mode:"))
        self.label_4.setText(_translate("RS485", "Stop Bits:"))
        self.modbus_slave_address_label.setText(_translate("RS485", "Slave Address:"))
        self.parity_combobox.setItemText(0, _translate("RS485", "None"))
        self.parity_combobox.setItemText(1, _translate("RS485", "Odd"))
        self.parity_combobox.setItemText(2, _translate("RS485", "Even"))
        self.label_7.setText(_translate("RS485", "Duplex:"))
        self.label_2.setText(_translate("RS485", "Baudrate:"))
        self.duplex_combobox.setItemText(0, _translate("RS485", "Half-Duplex"))
        self.duplex_combobox.setItemText(1, _translate("RS485", "Full-Duplex"))
        self.mode_combobox.setItemText(0, _translate("RS485", "RS485"))
        self.mode_combobox.setItemText(1, _translate("RS485", "Modbus Master RTU"))
        self.mode_combobox.setItemText(2, _translate("RS485", "Modbus Slave RTU"))
        self.modbus_master_request_timeout_label.setText(_translate("RS485", "Request Timeout [ms]:"))
        self.apply_button.setText(_translate("RS485", "Save Configuration"))
        self.text_type_combobox.setItemText(0, _translate("RS485", "ASCII"))
        self.text_type_combobox.setItemText(1, _translate("RS485", "Raw (Hex Bytes)"))
        self.modbus_master_slave_address_label.setText(_translate("RS485", "Slave Address:"))
        self.modbus_slave_behaviour_label.setText(_translate("RS485", "Slave Behaviour:"))
        self.label_show_text_as.setText(_translate("RS485", "Encoding:"))
        self.rs485_input_line_ending_combobox.setToolTip(_translate("RS485", "Line Ending"))
        self.rs485_input_line_ending_combobox.setItemText(1, _translate("RS485", "\\n"))
        self.rs485_input_line_ending_combobox.setItemText(2, _translate("RS485", "\\r"))
        self.rs485_input_line_ending_combobox.setItemText(3, _translate("RS485", "\\r\\n"))
        self.rs485_input_line_ending_combobox.setItemText(4, _translate("RS485", "\\n\\r"))
        self.rs485_input_line_ending_combobox.setItemText(5, _translate("RS485", "\\0"))
        self.rs485_input_line_ending_combobox.setItemText(6, _translate("RS485", "Hex:"))
        self.modbus_master_param2_bool_combobox.setItemText(0, _translate("RS485", "True"))
        self.modbus_master_param2_bool_combobox.setItemText(1, _translate("RS485", "False"))
        self.modbus_master_param2_label.setText(_translate("RS485", "Number of Coils:"))
        self.modbus_master_function_label.setText(_translate("RS485", "Function:"))
        self.modbus_slave_behaviour_combobox.setItemText(0, _translate("RS485", "None"))
        self.modbus_slave_behaviour_combobox.setItemText(1, _translate("RS485", "Automatic Response"))
        self.modbus_master_function_combobox.setItemText(0, _translate("RS485", "Read Coils (Function Code 1)"))
        self.modbus_master_function_combobox.setItemText(1, _translate("RS485", "Read Holding Registers (Function Code 3)"))
        self.modbus_master_function_combobox.setItemText(2, _translate("RS485", "Write Single Coil (Function Code 5)"))
        self.modbus_master_function_combobox.setItemText(3, _translate("RS485", "Write Single Register (Function Code 6)"))
        self.modbus_master_function_combobox.setItemText(4, _translate("RS485", "Write Multiple Coils (Function Code 15)"))
        self.modbus_master_function_combobox.setItemText(5, _translate("RS485", "Write Multiple Registers (Function Code 16)"))
        self.modbus_master_function_combobox.setItemText(6, _translate("RS485", "Read Discrete Inputs (Function Code 2)"))
        self.modbus_master_function_combobox.setItemText(7, _translate("RS485", "Read Input Registers (Function Code 4)"))
        self.rs485_input_label.setText(_translate("RS485", "Input:"))
        self.modbus_master_param1_label.setText(_translate("RS485", "Starting Address:"))
        self.button_clear_text.setText(_translate("RS485", "Clear"))
        self.label_5.setText(_translate("RS485", "History:"))
        self.modbus_master_send_button.setText(_translate("RS485", "Send Request"))
        self.button_write.setText(_translate("RS485", "Write"))
        self.label_error_modbus_checksum_name.setText(_translate("RS485", "Checksum Errors:"))
        self.label_error_modbus_timeout_name.setText(_translate("RS485", "Timeouts:"))
        self.label_error_modbus_frame_size_name.setText(_translate("RS485", "Max Frame Size Errors:"))
        self.label_error_modbus_slave_device_failure.setText(_translate("RS485", "0"))
        self.label_error_modbus_frame_size.setText(_translate("RS485", "0"))
        self.label_error_modbus_checksum.setText(_translate("RS485", "0"))
        self.label_error_modbus_slave_device_failure_name.setText(_translate("RS485", "Slave Device Failure:"))
        self.label_error_modbus_illegal_function_name.setText(_translate("RS485", "Illegal Function:"))
        self.label_error_modbus_timeout.setText(_translate("RS485", "0"))
        self.label_error_modbus_illegal_data_address_name.setText(_translate("RS485", "Illegal Data Address:"))
        self.label_error_modbus_illegal_function.setText(_translate("RS485", "0"))
        self.label_error_modbus_illegal_data_value.setText(_translate("RS485", "0"))
        self.label_error_modbus_illegal_data_address.setText(_translate("RS485", "0"))
        self.label_error_modbus_illegal_data_value_name.setText(_translate("RS485", "Illegal Data Value:"))
        self.label_error_overrun_name.setText(_translate("RS485", "Overrun Error Count:"))
        self.label_error_overrun.setText(_translate("RS485", "0"))
        self.label_error_parity_name.setText(_translate("RS485", "Parity Error Count:"))
        self.label_error_parity.setText(_translate("RS485", "0"))
        self.label_error_stream_name.setText(_translate("RS485", "Stream Error Count:"))
        self.label_error_stream.setText(_translate("RS485", "0"))
from brickv.leading_zero_spin_box import LeadingZeroSpinBox
from brickv.spin_box_hex import SpinBoxHex
