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

# Form implementation generated from reading ui file 'E-meterGUI.ui'
#
# Created by: PyQt5 UI code generator 5.15.11
#
# 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_mainWindow(object):
    def setupUi(self, mainWindow):
        mainWindow.setObjectName("mainWindow")
        mainWindow.resize(570, 414)
        self.centralwidget = QtWidgets.QWidget(mainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setObjectName("verticalLayout")
        self.groupBox = QtWidgets.QGroupBox(self.centralwidget)
        font = QtGui.QFont()
        font.setPointSize(10)
        font.setBold(True)
        font.setWeight(75)
        self.groupBox.setFont(font)
        self.groupBox.setObjectName("groupBox")
        self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.groupBox)
        self.horizontalLayout_4.setObjectName("horizontalLayout_4")
        self.verticalLayout_3 = QtWidgets.QVBoxLayout()
        self.verticalLayout_3.setObjectName("verticalLayout_3")
        self.horizontalLayout_8 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_8.setObjectName("horizontalLayout_8")
        self.label_9 = QtWidgets.QLabel(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_9.sizePolicy().hasHeightForWidth())
        self.label_9.setSizePolicy(sizePolicy)
        self.label_9.setMinimumSize(QtCore.QSize(100, 0))
        font = QtGui.QFont()
        font.setPointSize(8)
        font.setBold(False)
        font.setWeight(50)
        self.label_9.setFont(font)
        self.label_9.setObjectName("label_9")
        self.horizontalLayout_8.addWidget(self.label_9)
        self.comboBox_McuPortSelection = QtWidgets.QComboBox(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.comboBox_McuPortSelection.sizePolicy().hasHeightForWidth())
        self.comboBox_McuPortSelection.setSizePolicy(sizePolicy)
        self.comboBox_McuPortSelection.setMinimumSize(QtCore.QSize(300, 0))
        font = QtGui.QFont()
        font.setPointSize(8)
        font.setBold(False)
        font.setWeight(50)
        self.comboBox_McuPortSelection.setFont(font)
        self.comboBox_McuPortSelection.setSizeAdjustPolicy(QtWidgets.QComboBox.AdjustToContentsOnFirstShow)
        self.comboBox_McuPortSelection.setObjectName("comboBox_McuPortSelection")
        self.horizontalLayout_8.addWidget(self.comboBox_McuPortSelection)
        self.verticalLayout_3.addLayout(self.horizontalLayout_8)
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.label_2 = QtWidgets.QLabel(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_2.sizePolicy().hasHeightForWidth())
        self.label_2.setSizePolicy(sizePolicy)
        self.label_2.setMinimumSize(QtCore.QSize(100, 0))
        font = QtGui.QFont()
        font.setPointSize(8)
        font.setBold(False)
        font.setWeight(50)
        self.label_2.setFont(font)
        self.label_2.setObjectName("label_2")
        self.horizontalLayout_2.addWidget(self.label_2)
        self.pushButton_McuUartOpen = QtWidgets.QPushButton(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.pushButton_McuUartOpen.sizePolicy().hasHeightForWidth())
        self.pushButton_McuUartOpen.setSizePolicy(sizePolicy)
        self.pushButton_McuUartOpen.setMinimumSize(QtCore.QSize(145, 0))
        font = QtGui.QFont()
        font.setPointSize(8)
        font.setBold(False)
        font.setWeight(50)
        self.pushButton_McuUartOpen.setFont(font)
        self.pushButton_McuUartOpen.setObjectName("pushButton_McuUartOpen")
        self.horizontalLayout_2.addWidget(self.pushButton_McuUartOpen)
        self.pushButton_McuUartClose = QtWidgets.QPushButton(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.pushButton_McuUartClose.sizePolicy().hasHeightForWidth())
        self.pushButton_McuUartClose.setSizePolicy(sizePolicy)
        self.pushButton_McuUartClose.setMinimumSize(QtCore.QSize(145, 0))
        font = QtGui.QFont()
        font.setPointSize(8)
        font.setBold(False)
        font.setWeight(50)
        self.pushButton_McuUartClose.setFont(font)
        self.pushButton_McuUartClose.setObjectName("pushButton_McuUartClose")
        self.horizontalLayout_2.addWidget(self.pushButton_McuUartClose)
        self.verticalLayout_3.addLayout(self.horizontalLayout_2)
        self.horizontalLayout_10 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_10.setObjectName("horizontalLayout_10")
        self.label_24 = QtWidgets.QLabel(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_24.sizePolicy().hasHeightForWidth())
        self.label_24.setSizePolicy(sizePolicy)
        self.label_24.setMinimumSize(QtCore.QSize(100, 0))
        font = QtGui.QFont()
        font.setPointSize(8)
        font.setBold(False)
        font.setWeight(50)
        self.label_24.setFont(font)
        self.label_24.setObjectName("label_24")
        self.horizontalLayout_10.addWidget(self.label_24)
        self.lineEdit_McuStatus = QtWidgets.QLineEdit(self.groupBox)
        font = QtGui.QFont()
        font.setPointSize(8)
        font.setBold(False)
        font.setWeight(50)
        self.lineEdit_McuStatus.setFont(font)
        self.lineEdit_McuStatus.setReadOnly(True)
        self.lineEdit_McuStatus.setObjectName("lineEdit_McuStatus")
        self.horizontalLayout_10.addWidget(self.lineEdit_McuStatus)
        self.verticalLayout_3.addLayout(self.horizontalLayout_10)
        self.horizontalLayout = QtWidgets.QHBoxLayout()
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.label_25 = QtWidgets.QLabel(self.groupBox)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label_25.sizePolicy().hasHeightForWidth())
        self.label_25.setSizePolicy(sizePolicy)
        self.label_25.setMinimumSize(QtCore.QSize(100, 0))
        font = QtGui.QFont()
        font.setPointSize(8)
        font.setBold(False)
        font.setWeight(50)
        self.label_25.setFont(font)
        self.label_25.setObjectName("label_25")
        self.horizontalLayout.addWidget(self.label_25)
        self.checkBox_DataSave = QtWidgets.QCheckBox(self.groupBox)
        self.checkBox_DataSave.setMinimumSize(QtCore.QSize(0, 0))
        font = QtGui.QFont()
        font.setPointSize(8)
        font.setBold(False)
        font.setWeight(50)
        self.checkBox_DataSave.setFont(font)
        self.checkBox_DataSave.setObjectName("checkBox_DataSave")
        self.horizontalLayout.addWidget(self.checkBox_DataSave)
        self.verticalLayout_3.addLayout(self.horizontalLayout)
        self.horizontalLayout_4.addLayout(self.verticalLayout_3)
        self.verticalLayout.addWidget(self.groupBox)
        self.groupBox_2 = QtWidgets.QGroupBox(self.centralwidget)
        font = QtGui.QFont()
        font.setPointSize(10)
        font.setBold(True)
        font.setWeight(75)
        self.groupBox_2.setFont(font)
        self.groupBox_2.setObjectName("groupBox_2")
        self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.groupBox_2)
        self.horizontalLayout_5.setObjectName("horizontalLayout_5")
        self.verticalLayout_8 = QtWidgets.QVBoxLayout()
        self.verticalLayout_8.setObjectName("verticalLayout_8")
        self.label_30 = QtWidgets.QLabel(self.groupBox_2)
        self.label_30.setMinimumSize(QtCore.QSize(100, 0))
        self.label_30.setMaximumSize(QtCore.QSize(145, 16777215))
        font = QtGui.QFont()
        font.setPointSize(8)
        font.setBold(False)
        font.setWeight(50)
        self.label_30.setFont(font)
        self.label_30.setObjectName("label_30")
        self.verticalLayout_8.addWidget(self.label_30)
        self.label_22 = QtWidgets.QLabel(self.groupBox_2)
        self.label_22.setMinimumSize(QtCore.QSize(100, 0))
        font = QtGui.QFont()
        font.setPointSize(8)
        font.setBold(False)
        font.setWeight(50)
        self.label_22.setFont(font)
        self.label_22.setObjectName("label_22")
        self.verticalLayout_8.addWidget(self.label_22)
        self.label_32 = QtWidgets.QLabel(self.groupBox_2)
        self.label_32.setMinimumSize(QtCore.QSize(100, 0))
        font = QtGui.QFont()
        font.setPointSize(8)
        font.setBold(False)
        font.setWeight(50)
        self.label_32.setFont(font)
        self.label_32.setObjectName("label_32")
        self.verticalLayout_8.addWidget(self.label_32)
        self.label_5 = QtWidgets.QLabel(self.groupBox_2)
        self.label_5.setMinimumSize(QtCore.QSize(100, 0))
        self.label_5.setMaximumSize(QtCore.QSize(145, 16777215))
        font = QtGui.QFont()
        font.setPointSize(8)
        font.setBold(False)
        font.setWeight(50)
        self.label_5.setFont(font)
        self.label_5.setObjectName("label_5")
        self.verticalLayout_8.addWidget(self.label_5)
        self.horizontalLayout_5.addLayout(self.verticalLayout_8)
        self.verticalLayout_7 = QtWidgets.QVBoxLayout()
        self.verticalLayout_7.setObjectName("verticalLayout_7")
        self.lineEdit_Counter = QtWidgets.QLineEdit(self.groupBox_2)
        self.lineEdit_Counter.setMinimumSize(QtCore.QSize(0, 0))
        font = QtGui.QFont()
        font.setPointSize(8)
        font.setBold(False)
        font.setWeight(50)
        self.lineEdit_Counter.setFont(font)
        self.lineEdit_Counter.setReadOnly(True)
        self.lineEdit_Counter.setObjectName("lineEdit_Counter")
        self.verticalLayout_7.addWidget(self.lineEdit_Counter)
        self.lineEdit_Vrms = QtWidgets.QLineEdit(self.groupBox_2)
        font = QtGui.QFont()
        font.setPointSize(8)
        font.setBold(False)
        font.setWeight(50)
        self.lineEdit_Vrms.setFont(font)
        self.lineEdit_Vrms.setReadOnly(True)
        self.lineEdit_Vrms.setObjectName("lineEdit_Vrms")
        self.verticalLayout_7.addWidget(self.lineEdit_Vrms)
        self.lineEdit_Irms = QtWidgets.QLineEdit(self.groupBox_2)
        font = QtGui.QFont()
        font.setPointSize(8)
        font.setBold(False)
        font.setWeight(50)
        self.lineEdit_Irms.setFont(font)
        self.lineEdit_Irms.setReadOnly(True)
        self.lineEdit_Irms.setObjectName("lineEdit_Irms")
        self.verticalLayout_7.addWidget(self.lineEdit_Irms)
        self.lineEdit_Freq = QtWidgets.QLineEdit(self.groupBox_2)
        font = QtGui.QFont()
        font.setPointSize(8)
        font.setBold(False)
        font.setWeight(50)
        self.lineEdit_Freq.setFont(font)
        self.lineEdit_Freq.setReadOnly(True)
        self.lineEdit_Freq.setObjectName("lineEdit_Freq")
        self.verticalLayout_7.addWidget(self.lineEdit_Freq)
        self.horizontalLayout_5.addLayout(self.verticalLayout_7)
        self.verticalLayout_12 = QtWidgets.QVBoxLayout()
        self.verticalLayout_12.setObjectName("verticalLayout_12")
        self.label_3 = QtWidgets.QLabel(self.groupBox_2)
        self.label_3.setMaximumSize(QtCore.QSize(145, 16777215))
        font = QtGui.QFont()
        font.setPointSize(8)
        font.setBold(False)
        font.setWeight(50)
        self.label_3.setFont(font)
        self.label_3.setObjectName("label_3")
        self.verticalLayout_12.addWidget(self.label_3)
        self.label_29 = QtWidgets.QLabel(self.groupBox_2)
        self.label_29.setMinimumSize(QtCore.QSize(100, 0))
        self.label_29.setMaximumSize(QtCore.QSize(145, 16777215))
        font = QtGui.QFont()
        font.setPointSize(8)
        font.setBold(False)
        font.setWeight(50)
        self.label_29.setFont(font)
        self.label_29.setObjectName("label_29")
        self.verticalLayout_12.addWidget(self.label_29)
        self.label_4 = QtWidgets.QLabel(self.groupBox_2)
        self.label_4.setMaximumSize(QtCore.QSize(145, 16777215))
        font = QtGui.QFont()
        font.setPointSize(8)
        font.setBold(False)
        font.setWeight(50)
        self.label_4.setFont(font)
        self.label_4.setObjectName("label_4")
        self.verticalLayout_12.addWidget(self.label_4)
        self.label_6 = QtWidgets.QLabel(self.groupBox_2)
        self.label_6.setMaximumSize(QtCore.QSize(145, 16777215))
        font = QtGui.QFont()
        font.setPointSize(8)
        font.setBold(False)
        font.setWeight(50)
        self.label_6.setFont(font)
        self.label_6.setObjectName("label_6")
        self.verticalLayout_12.addWidget(self.label_6)
        self.horizontalLayout_5.addLayout(self.verticalLayout_12)
        self.verticalLayout_2 = QtWidgets.QVBoxLayout()
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.lineEdit_Pactive = QtWidgets.QLineEdit(self.groupBox_2)
        font = QtGui.QFont()
        font.setPointSize(8)
        font.setBold(False)
        font.setWeight(50)
        self.lineEdit_Pactive.setFont(font)
        self.lineEdit_Pactive.setReadOnly(True)
        self.lineEdit_Pactive.setObjectName("lineEdit_Pactive")
        self.verticalLayout_2.addWidget(self.lineEdit_Pactive)
        self.lineEdit_Preactive = QtWidgets.QLineEdit(self.groupBox_2)
        self.lineEdit_Preactive.setMinimumSize(QtCore.QSize(0, 0))
        font = QtGui.QFont()
        font.setPointSize(8)
        font.setBold(False)
        font.setWeight(50)
        self.lineEdit_Preactive.setFont(font)
        self.lineEdit_Preactive.setReadOnly(True)
        self.lineEdit_Preactive.setObjectName("lineEdit_Preactive")
        self.verticalLayout_2.addWidget(self.lineEdit_Preactive)
        self.lineEdit_Papparent = QtWidgets.QLineEdit(self.groupBox_2)
        font = QtGui.QFont()
        font.setPointSize(8)
        font.setBold(False)
        font.setWeight(50)
        self.lineEdit_Papparent.setFont(font)
        self.lineEdit_Papparent.setReadOnly(True)
        self.lineEdit_Papparent.setObjectName("lineEdit_Papparent")
        self.verticalLayout_2.addWidget(self.lineEdit_Papparent)
        self.lineEdit_Pfactor = QtWidgets.QLineEdit(self.groupBox_2)
        font = QtGui.QFont()
        font.setPointSize(8)
        font.setBold(False)
        font.setWeight(50)
        self.lineEdit_Pfactor.setFont(font)
        self.lineEdit_Pfactor.setReadOnly(True)
        self.lineEdit_Pfactor.setObjectName("lineEdit_Pfactor")
        self.verticalLayout_2.addWidget(self.lineEdit_Pfactor)
        self.horizontalLayout_5.addLayout(self.verticalLayout_2)
        self.verticalLayout.addWidget(self.groupBox_2)
        mainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(mainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 570, 26))
        self.menubar.setObjectName("menubar")
        mainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(mainWindow)
        self.statusbar.setObjectName("statusbar")
        mainWindow.setStatusBar(self.statusbar)
        self.actionConnect = QtWidgets.QAction(mainWindow)
        self.actionConnect.setObjectName("actionConnect")

        self.retranslateUi(mainWindow)
        QtCore.QMetaObject.connectSlotsByName(mainWindow)

    def retranslateUi(self, mainWindow):
        _translate = QtCore.QCoreApplication.translate
        mainWindow.setWindowTitle(_translate("mainWindow", "Single Phase E-METER GUI"))
        self.groupBox.setTitle(_translate("mainWindow", "UART Configuration"))
        self.label_9.setText(_translate("mainWindow", "Port selection:   "))
        self.label_2.setText(_translate("mainWindow", "UART operation:"))
        self.pushButton_McuUartOpen.setText(_translate("mainWindow", "Connect"))
        self.pushButton_McuUartClose.setText(_translate("mainWindow", "Disconnect"))
        self.label_24.setText(_translate("mainWindow", "Port status: "))
        self.label_25.setText(_translate("mainWindow", "Data save: "))
        self.checkBox_DataSave.setText(_translate("mainWindow", "Save measured data to excel after window close"))
        self.groupBox_2.setTitle(_translate("mainWindow", "MCU Measured Data"))
        self.label_30.setText(_translate("mainWindow", "Data number:"))
        self.label_22.setText(_translate("mainWindow", "Vrms (V):"))
        self.label_32.setText(_translate("mainWindow", "Irms (A):"))
        self.label_5.setText(_translate("mainWindow", "Frequency (Hz):"))
        self.label_3.setText(_translate("mainWindow", "Pactive (W):"))
        self.label_29.setText(_translate("mainWindow", "Preactive (var):"))
        self.label_4.setText(_translate("mainWindow", "Papparent (W):"))
        self.label_6.setText(_translate("mainWindow", "Pfactor (C):"))
        self.actionConnect.setText(_translate("mainWindow", "Connect"))
