#
#
# 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_FilterDialog(object):
    def setupUi(self, FilterDialog):
        FilterDialog.setObjectName("FilterDialog")
        FilterDialog.resize(528, 485)
        icon = QtGui.QIcon.fromTheme("view-filter")
        FilterDialog.setWindowIcon(icon)
        self.gridLayout = QtWidgets.QGridLayout(FilterDialog)
        self.gridLayout.setObjectName("gridLayout")
        self.radioButtonCustomTaps = QtWidgets.QRadioButton(parent=FilterDialog)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.radioButtonCustomTaps.setFont(font)
        self.radioButtonCustomTaps.setObjectName("radioButtonCustomTaps")
        self.gridLayout.addWidget(self.radioButtonCustomTaps, 9, 0, 1, 1)
        self.buttonBox = QtWidgets.QDialogButtonBox(parent=FilterDialog)
        self.buttonBox.setOrientation(QtCore.Qt.Orientation.Horizontal)
        self.buttonBox.setStandardButtons(
            QtWidgets.QDialogButtonBox.StandardButton.Cancel
            | QtWidgets.QDialogButtonBox.StandardButton.Ok
        )
        self.buttonBox.setCenterButtons(True)
        self.buttonBox.setObjectName("buttonBox")
        self.gridLayout.addWidget(self.buttonBox, 15, 0, 1, 2)
        spacerItem = QtWidgets.QSpacerItem(
            20,
            40,
            QtWidgets.QSizePolicy.Policy.Minimum,
            QtWidgets.QSizePolicy.Policy.Expanding,
        )
        self.gridLayout.addItem(spacerItem, 16, 0, 1, 1)
        self.line = QtWidgets.QFrame(parent=FilterDialog)
        self.line.setFrameShape(QtWidgets.QFrame.Shape.HLine)
        self.line.setFrameShadow(QtWidgets.QFrame.Shadow.Sunken)
        self.line.setObjectName("line")
        self.gridLayout.addWidget(self.line, 7, 0, 1, 2)
        self.radioButtonMovingAverage = QtWidgets.QRadioButton(parent=FilterDialog)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.radioButtonMovingAverage.setFont(font)
        self.radioButtonMovingAverage.setChecked(True)
        self.radioButtonMovingAverage.setObjectName("radioButtonMovingAverage")
        self.gridLayout.addWidget(self.radioButtonMovingAverage, 8, 0, 1, 2)
        self.spinBoxNumTaps = QtWidgets.QSpinBox(parent=FilterDialog)
        self.spinBoxNumTaps.setMinimum(1)
        self.spinBoxNumTaps.setMaximum(999999999)
        self.spinBoxNumTaps.setProperty("value", 10)
        self.spinBoxNumTaps.setObjectName("spinBoxNumTaps")
        self.gridLayout.addWidget(self.spinBoxNumTaps, 10, 1, 1, 1)
        self.label_4 = QtWidgets.QLabel(parent=FilterDialog)
        font = QtGui.QFont()
        font.setItalic(True)
        self.label_4.setFont(font)
        self.label_4.setWordWrap(True)
        self.label_4.setObjectName("label_4")
        self.gridLayout.addWidget(self.label_4, 6, 0, 1, 2)
        self.lineEditCustomTaps = QtWidgets.QLineEdit(parent=FilterDialog)
        self.lineEditCustomTaps.setObjectName("lineEditCustomTaps")
        self.gridLayout.addWidget(self.lineEditCustomTaps, 9, 1, 1, 1)
        self.label = QtWidgets.QLabel(parent=FilterDialog)
        self.label.setObjectName("label")
        self.gridLayout.addWidget(self.label, 10, 0, 1, 1)
        self.label_3 = QtWidgets.QLabel(parent=FilterDialog)
        font = QtGui.QFont()
        font.setItalic(True)
        self.label_3.setFont(font)
        self.label_3.setWordWrap(True)
        self.label_3.setObjectName("label_3")
        self.gridLayout.addWidget(self.label_3, 13, 0, 1, 2)
        self.label_2 = QtWidgets.QLabel(parent=FilterDialog)
        font = QtGui.QFont()
        font.setItalic(True)
        self.label_2.setFont(font)
        self.label_2.setWordWrap(True)
        self.label_2.setObjectName("label_2")
        self.gridLayout.addWidget(self.label_2, 14, 0, 1, 2)
        self.radioButtonDCcorrection = QtWidgets.QRadioButton(parent=FilterDialog)
        font = QtGui.QFont()
        font.setBold(True)
        font.setWeight(75)
        self.radioButtonDCcorrection.setFont(font)
        self.radioButtonDCcorrection.setObjectName("radioButtonDCcorrection")
        self.gridLayout.addWidget(self.radioButtonDCcorrection, 0, 0, 1, 2)

        self.retranslateUi(FilterDialog)

    def retranslateUi(self, FilterDialog):
        _translate = QtCore.QCoreApplication.translate
        FilterDialog.setWindowTitle(_translate("FilterDialog", "Configure filter"))
        self.radioButtonCustomTaps.setText(_translate("FilterDialog", "Custom taps:"))
        self.radioButtonMovingAverage.setText(
            _translate("FilterDialog", "Moving average")
        )
        self.label_4.setText(
            _translate(
                "FilterDialog",
                "A DC correction filter will remove the DC component (mean value) of the signal and center it around zero.",
            )
        )
        self.lineEditCustomTaps.setToolTip(
            _translate(
                "FilterDialog",
                '<html><head/><body><p>You can configure custom filter taps here either explicit using [0.1, 0.2, 0.3] or with <span style=" font-weight:600;">python programming shortcuts</span> like [0.1] * 3 + [0.2] * 4 will result in [0.1, 0.1, 0.1, 0.2, 0.2, 0.2, 0.2]</p></body></html>',
            )
        )
        self.lineEditCustomTaps.setText(_translate("FilterDialog", "[0.1]*10"))
        self.label.setText(_translate("FilterDialog", "Number of taps:"))
        self.label_3.setText(
            _translate(
                "FilterDialog",
                "You can imagine taps as weighting factors applied to n samples of the signal whereby n is the number of taps.  By default we use 10 taps with each tap set to 0.1 producing a moving average filter.",
            )
        )
        self.label_2.setText(
            _translate(
                "FilterDialog",
                "These n weighted samples get summed up to produce the output of the filter. In DSP terms you configure the impulse response of the filter here.",
            )
        )
        self.radioButtonDCcorrection.setText(
            _translate("FilterDialog", "DC correction")
        )
