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

# Form implementation generated from reading ui file 'brickv/plugin_system/plugins/red/ui/red_tab_extension_ethernet.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_Ethernet(object):
    def setupUi(self, Ethernet):
        Ethernet.setObjectName("Ethernet")
        Ethernet.resize(618, 393)
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(Ethernet)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.verticalLayout = QtWidgets.QVBoxLayout()
        self.verticalLayout.setObjectName("verticalLayout")
        self.label = QtWidgets.QLabel(Ethernet)
        self.label.setWordWrap(True)
        self.label.setObjectName("label")
        self.verticalLayout.addWidget(self.label)
        self.line_2 = QtWidgets.QFrame(Ethernet)
        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.mac_layout = QtWidgets.QHBoxLayout()
        self.mac_layout.setObjectName("mac_layout")
        self.label_2 = QtWidgets.QLabel(Ethernet)
        self.label_2.setObjectName("label_2")
        self.mac_layout.addWidget(self.label_2)
        self.ethernet_mac6 = SpinBoxHex(Ethernet)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.ethernet_mac6.sizePolicy().hasHeightForWidth())
        self.ethernet_mac6.setSizePolicy(sizePolicy)
        self.ethernet_mac6.setMaximum(255)
        self.ethernet_mac6.setObjectName("ethernet_mac6")
        self.mac_layout.addWidget(self.ethernet_mac6)
        self.label_3 = QtWidgets.QLabel(Ethernet)
        self.label_3.setObjectName("label_3")
        self.mac_layout.addWidget(self.label_3)
        self.ethernet_mac5 = SpinBoxHex(Ethernet)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.ethernet_mac5.sizePolicy().hasHeightForWidth())
        self.ethernet_mac5.setSizePolicy(sizePolicy)
        self.ethernet_mac5.setMaximum(255)
        self.ethernet_mac5.setObjectName("ethernet_mac5")
        self.mac_layout.addWidget(self.ethernet_mac5)
        self.label_4 = QtWidgets.QLabel(Ethernet)
        self.label_4.setObjectName("label_4")
        self.mac_layout.addWidget(self.label_4)
        self.ethernet_mac4 = SpinBoxHex(Ethernet)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.ethernet_mac4.sizePolicy().hasHeightForWidth())
        self.ethernet_mac4.setSizePolicy(sizePolicy)
        self.ethernet_mac4.setMaximum(255)
        self.ethernet_mac4.setObjectName("ethernet_mac4")
        self.mac_layout.addWidget(self.ethernet_mac4)
        self.label_5 = QtWidgets.QLabel(Ethernet)
        self.label_5.setObjectName("label_5")
        self.mac_layout.addWidget(self.label_5)
        self.ethernet_mac3 = SpinBoxHex(Ethernet)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.ethernet_mac3.sizePolicy().hasHeightForWidth())
        self.ethernet_mac3.setSizePolicy(sizePolicy)
        self.ethernet_mac3.setMaximum(255)
        self.ethernet_mac3.setObjectName("ethernet_mac3")
        self.mac_layout.addWidget(self.ethernet_mac3)
        self.label_6 = QtWidgets.QLabel(Ethernet)
        self.label_6.setObjectName("label_6")
        self.mac_layout.addWidget(self.label_6)
        self.ethernet_mac2 = SpinBoxHex(Ethernet)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.ethernet_mac2.sizePolicy().hasHeightForWidth())
        self.ethernet_mac2.setSizePolicy(sizePolicy)
        self.ethernet_mac2.setMaximum(255)
        self.ethernet_mac2.setObjectName("ethernet_mac2")
        self.mac_layout.addWidget(self.ethernet_mac2)
        self.label_7 = QtWidgets.QLabel(Ethernet)
        self.label_7.setObjectName("label_7")
        self.mac_layout.addWidget(self.label_7)
        self.ethernet_mac1 = SpinBoxHex(Ethernet)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(1)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.ethernet_mac1.sizePolicy().hasHeightForWidth())
        self.ethernet_mac1.setSizePolicy(sizePolicy)
        self.ethernet_mac1.setMaximum(255)
        self.ethernet_mac1.setObjectName("ethernet_mac1")
        self.mac_layout.addWidget(self.ethernet_mac1)
        self.verticalLayout.addLayout(self.mac_layout)
        self.line = QtWidgets.QFrame(Ethernet)
        self.line.setFrameShape(QtWidgets.QFrame.HLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.verticalLayout.addWidget(self.line)
        self.ethernet_save = QtWidgets.QPushButton(Ethernet)
        self.ethernet_save.setObjectName("ethernet_save")
        self.verticalLayout.addWidget(self.ethernet_save)
        self.verticalLayout_2.addLayout(self.verticalLayout)
        spacerItem = QtWidgets.QSpacerItem(268, 118, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.verticalLayout_2.addItem(spacerItem)
        self.label_2.setBuddy(self.ethernet_mac6)

        self.retranslateUi(Ethernet)
        QtCore.QMetaObject.connectSlotsByName(Ethernet)
        Ethernet.setTabOrder(self.ethernet_mac6, self.ethernet_mac5)
        Ethernet.setTabOrder(self.ethernet_mac5, self.ethernet_mac4)
        Ethernet.setTabOrder(self.ethernet_mac4, self.ethernet_mac3)
        Ethernet.setTabOrder(self.ethernet_mac3, self.ethernet_mac2)
        Ethernet.setTabOrder(self.ethernet_mac2, self.ethernet_mac1)
        Ethernet.setTabOrder(self.ethernet_mac1, self.ethernet_save)

    def retranslateUi(self, Ethernet):
        _translate = QtCore.QCoreApplication.translate
        Ethernet.setWindowTitle(_translate("Ethernet", "Form"))
        self.label.setText(_translate("Ethernet", "<html><body><p>The Ethernet Extension is used as a normal network interface (&quot;tf0&quot;) by the underlying Linux system. You can configure the network in the Settings tab (including hostname, ports and all of the other configurations that the Ethernet Extension supports). The RED Brick does however use the MAC address from the Ethernet Extension itself.</p><p><b>Note:</b></p><p>The Ethernet Extension does have a unique MAC address by default. If it got lost there should be a small label on the bottom side of the RJ45 connnector, which can be set again here.</p></body></html>"))
        self.label_2.setText(_translate("Ethernet", "MAC Address:"))
        self.label_3.setText(_translate("Ethernet", ":"))
        self.label_4.setText(_translate("Ethernet", ":"))
        self.label_5.setText(_translate("Ethernet", ":"))
        self.label_6.setText(_translate("Ethernet", ":"))
        self.label_7.setText(_translate("Ethernet", ":"))
        self.ethernet_save.setText(_translate("Ethernet", "Save MAC Address"))
from brickv.spin_box_hex import SpinBoxHex
