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

################################################################################
## Form generated from reading UI file 'main_gui.ui'
##
## Created by: Qt User Interface Compiler version 6.10.1
##
## WARNING! All changes made in this file will be lost when recompiling UI file!
################################################################################

from PySide6.QtCore import (QCoreApplication, QDate, QDateTime, QLocale,
    QMetaObject, QObject, QPoint, QRect,
    QSize, QTime, QUrl, Qt)
from PySide6.QtGui import (QAction, QBrush, QColor, QConicalGradient,
    QCursor, QFont, QFontDatabase, QGradient,
    QIcon, QImage, QKeySequence, QLinearGradient,
    QPainter, QPalette, QPixmap, QRadialGradient,
    QTransform)
from PySide6.QtWidgets import (QAbstractScrollArea, QApplication, QCheckBox, QGridLayout,
    QHBoxLayout, QHeaderView, QLabel, QLayout,
    QMainWindow, QMenu, QMenuBar, QPlainTextEdit,
    QProgressBar, QPushButton, QScrollArea, QSizePolicy,
    QSpacerItem, QTabWidget, QTableWidget, QTableWidgetItem,
    QVBoxLayout, QWidget)

from mtkclient.gui.collapsible_splitter import CollapsibleSplitter
from mtkclient.gui.connect_info import ConnectInfoWidget

