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

# Form implementation generated from reading ui file 'src/resources/_ui/phase_corr_dialog.ui'
#
# Created by: PyQt5 UI code generator 5.15.7
#
# 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_SignalEdit(object):
    def setupUi(self, SignalEdit):
        SignalEdit.setObjectName("SignalEdit")
        SignalEdit.resize(919, 595)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(SignalEdit.sizePolicy().hasHeightForWidth())
        SignalEdit.setSizePolicy(sizePolicy)
        self.gridLayout = QtWidgets.QGridLayout(SignalEdit)
        self.gridLayout.setContentsMargins(6, 6, 6, 6)
        self.gridLayout.setSpacing(3)
        self.gridLayout.setObjectName("gridLayout")
        self.graphicsView = PlotWidget(SignalEdit)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Expanding)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.graphicsView.sizePolicy().hasHeightForWidth())
        self.graphicsView.setSizePolicy(sizePolicy)
        self.graphicsView.setObjectName("graphicsView")
        self.gridLayout.addWidget(self.graphicsView, 0, 0, 1, 8)
        self.pivot_lineedit = QtWidgets.QLineEdit(SignalEdit)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.pivot_lineedit.sizePolicy().hasHeightForWidth())
        self.pivot_lineedit.setSizePolicy(sizePolicy)
        self.pivot_lineedit.setInputMethodHints(QtCore.Qt.ImhDigitsOnly)
        self.pivot_lineedit.setObjectName("pivot_lineedit")
        self.gridLayout.addWidget(self.pivot_lineedit, 1, 7, 1, 1)
        self.ph0slider = QtWidgets.QDoubleSpinBox(SignalEdit)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.ph0slider.sizePolicy().hasHeightForWidth())
        self.ph0slider.setSizePolicy(sizePolicy)
        self.ph0slider.setWrapping(True)
        self.ph0slider.setMinimum(-180.0)
        self.ph0slider.setMaximum(180.0)
        self.ph0slider.setObjectName("ph0slider")
        self.gridLayout.addWidget(self.ph0slider, 1, 1, 1, 1)
        self.buttonBox = QtWidgets.QDialogButtonBox(SignalEdit)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.gridLayout.addWidget(self.buttonBox, 2, 1, 1, 7)
        self.ph1slider = QtWidgets.QDoubleSpinBox(SignalEdit)
        sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Fixed)
        sizePolicy.setHorizontalStretch(0)
        sizePolicy.setVerticalStretch(0)
        sizePolicy.setHeightForWidth(self.ph1slider.sizePolicy().hasHeightForWidth())
        self.ph1slider.setSizePolicy(sizePolicy)
        self.ph1slider.setWrapping(True)
        self.ph1slider.setMinimum(-360.0)
        self.ph1slider.setMaximum(360.0)
        self.ph1slider.setObjectName("ph1slider")
        self.gridLayout.addWidget(self.ph1slider, 1, 4, 1, 1)
        self.label_8 = QtWidgets.QLabel(SignalEdit)
        self.label_8.setObjectName("label_8")
        self.gridLayout.addWidget(self.label_8, 1, 6, 1, 1)
        self.label_6 = QtWidgets.QLabel(SignalEdit)
        self.label_6.setObjectName("label_6")
        self.gridLayout.addWidget(self.label_6, 1, 3, 1, 1)
        self.label = QtWidgets.QLabel(SignalEdit)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 1, 0, 1, 1)
        spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem, 1, 2, 1, 1)
        spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
        self.gridLayout.addItem(spacerItem1, 1, 5, 1, 1)

        self.retranslateUi(SignalEdit)
        self.buttonBox.accepted.connect(SignalEdit.accept) # type: ignore
        self.buttonBox.rejected.connect(SignalEdit.close) # type: ignore
        QtCore.QMetaObject.connectSlotsByName(SignalEdit)

    def retranslateUi(self, SignalEdit):
        _translate = QtCore.QCoreApplication.translate
        SignalEdit.setWindowTitle(_translate("SignalEdit", "Phase correction"))
        self.pivot_lineedit.setText(_translate("SignalEdit", "0"))
        self.label_8.setText(_translate("SignalEdit", "Pivot"))
        self.label_6.setText(_translate("SignalEdit", "Phase 1"))
        self.label.setText(_translate("SignalEdit", "Phase 0"))
from pyqtgraph import PlotWidget
