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

# Form implementation generated from reading ui file 'jriver.ui'
#
# Created by: PyQt5 UI code generator 5.15.9
#
# 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_jriverDspDialog(object):
    def setupUi(self, jriverDspDialog):
        jriverDspDialog.setObjectName("jriverDspDialog")
        jriverDspDialog.resize(1703, 858)
        self.dialogLayout = QtWidgets.QGridLayout(jriverDspDialog)
        self.dialogLayout.setObjectName("dialogLayout")
        self.mainLayout = QtWidgets.QVBoxLayout()
        self.mainLayout.setObjectName("mainLayout")
        self.configLayout = QtWidgets.QGridLayout()
        self.configLayout.setObjectName("configLayout")
        self.configRow1Layout = QtWidgets.QHBoxLayout()
        self.configRow1Layout.setObjectName("configRow1Layout")
        self.newConfigButton = QtWidgets.QToolButton(jriverDspDialog)
        self.newConfigButton.setObjectName("newConfigButton")
        self.configRow1Layout.addWidget(self.newConfigButton)
        self.findFilenameButton = QtWidgets.QToolButton(jriverDspDialog)
        self.findFilenameButton.setObjectName("findFilenameButton")
        self.configRow1Layout.addWidget(self.findFilenameButton)
        self.loadZoneButton = QtWidgets.QToolButton(jriverDspDialog)
        self.loadZoneButton.setObjectName("loadZoneButton")
        self.configRow1Layout.addWidget(self.loadZoneButton)
        self.filename = QtWidgets.QLineEdit(jriverDspDialog)
        self.filename.setReadOnly(True)
        self.filename.setObjectName("filename")
        self.configRow1Layout.addWidget(self.filename)
        self.saveButton = QtWidgets.QToolButton(jriverDspDialog)
        self.saveButton.setEnabled(False)
        self.saveButton.setObjectName("saveButton")
        self.configRow1Layout.addWidget(self.saveButton)
        self.saveAsButton = QtWidgets.QToolButton(jriverDspDialog)
        self.saveAsButton.setEnabled(False)
        self.saveAsButton.setObjectName("saveAsButton")
        self.configRow1Layout.addWidget(self.saveAsButton)
        self.uploadButton = QtWidgets.QToolButton(jriverDspDialog)
        self.uploadButton.setEnabled(False)
        self.uploadButton.setObjectName("uploadButton")
        self.configRow1Layout.addWidget(self.uploadButton)
        self.configLayout.addLayout(self.configRow1Layout, 0, 0, 1, 1)
        self.configRow2Layout = QtWidgets.QHBoxLayout()
        self.configRow2Layout.setObjectName("configRow2Layout")
        self.backButton = QtWidgets.QToolButton(jriverDspDialog)
        self.backButton.setEnabled(False)
        self.backButton.setObjectName("backButton")
        self.configRow2Layout.addWidget(self.backButton)
        self.forwardButton = QtWidgets.QToolButton(jriverDspDialog)
        self.forwardButton.setEnabled(False)
        self.forwardButton.setObjectName("forwardButton")
        self.configRow2Layout.addWidget(self.forwardButton)
        self.outputFormat = QtWidgets.QLineEdit(jriverDspDialog)
        self.outputFormat.setReadOnly(True)
        self.outputFormat.setObjectName("outputFormat")
        self.configRow2Layout.addWidget(self.outputFormat)
        self.blockSelector = QtWidgets.QComboBox(jriverDspDialog)
        self.blockSelector.setObjectName("blockSelector")
        self.configRow2Layout.addWidget(self.blockSelector)
        self.configRow2Layout.setStretch(2, 1)
        self.configRow2Layout.setStretch(3, 1)
        self.configLayout.addLayout(self.configRow2Layout, 1, 0, 1, 1)
        self.mainLayout.addLayout(self.configLayout)
        self.selectorLayout = QtWidgets.QGridLayout()
        self.selectorLayout.setObjectName("selectorLayout")
        self.moveButtonsLayout = QtWidgets.QVBoxLayout()
        self.moveButtonsLayout.setObjectName("moveButtonsLayout")
        self.moveTopButton = QtWidgets.QToolButton(jriverDspDialog)
        self.moveTopButton.setEnabled(False)
        self.moveTopButton.setObjectName("moveTopButton")
        self.moveButtonsLayout.addWidget(self.moveTopButton)
        self.moveUpButton = QtWidgets.QToolButton(jriverDspDialog)
        self.moveUpButton.setEnabled(False)
        self.moveUpButton.setObjectName("moveUpButton")
        self.moveButtonsLayout.addWidget(self.moveUpButton)
        spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.moveButtonsLayout.addItem(spacerItem)
        self.moveDownButton = QtWidgets.QToolButton(jriverDspDialog)
        self.moveDownButton.setEnabled(False)
        self.moveDownButton.setObjectName("moveDownButton")
        self.moveButtonsLayout.addWidget(self.moveDownButton)
        self.moveBottomButton = QtWidgets.QToolButton(jriverDspDialog)
        self.moveBottomButton.setEnabled(False)
        self.moveBottomButton.setObjectName("moveBottomButton")
        self.moveButtonsLayout.addWidget(self.moveBottomButton)
        self.selectorLayout.addLayout(self.moveButtonsLayout, 0, 0, 1, 1)
        self.filterButtonsLayout = QtWidgets.QVBoxLayout()
        self.filterButtonsLayout.setObjectName("filterButtonsLayout")
        self.addFilterButton = QtWidgets.QToolButton(jriverDspDialog)
        self.addFilterButton.setEnabled(False)
        self.addFilterButton.setPopupMode(QtWidgets.QToolButton.InstantPopup)
        self.addFilterButton.setObjectName("addFilterButton")
        self.filterButtonsLayout.addWidget(self.addFilterButton)
        self.editFilterButton = QtWidgets.QToolButton(jriverDspDialog)
        self.editFilterButton.setEnabled(False)
        self.editFilterButton.setObjectName("editFilterButton")
        self.filterButtonsLayout.addWidget(self.editFilterButton)
        self.deleteFilterButton = QtWidgets.QToolButton(jriverDspDialog)
        self.deleteFilterButton.setEnabled(False)
        self.deleteFilterButton.setObjectName("deleteFilterButton")
        self.filterButtonsLayout.addWidget(self.deleteFilterButton)
        self.clearFiltersButton = QtWidgets.QToolButton(jriverDspDialog)
        self.clearFiltersButton.setEnabled(False)
        self.clearFiltersButton.setObjectName("clearFiltersButton")
        self.filterButtonsLayout.addWidget(self.clearFiltersButton)
        self.splitFilterButton = QtWidgets.QToolButton(jriverDspDialog)
        self.splitFilterButton.setEnabled(False)
        self.splitFilterButton.setObjectName("splitFilterButton")
        self.filterButtonsLayout.addWidget(self.splitFilterButton)
        self.mergeFilterButton = QtWidgets.QToolButton(jriverDspDialog)
        self.mergeFilterButton.setEnabled(False)
        self.mergeFilterButton.setObjectName("mergeFilterButton")
        self.filterButtonsLayout.addWidget(self.mergeFilterButton)
        spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.filterButtonsLayout.addItem(spacerItem1)
        self.selectorLayout.addLayout(self.filterButtonsLayout, 0, 2, 1, 1)
        self.channelList = QtWidgets.QListWidget(jriverDspDialog)
        self.channelList.setProperty("showDropIndicator", False)
        self.channelList.setSelectionMode(QtWidgets.QAbstractItemView.MultiSelection)
        self.channelList.setObjectName("channelList")
        self.selectorLayout.addWidget(self.channelList, 1, 0, 1, 3)
        self.filterList = QtWidgets.QListWidget(jriverDspDialog)
        self.filterList.setProperty("showDropIndicator", False)
        self.filterList.setDragDropMode(QtWidgets.QAbstractItemView.NoDragDrop)
        self.filterList.setDefaultDropAction(QtCore.Qt.IgnoreAction)
        self.filterList.setSelectionMode(QtWidgets.QAbstractItemView.ExtendedSelection)
        self.filterList.setObjectName("filterList")
        self.selectorLayout.addWidget(self.filterList, 0, 1, 1, 1)
        self.selectorLayout.setRowStretch(0, 1)
        self.mainLayout.addLayout(self.selectorLayout)
        self.dialogLayout.addLayout(self.mainLayout, 0, 0, 3, 1)
        self.pipelineControlLayout = QtWidgets.QHBoxLayout()
        self.pipelineControlLayout.setObjectName("pipelineControlLayout")
        self.showDotButton = QtWidgets.QToolButton(jriverDspDialog)
        self.showDotButton.setEnabled(False)
        self.showDotButton.setObjectName("showDotButton")
        self.pipelineControlLayout.addWidget(self.showDotButton)
        self.direction = QtWidgets.QCheckBox(jriverDspDialog)
        self.direction.setEnabled(False)
        self.direction.setObjectName("direction")
        self.pipelineControlLayout.addWidget(self.direction)
        self.dialogLayout.addLayout(self.pipelineControlLayout, 0, 1, 1, 1)
        self.viewSplitter = QtWidgets.QSplitter(jriverDspDialog)
        self.viewSplitter.setLineWidth(1)
        self.viewSplitter.setOrientation(QtCore.Qt.Vertical)
        self.viewSplitter.setObjectName("viewSplitter")
        self.pipelineView = SvgView(self.viewSplitter)
        self.pipelineView.setObjectName("pipelineView")
        self.chartWrapper = QtWidgets.QWidget(self.viewSplitter)
        self.chartWrapper.setObjectName("chartWrapper")
        self.chartLayout = QtWidgets.QHBoxLayout(self.chartWrapper)
        self.chartLayout.setContentsMargins(0, 0, 0, 0)
        self.chartLayout.setObjectName("chartLayout")
        self.previewChart = MplWidget(self.chartWrapper)
        self.previewChart.setObjectName("previewChart")
        self.chartLayout.addWidget(self.previewChart)
        self.chartControlLayout = QtWidgets.QVBoxLayout()
        self.chartControlLayout.setObjectName("chartControlLayout")
        self.limitsButton = QtWidgets.QToolButton(self.chartWrapper)
        self.limitsButton.setObjectName("limitsButton")
        self.chartControlLayout.addWidget(self.limitsButton)
        self.fullRangeButton = QtWidgets.QToolButton(self.chartWrapper)
        self.fullRangeButton.setObjectName("fullRangeButton")
        self.chartControlLayout.addWidget(self.fullRangeButton)
        self.subOnlyButton = QtWidgets.QToolButton(self.chartWrapper)
        self.subOnlyButton.setObjectName("subOnlyButton")
        self.chartControlLayout.addWidget(self.subOnlyButton)
        self.showPhase = QtWidgets.QToolButton(self.chartWrapper)
        self.showPhase.setCheckable(True)
        self.showPhase.setObjectName("showPhase")
        self.chartControlLayout.addWidget(self.showPhase)
        self.showTimingButton = QtWidgets.QToolButton(self.chartWrapper)
        self.showTimingButton.setObjectName("showTimingButton")
        self.chartControlLayout.addWidget(self.showTimingButton)
        spacerItem2 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
        self.chartControlLayout.addItem(spacerItem2)
        self.chartLayout.addLayout(self.chartControlLayout)
        self.chartLayout.setStretch(0, 1)
        self.dialogLayout.addWidget(self.viewSplitter, 1, 1, 1, 1)
        self.buttonBox = QtWidgets.QDialogButtonBox(jriverDspDialog)
        self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
        self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Close|QtWidgets.QDialogButtonBox.Reset)
        self.buttonBox.setCenterButtons(False)
        self.buttonBox.setObjectName("buttonBox")
        self.dialogLayout.addWidget(self.buttonBox, 3, 0, 1, 2)
        self.dialogLayout.setColumnStretch(0, 1)
        self.dialogLayout.setColumnStretch(1, 3)

        self.retranslateUi(jriverDspDialog)
        self.buttonBox.accepted.connect(jriverDspDialog.accept) # type: ignore
        self.buttonBox.rejected.connect(jriverDspDialog.reject) # type: ignore
        self.findFilenameButton.clicked.connect(jriverDspDialog.find_dsp_file) # type: ignore
        self.showPhase.toggled['bool'].connect(jriverDspDialog.show_phase_response) # type: ignore
        self.subOnlyButton.clicked.connect(jriverDspDialog.show_sub_only) # type: ignore
        self.fullRangeButton.clicked.connect(jriverDspDialog.show_full_range) # type: ignore
        self.limitsButton.clicked.connect(jriverDspDialog.show_limits) # type: ignore
        self.blockSelector.currentTextChanged['QString'].connect(jriverDspDialog.show_filters) # type: ignore
        self.channelList.itemSelectionChanged.connect(jriverDspDialog.redraw) # type: ignore
        self.saveButton.clicked.connect(jriverDspDialog.save_dsp) # type: ignore
        self.saveAsButton.clicked.connect(jriverDspDialog.save_as_dsp) # type: ignore
        self.deleteFilterButton.clicked.connect(jriverDspDialog.delete_filter) # type: ignore
        self.clearFiltersButton.clicked.connect(jriverDspDialog.clear_filters) # type: ignore
        self.filterList.itemSelectionChanged.connect(jriverDspDialog.on_filter_select) # type: ignore
        self.filterList.itemDoubleClicked['QListWidgetItem*'].connect(jriverDspDialog.edit_filter) # type: ignore
        self.editFilterButton.clicked.connect(jriverDspDialog.edit_selected_filter) # type: ignore
        self.splitFilterButton.clicked.connect(jriverDspDialog.split_filter) # type: ignore
        self.mergeFilterButton.clicked.connect(jriverDspDialog.merge_filters) # type: ignore
        self.moveBottomButton.clicked.connect(jriverDspDialog.move_filter_to_bottom) # type: ignore
        self.moveDownButton.clicked.connect(jriverDspDialog.move_filter_down) # type: ignore
        self.moveUpButton.clicked.connect(jriverDspDialog.move_filter_up) # type: ignore
        self.moveTopButton.clicked.connect(jriverDspDialog.move_filter_to_top) # type: ignore
        self.newConfigButton.clicked.connect(jriverDspDialog.create_new_config) # type: ignore
        QtCore.QMetaObject.connectSlotsByName(jriverDspDialog)
        jriverDspDialog.setTabOrder(self.findFilenameButton, self.limitsButton)
        jriverDspDialog.setTabOrder(self.limitsButton, self.fullRangeButton)
        jriverDspDialog.setTabOrder(self.fullRangeButton, self.subOnlyButton)
        jriverDspDialog.setTabOrder(self.subOnlyButton, self.showPhase)
        jriverDspDialog.setTabOrder(self.showPhase, self.showDotButton)
        jriverDspDialog.setTabOrder(self.showDotButton, self.direction)
        jriverDspDialog.setTabOrder(self.direction, self.pipelineView)
        jriverDspDialog.setTabOrder(self.pipelineView, self.previewChart)
        jriverDspDialog.setTabOrder(self.previewChart, self.filterList)
        jriverDspDialog.setTabOrder(self.filterList, self.channelList)

    def retranslateUi(self, jriverDspDialog):
        _translate = QtCore.QCoreApplication.translate
        jriverDspDialog.setWindowTitle(_translate("jriverDspDialog", "JRiver Media Center DSP Editor"))
        self.newConfigButton.setText(_translate("jriverDspDialog", "..."))
        self.findFilenameButton.setText(_translate("jriverDspDialog", "..."))
        self.loadZoneButton.setText(_translate("jriverDspDialog", "..."))
        self.saveButton.setText(_translate("jriverDspDialog", "..."))
        self.saveAsButton.setText(_translate("jriverDspDialog", "..."))
        self.uploadButton.setText(_translate("jriverDspDialog", "..."))
        self.backButton.setText(_translate("jriverDspDialog", "..."))
        self.forwardButton.setText(_translate("jriverDspDialog", "..."))
        self.moveTopButton.setText(_translate("jriverDspDialog", "..."))
        self.moveTopButton.setShortcut(_translate("jriverDspDialog", "Shift+Up"))
        self.moveUpButton.setText(_translate("jriverDspDialog", "..."))
        self.moveUpButton.setShortcut(_translate("jriverDspDialog", "Ctrl+Up"))
        self.moveDownButton.setText(_translate("jriverDspDialog", "..."))
        self.moveDownButton.setShortcut(_translate("jriverDspDialog", "Ctrl+Down"))
        self.moveBottomButton.setText(_translate("jriverDspDialog", "..."))
        self.moveBottomButton.setShortcut(_translate("jriverDspDialog", "Shift+Down"))
        self.addFilterButton.setText(_translate("jriverDspDialog", "..."))
        self.addFilterButton.setShortcut(_translate("jriverDspDialog", "="))
        self.editFilterButton.setText(_translate("jriverDspDialog", "..."))
        self.editFilterButton.setShortcut(_translate("jriverDspDialog", "E"))
        self.deleteFilterButton.setText(_translate("jriverDspDialog", "..."))
        self.deleteFilterButton.setShortcut(_translate("jriverDspDialog", "-"))
        self.clearFiltersButton.setText(_translate("jriverDspDialog", "..."))
        self.clearFiltersButton.setShortcut(_translate("jriverDspDialog", "X"))
        self.splitFilterButton.setText(_translate("jriverDspDialog", "..."))
        self.mergeFilterButton.setText(_translate("jriverDspDialog", "..."))
        self.showDotButton.setText(_translate("jriverDspDialog", "..."))
        self.direction.setText(_translate("jriverDspDialog", "Vertical?"))
        self.limitsButton.setText(_translate("jriverDspDialog", "..."))
        self.fullRangeButton.setText(_translate("jriverDspDialog", "..."))
        self.subOnlyButton.setText(_translate("jriverDspDialog", "..."))
        self.showPhase.setText(_translate("jriverDspDialog", "..."))
        self.showTimingButton.setText(_translate("jriverDspDialog", "..."))
from mpl import MplWidget
from svg import SvgView
