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

# Form implementation generated from reading ui file 'src/resources/_ui/smoothdialog.ui'
#
# Created by: PyQt5 UI code generator 5.15.10
#
# 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_SmoothDialog(object):
    def setupUi(self, SmoothDialog):
        SmoothDialog.setObjectName("SmoothDialog")
        SmoothDialog.resize(451, 220)
        self.gridLayout = QtWidgets.QGridLayout(SmoothDialog)
        self.gridLayout.setSpacing(3)
        self.gridLayout.setObjectName("gridLayout")
        spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.gridLayout.addItem(spacerItem, 7, 0, 1, 1)
        self.frac_label = QtWidgets.QLabel(SmoothDialog)
        self.frac_label.setObjectName("frac_label")
        self.gridLayout.addWidget(self.frac_label, 2, 0, 1, 1)
        self.line = QtWidgets.QFrame(SmoothDialog)
        self.line.setFrameShape(QtWidgets.QFrame.HLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Sunken)
        self.line.setObjectName("line")
        self.gridLayout.addWidget(self.line, 5, 0, 1, 2)
        self.widget = QtWidgets.QWidget(SmoothDialog)
        self.widget.setObjectName("widget")
        self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.widget)
        self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_2.setSpacing(3)
        self.horizontalLayout_2.setObjectName("horizontalLayout_2")
        self.label = QtWidgets.QLabel(self.widget)
        self.label.setObjectName("label")
        self.horizontalLayout_2.addWidget(self.label)
        self.polynom_spinBox = QtWidgets.QSpinBox(self.widget)
        self.polynom_spinBox.setMinimum(1)
        self.polynom_spinBox.setMaximum(3)
        self.polynom_spinBox.setObjectName("polynom_spinBox")
        self.horizontalLayout_2.addWidget(self.polynom_spinBox)
        self.gridLayout.addWidget(self.widget, 3, 0, 1, 2)
        self.y_checkBox = QtWidgets.QCheckBox(SmoothDialog)
        self.y_checkBox.setObjectName("y_checkBox")
        self.gridLayout.addWidget(self.y_checkBox, 6, 1, 1, 1)
        self.x_checkBox = QtWidgets.QCheckBox(SmoothDialog)
        self.x_checkBox.setObjectName("x_checkBox")
        self.gridLayout.addWidget(self.x_checkBox, 6, 0, 1, 1)
        self.widget_2 = QtWidgets.QWidget(SmoothDialog)
        self.widget_2.setObjectName("widget_2")
        self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.widget_2)
        self.horizontalLayout_3.setContentsMargins(0, 0, 0, 0)
        self.horizontalLayout_3.setSpacing(3)
        self.horizontalLayout_3.setObjectName("horizontalLayout_3")
        self.label_3 = QtWidgets.QLabel(self.widget_2)
        self.label_3.setObjectName("label_3")
        self.horizontalLayout_3.addWidget(self.label_3)
        self.iter_spinBox = QtWidgets.QSpinBox(self.widget_2)
        self.iter_spinBox.setMaximum(3)
        self.iter_spinBox.setSingleStep(1)
        self.iter_spinBox.setProperty("value", 1)
        self.iter_spinBox.setObjectName("iter_spinBox")
        self.horizontalLayout_3.addWidget(self.iter_spinBox)
        self.gridLayout.addWidget(self.widget_2, 4, 0, 1, 2)
        self.frac_spinBox = QtWidgets.QSpinBox(SmoothDialog)
        self.frac_spinBox.setMinimum(1)
        self.frac_spinBox.setMaximum(999)
        self.frac_spinBox.setObjectName("frac_spinBox")
        self.gridLayout.addWidget(self.frac_spinBox, 2, 1, 1, 1)
        self.buttonBox = QtWidgets.QDialogButtonBox(SmoothDialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Apply|QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
        self.buttonBox.setObjectName("buttonBox")
        self.gridLayout.addWidget(self.buttonBox, 8, 0, 1, 2)
        self.comboBox = QtWidgets.QComboBox(SmoothDialog)
        self.comboBox.setObjectName("comboBox")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.comboBox.addItem("")
        self.gridLayout.addWidget(self.comboBox, 1, 0, 1, 2)
        self.label_2 = QtWidgets.QLabel(SmoothDialog)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 0, 0, 1, 2)
        self.frac_label.setBuddy(self.frac_spinBox)
        self.label.setBuddy(self.polynom_spinBox)
        self.label_3.setBuddy(self.iter_spinBox)

        self.retranslateUi(SmoothDialog)
        self.buttonBox.accepted.connect(SmoothDialog.accept) # type: ignore
        self.buttonBox.rejected.connect(SmoothDialog.reject) # type: ignore
        QtCore.QMetaObject.connectSlotsByName(SmoothDialog)
        SmoothDialog.setTabOrder(self.comboBox, self.frac_spinBox)
        SmoothDialog.setTabOrder(self.frac_spinBox, self.polynom_spinBox)
        SmoothDialog.setTabOrder(self.polynom_spinBox, self.iter_spinBox)
        SmoothDialog.setTabOrder(self.iter_spinBox, self.x_checkBox)
        SmoothDialog.setTabOrder(self.x_checkBox, self.y_checkBox)

    def retranslateUi(self, SmoothDialog):
        _translate = QtCore.QCoreApplication.translate
        SmoothDialog.setWindowTitle(_translate("SmoothDialog", "1D smoothing filter"))
        self.frac_label.setText(_translate("SmoothDialog", "Window length"))
        self.label.setText(_translate("SmoothDialog", "Polynomial degree"))
        self.polynom_spinBox.setToolTip(_translate("SmoothDialog", "Deg"))
        self.y_checkBox.setText(_translate("SmoothDialog", "y log-spaced?"))
        self.x_checkBox.setText(_translate("SmoothDialog", "x log-spaced?"))
        self.label_3.setText(_translate("SmoothDialog", "Iterations"))
        self.frac_spinBox.setToolTip(_translate("SmoothDialog", "<html><head/><body><p>Number of data points used as smoothing window.</p></body></html>"))
        self.comboBox.setItemText(0, _translate("SmoothDialog", "Moving mean"))
        self.comboBox.setItemText(1, _translate("SmoothDialog", "Savitzky-Golay"))
        self.comboBox.setItemText(2, _translate("SmoothDialog", "Loess (slow, use for < 10000 pts)"))
        self.comboBox.setItemText(3, _translate("SmoothDialog", "Moving median"))
        self.comboBox.setItemText(4, _translate("SmoothDialog", "Moving standard deviation"))
        self.comboBox.setItemText(5, _translate("SmoothDialog", "Moving variance"))
        self.comboBox.setItemText(6, _translate("SmoothDialog", "Moving maximum"))
        self.comboBox.setItemText(7, _translate("SmoothDialog", "Moving minimum"))
        self.comboBox.setItemText(8, _translate("SmoothDialog", "Moving sum"))
        self.label_2.setText(_translate("SmoothDialog", "<html><head/><body><p><span style=\" font-weight:600;\">Note:</span> Sets must be sorted for correct results</p></body></html>"))
