# Form implementation generated from reading ui file 'iodmr.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_IODMR(object):
    def setupUi(self, IODMR):
        IODMR.setObjectName("IODMR")
        IODMR.resize(1219, 142)
        IODMR.setMinimumSize(QtCore.QSize(0, 0))
        self.verticalLayout = QtWidgets.QVBoxLayout(IODMR)
        self.verticalLayout.setObjectName("verticalLayout")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.startButton = QtWidgets.QPushButton(parent=IODMR)
        self.startButton.setObjectName("startButton")
        self.horizontalLayout_2.addWidget(self.startButton)
        self.stopButton = QtWidgets.QPushButton(parent=IODMR)
        self.stopButton.setObjectName("stopButton")
        self.horizontalLayout_2.addWidget(self.stopButton)
        self.saveButton = QtWidgets.QPushButton(parent=IODMR)
        self.saveButton.setObjectName("saveButton")
        self.horizontalLayout_2.addWidget(self.saveButton)
        self.compression = CompressionWidget(parent=IODMR)
        self.compression.setObjectName("compression")
        self.horizontalLayout_2.addWidget(self.compression)
        self.loadButton = QtWidgets.QPushButton(parent=IODMR)
        self.loadButton.setObjectName("loadButton")
        self.horizontalLayout_2.addWidget(self.loadButton)
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
        self.horizontalLayout_2.addItem(spacerItem)
        self.verticalLayout.addLayout(self.horizontalLayout_2)
        spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
        self.verticalLayout.addItem(spacerItem1)
        self.gridLayout = QtWidgets.QGridLayout()
        self.gridLayout.setObjectName("gridLayout")
        self.numBox = QtWidgets.QSpinBox(parent=IODMR)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.numBox.sizePolicy().hasHeightForWidth())
        self.numBox.setSizePolicy(sizePolicy)
        self.numBox.setSuffix("")
        self.numBox.setMinimum(2)
        self.numBox.setMaximum(99999)
        self.numBox.setProperty("value", 101)
        self.numBox.setObjectName("numBox")
        self.gridLayout.addWidget(self.numBox, 0, 5, 1, 1)
        self.stepLabel = QtWidgets.QLabel(parent=IODMR)
        self.stepLabel.setObjectName("stepLabel")
        self.gridLayout.addWidget(self.stepLabel, 0, 6, 1, 1)
        self.stopBox = QtWidgets.QDoubleSpinBox(parent=IODMR)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.stopBox.sizePolicy().hasHeightForWidth())
        self.stopBox.setSizePolicy(sizePolicy)
        self.stopBox.setMinimum(10.0)
        self.stopBox.setMaximum(3000.0)
        self.stopBox.setSingleStep(100.0)
        self.stopBox.setProperty("value", 3000.0)
        self.stopBox.setObjectName("stopBox")
        self.gridLayout.addWidget(self.stopBox, 0, 4, 1, 1)
        self.powerBox = QtWidgets.QDoubleSpinBox(parent=IODMR)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.powerBox.sizePolicy().hasHeightForWidth())
        self.powerBox.setSizePolicy(sizePolicy)
        self.powerBox.setProperty("value", 50.0)
        self.powerBox.setObjectName("powerBox")
        self.gridLayout.addWidget(self.powerBox, 0, 2, 1, 1)
        self.label_2 = QtWidgets.QLabel(parent=IODMR)
        self.label_2.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 0, 1, 1, 1)
        self.startBox = QtWidgets.QDoubleSpinBox(parent=IODMR)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.startBox.sizePolicy().hasHeightForWidth())
        self.startBox.setSizePolicy(sizePolicy)
        self.startBox.setMinimum(10.0)
        self.startBox.setMaximum(3000.0)
        self.startBox.setSingleStep(100.0)
        self.startBox.setProperty("value", 2740.0)
        self.startBox.setObjectName("startBox")
        self.gridLayout.addWidget(self.startBox, 0, 3, 1, 1)
        self.label = QtWidgets.QLabel(parent=IODMR)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.label.sizePolicy().hasHeightForWidth())
        self.label.setSizePolicy(sizePolicy)
        self.label.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 1, 1, 1, 1)
        self.label_3 = QtWidgets.QLabel(parent=IODMR)
        self.label_3.setLayoutDirection(QtCore.Qt.LayoutDirection.LeftToRight)
        self.label_3.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 2, 1, 1, 1)
        self.binningBox = QtWidgets.QSpinBox(parent=IODMR)
        self.binningBox.setMinimum(0)
        self.binningBox.setMaximum(4)
        self.binningBox.setProperty("value", 1)
        self.binningBox.setObjectName("binningBox")
        self.gridLayout.addWidget(self.binningBox, 2, 2, 1, 1)
        self.roiBox = QtWidgets.QCheckBox(parent=IODMR)
        self.roiBox.setLayoutDirection(QtCore.Qt.LayoutDirection.RightToLeft)
        self.roiBox.setObjectName("roiBox")
        self.gridLayout.addWidget(self.roiBox, 2, 3, 1, 1)
        self.woffsetBox = QtWidgets.QSpinBox(parent=IODMR)
        self.woffsetBox.setSuffix("")
        self.woffsetBox.setMaximum(1920)
        self.woffsetBox.setObjectName("woffsetBox")
        self.gridLayout.addWidget(self.woffsetBox, 2, 4, 1, 1)
        self.widthBox = QtWidgets.QSpinBox(parent=IODMR)
        self.widthBox.setMinimum(10)
        self.widthBox.setMaximum(1920)
        self.widthBox.setProperty("value", 100)
        self.widthBox.setObjectName("widthBox")
        self.gridLayout.addWidget(self.widthBox, 2, 5, 1, 1)
        self.hoffsetBox = QtWidgets.QSpinBox(parent=IODMR)
        self.hoffsetBox.setMaximum(1080)
        self.hoffsetBox.setObjectName("hoffsetBox")
        self.gridLayout.addWidget(self.hoffsetBox, 2, 6, 1, 1)
        self.heightBox = QtWidgets.QSpinBox(parent=IODMR)
        self.heightBox.setMinimum(10)
        self.heightBox.setMaximum(1200)
        self.heightBox.setProperty("value", 100)
        self.heightBox.setObjectName("heightBox")
        self.gridLayout.addWidget(self.heightBox, 2, 7, 1, 1)
        self.sweepsBox = QtWidgets.QSpinBox(parent=IODMR)
        self.sweepsBox.setPrefix("")
        self.sweepsBox.setMinimum(0)
        self.sweepsBox.setProperty("value", 0)
        self.sweepsBox.setObjectName("sweepsBox")
        self.gridLayout.addWidget(self.sweepsBox, 0, 7, 1, 1)
        self.exposuredelayBox = QtWidgets.QDoubleSpinBox(parent=IODMR)
        self.exposuredelayBox.setMaximum(999.99)
        self.exposuredelayBox.setProperty("value", 5.0)
        self.exposuredelayBox.setObjectName("exposuredelayBox")
        self.gridLayout.addWidget(self.exposuredelayBox, 1, 2, 1, 1)
        self.exposuretimeBox = QtWidgets.QDoubleSpinBox(parent=IODMR)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Policy.Preferred, QtWidgets.QSizePolicy.Policy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.exposuretimeBox.sizePolicy().hasHeightForWidth())
        self.exposuretimeBox.setSizePolicy(sizePolicy)
        self.exposuretimeBox.setDecimals(3)
        self.exposuretimeBox.setMinimum(0.001)
        self.exposuretimeBox.setMaximum(10000.0)
        self.exposuretimeBox.setSingleStep(1.0)
        self.exposuretimeBox.setProperty("value", 10.0)
        self.exposuretimeBox.setObjectName("exposuretimeBox")
        self.gridLayout.addWidget(self.exposuretimeBox, 1, 3, 1, 1)
        self.burstBox = QtWidgets.QSpinBox(parent=IODMR)
        self.burstBox.setMinimum(1)
        self.burstBox.setMaximum(255)
        self.burstBox.setObjectName("burstBox")
        self.gridLayout.addWidget(self.burstBox, 1, 4, 1, 1)
        self.verticalLayout.addLayout(self.gridLayout)

        self.retranslateUi(IODMR)
        QtCore.QMetaObject.connectSlotsByName(IODMR)
        IODMR.setTabOrder(self.startButton, self.stopButton)
        IODMR.setTabOrder(self.stopButton, self.saveButton)
        IODMR.setTabOrder(self.saveButton, self.loadButton)
        IODMR.setTabOrder(self.loadButton, self.powerBox)
        IODMR.setTabOrder(self.powerBox, self.startBox)
        IODMR.setTabOrder(self.startBox, self.stopBox)
        IODMR.setTabOrder(self.stopBox, self.numBox)

    def retranslateUi(self, IODMR):
        _translate = QtCore.QCoreApplication.translate
        IODMR.setWindowTitle(_translate("IODMR", "Form"))
        self.startButton.setText(_translate("IODMR", "Start"))
        self.stopButton.setText(_translate("IODMR", "Stop"))
        self.saveButton.setText(_translate("IODMR", "Save"))
        self.loadButton.setText(_translate("IODMR", "Load"))
        self.numBox.setPrefix(_translate("IODMR", "num: "))
        self.stepLabel.setText(_translate("IODMR", "step: 2.6000 MHz"))
        self.stopBox.setPrefix(_translate("IODMR", "stop: "))
        self.stopBox.setSuffix(_translate("IODMR", " MHz"))
        self.powerBox.setPrefix(_translate("IODMR", "power: "))
        self.powerBox.setSuffix(_translate("IODMR", " dBm"))
        self.label_2.setText(_translate("IODMR", "Micro Wave"))
        self.startBox.setPrefix(_translate("IODMR", "start: "))
        self.startBox.setSuffix(_translate("IODMR", " MHz"))
        self.label.setText(_translate("IODMR", "Timing"))
        self.label_3.setText(_translate("IODMR", "Camera"))
        self.binningBox.setSuffix(_translate("IODMR", " (0 to skip)"))
        self.binningBox.setPrefix(_translate("IODMR", "binning: "))
        self.roiBox.setText(_translate("IODMR", "Set ROI"))
        self.woffsetBox.setPrefix(_translate("IODMR", "w0: "))
        self.widthBox.setPrefix(_translate("IODMR", "width: "))
        self.hoffsetBox.setPrefix(_translate("IODMR", "h0: "))
        self.heightBox.setPrefix(_translate("IODMR", "height: "))
        self.sweepsBox.setSuffix(_translate("IODMR", " sweeps (0 for inf)"))
        self.exposuredelayBox.setPrefix(_translate("IODMR", "exp. delay: "))
        self.exposuredelayBox.setSuffix(_translate("IODMR", " ms"))
        self.exposuretimeBox.setPrefix(_translate("IODMR", "exp. time: "))
        self.exposuretimeBox.setSuffix(_translate("IODMR", " ms"))
        self.burstBox.setPrefix(_translate("IODMR", "burst: "))
from mahos.gui.common_widget import CompressionWidget
