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

# Form implementation generated from reading ui file 'sensor_logger.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_Form(object):
    def setupUi(self, Form):
        Form.setObjectName("Form")
        Form.resize(991, 739)
        Form.setStyleSheet("#widgetFrameOuter{\n"
"background-color: rgb(54, 129, 130);\n"
"}")
        self.verticalLayout = QtWidgets.QVBoxLayout(Form)
        self.verticalLayout.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout.setSpacing(0)
        self.verticalLayout.setObjectName("verticalLayout")
        self.widgetFrameOuter = QtWidgets.QFrame(Form)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.widgetFrameOuter.sizePolicy().hasHeightForWidth())
        self.widgetFrameOuter.setSizePolicy(sizePolicy)
        self.widgetFrameOuter.setStyleSheet("")
        self.widgetFrameOuter.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.widgetFrameOuter.setFrameShadow(QtWidgets.QFrame.Raised)
        self.widgetFrameOuter.setObjectName("widgetFrameOuter")
        self.gridLayout = QtWidgets.QGridLayout(self.widgetFrameOuter)
        self.gridLayout.setObjectName("gridLayout")
        self.scrollArea = QtWidgets.QScrollArea(self.widgetFrameOuter)
        self.scrollArea.setWidgetResizable(True)
        self.scrollArea.setObjectName("scrollArea")
        self.scrollAreaWidgetContents = QtWidgets.QWidget()
        self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 969, 542))
        self.scrollAreaWidgetContents.setObjectName("scrollAreaWidgetContents")
        self.sensorLayout = QtWidgets.QVBoxLayout(self.scrollAreaWidgetContents)
        self.sensorLayout.setContentsMargins(2, 2, 2, 2)
        self.sensorLayout.setSpacing(5)
        self.sensorLayout.setObjectName("sensorLayout")
        self.scrollArea.setWidget(self.scrollAreaWidgetContents)
        self.gridLayout.addWidget(self.scrollArea, 5, 0, 1, 4)
        self.addressBox = QtWidgets.QSpinBox(self.widgetFrameOuter)
        self.addressBox.setMaximum(127)
        self.addressBox.setObjectName("addressBox")
        self.gridLayout.addWidget(self.addressBox, 0, 1, 1, 1)
        self.textBrowser = QtWidgets.QTextBrowser(self.widgetFrameOuter)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.textBrowser.sizePolicy().hasHeightForWidth())
        self.textBrowser.setSizePolicy(sizePolicy)
        self.textBrowser.setMaximumSize(QtCore.QSize(16777215, 100))
        self.textBrowser.setObjectName("textBrowser")
        self.gridLayout.addWidget(self.textBrowser, 4, 0, 1, 4)
        self.sensorCombo = QtWidgets.QComboBox(self.widgetFrameOuter)
        self.sensorCombo.setObjectName("sensorCombo")
        self.gridLayout.addWidget(self.sensorCombo, 0, 0, 1, 1)
        self.pushButton_4 = QtWidgets.QPushButton(self.widgetFrameOuter)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.pushButton_4.sizePolicy().hasHeightForWidth())
        self.pushButton_4.setSizePolicy(sizePolicy)
        self.pushButton_4.setMinimumSize(QtCore.QSize(150, 40))
        self.pushButton_4.setObjectName("pushButton_4")
        self.gridLayout.addWidget(self.pushButton_4, 0, 2, 2, 1)
        self.resultLabel = QtWidgets.QLabel(self.widgetFrameOuter)
        self.resultLabel.setText("")
        self.resultLabel.setWordWrap(True)
        self.resultLabel.setObjectName("resultLabel")
        self.gridLayout.addWidget(self.resultLabel, 2, 2, 1, 1)
        self.pushButton = QtWidgets.QPushButton(self.widgetFrameOuter)
        self.pushButton.setObjectName("pushButton")
        self.gridLayout.addWidget(self.pushButton, 1, 0, 2, 2)
        self.pushButton_2 = QtWidgets.QPushButton(self.widgetFrameOuter)
        self.pushButton_2.setMinimumSize(QtCore.QSize(0, 40))
        self.pushButton_2.setObjectName("pushButton_2")
        self.gridLayout.addWidget(self.pushButton_2, 0, 3, 2, 1)
        self.verticalLayout.addWidget(self.widgetFrameOuter)

        self.retranslateUi(Form)
        self.pushButton_4.clicked.connect(Form.scan) # type: ignore
        self.pushButton.clicked.connect(Form.addSensor) # type: ignore
        self.sensorCombo.currentIndexChanged['QString'].connect(Form.setManualSensor) # type: ignore
        self.pushButton_2.clicked.connect(Form.show_voltmeter) # type: ignore
        QtCore.QMetaObject.connectSlotsByName(Form)

    def retranslateUi(self, Form):
        _translate = QtCore.QCoreApplication.translate
        Form.setWindowTitle(_translate("Form", "Form"))
        self.widgetFrameOuter.setProperty("class", _translate("Form", "PeripheralCollection"))
        self.addressBox.setPrefix(_translate("Form", "@ "))
        self.textBrowser.setHtml(_translate("Form", "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0//EN\" \"http://www.w3.org/TR/REC-html40/strict.dtd\">\n"
"<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
"p, li { white-space: pre-wrap; }\n"
"</style></head><body style=\" font-family:\'Ubuntu\'; font-size:11pt; font-weight:400; font-style:normal;\">\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Connect the I2C sensor to the device using the 5V, GND, SCL, SDA pins, and click the <span style=\" font-weight:600;\">SCAN button </span>above.</p>\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">The sensors shown are guessed based on the I2C addresses that respond during the scan process, and may not always be correct. </p>\n"
"<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">If you know the address of your sensor, you can select the sensor from the dropdown on the left, set the address value, and click on the <span style=\" font-weight:600;\">Add Manually </span>button</p></body></html>"))
        self.pushButton_4.setText(_translate("Form", "Scan and Autodetect I2C Sensors"))
        self.pushButton.setText(_translate("Form", "Add Manually"))
        self.pushButton_2.setText(_translate("Form", "I/O Controls"))