class Ui_MainWindow(object):
    def setupUi(self, MainWindow):
        if not MainWindow.objectName():
            MainWindow.setObjectName(u"MainWindow")
        MainWindow.setWindowModality(Qt.WindowModality.NonModal)
        MainWindow.resize(1000, 600)
        sizePolicy = QSizePolicy(QSizePolicy.Policy.MinimumExpanding, QSizePolicy.Policy.MinimumExpanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth())
        MainWindow.setSizePolicy(sizePolicy)
        MainWindow.setMinimumSize(QSize(1000, 600))
        MainWindow.setAcceptDrops(False)
        MainWindow.setAutoFillBackground(False)
        self.actionRead_partition_s = QAction(MainWindow)
        self.actionRead_partition_s.setObjectName(u"actionRead_partition_s")
        self.actionRead_full_flash = QAction(MainWindow)
        self.actionRead_full_flash.setObjectName(u"actionRead_full_flash")
        self.actionRead_offset = QAction(MainWindow)
        self.actionRead_offset.setObjectName(u"actionRead_offset")
        self.actionWrite_partition_s = QAction(MainWindow)
        self.actionWrite_partition_s.setObjectName(u"actionWrite_partition_s")
        self.actionWrite_full_flash = QAction(MainWindow)
        self.actionWrite_full_flash.setObjectName(u"actionWrite_full_flash")
        self.actionWrite_at_offset = QAction(MainWindow)
        self.actionWrite_at_offset.setObjectName(u"actionWrite_at_offset")
        self.actionErase_partitions_s = QAction(MainWindow)
        self.actionErase_partitions_s.setObjectName(u"actionErase_partitions_s")
        self.actionErase_at_offset = QAction(MainWindow)
        self.actionErase_at_offset.setObjectName(u"actionErase_at_offset")
        self.actionRead_RPMB = QAction(MainWindow)
        self.actionRead_RPMB.setObjectName(u"actionRead_RPMB")
        self.actionWrite_RPMB = QAction(MainWindow)
        self.actionWrite_RPMB.setObjectName(u"actionWrite_RPMB")
        self.actionRead_preloader = QAction(MainWindow)
        self.actionRead_preloader.setObjectName(u"actionRead_preloader")
        self.actionGenerate_RPMB_keys = QAction(MainWindow)
        self.actionGenerate_RPMB_keys.setObjectName(u"actionGenerate_RPMB_keys")
        self.actionRead_boot2 = QAction(MainWindow)
        self.actionRead_boot2.setObjectName(u"actionRead_boot2")
        self.actionWrite_preloader = QAction(MainWindow)
        self.actionWrite_preloader.setObjectName(u"actionWrite_preloader")
        self.actionWrite_boot2 = QAction(MainWindow)
        self.actionWrite_boot2.setObjectName(u"actionWrite_boot2")
        self.actionUnlock_device = QAction(MainWindow)
        self.actionUnlock_device.setObjectName(u"actionUnlock_device")
        self.actionLock_device = QAction(MainWindow)
        self.actionLock_device.setObjectName(u"actionLock_device")
        self.action_Quit = QAction(MainWindow)
        self.action_Quit.setObjectName(u"action_Quit")
        self.centralwidget = QWidget(MainWindow)
        self.centralwidget.setObjectName(u"centralwidget")
        self.verticalLayout_11 = QVBoxLayout(self.centralwidget)
        self.verticalLayout_11.setSpacing(0)
        self.verticalLayout_11.setObjectName(u"verticalLayout_11")
        self.splitter = CollapsibleSplitter(self.centralwidget)
        self.splitter.setObjectName(u"splitter")
        self.splitter.setOrientation(Qt.Orientation.Vertical)
        self.topPanel = QWidget(self.splitter)
        self.topPanel.setObjectName(u"topPanel")
        self.topLayout = QVBoxLayout(self.topPanel)
        self.topLayout.setSpacing(0)
        self.topLayout.setObjectName(u"topLayout")
        self.topLayout.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_11 = QHBoxLayout()
        self.horizontalLayout_11.setObjectName(u"horizontalLayout_11")
        self.verticalLayout = QVBoxLayout()
        self.verticalLayout.setObjectName(u"verticalLayout")
        self.verticalLayout.setSizeConstraint(QLayout.SizeConstraint.SetDefaultConstraint)
        self.horizontalLayout = QHBoxLayout()
        self.horizontalLayout.setObjectName(u"horizontalLayout")
        self.horizontalLayout.setSizeConstraint(QLayout.SizeConstraint.SetDefaultConstraint)
        self.horizontalLayout.setContentsMargins(-1, -1, -1, 0)
        self.logoPic = QLabel(self.topPanel)
        self.logoPic.setObjectName(u"logoPic")
        sizePolicy1 = QSizePolicy(QSizePolicy.Policy.Fixed, QSizePolicy.Policy.Fixed)
        sizePolicy1.setHorizontalStretch(0)
        sizePolicy1.setVerticalStretch(0)
        sizePolicy1.setHeightForWidth(self.logoPic.sizePolicy().hasHeightForWidth())
        self.logoPic.setSizePolicy(sizePolicy1)
        self.logoPic.setMinimumSize(QSize(80, 80))
        self.logoPic.setMaximumSize(QSize(80, 80))
        self.logoPic.setPixmap(QPixmap(u"images/logo_256.png"))
        self.logoPic.setScaledContents(True)
        self.logoPic.setAlignment(Qt.AlignmentFlag.AlignLeading|Qt.AlignmentFlag.AlignLeft|Qt.AlignmentFlag.AlignTop)

        self.horizontalLayout.addWidget(self.logoPic)

        self.copyrightInfo = QLabel(self.topPanel)
        self.copyrightInfo.setObjectName(u"copyrightInfo")
        sizePolicy1.setHeightForWidth(self.copyrightInfo.sizePolicy().hasHeightForWidth())
        self.copyrightInfo.setSizePolicy(sizePolicy1)

        self.horizontalLayout.addWidget(self.copyrightInfo)


        self.verticalLayout.addLayout(self.horizontalLayout)


        self.horizontalLayout_11.addLayout(self.verticalLayout)

        self.verticalLayout_7 = QVBoxLayout()
        self.verticalLayout_7.setObjectName(u"verticalLayout_7")
        self.phoneInfoTextbox = QLabel(self.topPanel)
        self.phoneInfoTextbox.setObjectName(u"phoneInfoTextbox")
        sizePolicy2 = QSizePolicy(QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Fixed)
        sizePolicy2.setHorizontalStretch(0)
        sizePolicy2.setVerticalStretch(0)
        sizePolicy2.setHeightForWidth(self.phoneInfoTextbox.sizePolicy().hasHeightForWidth())
        self.phoneInfoTextbox.setSizePolicy(sizePolicy2)
        self.phoneInfoTextbox.setAlignment(Qt.AlignmentFlag.AlignRight|Qt.AlignmentFlag.AlignTop|Qt.AlignmentFlag.AlignTrailing)
        self.phoneInfoTextbox.setWordWrap(True)

        self.verticalLayout_7.addWidget(self.phoneInfoTextbox)

        self.phoneDebugInfoTextbox = QLabel(self.topPanel)
        self.phoneDebugInfoTextbox.setObjectName(u"phoneDebugInfoTextbox")
        sizePolicy3 = QSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum)
        sizePolicy3.setHorizontalStretch(0)
        sizePolicy3.setVerticalStretch(0)
        sizePolicy3.setHeightForWidth(self.phoneDebugInfoTextbox.sizePolicy().hasHeightForWidth())
        self.phoneDebugInfoTextbox.setSizePolicy(sizePolicy3)
        self.phoneDebugInfoTextbox.setMinimumSize(QSize(0, 80))
        self.phoneDebugInfoTextbox.setMaximumSize(QSize(16777215, 80))
        self.phoneDebugInfoTextbox.setStyleSheet(u"color:#888;")
        self.phoneDebugInfoTextbox.setTextFormat(Qt.TextFormat.PlainText)
        self.phoneDebugInfoTextbox.setAlignment(Qt.AlignmentFlag.AlignBottom|Qt.AlignmentFlag.AlignRight|Qt.AlignmentFlag.AlignTrailing)

        self.verticalLayout_7.addWidget(self.phoneDebugInfoTextbox)

        self.horizontalLayout_7 = QHBoxLayout()
        self.horizontalLayout_7.setObjectName(u"horizontalLayout_7")
        self.horizontalSpacer_15 = QSpacerItem(40, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum)

        self.horizontalLayout_7.addItem(self.horizontalSpacer_15)

        self.consettings2btn = QPushButton(self.topPanel)
        self.consettings2btn.setObjectName(u"consettings2btn")

        self.horizontalLayout_7.addWidget(self.consettings2btn)

        self.consettingsbtn = QPushButton(self.topPanel)
        self.consettingsbtn.setObjectName(u"consettingsbtn")
        sizePolicy1.setHeightForWidth(self.consettingsbtn.sizePolicy().hasHeightForWidth())
        self.consettingsbtn.setSizePolicy(sizePolicy1)
        self.consettingsbtn.setMaximumSize(QSize(140, 16777215))

        self.horizontalLayout_7.addWidget(self.consettingsbtn)


        self.verticalLayout_7.addLayout(self.horizontalLayout_7)

        self.horizontalLayout_2 = QHBoxLayout()
        self.horizontalLayout_2.setSpacing(0)
        self.horizontalLayout_2.setObjectName(u"horizontalLayout_2")
        self.horizontalLayout_2.setSizeConstraint(QLayout.SizeConstraint.SetDefaultConstraint)
        self.horizontalLayout_2.setContentsMargins(-1, 0, -1, -1)
        self.horizontalSpacer_8 = QSpacerItem(20, 0, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum)

        self.horizontalLayout_2.addItem(self.horizontalSpacer_8)

        self.iotcheck = QCheckBox(self.topPanel)
        self.iotcheck.setObjectName(u"iotcheck")

        self.horizontalLayout_2.addWidget(self.iotcheck)

        self.serialportbtn = QPushButton(self.topPanel)
        self.serialportbtn.setObjectName(u"serialportbtn")

        self.horizontalLayout_2.addWidget(self.serialportbtn)


        self.verticalLayout_7.addLayout(self.horizontalLayout_2)


        self.horizontalLayout_11.addLayout(self.verticalLayout_7)

        self.horizontalSpacer = QSpacerItem(5, 20, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Minimum)

        self.horizontalLayout_11.addItem(self.horizontalSpacer)

        self.widget_3 = QWidget(self.topPanel)
        self.widget_3.setObjectName(u"widget_3")
        sizePolicy1.setHeightForWidth(self.widget_3.sizePolicy().hasHeightForWidth())
        self.widget_3.setSizePolicy(sizePolicy1)
        self.widget_3.setMinimumSize(QSize(90, 80))
        self.pic = QLabel(self.widget_3)
        self.pic.setObjectName(u"pic")
        self.pic.setGeometry(QRect(0, 0, 90, 80))
        sizePolicy1.setHeightForWidth(self.pic.sizePolicy().hasHeightForWidth())
        self.pic.setSizePolicy(sizePolicy1)
        self.pic.setMinimumSize(QSize(90, 80))
        self.pic.setMaximumSize(QSize(90, 80))
        self.pic.setPixmap(QPixmap(u"images/phone_notfound.png"))
        self.pic.setScaledContents(True)
        self.pic.setAlignment(Qt.AlignmentFlag.AlignCenter)
        self.pic.setWordWrap(False)
        self.spinner_pic = QLabel(self.widget_3)
        self.spinner_pic.setObjectName(u"spinner_pic")
        self.spinner_pic.setGeometry(QRect(20, 14, 51, 51))
        sizePolicy1.setHeightForWidth(self.spinner_pic.sizePolicy().hasHeightForWidth())
        self.spinner_pic.setSizePolicy(sizePolicy1)
        self.spinner_pic.setPixmap(QPixmap(u"images/phone_loading.png"))
        self.spinner_pic.setScaledContents(True)
        self.spinner_pic.setAlignment(Qt.AlignmentFlag.AlignCenter)

        self.horizontalLayout_11.addWidget(self.widget_3)


        self.topLayout.addLayout(self.horizontalLayout_11)

        self.connectInfo = ConnectInfoWidget(self.topPanel)
        self.connectInfo.setObjectName(u"connectInfo")

        self.topLayout.addWidget(self.connectInfo)

        self.splitter.addWidget(self.topPanel)
        self.bottomPanel = QWidget(self.splitter)
        self.bottomPanel.setObjectName(u"bottomPanel")
        self.Main = QVBoxLayout(self.bottomPanel)
        self.Main.setObjectName(u"Main")
        self.tabWidget = QTabWidget(self.bottomPanel)
        self.tabWidget.setObjectName(u"tabWidget")
        self.tabWidget.setEnabled(True)
        sizePolicy.setHeightForWidth(self.tabWidget.sizePolicy().hasHeightForWidth())
        self.tabWidget.setSizePolicy(sizePolicy)
        self.tabWidget.setMinimumSize(QSize(100, 0))
        self.tabWidget.setMouseTracking(False)
        self.tabWidget.setAutoFillBackground(False)
        self.readtab = QWidget()
        self.readtab.setObjectName(u"readtab")
        self.gridLayout_5 = QGridLayout(self.readtab)
        self.gridLayout_5.setObjectName(u"gridLayout_5")
        self.verticalLayout_8 = QVBoxLayout()
        self.verticalLayout_8.setObjectName(u"verticalLayout_8")
        self.horizontalLayout_6 = QHBoxLayout()
        self.horizontalLayout_6.setObjectName(u"horizontalLayout_6")
        self.readselectallcheckbox = QCheckBox(self.readtab)
        self.readselectallcheckbox.setObjectName(u"readselectallcheckbox")

        self.horizontalLayout_6.addWidget(self.readselectallcheckbox)

        self.readDumpGPTCheckbox = QCheckBox(self.readtab)
        self.readDumpGPTCheckbox.setObjectName(u"readDumpGPTCheckbox")
        sizePolicy2.setHeightForWidth(self.readDumpGPTCheckbox.sizePolicy().hasHeightForWidth())
        self.readDumpGPTCheckbox.setSizePolicy(sizePolicy2)

        self.horizontalLayout_6.addWidget(self.readDumpGPTCheckbox)

        self.horizontalSpacer_14 = QSpacerItem(40, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum)

        self.horizontalLayout_6.addItem(self.horizontalSpacer_14)

        self.readtitle = QLabel(self.readtab)
        self.readtitle.setObjectName(u"readtitle")

        self.horizontalLayout_6.addWidget(self.readtitle)

        self.horizontalSpacer_9 = QSpacerItem(40, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum)

        self.horizontalLayout_6.addItem(self.horizontalSpacer_9)

        self.readpartitionsbtn = QPushButton(self.readtab)
        self.readpartitionsbtn.setObjectName(u"readpartitionsbtn")

        self.horizontalLayout_6.addWidget(self.readpartitionsbtn)


        self.verticalLayout_8.addLayout(self.horizontalLayout_6)

        self.readpartitionList = QScrollArea(self.readtab)
        self.readpartitionList.setObjectName(u"readpartitionList")
        sizePolicy4 = QSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Expanding)
        sizePolicy4.setHorizontalStretch(0)
        sizePolicy4.setVerticalStretch(0)
        sizePolicy4.setHeightForWidth(self.readpartitionList.sizePolicy().hasHeightForWidth())
        self.readpartitionList.setSizePolicy(sizePolicy4)
        self.readpartitionList.setMinimumSize(QSize(0, 0))
        self.readpartitionList.setVerticalScrollBarPolicy(Qt.ScrollBarPolicy.ScrollBarAsNeeded)
        self.readpartitionList.setHorizontalScrollBarPolicy(Qt.ScrollBarPolicy.ScrollBarAsNeeded)
        self.readpartitionList.setSizeAdjustPolicy(QAbstractScrollArea.SizeAdjustPolicy.AdjustToContentsOnFirstShow)
        self.readpartitionList.setWidgetResizable(True)
        self.scrollAreaWidgetContents = QWidget()
        self.scrollAreaWidgetContents.setObjectName(u"scrollAreaWidgetContents")
        self.scrollAreaWidgetContents.setGeometry(QRect(0, 0, 954, 175))
        self.readpartitionList.setWidget(self.scrollAreaWidgetContents)

        self.verticalLayout_8.addWidget(self.readpartitionList)


        self.gridLayout_5.addLayout(self.verticalLayout_8, 0, 0, 1, 1)

        self.tabWidget.addTab(self.readtab, "")
        self.writetab = QWidget()
        self.writetab.setObjectName(u"writetab")
        self.gridLayout_6 = QGridLayout(self.writetab)
        self.gridLayout_6.setObjectName(u"gridLayout_6")
        self.verticalLayout_9 = QVBoxLayout()
        self.verticalLayout_9.setObjectName(u"verticalLayout_9")
        self.horizontalLayout_8 = QHBoxLayout()
        self.horizontalLayout_8.setObjectName(u"horizontalLayout_8")
        self.writetitle = QLabel(self.writetab)
        self.writetitle.setObjectName(u"writetitle")
        sizePolicy5 = QSizePolicy(QSizePolicy.Policy.Preferred, QSizePolicy.Policy.Fixed)
        sizePolicy5.setHorizontalStretch(0)
        sizePolicy5.setVerticalStretch(0)
        sizePolicy5.setHeightForWidth(self.writetitle.sizePolicy().hasHeightForWidth())
        self.writetitle.setSizePolicy(sizePolicy5)
        self.writetitle.setMinimumSize(QSize(0, 20))
        self.writetitle.setAlignment(Qt.AlignmentFlag.AlignLeading|Qt.AlignmentFlag.AlignLeft|Qt.AlignmentFlag.AlignTop)

        self.horizontalLayout_8.addWidget(self.writetitle)

        self.horizontalSpacer_10 = QSpacerItem(40, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum)

        self.horizontalLayout_8.addItem(self.horizontalSpacer_10)

        self.writeselectfromdir = QPushButton(self.writetab)
        self.writeselectfromdir.setObjectName(u"writeselectfromdir")

        self.horizontalLayout_8.addWidget(self.writeselectfromdir)

        self.horizontalSpacer_11 = QSpacerItem(40, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum)

        self.horizontalLayout_8.addItem(self.horizontalSpacer_11)

        self.writepartbtn = QPushButton(self.writetab)
        self.writepartbtn.setObjectName(u"writepartbtn")

        self.horizontalLayout_8.addWidget(self.writepartbtn)


        self.verticalLayout_9.addLayout(self.horizontalLayout_8)

        self.writepartitionList = QScrollArea(self.writetab)
        self.writepartitionList.setObjectName(u"writepartitionList")
        sizePolicy6 = QSizePolicy(QSizePolicy.Policy.MinimumExpanding, QSizePolicy.Policy.Expanding)
        sizePolicy6.setHorizontalStretch(0)
        sizePolicy6.setVerticalStretch(0)
        sizePolicy6.setHeightForWidth(self.writepartitionList.sizePolicy().hasHeightForWidth())
        self.writepartitionList.setSizePolicy(sizePolicy6)
        self.writepartitionList.setMinimumSize(QSize(0, 280))
        self.writepartitionList.setVerticalScrollBarPolicy(Qt.ScrollBarPolicy.ScrollBarAsNeeded)
        self.writepartitionList.setHorizontalScrollBarPolicy(Qt.ScrollBarPolicy.ScrollBarAsNeeded)
        self.writepartitionList.setSizeAdjustPolicy(QAbstractScrollArea.SizeAdjustPolicy.AdjustToContentsOnFirstShow)
        self.writepartitionList.setWidgetResizable(True)
        self.scrollAreaWidgetContents_2 = QWidget()
        self.scrollAreaWidgetContents_2.setObjectName(u"scrollAreaWidgetContents_2")
        self.scrollAreaWidgetContents_2.setGeometry(QRect(0, 0, 98, 278))
        self.writepartitionList.setWidget(self.scrollAreaWidgetContents_2)

        self.verticalLayout_9.addWidget(self.writepartitionList)


        self.gridLayout_6.addLayout(self.verticalLayout_9, 0, 0, 1, 1)

        self.tabWidget.addTab(self.writetab, "")
        self.erasetab = QWidget()
        self.erasetab.setObjectName(u"erasetab")
        self.horizontalLayout_10 = QHBoxLayout(self.erasetab)
        self.horizontalLayout_10.setObjectName(u"horizontalLayout_10")
        self.verticalLayout_10 = QVBoxLayout()
        self.verticalLayout_10.setObjectName(u"verticalLayout_10")
        self.horizontalLayout_9 = QHBoxLayout()
        self.horizontalLayout_9.setObjectName(u"horizontalLayout_9")
        self.erasetitle = QLabel(self.erasetab)
        self.erasetitle.setObjectName(u"erasetitle")
        sizePolicy5.setHeightForWidth(self.erasetitle.sizePolicy().hasHeightForWidth())
        self.erasetitle.setSizePolicy(sizePolicy5)
        self.erasetitle.setMinimumSize(QSize(0, 20))
        self.erasetitle.setAlignment(Qt.AlignmentFlag.AlignLeading|Qt.AlignmentFlag.AlignLeft|Qt.AlignmentFlag.AlignTop)

        self.horizontalLayout_9.addWidget(self.erasetitle)

        self.horizontalSpacer_13 = QSpacerItem(40, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum)

        self.horizontalLayout_9.addItem(self.horizontalSpacer_13)

        self.eraseselectallpartitionscheckbox = QCheckBox(self.erasetab)
        self.eraseselectallpartitionscheckbox.setObjectName(u"eraseselectallpartitionscheckbox")

        self.horizontalLayout_9.addWidget(self.eraseselectallpartitionscheckbox)

        self.horizontalSpacer_12 = QSpacerItem(40, 20, QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Minimum)

        self.horizontalLayout_9.addItem(self.horizontalSpacer_12)

        self.erasepartitionsbtn = QPushButton(self.erasetab)
        self.erasepartitionsbtn.setObjectName(u"erasepartitionsbtn")

        self.horizontalLayout_9.addWidget(self.erasepartitionsbtn)


        self.verticalLayout_10.addLayout(self.horizontalLayout_9)

        self.erasepartitionList = QScrollArea(self.erasetab)
        self.erasepartitionList.setObjectName(u"erasepartitionList")
        sizePolicy6.setHeightForWidth(self.erasepartitionList.sizePolicy().hasHeightForWidth())
        self.erasepartitionList.setSizePolicy(sizePolicy6)
        self.erasepartitionList.setMinimumSize(QSize(0, 280))
        self.erasepartitionList.setVerticalScrollBarPolicy(Qt.ScrollBarPolicy.ScrollBarAsNeeded)
        self.erasepartitionList.setHorizontalScrollBarPolicy(Qt.ScrollBarPolicy.ScrollBarAsNeeded)
        self.erasepartitionList.setSizeAdjustPolicy(QAbstractScrollArea.SizeAdjustPolicy.AdjustToContentsOnFirstShow)
        self.erasepartitionList.setWidgetResizable(True)
        self.scrollAreaWidgetContents_3 = QWidget()
        self.scrollAreaWidgetContents_3.setObjectName(u"scrollAreaWidgetContents_3")
        self.scrollAreaWidgetContents_3.setGeometry(QRect(0, 0, 98, 278))
        self.erasepartitionList.setWidget(self.scrollAreaWidgetContents_3)

        self.verticalLayout_10.addWidget(self.erasepartitionList)


        self.horizontalLayout_10.addLayout(self.verticalLayout_10)

        self.tabWidget.addTab(self.erasetab, "")
        self.tab = QWidget()
        self.tab.setObjectName(u"tab")
        self.gridLayout_4 = QGridLayout(self.tab)
        self.gridLayout_4.setObjectName(u"gridLayout_4")
        self.verticalLayout_2 = QVBoxLayout()
        self.verticalLayout_2.setObjectName(u"verticalLayout_2")
        self.readflashbtn = QPushButton(self.tab)
        self.readflashbtn.setObjectName(u"readflashbtn")

        self.verticalLayout_2.addWidget(self.readflashbtn)

        self.readpreloaderbtn = QPushButton(self.tab)
        self.readpreloaderbtn.setObjectName(u"readpreloaderbtn")

        self.verticalLayout_2.addWidget(self.readpreloaderbtn)

        self.readboot2btn = QPushButton(self.tab)
        self.readboot2btn.setObjectName(u"readboot2btn")

        self.verticalLayout_2.addWidget(self.readboot2btn)

        self.readrpmbbtn = QPushButton(self.tab)
        self.readrpmbbtn.setObjectName(u"readrpmbbtn")

        self.verticalLayout_2.addWidget(self.readrpmbbtn)

        self.verticalSpacer = QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding)

        self.verticalLayout_2.addItem(self.verticalSpacer)


        self.gridLayout_4.addLayout(self.verticalLayout_2, 0, 0, 2, 1)

        self.verticalLayout_3 = QVBoxLayout()
        self.verticalLayout_3.setObjectName(u"verticalLayout_3")
        self.writeflashbtn = QPushButton(self.tab)
        self.writeflashbtn.setObjectName(u"writeflashbtn")

        self.verticalLayout_3.addWidget(self.writeflashbtn)

        self.writepreloaderbtn = QPushButton(self.tab)
        self.writepreloaderbtn.setObjectName(u"writepreloaderbtn")

        self.verticalLayout_3.addWidget(self.writepreloaderbtn)

        self.writeboot2btn = QPushButton(self.tab)
        self.writeboot2btn.setObjectName(u"writeboot2btn")

        self.verticalLayout_3.addWidget(self.writeboot2btn)

        self.writerpmbbtn = QPushButton(self.tab)
        self.writerpmbbtn.setObjectName(u"writerpmbbtn")

        self.verticalLayout_3.addWidget(self.writerpmbbtn)

        self.verticalSpacer_2 = QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding)

        self.verticalLayout_3.addItem(self.verticalSpacer_2)


        self.gridLayout_4.addLayout(self.verticalLayout_3, 0, 1, 2, 1)

        self.verticalLayout_4 = QVBoxLayout()
        self.verticalLayout_4.setObjectName(u"verticalLayout_4")
        self.erasepreloaderbtn = QPushButton(self.tab)
        self.erasepreloaderbtn.setObjectName(u"erasepreloaderbtn")

        self.verticalLayout_4.addWidget(self.erasepreloaderbtn)

        self.eraseboot2btn = QPushButton(self.tab)
        self.eraseboot2btn.setObjectName(u"eraseboot2btn")

        self.verticalLayout_4.addWidget(self.eraseboot2btn)

        self.eraserpmbbtn = QPushButton(self.tab)
        self.eraserpmbbtn.setObjectName(u"eraserpmbbtn")

        self.verticalLayout_4.addWidget(self.eraserpmbbtn)

        self.verticalSpacer_3 = QSpacerItem(20, 40, QSizePolicy.Policy.Minimum, QSizePolicy.Policy.Expanding)

        self.verticalLayout_4.addItem(self.verticalSpacer_3)


        self.gridLayout_4.addLayout(self.verticalLayout_4, 0, 2, 1, 1)

        self.verticalLayout_5 = QVBoxLayout()
        self.verticalLayout_5.setObjectName(u"verticalLayout_5")
        self.lockbutton = QPushButton(self.tab)
        self.lockbutton.setObjectName(u"lockbutton")

        self.verticalLayout_5.addWidget(self.lockbutton)

        self.unlockbutton = QPushButton(self.tab)
        self.unlockbutton.setObjectName(u"unlockbutton")

        self.verticalLayout_5.addWidget(self.unlockbutton)


        self.gridLayout_4.addLayout(self.verticalLayout_5, 1, 2, 1, 1)

        self.tabWidget.addTab(self.tab, "")
        self.keytab = QWidget()
        self.keytab.setObjectName(u"keytab")
        self.gridLayout_2 = QGridLayout(self.keytab)
        self.gridLayout_2.setObjectName(u"gridLayout_2")
        self.keytable = QTableWidget(self.keytab)
        if (self.keytable.columnCount() < 2):
            self.keytable.setColumnCount(2)
        __qtablewidgetitem = QTableWidgetItem()
        self.keytable.setHorizontalHeaderItem(0, __qtablewidgetitem)
        __qtablewidgetitem1 = QTableWidgetItem()
        self.keytable.setHorizontalHeaderItem(1, __qtablewidgetitem1)
        if (self.keytable.rowCount() < 7):
            self.keytable.setRowCount(7)
        __qtablewidgetitem2 = QTableWidgetItem()
        self.keytable.setVerticalHeaderItem(0, __qtablewidgetitem2)
        __qtablewidgetitem3 = QTableWidgetItem()
        self.keytable.setVerticalHeaderItem(1, __qtablewidgetitem3)
        __qtablewidgetitem4 = QTableWidgetItem()
        self.keytable.setVerticalHeaderItem(2, __qtablewidgetitem4)
        __qtablewidgetitem5 = QTableWidgetItem()
        self.keytable.setVerticalHeaderItem(3, __qtablewidgetitem5)
        __qtablewidgetitem6 = QTableWidgetItem()
        self.keytable.setVerticalHeaderItem(4, __qtablewidgetitem6)
        __qtablewidgetitem7 = QTableWidgetItem()
        self.keytable.setVerticalHeaderItem(5, __qtablewidgetitem7)
        __qtablewidgetitem8 = QTableWidgetItem()
        self.keytable.setVerticalHeaderItem(6, __qtablewidgetitem8)
        self.keytable.setObjectName(u"keytable")
        self.keytable.setEnabled(True)
        self.keytable.setSortingEnabled(True)
        self.keytable.setWordWrap(False)
        self.keytable.horizontalHeader().setProperty(u"showSortIndicator", True)
        self.keytable.horizontalHeader().setStretchLastSection(True)
        self.keytable.verticalHeader().setVisible(False)
        self.keytable.verticalHeader().setCascadingSectionResizes(False)
        self.keytable.verticalHeader().setStretchLastSection(False)

        self.gridLayout_2.addWidget(self.keytable, 1, 0, 1, 1)

        self.keystatuslabel = QLabel(self.keytab)
        self.keystatuslabel.setObjectName(u"keystatuslabel")

        self.gridLayout_2.addWidget(self.keystatuslabel, 2, 0, 1, 1)

        self.generatekeybtn = QPushButton(self.keytab)
        self.generatekeybtn.setObjectName(u"generatekeybtn")

        self.gridLayout_2.addWidget(self.generatekeybtn, 0, 0, 1, 1)

        self.tabWidget.addTab(self.keytab, "")
        self.debugtab = QWidget()
        self.debugtab.setObjectName(u"debugtab")
        self.gridLayout_3 = QGridLayout(self.debugtab)
        self.gridLayout_3.setObjectName(u"gridLayout_3")
        self.gridLayout = QGridLayout()
        self.gridLayout.setObjectName(u"gridLayout")
        self.widget_2 = QWidget(self.debugtab)
        self.widget_2.setObjectName(u"widget_2")

        self.gridLayout.addWidget(self.widget_2, 1, 0, 1, 1)

        self.logBox = QPlainTextEdit(self.debugtab)
        self.logBox.setObjectName(u"logBox")
        sizePolicy4.setHeightForWidth(self.logBox.sizePolicy().hasHeightForWidth())
        self.logBox.setSizePolicy(sizePolicy4)
        self.logBox.setMinimumSize(QSize(700, 0))
        self.logBox.setStyleSheet(u"")
        self.logBox.setVerticalScrollBarPolicy(Qt.ScrollBarPolicy.ScrollBarAlwaysOn)
        self.logBox.setReadOnly(True)
        self.logBox.setProperty(u"hidden", False)

        self.gridLayout.addWidget(self.logBox, 0, 0, 1, 2)


        self.gridLayout_3.addLayout(self.gridLayout, 0, 0, 1, 1)

        self.tabWidget.addTab(self.debugtab, "")

        self.Main.addWidget(self.tabWidget)

        self.partProgressText = QLabel(self.bottomPanel)
        self.partProgressText.setObjectName(u"partProgressText")

        self.Main.addWidget(self.partProgressText)

        self.partProgress = QProgressBar(self.bottomPanel)
        self.partProgress.setObjectName(u"partProgress")
        self.partProgress.setValue(0)

        self.Main.addWidget(self.partProgress)

        self.fullProgressText = QLabel(self.bottomPanel)
        self.fullProgressText.setObjectName(u"fullProgressText")

        self.Main.addWidget(self.fullProgressText)

        self.fullProgress = QProgressBar(self.bottomPanel)
        self.fullProgress.setObjectName(u"fullProgress")
        self.fullProgress.setValue(0)

        self.Main.addWidget(self.fullProgress)

        self.Main.setStretch(0, 1)
        self.splitter.addWidget(self.bottomPanel)

        self.verticalLayout_11.addWidget(self.splitter)

        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QMenuBar(MainWindow)
        self.menubar.setObjectName(u"menubar")
        self.menubar.setGeometry(QRect(0, 0, 1000, 23))
        self.menuFile = QMenu(self.menubar)
        self.menuFile.setObjectName(u"menuFile")
        MainWindow.setMenuBar(self.menubar)
