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

# Form implementation generated from reading ui file 'field_vis.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_MainWindow(object):
    def setupUi(self, MainWindow):
        MainWindow.setObjectName("MainWindow")
        MainWindow.resize(878, 642)
        self.centralwidget = QtWidgets.QWidget(MainWindow)
        self.centralwidget.setObjectName("centralwidget")
        self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget)
        self.verticalLayout.setObjectName("verticalLayout")
        self.controlsFrame = QtWidgets.QFrame(self.centralwidget)
        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.verticalLayout.addWidget(self.controlsFrame)
        self.frame_2 = QtWidgets.QFrame(self.centralwidget)
        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.setContentsMargins(2, 2, 2, 2)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.viewFrame = QtWidgets.QFrame(self.frame_2)
        self.viewFrame.setFrameShape(QtWidgets.QFrame.StyledPanel)
        self.viewFrame.setFrameShadow(QtWidgets.QFrame.Raised)
        self.viewFrame.setObjectName("viewFrame")
        self.viewLayout = QtWidgets.QVBoxLayout(self.viewFrame)
        self.viewLayout.setContentsMargins(1, 1, 1, 1)
        self.viewLayout.setSpacing(1)
        self.viewLayout.setObjectName("viewLayout")
        self.horizontalLayout_2.addWidget(self.viewFrame)
        self.verticalSlider = QtWidgets.QSlider(self.frame_2)
        self.verticalSlider.setMinimum(1)
        self.verticalSlider.setProperty("value", 20)
        self.verticalSlider.setOrientation(QtCore.Qt.Vertical)
        self.verticalSlider.setObjectName("verticalSlider")
        self.horizontalLayout_2.addWidget(self.verticalSlider)
        self.verticalLayout.addWidget(self.frame_2)
        MainWindow.setCentralWidget(self.centralwidget)
        self.menubar = QtWidgets.QMenuBar(MainWindow)
        self.menubar.setGeometry(QtCore.QRect(0, 0, 878, 24))
        self.menubar.setObjectName("menubar")
        MainWindow.setMenuBar(self.menubar)
        self.statusbar = QtWidgets.QStatusBar(MainWindow)
        self.statusbar.setObjectName("statusbar")
        MainWindow.setStatusBar(self.statusbar)

        self.retranslateUi(MainWindow)
        self.pushButton.clicked.connect(MainWindow.start_recording) # type: ignore
        self.pushButton_2.clicked.connect(MainWindow.removeBG) # type: ignore
        self.verticalSlider.valueChanged['int'].connect(MainWindow.setZoom) # type: ignore
        self.pushButton_3.clicked.connect(MainWindow.goHome) # type: ignore
        self.pushButton_4.clicked.connect(MainWindow.goCenter) # type: ignore
        self.tipColorButton.sigColorChanged.connect(MainWindow.setArrowColor) # type: ignore
        self.baseColorButton.sigColorChanged.connect(MainWindow.setArrowStartColor) # type: ignore
        self.pushButton_5.clicked.connect(MainWindow.stopRecording) # type: ignore
        self.bgColorButton.sigColorChanging.connect(MainWindow.setBGColor) # type: ignore
        QtCore.QMetaObject.connectSlotsByName(MainWindow)

    def retranslateUi(self, MainWindow):
        _translate = QtCore.QCoreApplication.translate
        MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
        self.pushButton.setText(_translate("MainWindow", "START"))
        self.pushButton_3.setText(_translate("MainWindow", "Home"))
        self.pushButton_4.setText(_translate("MainWindow", "Center"))
        self.pushButton_2.setText(_translate("MainWindow", "RECORD BACKGROUND(Remove magnets)"))
from pyqtgraph import ColorButton
from . import res_rc
