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

# Form implementation generated from reading ui file 'mag_gradient.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(875, 646)
        self.gridLayout_3 = QtWidgets.QGridLayout(Form)
        self.gridLayout_3.setObjectName("gridLayout_3")
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setContentsMargins(-1, -1, -1, 5)
        self.gridLayout.setSpacing(3)
        self.gridLayout.setObjectName("gridLayout")
        self.frame_2 = QtWidgets.QFrame(Form)
        self.frame_2.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.frame_2.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_2.setObjectName("frame_2")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.frame_2)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.frame_3 = QtWidgets.QFrame(self.frame_2)
        self.frame_3.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.frame_3.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_3.setObjectName("frame_3")
        self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.frame_3)
        self.verticalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.verticalLayout_2.setSpacing(0)
        self.verticalLayout_2.setObjectName("verticalLayout_2")
        self.enableMPButton = QtWidgets.QPushButton(self.frame_3)
        self.enableMPButton.setObjectName("enableMPButton")
        self.verticalLayout_2.addWidget(self.enableMPButton)
        self.mpLabel = QtWidgets.QLabel(self.frame_3)
        self.mpLabel.setText("")
        self.mpLabel.setObjectName("mpLabel")
        self.verticalLayout_2.addWidget(self.mpLabel)
        self.horizontalLayout_2.addWidget(self.frame_3)
        self.frame_4 = QtWidgets.QFrame(self.frame_2)
        self.frame_4.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.frame_4.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame_4.setObjectName("frame_4")
        self.viewLayout = QtWidgets.QVBoxLayout(self.frame_4)
        self.viewLayout.setContentsMargins(1, 1, 1, 1)
        self.viewLayout.setSpacing(1)
        self.viewLayout.setObjectName("viewLayout")
        self.horizontalLayout_2.addWidget(self.frame_4)
        self.gridLayout.addWidget(self.frame_2, 2, 0, 1, 1)
        self.controlsFrame = QtWidgets.QFrame(Form)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.controlsFrame.sizePolicy().hasHeightForWidth())
        self.controlsFrame.setSizePolicy(sizePolicy)
        self.controlsFrame.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.controlsFrame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.controlsFrame.setObjectName("controlsFrame")
        self.horizontalLayout = QtWidgets.QHBoxLayout(self.controlsFrame)
        self.horizontalLayout.setContentsMargins(2, 2, 2, 2)
        self.horizontalLayout.setObjectName("horizontalLayout")
        self.pushButton = QtWidgets.QPushButton(self.controlsFrame)
        icon = QtGui.QIcon()
        icon.addPixmap(QtGui.QPixmap(":/controls/play.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.pushButton.setIcon(icon)
        self.pushButton.setObjectName("pushButton")
        self.horizontalLayout.addWidget(self.pushButton)
        self.pushButton_5 = QtWidgets.QPushButton(self.controlsFrame)
        self.pushButton_5.setText("")
        icon1 = QtGui.QIcon()
        icon1.addPixmap(QtGui.QPixmap(":/controls/stop.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.pushButton_5.setIcon(icon1)
        self.pushButton_5.setObjectName("pushButton_5")
        self.horizontalLayout.addWidget(self.pushButton_5)
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.horizontalLayout.addItem(spacerItem)
        self.pushButton_3 = QtWidgets.QPushButton(self.controlsFrame)
        self.pushButton_3.setObjectName("pushButton_3")
        self.horizontalLayout.addWidget(self.pushButton_3)
        self.pushButton_4 = QtWidgets.QPushButton(self.controlsFrame)
        self.pushButton_4.setObjectName("pushButton_4")
        self.horizontalLayout.addWidget(self.pushButton_4)
        self.pushButton_2 = QtWidgets.QPushButton(self.controlsFrame)
        icon2 = QtGui.QIcon()
        icon2.addPixmap(QtGui.QPixmap(":/controls/refresh.svg"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
        self.pushButton_2.setIcon(icon2)
        self.pushButton_2.setObjectName("pushButton_2")
        self.horizontalLayout.addWidget(self.pushButton_2)
        self.baseColorButton = ColorButton(self.controlsFrame)
        self.baseColorButton.setText("")
        self.baseColorButton.setObjectName("baseColorButton")
        self.horizontalLayout.addWidget(self.baseColorButton)
        self.tipColorButton = ColorButton(self.controlsFrame)
        self.tipColorButton.setText("")
        self.tipColorButton.setObjectName("tipColorButton")
        self.horizontalLayout.addWidget(self.tipColorButton)
        self.bgColorButton = ColorButton(self.controlsFrame)
        self.bgColorButton.setText("")
        self.bgColorButton.setObjectName("bgColorButton")
        self.horizontalLayout.addWidget(self.bgColorButton)
        self.gridLayout.addWidget(self.controlsFrame, 1, 0, 1, 1)
        self.frame = QtWidgets.QFrame(Form)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Maximum)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.frame.sizePolicy().hasHeightForWidth())
        self.frame.setSizePolicy(sizePolicy)
        self.frame.setFrameShape(QtWidgets.QFrame.NoFrame)
        self.frame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.frame.setObjectName("frame")
        self.gridLayout_2 = QtWidgets.QGridLayout(self.frame)
        self.gridLayout_2.setContentsMargins(3, 3, 3, 3)
        self.gridLayout_2.setSpacing(3)
        self.gridLayout_2.setObjectName("gridLayout_2")
        self.recordButton = QtWidgets.QPushButton(self.frame)
        self.recordButton.setObjectName("recordButton")
        self.gridLayout_2.addWidget(self.recordButton, 0, 1, 1, 1)
        self.coordinateLabel = QtWidgets.QLabel(self.frame)
        self.coordinateLabel.setObjectName("coordinateLabel")
        self.gridLayout_2.addWidget(self.coordinateLabel, 1, 0, 1, 1)
        self.installButton = QtWidgets.QPushButton(self.frame)
        self.installButton.setObjectName("installButton")
        self.gridLayout_2.addWidget(self.installButton, 0, 0, 1, 1)
        self.gridLayout.addWidget(self.frame, 0, 0, 1, 1)
        self.verticalSlider_2 = QtWidgets.QSlider(Form)
        self.verticalSlider_2.setMinimum(1)
        self.verticalSlider_2.setProperty("value", 20)
        self.verticalSlider_2.setOrientation(QtCore.Qt.Vertical)
        self.verticalSlider_2.setObjectName("verticalSlider_2")
        self.gridLayout.addWidget(self.verticalSlider_2, 0, 1, 3, 1)
        self.gridLayout_3.addLayout(self.gridLayout, 0, 0, 1, 1)
        self.textBrowser = QtWidgets.QTextBrowser(Form)
        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_3.addWidget(self.textBrowser, 1, 0, 1, 1)

        self.retranslateUi(Form)
        self.installButton.clicked.connect(Form.launchPipInstaller) # type: ignore
        self.pushButton_2.clicked.connect(Form.removeBG) # type: ignore
        self.pushButton_4.clicked.connect(Form.goCenter) # type: ignore
        self.pushButton_3.clicked.connect(Form.goHome) # type: ignore
        self.pushButton.clicked.connect(Form.start_recording) # type: ignore
        self.pushButton_5.clicked.connect(Form.stopRecording) # type: ignore
        self.verticalSlider_2.valueChanged['int'].connect(Form.setZoom) # type: ignore
        self.baseColorButton.clicked.connect(Form.setArrowStartColor) # type: ignore
        self.tipColorButton.clicked.connect(Form.setArrowColor) # type: ignore
        self.bgColorButton.clicked.connect(Form.setBGColor) # type: ignore
        self.enableMPButton.clicked.connect(Form.addMP) # type: ignore
        QtCore.QMetaObject.connectSlotsByName(Form)

    def retranslateUi(self, Form):
        _translate = QtCore.QCoreApplication.translate
        Form.setWindowTitle(_translate("Form", "Form"))
        self.enableMPButton.setText(_translate("Form", "Start AI Tracker"))
        self.pushButton.setText(_translate("Form", "START"))
        self.pushButton_3.setText(_translate("Form", "Home"))
        self.pushButton_4.setText(_translate("Form", "Center"))
        self.pushButton_2.setText(_translate("Form", "RECORD BACKGROUND(Remove magnets)"))
        self.recordButton.setText(_translate("Form", "Record"))
        self.coordinateLabel.setText(_translate("Form", "Coordinates"))
        self.installButton.setText(_translate("Form", "Install Packages"))
from pyqtgraph import ColorButton
from . import res_rc
