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

# Form implementation generated from reading ui file 'brickv/plugin_system/plugins/rs232_v2/ui/rs232_v2.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_RS232_V2(object):
    def setupUi(self, RS232_V2):
        RS232_V2.setObjectName("RS232_V2")
        RS232_V2.resize(1221, 944)
        self.verticalLayout = QtWidgets.QVBoxLayout(RS232_V2)
        self.verticalLayout.setObjectName("verticalLayout")
        self.text = QtWidgets.QPlainTextEdit(RS232_V2)
        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.horizontalLayout_4 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.stopbits_spinbox = QtWidgets.QSpinBox(RS232_V2)
        self.stopbits_spinbox.setReadOnly(False)
        self.stopbits_spinbox.setMinimum(1)
        self.stopbits_spinbox.setMaximum(2)
        self.stopbits_spinbox.setObjectName("stopbits_spinbox")
        self.gridLayout.addWidget(self.stopbits_spinbox, 4, 1, 1, 1)
        self.label_6 = QtWidgets.QLabel(RS232_V2)
        self.label_6.setObjectName("label_6")
        self.gridLayout.addWidget(self.label_6, 6, 0, 1, 1)
        self.wordlength_spinbox = QtWidgets.QSpinBox(RS232_V2)
        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, 5, 1, 1, 1)
        self.baudrate_spinbox = QtWidgets.QSpinBox(RS232_V2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.baudrate_spinbox.sizePolicy().hasHeightForWidth())
        self.baudrate_spinbox.setSizePolicy(sizePolicy)
        self.baudrate_spinbox.setMinimum(100)
        self.baudrate_spinbox.setMaximum(2000000)
        self.baudrate_spinbox.setProperty("value", 115200)
        self.baudrate_spinbox.setObjectName("baudrate_spinbox")
        self.gridLayout.addWidget(self.baudrate_spinbox, 1, 1, 1, 1)
        self.label_3 = QtWidgets.QLabel(RS232_V2)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 3, 0, 1, 1)
        self.parity_combobox = QtWidgets.QComboBox(RS232_V2)
        self.parity_combobox.setObjectName("parity_combobox")
        self.parity_combobox.addItem("")
        self.parity_combobox.addItem("")
        self.parity_combobox.addItem("")
        self.gridLayout.addWidget(self.parity_combobox, 3, 1, 1, 1)
        self.label_4 = QtWidgets.QLabel(RS232_V2)
        self.label_4.setObjectName("label_4")
        self.gridLayout.addWidget(self.label_4, 4, 0, 1, 1)
        self.label_2 = QtWidgets.QLabel(RS232_V2)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
        self.label_note_baud = QtWidgets.QLabel(RS232_V2)
        self.label_note_baud.setTextFormat(QtCore.Qt.RichText)
        self.label_note_baud.setObjectName("label_note_baud")
        self.gridLayout.addWidget(self.label_note_baud, 2, 1, 1, 1)
        self.flowcontrol_combobox = QtWidgets.QComboBox(RS232_V2)
        self.flowcontrol_combobox.setObjectName("flowcontrol_combobox")
        self.flowcontrol_combobox.addItem("")
        self.flowcontrol_combobox.addItem("")
        self.flowcontrol_combobox.addItem("")
        self.gridLayout.addWidget(self.flowcontrol_combobox, 6, 1, 1, 1)
        self.label_note_fc_hw = QtWidgets.QLabel(RS232_V2)
        self.label_note_fc_hw.setTextFormat(QtCore.Qt.RichText)
        self.label_note_fc_hw.setObjectName("label_note_fc_hw")
        self.gridLayout.addWidget(self.label_note_fc_hw, 7, 1, 1, 1)
        self.label = QtWidgets.QLabel(RS232_V2)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 5, 0, 1, 1)
        self.save_button = QtWidgets.QPushButton(RS232_V2)
        self.save_button.setObjectName("save_button")
        self.gridLayout.addWidget(self.save_button, 8, 1, 1, 1)
        self.horizontalLayout_4.addLayout(self.gridLayout)
        self.line_3 = QtWidgets.QFrame(RS232_V2)
        self.line_3.setFrameShape(QtWidgets.QFrame.VLine)
        self.line_3.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_3.setObjectName("line_3")
        self.horizontalLayout_4.addWidget(self.line_3)
        self.gridLayout_2 = QtWidgets.QGridLayout()
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.label_10 = QtWidgets.QLabel(RS232_V2)
        self.label_10.setObjectName("label_10")
        self.gridLayout_2.addWidget(self.label_10, 0, 0, 1, 1)
        spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.gridLayout_2.addItem(spacerItem, 4, 1, 1, 1)
        self.label_5 = QtWidgets.QLabel(RS232_V2)
        self.label_5.setObjectName("label_5")
        self.gridLayout_2.addWidget(self.label_5, 2, 0, 1, 1)
        self.text_type_combobox = QtWidgets.QComboBox(RS232_V2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        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.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.combo_input = QtWidgets.QComboBox(RS232_V2)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        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.addWidget(self.combo_input)
        self.line_ending_combobox = QtWidgets.QComboBox(RS232_V2)
        self.line_ending_combobox.setObjectName("line_ending_combobox")
        self.line_ending_combobox.addItem("")
        self.line_ending_combobox.setItemText(0, "")
        self.line_ending_combobox.addItem("")
        self.line_ending_combobox.addItem("")
        self.line_ending_combobox.addItem("")
        self.line_ending_combobox.addItem("")
        self.line_ending_combobox.addItem("")
        self.line_ending_combobox.addItem("")
        self.horizontalLayout.addWidget(self.line_ending_combobox)
        self.line_ending_lineedit = QtWidgets.QLineEdit(RS232_V2)
        self.line_ending_lineedit.setEnabled(False)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.line_ending_lineedit.sizePolicy().hasHeightForWidth())
        self.line_ending_lineedit.setSizePolicy(sizePolicy)
        self.line_ending_lineedit.setMaximumSize(QtCore.QSize(80, 16777215))
        self.line_ending_lineedit.setObjectName("line_ending_lineedit")
        self.horizontalLayout.addWidget(self.line_ending_lineedit)
        self.gridLayout_2.addLayout(self.horizontalLayout, 2, 1, 1, 1)
        self.label_8 = QtWidgets.QLabel(RS232_V2)
        self.label_8.setObjectName("label_8")
        self.gridLayout_2.addWidget(self.label_8, 1, 0, 1, 1)
        self.button_clear_text = QtWidgets.QPushButton(RS232_V2)
        self.button_clear_text.setObjectName("button_clear_text")
        self.gridLayout_2.addWidget(self.button_clear_text, 0, 1, 1, 1)
        self.button_write = QtWidgets.QPushButton(RS232_V2)
        self.button_write.setObjectName("button_write")
        self.gridLayout_2.addWidget(self.button_write, 3, 1, 1, 1)
        self.horizontalLayout_4.addLayout(self.gridLayout_2)
        self.verticalLayout.addLayout(self.horizontalLayout_4)
        self.line_2 = QtWidgets.QFrame(RS232_V2)
        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(RS232_V2)
        self.widget_errors.setObjectName("widget_errors")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.widget_errors)
        self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.label_9 = QtWidgets.QLabel(self.widget_errors)
        self.label_9.setObjectName("label_9")
        self.horizontalLayout_3.addWidget(self.label_9)
        self.label_error_overrun = QtWidgets.QLabel(self.widget_errors)
        self.label_error_overrun.setObjectName("label_error_overrun")
        self.horizontalLayout_3.addWidget(self.label_error_overrun)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem1)
        self.label_11 = QtWidgets.QLabel(self.widget_errors)
        self.label_11.setObjectName("label_11")
        self.horizontalLayout_3.addWidget(self.label_11)
        self.label_error_parity = QtWidgets.QLabel(self.widget_errors)
        self.label_error_parity.setObjectName("label_error_parity")
        self.horizontalLayout_3.addWidget(self.label_error_parity)
        spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem2)
        self.label_7 = QtWidgets.QLabel(self.widget_errors)
        self.label_7.setObjectName("label_7")
        self.horizontalLayout_3.addWidget(self.label_7)
        self.label_error_streaming = QtWidgets.QLabel(self.widget_errors)
        self.label_error_streaming.setObjectName("label_error_streaming")
        self.horizontalLayout_3.addWidget(self.label_error_streaming)
        self.verticalLayout_2.addLayout(self.horizontalLayout_3)
        self.verticalLayout.addWidget(self.widget_errors)

        self.retranslateUi(RS232_V2)
        self.line_ending_combobox.setCurrentIndex(3)
        QtCore.QMetaObject.connectSlotsByName(RS232_V2)
        RS232_V2.setTabOrder(self.text, self.combo_input)
        RS232_V2.setTabOrder(self.combo_input, self.parity_combobox)
        RS232_V2.setTabOrder(self.parity_combobox, self.stopbits_spinbox)
        RS232_V2.setTabOrder(self.stopbits_spinbox, self.wordlength_spinbox)
        RS232_V2.setTabOrder(self.wordlength_spinbox, self.flowcontrol_combobox)
        RS232_V2.setTabOrder(self.flowcontrol_combobox, self.save_button)

    def retranslateUi(self, RS232_V2):
        _translate = QtCore.QCoreApplication.translate
        RS232_V2.setWindowTitle(_translate("RS232_V2", "Form"))
        self.label_6.setText(_translate("RS232_V2", "Flow Control:"))
        self.label_3.setText(_translate("RS232_V2", "Parity:"))
        self.parity_combobox.setItemText(0, _translate("RS232_V2", "None"))
        self.parity_combobox.setItemText(1, _translate("RS232_V2", "Odd"))
        self.parity_combobox.setItemText(2, _translate("RS232_V2", "Even"))
        self.label_4.setText(_translate("RS232_V2", "Stop Bits:"))
        self.label_2.setText(_translate("RS232_V2", "Baudrate:"))
        self.label_note_baud.setText(_translate("RS232_V2", "<html><head/><body><p><span style=\" font-weight:600; color:#ff5500;\">NOTE: Baudrate above 250k is supported only on the TTL interface and not on the RS232 interface.</span></p></body></html>"))
        self.flowcontrol_combobox.setItemText(0, _translate("RS232_V2", "Off"))
        self.flowcontrol_combobox.setItemText(1, _translate("RS232_V2", "Software (XON/XOFF)"))
        self.flowcontrol_combobox.setItemText(2, _translate("RS232_V2", "Hardware (RTS/CTS)"))
        self.label_note_fc_hw.setText(_translate("RS232_V2", "<html><head/><body><p><span style=\" font-weight:600; color:#ff5500;\">NOTE: Hardware flow control (RTS/CTS) is applicable only for the the RS232 interface.</span></p></body></html>"))
        self.label.setText(_translate("RS232_V2", "Word Length:"))
        self.save_button.setText(_translate("RS232_V2", "Save Configuration"))
        self.label_10.setText(_translate("RS232_V2", "History:"))
        self.label_5.setText(_translate("RS232_V2", "Input:"))
        self.text_type_combobox.setItemText(0, _translate("RS232_V2", "ASCII"))
        self.text_type_combobox.setItemText(1, _translate("RS232_V2", "Raw (Hex Bytes)"))
        self.line_ending_combobox.setToolTip(_translate("RS232_V2", "Line Ending"))
        self.line_ending_combobox.setItemText(1, _translate("RS232_V2", "\\n"))
        self.line_ending_combobox.setItemText(2, _translate("RS232_V2", "\\r"))
        self.line_ending_combobox.setItemText(3, _translate("RS232_V2", "\\r\\n"))
        self.line_ending_combobox.setItemText(4, _translate("RS232_V2", "\\n\\r"))
        self.line_ending_combobox.setItemText(5, _translate("RS232_V2", "\\0"))
        self.line_ending_combobox.setItemText(6, _translate("RS232_V2", "Hex:"))
        self.label_8.setText(_translate("RS232_V2", "Encoding:"))
        self.button_clear_text.setText(_translate("RS232_V2", "Clear"))
        self.button_write.setText(_translate("RS232_V2", "Write"))
        self.label_9.setText(_translate("RS232_V2", "Overrun Error:"))
        self.label_error_overrun.setText(_translate("RS232_V2", "0"))
        self.label_11.setText(_translate("RS232_V2", "Parity Error:"))
        self.label_error_parity.setText(_translate("RS232_V2", "0"))
        self.label_7.setText(_translate("RS232_V2", "Stream Error:"))
        self.label_error_streaming.setText(_translate("RS232_V2", "0"))