#if QT_CONFIG(shortcut)
        self.logoPic.setBuddy(self.logoPic)
#endif // QT_CONFIG(shortcut)

        self.menubar.addAction(self.menuFile.menuAction())
        self.menuFile.addAction(self.action_Quit)

        self.retranslateUi(MainWindow)

        self.tabWidget.setCurrentIndex(0)


        QMetaObject.connectSlotsByName(MainWindow)
    # setupUi

    def retranslateUi(self, MainWindow):
        MainWindow.setWindowTitle(QCoreApplication.translate("MainWindow", u"MTKClient v2.01", None))
        self.actionRead_partition_s.setText(QCoreApplication.translate("MainWindow", u"Quit", None))
        self.actionRead_full_flash.setText(QCoreApplication.translate("MainWindow", u"Read full flash", None))
        self.actionRead_offset.setText(QCoreApplication.translate("MainWindow", u"Read at offset", None))
        self.actionWrite_partition_s.setText(QCoreApplication.translate("MainWindow", u"Write partition(s)", None))
        self.actionWrite_full_flash.setText(QCoreApplication.translate("MainWindow", u"Write full flash", None))
        self.actionWrite_at_offset.setText(QCoreApplication.translate("MainWindow", u"Write at offset", None))
        self.actionErase_partitions_s.setText(QCoreApplication.translate("MainWindow", u"Erase partitions(s)", None))
        self.actionErase_at_offset.setText(QCoreApplication.translate("MainWindow", u"Erase at offset", None))
        self.actionRead_RPMB.setText(QCoreApplication.translate("MainWindow", u"Read RPMB", None))
        self.actionWrite_RPMB.setText(QCoreApplication.translate("MainWindow", u"Write RPMB", None))
        self.actionRead_preloader.setText(QCoreApplication.translate("MainWindow", u"Read preloader", None))
        self.actionGenerate_RPMB_keys.setText(QCoreApplication.translate("MainWindow", u"Generate RPMB keys", None))
        self.actionRead_boot2.setText(QCoreApplication.translate("MainWindow", u"Read boot2", None))
        self.actionWrite_preloader.setText(QCoreApplication.translate("MainWindow", u"Write preloader", None))
        self.actionWrite_boot2.setText(QCoreApplication.translate("MainWindow", u"Write boot2", None))
        self.actionUnlock_device.setText(QCoreApplication.translate("MainWindow", u"Unlock / Lock", None))
        self.actionLock_device.setText(QCoreApplication.translate("MainWindow", u"Lock device", None))
        self.action_Quit.setText(QCoreApplication.translate("MainWindow", u"&Quit", None))
        self.logoPic.setText("")
        self.copyrightInfo.setText(QCoreApplication.translate("MainWindow", u"<b>Made by:</b> Bjoern Kerler<br/><b>GUI by:</b> Geert-Jan Kreileman<br/><br/><b>Credits:</b><br/>kamakiri [xyzz]<br/>linecode exploit [chimera]<br/>Chaosmaster<br/>and all contributors</p>", None))
        self.phoneInfoTextbox.setText(QCoreApplication.translate("MainWindow", u"No phone detected.", None))
        self.phoneDebugInfoTextbox.setText("")
        self.consettings2btn.setText(QCoreApplication.translate("MainWindow", u"Preloader", None))
        self.consettingsbtn.setText(QCoreApplication.translate("MainWindow", u"DA Loader", None))
        self.iotcheck.setText(QCoreApplication.translate("MainWindow", u"IoT", None))
        self.serialportbtn.setText(QCoreApplication.translate("MainWindow", u"Serial Port", None))
        self.pic.setText("")
        self.spinner_pic.setText("")
        self.readselectallcheckbox.setText(QCoreApplication.translate("MainWindow", u"Select all partitions", None))
        self.readDumpGPTCheckbox.setText(QCoreApplication.translate("MainWindow", u"Dump GPT", None))
        self.readtitle.setText("")
        self.readpartitionsbtn.setText(QCoreApplication.translate("MainWindow", u"Read partition(s)", None))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.readtab), QCoreApplication.translate("MainWindow", u"Read partition(s)", None))
        self.writetitle.setText(QCoreApplication.translate("MainWindow", u"Select partitions to write", None))
        self.writeselectfromdir.setText(QCoreApplication.translate("MainWindow", u"Select from directory", None))
        self.writepartbtn.setText(QCoreApplication.translate("MainWindow", u"Write partition(s)", None))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.writetab), QCoreApplication.translate("MainWindow", u"Write partition(s)", None))
        self.erasetitle.setText(QCoreApplication.translate("MainWindow", u"Select partitions to erase", None))
        self.eraseselectallpartitionscheckbox.setText(QCoreApplication.translate("MainWindow", u"Select all partitions", None))
        self.erasepartitionsbtn.setText(QCoreApplication.translate("MainWindow", u"Erase partition(s)", None))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.erasetab), QCoreApplication.translate("MainWindow", u"Erase partition(s)", None))
        self.readflashbtn.setText(QCoreApplication.translate("MainWindow", u"Read flash", None))
        self.readpreloaderbtn.setText(QCoreApplication.translate("MainWindow", u"Read preloader", None))
        self.readboot2btn.setText(QCoreApplication.translate("MainWindow", u"Read boot2", None))
        self.readrpmbbtn.setText(QCoreApplication.translate("MainWindow", u"Read RPMB", None))
        self.writeflashbtn.setText(QCoreApplication.translate("MainWindow", u"Write flash", None))
        self.writepreloaderbtn.setText(QCoreApplication.translate("MainWindow", u"Write preloader", None))
        self.writeboot2btn.setText(QCoreApplication.translate("MainWindow", u"Write boot2", None))
        self.writerpmbbtn.setText(QCoreApplication.translate("MainWindow", u"Write RPMB", None))
        self.erasepreloaderbtn.setText(QCoreApplication.translate("MainWindow", u"Erase preloader", None))
        self.eraseboot2btn.setText(QCoreApplication.translate("MainWindow", u"Erase boot2", None))
        self.eraserpmbbtn.setText(QCoreApplication.translate("MainWindow", u"Erase RPMB", None))
        self.lockbutton.setText(QCoreApplication.translate("MainWindow", u"Lock bootloader", None))
        self.unlockbutton.setText(QCoreApplication.translate("MainWindow", u"Unlock bootloader", None))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), QCoreApplication.translate("MainWindow", u"Flash Tools", None))
        ___qtablewidgetitem = self.keytable.horizontalHeaderItem(0)
        ___qtablewidgetitem.setText(QCoreApplication.translate("MainWindow", u"Type", None));
        ___qtablewidgetitem1 = self.keytable.horizontalHeaderItem(1)
        ___qtablewidgetitem1.setText(QCoreApplication.translate("MainWindow", u"Value", None));
        ___qtablewidgetitem2 = self.keytable.verticalHeaderItem(0)
        ___qtablewidgetitem2.setText(QCoreApplication.translate("MainWindow", u"Neue Zeile", None));
        ___qtablewidgetitem3 = self.keytable.verticalHeaderItem(1)
        ___qtablewidgetitem3.setText(QCoreApplication.translate("MainWindow", u"Neue Zeile", None));
        ___qtablewidgetitem4 = self.keytable.verticalHeaderItem(2)
        ___qtablewidgetitem4.setText(QCoreApplication.translate("MainWindow", u"Neue Zeile", None));
        ___qtablewidgetitem5 = self.keytable.verticalHeaderItem(3)
        ___qtablewidgetitem5.setText(QCoreApplication.translate("MainWindow", u"Neue Zeile", None));
        ___qtablewidgetitem6 = self.keytable.verticalHeaderItem(4)
        ___qtablewidgetitem6.setText(QCoreApplication.translate("MainWindow", u"Neue Zeile", None));
        ___qtablewidgetitem7 = self.keytable.verticalHeaderItem(5)
        ___qtablewidgetitem7.setText(QCoreApplication.translate("MainWindow", u"Neue Zeile", None));
        ___qtablewidgetitem8 = self.keytable.verticalHeaderItem(6)
        ___qtablewidgetitem8.setText(QCoreApplication.translate("MainWindow", u"Neue Zeile", None));
        self.keystatuslabel.setText(QCoreApplication.translate("MainWindow", u"Ready.", None))
        self.generatekeybtn.setText(QCoreApplication.translate("MainWindow", u"Generate Keys", None))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.keytab), QCoreApplication.translate("MainWindow", u"Keys", None))
        self.tabWidget.setTabText(self.tabWidget.indexOf(self.debugtab), QCoreApplication.translate("MainWindow", u"Debug Log", None))
        self.partProgressText.setText("")
        self.fullProgressText.setText("")
        self.menuFile.setTitle(QCoreApplication.translate("MainWindow", u"&File", None))
    # retranslateUi

