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

# Form implementation generated from reading ui file 'brickv/plugin_system/plugins/rs232/ui/rs232.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(object):
    def setupUi(self, RS232):
        RS232.setObjectName("RS232")
        RS232.resize(718, 494)
        self.verticalLayout = QtWidgets.QVBoxLayout(RS232)
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.label_8 = QtWidgets.QLabel(RS232)
        self.label_8.setObjectName("label_8")
        self.horizontalLayout_2.addWidget(self.label_8)
        self.text_type_combobox = QtWidgets.QComboBox(RS232)
        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.horizontalLayout_2.addWidget(self.text_type_combobox)
        self.button_clear_text = QtWidgets.QPushButton(RS232)
        self.button_clear_text.setObjectName("button_clear_text")
        self.horizontalLayout_2.addWidget(self.button_clear_text)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        self.text = QtWidgets.QPlainTextEdit(RS232)
        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 = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.label_5 = QtWidgets.QLabel(RS232)
        self.label_5.setObjectName("label_5")
        self.horizontalLayout.addWidget(self.label_5)
        self.input_combobox = QtWidgets.QComboBox(RS232)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.input_combobox.sizePolicy().hasHeightForWidth())
        self.input_combobox.setSizePolicy(sizePolicy)
        self.input_combobox.setEditable(True)
        self.input_combobox.setMaxCount(100)
        self.input_combobox.setInsertPolicy(QtWidgets.QComboBox.InsertAtBottom)
        self.input_combobox.setObjectName("input_combobox")
        self.horizontalLayout.addWidget(self.input_combobox)
        self.line_ending_combobox = QtWidgets.QComboBox(RS232)
        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)
        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.setMaxLength(2)
        self.line_ending_lineedit.setObjectName("line_ending_lineedit")
        self.horizontalLayout.addWidget(self.line_ending_lineedit)
        self.verticalLayout.addLayout(self.horizontalLayout)
        self.line = QtWidgets.QFrame(RS232)
        self.line.setFrameShape(QtWidgets.QFrame.HLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.verticalLayout.addWidget(self.line)
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.baudrate_combobox = QtWidgets.QComboBox(RS232)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.baudrate_combobox.sizePolicy().hasHeightForWidth())
        self.baudrate_combobox.setSizePolicy(sizePolicy)
        self.baudrate_combobox.setObjectName("baudrate_combobox")
        self.baudrate_combobox.addItem("")
        self.baudrate_combobox.addItem("")
        self.baudrate_combobox.addItem("")
        self.baudrate_combobox.addItem("")
        self.baudrate_combobox.addItem("")
        self.baudrate_combobox.addItem("")
        self.baudrate_combobox.addItem("")
        self.baudrate_combobox.addItem("")
        self.baudrate_combobox.addItem("")
        self.baudrate_combobox.addItem("")
        self.baudrate_combobox.addItem("")
        self.baudrate_combobox.addItem("")
        self.baudrate_combobox.addItem("")
        self.gridLayout.addWidget(self.baudrate_combobox, 0, 1, 1, 1)
        self.label_4 = QtWidgets.QLabel(RS232)
        self.label_4.setObjectName("label_4")
        self.gridLayout.addWidget(self.label_4, 2, 0, 1, 1)
        self.label_6 = QtWidgets.QLabel(RS232)
        self.label_6.setObjectName("label_6")
        self.gridLayout.addWidget(self.label_6, 4, 0, 1, 1)
        self.wordlength_spinbox = QtWidgets.QSpinBox(RS232)
        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, 3, 1, 1, 1)
        self.stopbits_spinbox = QtWidgets.QSpinBox(RS232)
        self.stopbits_spinbox.setMinimum(1)
        self.stopbits_spinbox.setMaximum(2)
        self.stopbits_spinbox.setObjectName("stopbits_spinbox")
        self.gridLayout.addWidget(self.stopbits_spinbox, 2, 1, 1, 1)
        self.label_3 = QtWidgets.QLabel(RS232)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 1, 0, 1, 1)
        self.save_button = QtWidgets.QPushButton(RS232)
        self.save_button.setObjectName("save_button")
        self.gridLayout.addWidget(self.save_button, 5, 0, 1, 2)
        self.parity_combobox = QtWidgets.QComboBox(RS232)
        self.parity_combobox.setObjectName("parity_combobox")
        self.parity_combobox.addItem("")
        self.parity_combobox.addItem("")
        self.parity_combobox.addItem("")
        self.parity_combobox.addItem("")
        self.parity_combobox.addItem("")
        self.gridLayout.addWidget(self.parity_combobox, 1, 1, 1, 1)
        self.label = QtWidgets.QLabel(RS232)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 3, 0, 1, 1)
        self.flowcontrol_combobox = QtWidgets.QComboBox(RS232)
        self.flowcontrol_combobox.setObjectName("flowcontrol_combobox")
        self.flowcontrol_combobox.addItem("")
        self.flowcontrol_combobox.addItem("")
        self.flowcontrol_combobox.addItem("")
        self.gridLayout.addWidget(self.flowcontrol_combobox, 4, 1, 1, 1)
        self.label_2 = QtWidgets.QLabel(RS232)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 0, 0, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout)
        self.line_2 = QtWidgets.QFrame(RS232)
        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.label_no_error_support = QtWidgets.QLabel(RS232)
        self.label_no_error_support.setAlignment(QtCore.Qt.AlignCenter)
        self.label_no_error_support.setObjectName("label_no_error_support")
        self.verticalLayout.addWidget(self.label_no_error_support)
        self.widget_errors = QtWidgets.QWidget(RS232)
        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)
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem)
        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)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout_3.addItem(spacerItem1)
        self.label_13 = QtWidgets.QLabel(self.widget_errors)
        self.label_13.setObjectName("label_13")
        self.horizontalLayout_3.addWidget(self.label_13)
        self.label_error_framing = QtWidgets.QLabel(self.widget_errors)
        self.label_error_framing.setObjectName("label_error_framing")
        self.horizontalLayout_3.addWidget(self.label_error_framing)
        self.verticalLayout_2.addLayout(self.horizontalLayout_3)
        self.verticalLayout.addWidget(self.widget_errors)

        self.retranslateUi(RS232)
        self.line_ending_combobox.setCurrentIndex(3)
        QtCore.QMetaObject.connectSlotsByName(RS232)
        RS232.setTabOrder(self.text_type_combobox, self.text)
        RS232.setTabOrder(self.text, self.input_combobox)
        RS232.setTabOrder(self.input_combobox, self.baudrate_combobox)
        RS232.setTabOrder(self.baudrate_combobox, self.parity_combobox)
        RS232.setTabOrder(self.parity_combobox, self.stopbits_spinbox)
        RS232.setTabOrder(self.stopbits_spinbox, self.wordlength_spinbox)
        RS232.setTabOrder(self.wordlength_spinbox, self.flowcontrol_combobox)
        RS232.setTabOrder(self.flowcontrol_combobox, self.save_button)

    def retranslateUi(self, RS232):
        _translate = QtCore.QCoreApplication.translate
        RS232.setWindowTitle(_translate("RS232", "Form"))
        self.label_8.setText(_translate("RS232", "Show text as:"))
        self.text_type_combobox.setItemText(0, _translate("RS232", "ASCII"))
        self.text_type_combobox.setItemText(1, _translate("RS232", "Hex"))
        self.button_clear_text.setText(_translate("RS232", "Clear Text"))
        self.label_5.setText(_translate("RS232", "Input:"))
        self.line_ending_combobox.setToolTip(_translate("RS232", "Line Ending"))
        self.line_ending_combobox.setItemText(1, _translate("RS232", "\\n"))
        self.line_ending_combobox.setItemText(2, _translate("RS232", "\\r"))
        self.line_ending_combobox.setItemText(3, _translate("RS232", "\\r\\n"))
        self.line_ending_combobox.setItemText(4, _translate("RS232", "\\n\\r"))
        self.line_ending_combobox.setItemText(5, _translate("RS232", "\\0"))
        self.line_ending_combobox.setItemText(6, _translate("RS232", "Hex:"))
        self.baudrate_combobox.setItemText(0, _translate("RS232", "300 baud"))
        self.baudrate_combobox.setItemText(1, _translate("RS232", "600 baud"))
        self.baudrate_combobox.setItemText(2, _translate("RS232", "1200 baud"))
        self.baudrate_combobox.setItemText(3, _translate("RS232", "2400 baud"))
        self.baudrate_combobox.setItemText(4, _translate("RS232", "4800 baud"))
        self.baudrate_combobox.setItemText(5, _translate("RS232", "9600 baud"))
        self.baudrate_combobox.setItemText(6, _translate("RS232", "14400 baud"))
        self.baudrate_combobox.setItemText(7, _translate("RS232", "19200 baud"))
        self.baudrate_combobox.setItemText(8, _translate("RS232", "28800 baud"))
        self.baudrate_combobox.setItemText(9, _translate("RS232", "38400 baud"))
        self.baudrate_combobox.setItemText(10, _translate("RS232", "57600 baud"))
        self.baudrate_combobox.setItemText(11, _translate("RS232", "115200 baud"))
        self.baudrate_combobox.setItemText(12, _translate("RS232", "230400 baud"))
        self.label_4.setText(_translate("RS232", "Stop Bits:"))
        self.label_6.setText(_translate("RS232", "Flow Control:"))
        self.label_3.setText(_translate("RS232", "Parity:"))
        self.save_button.setText(_translate("RS232", "Save Configuration"))
        self.parity_combobox.setItemText(0, _translate("RS232", "None"))
        self.parity_combobox.setItemText(1, _translate("RS232", "Odd"))
        self.parity_combobox.setItemText(2, _translate("RS232", "Even"))
        self.parity_combobox.setItemText(3, _translate("RS232", "Forced Parity 1"))
        self.parity_combobox.setItemText(4, _translate("RS232", "Forced Parity 0"))
        self.label.setText(_translate("RS232", "Word Length:"))
        self.flowcontrol_combobox.setItemText(0, _translate("RS232", "Off"))
        self.flowcontrol_combobox.setItemText(1, _translate("RS232", "Software (XON/XOFF)"))
        self.flowcontrol_combobox.setItemText(2, _translate("RS232", "Hardware (RTS/CTS)"))
        self.label_2.setText(_translate("RS232", "Baudrate:"))
        self.label_no_error_support.setText(_translate("RS232", "Error Counters (FW Version >= 2.0.1 required)"))
        self.label_9.setText(_translate("RS232", "Overrun Error:"))
        self.label_error_overrun.setText(_translate("RS232", "0"))
        self.label_11.setText(_translate("RS232", "Parity Error:"))
        self.label_error_parity.setText(_translate("RS232", "0"))
        self.label_13.setText(_translate("RS232", "Framing Error:"))
        self.label_error_framing.setText(_translate("RS232", "0"))
