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

# Form implementation generated from reading ui file 'brickv/ui/advanced.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_Advanced(object):
    def setupUi(self, Advanced):
        Advanced.setObjectName("Advanced")
        Advanced.resize(492, 427)
        self.verticalLayout = QtWidgets.QVBoxLayout(Advanced)
        self.verticalLayout.setObjectName("verticalLayout")
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.label_msg_b = QtWidgets.QLabel(Advanced)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.label_msg_b.sizePolicy().hasHeightForWidth())
        self.label_msg_b.setSizePolicy(sizePolicy)
        self.label_msg_b.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
        self.label_msg_b.setWordWrap(True)
        self.label_msg_b.setObjectName("label_msg_b")
        self.gridLayout.addWidget(self.label_msg_b, 4, 0, 1, 2)
        self.check_enable_calibration = QtWidgets.QCheckBox(Advanced)
        self.check_enable_calibration.setObjectName("check_enable_calibration")
        self.gridLayout.addWidget(self.check_enable_calibration, 7, 0, 1, 1)
        self.line_2 = QtWidgets.QFrame(Advanced)
        self.line_2.setFrameShape(QtWidgets.QFrame.HLine)
        self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line_2.setObjectName("line_2")
        self.gridLayout.addWidget(self.line_2, 2, 0, 1, 2)
        self.label_msg_c = QtWidgets.QLabel(Advanced)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.label_msg_c.sizePolicy().hasHeightForWidth())
        self.label_msg_c.setSizePolicy(sizePolicy)
        self.label_msg_c.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
        self.label_msg_c.setWordWrap(True)
        self.label_msg_c.setObjectName("label_msg_c")
        self.gridLayout.addWidget(self.label_msg_c, 5, 0, 1, 2)
        self.combo_brick = QtWidgets.QComboBox(Advanced)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.combo_brick.sizePolicy().hasHeightForWidth())
        self.combo_brick.setSizePolicy(sizePolicy)
        self.combo_brick.setObjectName("combo_brick")
        self.gridLayout.addWidget(self.combo_brick, 0, 1, 1, 1)
        self.label_msg_a = QtWidgets.QLabel(Advanced)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(1)
        sizePolicy.setHeightForWidth(self.label_msg_a.sizePolicy().hasHeightForWidth())
        self.label_msg_a.setSizePolicy(sizePolicy)
        self.label_msg_a.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignTop)
        self.label_msg_a.setWordWrap(True)
        self.label_msg_a.setOpenExternalLinks(True)
        self.label_msg_a.setTextInteractionFlags(QtCore.Qt.TextBrowserInteraction)
        self.label_msg_a.setObjectName("label_msg_a")
        self.gridLayout.addWidget(self.label_msg_a, 3, 0, 1, 2)
        self.label = QtWidgets.QLabel(Advanced)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 0, 0, 1, 1)
        self.button_calibrate = QtWidgets.QPushButton(Advanced)
        self.button_calibrate.setChecked(False)
        self.button_calibrate.setObjectName("button_calibrate")
        self.gridLayout.addWidget(self.button_calibrate, 7, 1, 1, 1)
        self.label_gain = QtWidgets.QLabel(Advanced)
        self.label_gain.setObjectName("label_gain")
        self.gridLayout.addWidget(self.label_gain, 8, 1, 1, 1)
        self.label_3 = QtWidgets.QLabel(Advanced)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 9, 0, 1, 1)
        self.label_offset = QtWidgets.QLabel(Advanced)
        self.label_offset.setObjectName("label_offset")
        self.gridLayout.addWidget(self.label_offset, 9, 1, 1, 1)
        self.combo_port = QtWidgets.QComboBox(Advanced)
        self.combo_port.setObjectName("combo_port")
        self.combo_port.addItem("")
        self.combo_port.addItem("")
        self.combo_port.addItem("")
        self.combo_port.addItem("")
        self.gridLayout.addWidget(self.combo_port, 1, 1, 1, 1)
        self.label_5 = QtWidgets.QLabel(Advanced)
        self.label_5.setObjectName("label_5")
        self.gridLayout.addWidget(self.label_5, 8, 0, 1, 1)
        self.label_2 = QtWidgets.QLabel(Advanced)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 1, 0, 1, 1)
        self.button_close = QtWidgets.QPushButton(Advanced)
        self.button_close.setObjectName("button_close")
        self.gridLayout.addWidget(self.button_close, 10, 0, 1, 2)
        spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem, 6, 0, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout)
        self.label.setBuddy(self.combo_brick)
        self.label_2.setBuddy(self.combo_port)

        self.retranslateUi(Advanced)
        QtCore.QMetaObject.connectSlotsByName(Advanced)
        Advanced.setTabOrder(self.combo_brick, self.combo_port)
        Advanced.setTabOrder(self.combo_port, self.check_enable_calibration)
        Advanced.setTabOrder(self.check_enable_calibration, self.button_calibrate)

    def retranslateUi(self, Advanced):
        _translate = QtCore.QCoreApplication.translate
        Advanced.setWindowTitle(_translate("Advanced", "Advanced Functions"))
        self.label_msg_b.setText(_translate("Advanced", "No Analog to Digital Converter (ADC) calibration possible or necessary for the choosen Brick."))
        self.check_enable_calibration.setText(_translate("Advanced", "Enable Calibration"))
        self.label_msg_c.setText(_translate("Advanced", "Looking up calibration capabilies..."))
        self.label_msg_a.setText(_translate("Advanced", "<html><body><p>This process calibrates the Analog to Digital Converter (ADC) of the choosen Brick. To do this you need a Linear- or Rotary Poti Bricklet or simlar. See the <a href=\"https://www.tinkerforge.com/en/doc/Software/Brickv.html#brick-adc-calibration\"><span style=\"text-decoration: underline; color:#0000ff;\">documentation</span></a> for more details.</p><p><b>Warning:</b></p><p>If you accidentially miscalibrate the ADC and you don\'t have an appropriate Bricklet to recalibrate, you have to reflash the Brick to go back to default.</p></body></html>"))
        self.label.setText(_translate("Advanced", "Brick:"))
        self.button_calibrate.setText(_translate("Advanced", "Calibrate"))
        self.label_gain.setText(_translate("Advanced", "-"))
        self.label_3.setText(_translate("Advanced", "Offset:"))
        self.label_offset.setText(_translate("Advanced", "-"))
        self.combo_port.setItemText(0, _translate("Advanced", "A"))
        self.combo_port.setItemText(1, _translate("Advanced", "B"))
        self.combo_port.setItemText(2, _translate("Advanced", "C"))
        self.combo_port.setItemText(3, _translate("Advanced", "D"))
        self.label_5.setText(_translate("Advanced", "Gain:"))
        self.label_2.setText(_translate("Advanced", "Port:"))
        self.button_close.setText(_translate("Advanced", "Close"))
