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

# Form implementation generated from reading ui file 'dio_stepper.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_Dialog(object):
    def setupUi(self, Dialog):
        Dialog.setObjectName("Dialog")
        Dialog.resize(645, 142)
        self.gridLayout = QtWidgets.QGridLayout(Dialog)
        self.gridLayout.setContentsMargins(5, 5, 5, 5)
        self.gridLayout.setSpacing(3)
        self.gridLayout.setObjectName("gridLayout")
        self.pushButton = QtWidgets.QPushButton(Dialog)
        self.pushButton.setAutoDefault(False)
        self.pushButton.setObjectName("pushButton")
        self.gridLayout.addWidget(self.pushButton, 0, 0, 1, 1)
        self.label = QtWidgets.QLabel(Dialog)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 2, 4, 1, 2)
        self.currentPositionBox = QtWidgets.QSpinBox(Dialog)
        self.currentPositionBox.setMinimum(-10000)
        self.currentPositionBox.setMaximum(10000)
        self.currentPositionBox.setObjectName("currentPositionBox")
        self.gridLayout.addWidget(self.currentPositionBox, 0, 4, 1, 1)
        self.pinSet = QtWidgets.QComboBox(Dialog)
        self.pinSet.setFrame(True)
        self.pinSet.setObjectName("pinSet")
        self.pinSet.addItem("")
        self.pinSet.addItem("")
        self.gridLayout.addWidget(self.pinSet, 2, 0, 1, 2)
        self.totalStepsBox = QtWidgets.QSpinBox(Dialog)
        self.totalStepsBox.setMinimum(10)
        self.totalStepsBox.setMaximum(20000)
        self.totalStepsBox.setObjectName("totalStepsBox")
        self.gridLayout.addWidget(self.totalStepsBox, 2, 2, 1, 1)
        self.configLayout = QtWidgets.QHBoxLayout()
        self.configLayout.setObjectName("configLayout")
        self.progressBar = QtWidgets.QProgressBar(Dialog)
        self.progressBar.setProperty("value", 24)
        self.progressBar.setObjectName("progressBar")
        self.configLayout.addWidget(self.progressBar)
        self.gridLayout.addLayout(self.configLayout, 1, 0, 1, 6)
        self.pushButton_5 = QtWidgets.QPushButton(Dialog)
        self.pushButton_5.setAutoRepeat(True)
        self.pushButton_5.setAutoRepeatInterval(20)
        self.pushButton_5.setAutoDefault(False)
        self.pushButton_5.setObjectName("pushButton_5")
        self.gridLayout.addWidget(self.pushButton_5, 0, 2, 1, 1)
        self.pushButton_2 = QtWidgets.QPushButton(Dialog)
        font = QtGui.QFont()
        font.setPointSize(13)
        self.pushButton_2.setFont(font)
        self.pushButton_2.setAutoRepeat(True)
        self.pushButton_2.setAutoRepeatInterval(20)
        self.pushButton_2.setAutoDefault(False)
        self.pushButton_2.setObjectName("pushButton_2")
        self.gridLayout.addWidget(self.pushButton_2, 0, 1, 1, 1)
        self.label_2 = QtWidgets.QLabel(Dialog)
        self.label_2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 0, 3, 1, 1)
        self.holdBox = QtWidgets.QCheckBox(Dialog)
        self.holdBox.setObjectName("holdBox")
        self.gridLayout.addWidget(self.holdBox, 0, 5, 1, 1)

        self.retranslateUi(Dialog)
        self.pushButton.clicked.connect(Dialog.initialize) # type: ignore
        self.pushButton_2.clicked.connect(Dialog.stepLeft) # type: ignore
        self.pushButton_5.clicked.connect(Dialog.stepRight) # type: ignore
        self.currentPositionBox.editingFinished.connect(Dialog.stepTo) # type: ignore
        self.pinSet.currentIndexChanged['int'].connect(Dialog.setPins) # type: ignore
        self.totalStepsBox.valueChanged['int'].connect(Dialog.setTotalSteps) # type: ignore
        QtCore.QMetaObject.connectSlotsByName(Dialog)

    def retranslateUi(self, Dialog):
        _translate = QtCore.QCoreApplication.translate
        Dialog.setWindowTitle(_translate("Dialog", "Dialog"))
        self.pushButton.setText(_translate("Dialog", "HOME"))
        self.label.setText(_translate("Dialog", "Steps per full revolution"))
        self.pinSet.setItemText(0, _translate("Dialog", "A+ : CS1, B+ : CS2, A- : CS3, B- : CS4"))
        self.pinSet.setItemText(1, _translate("Dialog", "A+ : CS1, A- : CS2, B+ : CS3, B- : CS4"))
        self.progressBar.setFormat(_translate("Dialog", "Motor position at %v"))
        self.pushButton_5.setText(_translate("Dialog", ">"))
        self.pushButton_2.setText(_translate("Dialog", "<"))
        self.label_2.setText(_translate("Dialog", "Move To:"))
        self.holdBox.setToolTip(_translate("Dialog", "Hold the stepper motor position. If unchecked, coils are de energised when not moving."))
        self.holdBox.setText(_translate("Dialog", "Hold Position"))
from . import res_rc
