# Form implementation generated from reading ui file 'scanDialog.ui'
#
# Created by: PyQt6 UI code generator 6.5.2
#
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
# run again.  Do not edit this file unless you know what you are doing.


from PyQt6 import QtCore, QtGui, QtWidgets


class Ui_scanDialog(object):
    def setupUi(self, scanDialog):
        scanDialog.setObjectName("scanDialog")
        scanDialog.resize(1125, 285)
        self.verticalLayout = QtWidgets.QVBoxLayout(scanDialog)
        self.verticalLayout.setObjectName("verticalLayout")
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.loadButton = QtWidgets.QPushButton(parent=scanDialog)
        self.loadButton.setObjectName("loadButton")
        self.gridLayout.addWidget(self.loadButton, 4, 4, 1, 1)
        self.dummysampleBox = QtWidgets.QSpinBox(parent=scanDialog)
        self.dummysampleBox.setMinimum(1)
        self.dummysampleBox.setMaximum(999)
        self.dummysampleBox.setProperty("value", 10)
        self.dummysampleBox.setObjectName("dummysampleBox")
        self.gridLayout.addWidget(self.dummysampleBox, 2, 2, 1, 1)
        self.xmaxBox = QtWidgets.QDoubleSpinBox(parent=scanDialog)
        self.xmaxBox.setDecimals(4)
        self.xmaxBox.setSingleStep(0.1)
        self.xmaxBox.setObjectName("xmaxBox")
        self.gridLayout.addWidget(self.xmaxBox, 7, 2, 1, 1)
        self.label_5 = QtWidgets.QLabel(parent=scanDialog)
        self.label_5.setObjectName("label_5")
        self.gridLayout.addWidget(self.label_5, 6, 0, 1, 1)
        self.label_4 = QtWidgets.QLabel(parent=scanDialog)
        self.label_4.setObjectName("label_4")
        self.gridLayout.addWidget(self.label_4, 1, 2, 1, 1)
        self.ysizeBox = QtWidgets.QDoubleSpinBox(parent=scanDialog)
        self.ysizeBox.setSingleStep(0.1)
        self.ysizeBox.setProperty("value", 10.0)
        self.ysizeBox.setObjectName("ysizeBox")
        self.gridLayout.addWidget(self.ysizeBox, 5, 2, 1, 1)
        self.roiButton = QtWidgets.QPushButton(parent=scanDialog)
        self.roiButton.setObjectName("roiButton")
        self.gridLayout.addWidget(self.roiButton, 4, 1, 1, 1)
        self.xminBox = QtWidgets.QDoubleSpinBox(parent=scanDialog)
        self.xminBox.setDecimals(4)
        self.xminBox.setSingleStep(0.1)
        self.xminBox.setObjectName("xminBox")
        self.gridLayout.addWidget(self.xminBox, 7, 1, 1, 1)
        self.ystepLabel = QtWidgets.QLabel(parent=scanDialog)
        self.ystepLabel.setObjectName("ystepLabel")
        self.gridLayout.addWidget(self.ystepLabel, 8, 4, 1, 1)
        self.fullButton = QtWidgets.QPushButton(parent=scanDialog)
        self.fullButton.setObjectName("fullButton")
        self.gridLayout.addWidget(self.fullButton, 4, 3, 1, 1)
        self.yLabel = QtWidgets.QLabel(parent=scanDialog)
        self.yLabel.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter)
        self.yLabel.setObjectName("yLabel")
        self.gridLayout.addWidget(self.yLabel, 8, 0, 1, 1)
        self.label_6 = QtWidgets.QLabel(parent=scanDialog)
        self.label_6.setObjectName("label_6")
        self.gridLayout.addWidget(self.label_6, 6, 5, 1, 1)
        self.zBox = QtWidgets.QDoubleSpinBox(parent=scanDialog)
        self.zBox.setSuffix("")
        self.zBox.setDecimals(4)
        self.zBox.setObjectName("zBox")
        self.gridLayout.addWidget(self.zBox, 5, 4, 1, 1)
        self.ymaxBox = QtWidgets.QDoubleSpinBox(parent=scanDialog)
        self.ymaxBox.setDecimals(4)
        self.ymaxBox.setSingleStep(0.1)
        self.ymaxBox.setObjectName("ymaxBox")
        self.gridLayout.addWidget(self.ymaxBox, 8, 2, 1, 1)
        self.maxLabel = QtWidgets.QLabel(parent=scanDialog)
        self.maxLabel.setObjectName("maxLabel")
        self.gridLayout.addWidget(self.maxLabel, 6, 2, 1, 1)
        self.timeBox = QtWidgets.QDoubleSpinBox(parent=scanDialog)
        self.timeBox.setDecimals(4)
        self.timeBox.setMinimum(0.1)
        self.timeBox.setMaximum(1000.0)
        self.timeBox.setProperty("value", 10.0)
        self.timeBox.setObjectName("timeBox")
        self.gridLayout.addWidget(self.timeBox, 2, 1, 1, 1)
        self.xsizeLabel = QtWidgets.QLabel(parent=scanDialog)
        self.xsizeLabel.setObjectName("xsizeLabel")
        self.gridLayout.addWidget(self.xsizeLabel, 7, 5, 1, 1)
        self.numLabel = QtWidgets.QLabel(parent=scanDialog)
        self.numLabel.setObjectName("numLabel")
        self.gridLayout.addWidget(self.numLabel, 6, 3, 1, 1)
        self.delayBox = QtWidgets.QDoubleSpinBox(parent=scanDialog)
        self.delayBox.setObjectName("delayBox")
        self.gridLayout.addWidget(self.delayBox, 2, 5, 1, 1)
        self.xsizeBox = QtWidgets.QDoubleSpinBox(parent=scanDialog)
        self.xsizeBox.setDecimals(4)
        self.xsizeBox.setSingleStep(0.1)
        self.xsizeBox.setProperty("value", 10.0)
        self.xsizeBox.setObjectName("xsizeBox")
        self.gridLayout.addWidget(self.xsizeBox, 5, 1, 1, 1)
        self.roicenterButton = QtWidgets.QPushButton(parent=scanDialog)
        self.roicenterButton.setObjectName("roicenterButton")
        self.gridLayout.addWidget(self.roicenterButton, 4, 2, 1, 1)
        self.sizeButton = QtWidgets.QPushButton(parent=scanDialog)
        self.sizeButton.setObjectName("sizeButton")
        self.gridLayout.addWidget(self.sizeButton, 5, 3, 1, 1)
        self.ysizeLabel = QtWidgets.QLabel(parent=scanDialog)
        self.ysizeLabel.setObjectName("ysizeLabel")
        self.gridLayout.addWidget(self.ysizeLabel, 8, 5, 1, 1)
        self.modeBox = QtWidgets.QComboBox(parent=scanDialog)
        self.modeBox.setObjectName("modeBox")
        self.modeBox.addItem("")
        self.gridLayout.addWidget(self.modeBox, 1, 1, 1, 1)
        self.xLabel = QtWidgets.QLabel(parent=scanDialog)
        self.xLabel.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter)
        self.xLabel.setObjectName("xLabel")
        self.gridLayout.addWidget(self.xLabel, 7, 0, 1, 1)
        self.label = QtWidgets.QLabel(parent=scanDialog)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 1, 0, 1, 1)
        self.label_2 = QtWidgets.QLabel(parent=scanDialog)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 4, 0, 1, 1)
        self.minLabel = QtWidgets.QLabel(parent=scanDialog)
        self.minLabel.setObjectName("minLabel")
        self.gridLayout.addWidget(self.minLabel, 6, 1, 1, 1)
        self.pollsampleBox = QtWidgets.QSpinBox(parent=scanDialog)
        self.pollsampleBox.setSuffix("")
        self.pollsampleBox.setMinimum(1000)
        self.pollsampleBox.setMaximum(10000)
        self.pollsampleBox.setSingleStep(1000)
        self.pollsampleBox.setObjectName("pollsampleBox")
        self.gridLayout.addWidget(self.pollsampleBox, 2, 4, 1, 1)
        self.stepLabel = QtWidgets.QLabel(parent=scanDialog)
        self.stepLabel.setObjectName("stepLabel")
        self.gridLayout.addWidget(self.stepLabel, 6, 4, 1, 1)
        self.label_3 = QtWidgets.QLabel(parent=scanDialog)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 2, 0, 1, 1)
        self.yminBox = QtWidgets.QDoubleSpinBox(parent=scanDialog)
        self.yminBox.setDecimals(4)
        self.yminBox.setSingleStep(0.1)
        self.yminBox.setObjectName("yminBox")
        self.gridLayout.addWidget(self.yminBox, 8, 1, 1, 1)
        self.xstepLabel = QtWidgets.QLabel(parent=scanDialog)
        self.xstepLabel.setObjectName("xstepLabel")
        self.gridLayout.addWidget(self.xstepLabel, 7, 4, 1, 1)
        self.oversampleBox = QtWidgets.QSpinBox(parent=scanDialog)
        self.oversampleBox.setMinimum(1)
        self.oversampleBox.setMaximum(100000)
        self.oversampleBox.setObjectName("oversampleBox")
        self.gridLayout.addWidget(self.oversampleBox, 2, 3, 1, 1)
        self.ynumBox = QtWidgets.QSpinBox(parent=scanDialog)
        self.ynumBox.setMinimum(2)
        self.ynumBox.setMaximum(9999)
        self.ynumBox.setProperty("value", 51)
        self.ynumBox.setObjectName("ynumBox")
        self.gridLayout.addWidget(self.ynumBox, 8, 3, 1, 1)
        self.xnumBox = QtWidgets.QSpinBox(parent=scanDialog)
        self.xnumBox.setMinimum(2)
        self.xnumBox.setMaximum(9999)
        self.xnumBox.setProperty("value", 51)
        self.xnumBox.setObjectName("xnumBox")
        self.gridLayout.addWidget(self.xnumBox, 7, 3, 1, 1)
        self.msgLabel = QtWidgets.QLabel(parent=scanDialog)
        self.msgLabel.setObjectName("msgLabel")
        self.gridLayout.addWidget(self.msgLabel, 0, 0, 1, 1)
        self.linemodeBox = QtWidgets.QComboBox(parent=scanDialog)
        self.linemodeBox.setObjectName("linemodeBox")
        self.linemodeBox.addItem("")
        self.linemodeBox.addItem("")
        self.linemodeBox.addItem("")
        self.gridLayout.addWidget(self.linemodeBox, 1, 3, 1, 1)
        self.label_7 = QtWidgets.QLabel(parent=scanDialog)
        self.label_7.setObjectName("label_7")
        self.gridLayout.addWidget(self.label_7, 3, 0, 1, 1)
        self.pd_lbBox = QtWidgets.QDoubleSpinBox(parent=scanDialog)
        self.pd_lbBox.setMinimum(-10.0)
        self.pd_lbBox.setMaximum(10.0)
        self.pd_lbBox.setProperty("value", -10.0)
        self.pd_lbBox.setObjectName("pd_lbBox")
        self.gridLayout.addWidget(self.pd_lbBox, 3, 1, 1, 1)
        self.pd_ubBox = QtWidgets.QDoubleSpinBox(parent=scanDialog)
        self.pd_ubBox.setMinimum(-10.0)
        self.pd_ubBox.setMaximum(10.0)
        self.pd_ubBox.setProperty("value", 10.0)
        self.pd_ubBox.setObjectName("pd_ubBox")
        self.gridLayout.addWidget(self.pd_ubBox, 3, 2, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout)
        self.buttonBox = QtWidgets.QDialogButtonBox(parent=scanDialog)
        self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.StandardButton.Cancel|QtWidgets.QDialogButtonBox.StandardButton.Ok)
        self.buttonBox.setCenterButtons(False)
        self.buttonBox.setObjectName("buttonBox")
        self.verticalLayout.addWidget(self.buttonBox)

        self.retranslateUi(scanDialog)
        self.buttonBox.accepted.connect(scanDialog.accept) # type: ignore
        self.buttonBox.rejected.connect(scanDialog.reject) # type: ignore
        QtCore.QMetaObject.connectSlotsByName(scanDialog)
        scanDialog.setTabOrder(self.modeBox, self.linemodeBox)
        scanDialog.setTabOrder(self.linemodeBox, self.timeBox)
        scanDialog.setTabOrder(self.timeBox, self.dummysampleBox)
        scanDialog.setTabOrder(self.dummysampleBox, self.oversampleBox)
        scanDialog.setTabOrder(self.oversampleBox, self.pollsampleBox)
        scanDialog.setTabOrder(self.pollsampleBox, self.delayBox)
        scanDialog.setTabOrder(self.delayBox, self.pd_lbBox)
        scanDialog.setTabOrder(self.pd_lbBox, self.pd_ubBox)
        scanDialog.setTabOrder(self.pd_ubBox, self.roiButton)
        scanDialog.setTabOrder(self.roiButton, self.roicenterButton)
        scanDialog.setTabOrder(self.roicenterButton, self.fullButton)
        scanDialog.setTabOrder(self.fullButton, self.loadButton)
        scanDialog.setTabOrder(self.loadButton, self.xsizeBox)
        scanDialog.setTabOrder(self.xsizeBox, self.ysizeBox)
        scanDialog.setTabOrder(self.ysizeBox, self.sizeButton)
        scanDialog.setTabOrder(self.sizeButton, self.zBox)
        scanDialog.setTabOrder(self.zBox, self.xminBox)
        scanDialog.setTabOrder(self.xminBox, self.xmaxBox)
        scanDialog.setTabOrder(self.xmaxBox, self.xnumBox)
        scanDialog.setTabOrder(self.xnumBox, self.yminBox)
        scanDialog.setTabOrder(self.yminBox, self.ymaxBox)
        scanDialog.setTabOrder(self.ymaxBox, self.ynumBox)

    def retranslateUi(self, scanDialog):
        _translate = QtCore.QCoreApplication.translate
        scanDialog.setWindowTitle(_translate("scanDialog", "Scan setting"))
        self.loadButton.setText(_translate("scanDialog", "Load"))
        self.dummysampleBox.setPrefix(_translate("scanDialog", "dummy samp: "))
        self.label_5.setText(_translate("scanDialog", "Range"))
        self.label_4.setText(_translate("scanDialog", "Line mode"))
        self.ysizeBox.setPrefix(_translate("scanDialog", "Y size: "))
        self.roiButton.setText(_translate("scanDialog", "ROI"))
        self.ystepLabel.setText(_translate("scanDialog", "1"))
        self.fullButton.setText(_translate("scanDialog", "Full"))
        self.yLabel.setText(_translate("scanDialog", "Y"))
        self.label_6.setText(_translate("scanDialog", "size"))
        self.zBox.setPrefix(_translate("scanDialog", "Z: "))
        self.maxLabel.setText(_translate("scanDialog", "max"))
        self.timeBox.setPrefix(_translate("scanDialog", "time window: "))
        self.timeBox.setSuffix(_translate("scanDialog", " ms"))
        self.xsizeLabel.setText(_translate("scanDialog", "1"))
        self.numLabel.setText(_translate("scanDialog", "num"))
        self.delayBox.setPrefix(_translate("scanDialog", "delay: "))
        self.delayBox.setSuffix(_translate("scanDialog", " ms"))
        self.xsizeBox.setPrefix(_translate("scanDialog", "X size: "))
        self.roicenterButton.setText(_translate("scanDialog", "ROI to Center"))
        self.sizeButton.setText(_translate("scanDialog", "Set with Size"))
        self.ysizeLabel.setText(_translate("scanDialog", "1"))
        self.modeBox.setItemText(0, _translate("scanDialog", "None"))
        self.xLabel.setText(_translate("scanDialog", "X"))
        self.label.setText(_translate("scanDialog", "Scan mode"))
        self.label_2.setText(_translate("scanDialog", "Range Setter"))
        self.minLabel.setText(_translate("scanDialog", "min"))
        self.pollsampleBox.setPrefix(_translate("scanDialog", "poll samp: "))
        self.stepLabel.setText(_translate("scanDialog", "step"))
        self.label_3.setText(_translate("scanDialog", "Timing"))
        self.xstepLabel.setText(_translate("scanDialog", "1"))
        self.oversampleBox.setPrefix(_translate("scanDialog", "oversamp: "))
        self.msgLabel.setText(_translate("scanDialog", "Set XY Scan parameter"))
        self.linemodeBox.setItemText(0, _translate("scanDialog", "ASCEND"))
        self.linemodeBox.setItemText(1, _translate("scanDialog", "DESCEND"))
        self.linemodeBox.setItemText(2, _translate("scanDialog", "ZIGZAG"))
        self.label_7.setText(_translate("scanDialog", "Analog PD"))
        self.pd_lbBox.setPrefix(_translate("scanDialog", "lower: "))
        self.pd_lbBox.setSuffix(_translate("scanDialog", " V"))
        self.pd_ubBox.setPrefix(_translate("scanDialog", "upper: "))
        self.pd_ubBox.setSuffix(_translate("scanDialog", " V"))
