def setupUi(self, analysisDialog): analysisDialog.setObjectName("analysisDialog") analysisDialog.resize(1494, 895) analysisDialog.setSizeGripEnabled(True) self.gridLayout_2 = QtWidgets.QGridLayout(analysisDialog) self.gridLayout_2.setObjectName("gridLayout_2") self.analysisGridLayout = QtWidgets.QGridLayout() self.analysisGridLayout.setObjectName("analysisGridLayout") self.analysisFrame = QtWidgets.QFrame(analysisDialog) self.analysisFrame.setFrameShape(QtWidgets.QFrame.Box) self.analysisFrame.setFrameShadow(QtWidgets.QFrame.Sunken) self.analysisFrame.setObjectName("analysisFrame") self.formLayout = QtWidgets.QGridLayout(self.analysisFrame) self.formLayout.setObjectName("formLayout") self.line = QtWidgets.QFrame(self.analysisFrame) self.line.setFrameShape(QtWidgets.QFrame.HLine) self.line.setFrameShadow(QtWidgets.QFrame.Sunken) self.line.setObjectName("line") self.formLayout.addWidget(self.line, 5, 1, 1, 2) self.copyFilter = QtWidgets.QComboBox(self.analysisFrame) self.copyFilter.setObjectName("copyFilter") self.formLayout.addWidget(self.copyFilter, 6, 2, 1, 1) self.label = QtWidgets.QLabel(self.analysisFrame) self.label.setObjectName("label") self.formLayout.addWidget(self.label, 6, 1, 1, 1) self.file = QtWidgets.QLineEdit(self.analysisFrame) self.file.setEnabled(False) self.file.setObjectName("file") self.formLayout.addWidget(self.file, 0, 2, 1, 1) self.startTime = QtWidgets.QTimeEdit(self.analysisFrame) self.startTime.setObjectName("startTime") self.formLayout.addWidget(self.startTime, 2, 2, 1, 1) self.loadButton = QtWidgets.QPushButton(self.analysisFrame) self.loadButton.setObjectName("loadButton") self.formLayout.addWidget(self.loadButton, 4, 1, 1, 3) self.endLabel = QtWidgets.QLabel(self.analysisFrame) self.endLabel.setObjectName("endLabel") self.formLayout.addWidget(self.endLabel, 3, 1, 1, 1) self.fileLabel = QtWidgets.QLabel(self.analysisFrame) self.fileLabel.setObjectName("fileLabel") self.formLayout.addWidget(self.fileLabel, 0, 1, 1, 1) spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.formLayout.addItem(spacerItem, 10, 1, 1, 3) self.channelSelectorLabel = QtWidgets.QLabel(self.analysisFrame) self.channelSelectorLabel.setObjectName("channelSelectorLabel") self.formLayout.addWidget(self.channelSelectorLabel, 1, 1, 1, 1) self.endTime = QtWidgets.QTimeEdit(self.analysisFrame) self.endTime.setObjectName("endTime") self.formLayout.addWidget(self.endTime, 3, 2, 1, 1) self.filePicker = QtWidgets.QToolButton(self.analysisFrame) self.filePicker.setObjectName("filePicker") self.formLayout.addWidget(self.filePicker, 0, 3, 1, 1) self.channelSelector = QtWidgets.QComboBox(self.analysisFrame) self.channelSelector.setObjectName("channelSelector") self.formLayout.addWidget(self.channelSelector, 1, 2, 1, 1) self.startLabel = QtWidgets.QLabel(self.analysisFrame) self.startLabel.setObjectName("startLabel") self.formLayout.addWidget(self.startLabel, 2, 1, 1, 1) self.analysisGridLayout.addWidget(self.analysisFrame, 0, 0, 1, 1) self.analysisTabs = QtWidgets.QTabWidget(analysisDialog) self.analysisTabs.setObjectName("analysisTabs") self.spectrumTab = QtWidgets.QWidget() self.spectrumTab.setObjectName("spectrumTab") self.gridLayout_3 = QtWidgets.QGridLayout(self.spectrumTab) self.gridLayout_3.setObjectName("gridLayout_3") self.spectrumControlsLayout = QtWidgets.QGridLayout() self.spectrumControlsLayout.setObjectName("spectrumControlsLayout") self.buttonBoxLayout = QtWidgets.QVBoxLayout() self.buttonBoxLayout.setObjectName("buttonBoxLayout") self.saveChart = QtWidgets.QPushButton(self.spectrumTab) self.saveChart.setObjectName("saveChart") self.buttonBoxLayout.addWidget(self.saveChart) self.updateChart = QtWidgets.QPushButton(self.spectrumTab) self.updateChart.setObjectName("updateChart") self.buttonBoxLayout.addWidget(self.updateChart) self.saveLayout = QtWidgets.QPushButton(self.spectrumTab) self.saveLayout.setObjectName("saveLayout") self.buttonBoxLayout.addWidget(self.saveLayout) self.spectrumControlsLayout.addLayout(self.buttonBoxLayout, 0, 10, 3, 1) self.colourRangeLabel = QtWidgets.QLabel(self.spectrumTab) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.colourRangeLabel.setFont(font) self.colourRangeLabel.setAlignment(QtCore.Qt.AlignCenter) self.colourRangeLabel.setObjectName("colourRangeLabel") self.spectrumControlsLayout.addWidget(self.colourRangeLabel, 0, 7, 1, 1) self.colourLowerLimit = QtWidgets.QSpinBox(self.spectrumTab) self.colourLowerLimit.setMinimum(-120) self.colourLowerLimit.setMaximum(0) self.colourLowerLimit.setProperty("value", -70) self.colourLowerLimit.setObjectName("colourLowerLimit") self.spectrumControlsLayout.addWidget(self.colourLowerLimit, 2, 7, 1, 1) self.colourUpperLimit = QtWidgets.QSpinBox(self.spectrumTab) self.colourUpperLimit.setMinimum(-99) self.colourUpperLimit.setMaximum(0) self.colourUpperLimit.setProperty("value", -10) self.colourUpperLimit.setObjectName("colourUpperLimit") self.spectrumControlsLayout.addWidget(self.colourUpperLimit, 1, 7, 1, 1) self.markerType = QtWidgets.QComboBox(self.spectrumTab) self.markerType.setObjectName("markerType") self.spectrumControlsLayout.addWidget(self.markerType, 0, 1, 1, 1) self.magLimitTypeLabel = QtWidgets.QLabel(self.spectrumTab) self.magLimitTypeLabel.setObjectName("magLimitTypeLabel") self.spectrumControlsLayout.addWidget(self.magLimitTypeLabel, 2, 0, 1, 1) self.markerTypeLabel = QtWidgets.QLabel(self.spectrumTab) self.markerTypeLabel.setObjectName("markerTypeLabel") self.spectrumControlsLayout.addWidget(self.markerTypeLabel, 0, 0, 1, 1) self.analysisResolutionLabel = QtWidgets.QLabel(self.spectrumTab) self.analysisResolutionLabel.setObjectName("analysisResolutionLabel") self.spectrumControlsLayout.addWidget(self.analysisResolutionLabel, 1, 0, 1, 1) self.analysisResolution = QtWidgets.QComboBox(self.spectrumTab) self.analysisResolution.setObjectName("analysisResolution") self.spectrumControlsLayout.addWidget(self.analysisResolution, 1, 1, 1, 1) self.markerSize = QtWidgets.QSpinBox(self.spectrumTab) self.markerSize.setMinimum(1) self.markerSize.setMaximum(9) self.markerSize.setObjectName("markerSize") self.spectrumControlsLayout.addWidget(self.markerSize, 0, 3, 1, 1) self.magLimitType = QtWidgets.QComboBox(self.spectrumTab) self.magLimitType.setObjectName("magLimitType") self.magLimitType.addItem("") self.magLimitType.addItem("") self.magLimitType.addItem("") self.spectrumControlsLayout.addWidget(self.magLimitType, 2, 1, 1, 1) self.markerSizeLabel = QtWidgets.QLabel(self.spectrumTab) self.markerSizeLabel.setObjectName("markerSizeLabel") self.spectrumControlsLayout.addWidget(self.markerSizeLabel, 0, 2, 1, 1) self.ellipseWidthLabel = QtWidgets.QLabel(self.spectrumTab) self.ellipseWidthLabel.setObjectName("ellipseWidthLabel") self.spectrumControlsLayout.addWidget(self.ellipseWidthLabel, 1, 2, 1, 1) self.ellipseHeight = QtWidgets.QDoubleSpinBox(self.spectrumTab) self.ellipseHeight.setMinimum(0.01) self.ellipseHeight.setMaximum(100.0) self.ellipseHeight.setSingleStep(0.01) self.ellipseHeight.setProperty("value", 1.0) self.ellipseHeight.setObjectName("ellipseHeight") self.spectrumControlsLayout.addWidget(self.ellipseHeight, 2, 3, 1, 1) self.ellipseWidth = QtWidgets.QDoubleSpinBox(self.spectrumTab) self.ellipseWidth.setMinimum(0.01) self.ellipseWidth.setMaximum(100.0) self.ellipseWidth.setSingleStep(0.01) self.ellipseWidth.setProperty("value", 3.0) self.ellipseWidth.setObjectName("ellipseWidth") self.spectrumControlsLayout.addWidget(self.ellipseWidth, 1, 3, 1, 1) self.ellipseHeightLabel = QtWidgets.QLabel(self.spectrumTab) self.ellipseHeightLabel.setObjectName("ellipseHeightLabel") self.spectrumControlsLayout.addWidget(self.ellipseHeightLabel, 2, 2, 1, 1) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.spectrumControlsLayout.addItem(spacerItem1, 0, 9, 3, 1) self.minTime = QtWidgets.QTimeEdit(self.spectrumTab) self.minTime.setObjectName("minTime") self.spectrumControlsLayout.addWidget(self.minTime, 1, 5, 1, 1) self.magLowerLimit = QtWidgets.QDoubleSpinBox(self.spectrumTab) self.magLowerLimit.setMinimum(-120.0) self.magLowerLimit.setMaximum(0.0) self.magLowerLimit.setSingleStep(0.01) self.magLowerLimit.setProperty("value", -70.0) self.magLowerLimit.setObjectName("magLowerLimit") self.spectrumControlsLayout.addWidget(self.magLowerLimit, 2, 8, 1, 1) self.signalRangeLabel = QtWidgets.QLabel(self.spectrumTab) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.signalRangeLabel.setFont(font) self.signalRangeLabel.setAlignment(QtCore.Qt.AlignCenter) self.signalRangeLabel.setObjectName("signalRangeLabel") self.spectrumControlsLayout.addWidget(self.signalRangeLabel, 0, 8, 1, 1) self.magUpperLimit = QtWidgets.QDoubleSpinBox(self.spectrumTab) self.magUpperLimit.setEnabled(False) self.magUpperLimit.setDecimals(2) self.magUpperLimit.setMinimum(-99.0) self.magUpperLimit.setMaximum(0.0) self.magUpperLimit.setSingleStep(0.001) self.magUpperLimit.setProperty("value", -10.0) self.magUpperLimit.setObjectName("magUpperLimit") self.spectrumControlsLayout.addWidget(self.magUpperLimit, 1, 8, 1, 1) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.maxFilteredFreq = QtWidgets.QSpinBox(self.spectrumTab) self.maxFilteredFreq.setMinimum(1) self.maxFilteredFreq.setMaximum(24000) self.maxFilteredFreq.setProperty("value", 40) self.maxFilteredFreq.setObjectName("maxFilteredFreq") self.horizontalLayout.addWidget(self.maxFilteredFreq) self.maxUnfilteredFreq = QtWidgets.QSpinBox(self.spectrumTab) self.maxUnfilteredFreq.setMinimum(10) self.maxUnfilteredFreq.setMaximum(24000) self.maxUnfilteredFreq.setProperty("value", 80) self.maxUnfilteredFreq.setObjectName("maxUnfilteredFreq") self.horizontalLayout.addWidget(self.maxUnfilteredFreq) self.spectrumControlsLayout.addLayout(self.horizontalLayout, 2, 6, 1, 1) self.timeRangeLabe = QtWidgets.QLabel(self.spectrumTab) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.timeRangeLabe.setFont(font) self.timeRangeLabe.setAlignment(QtCore.Qt.AlignCenter) self.timeRangeLabe.setObjectName("timeRangeLabe") self.spectrumControlsLayout.addWidget(self.timeRangeLabe, 0, 5, 1, 1) self.minLabel = QtWidgets.QLabel(self.spectrumTab) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.minLabel.setFont(font) self.minLabel.setAlignment(QtCore.Qt.AlignCenter) self.minLabel.setObjectName("minLabel") self.spectrumControlsLayout.addWidget(self.minLabel, 1, 4, 1, 1) self.freqRangeLabel = QtWidgets.QLabel(self.spectrumTab) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.freqRangeLabel.setFont(font) self.freqRangeLabel.setAlignment(QtCore.Qt.AlignCenter) self.freqRangeLabel.setObjectName("freqRangeLabel") self.spectrumControlsLayout.addWidget(self.freqRangeLabel, 0, 6, 1, 1) self.maxTime = QtWidgets.QTimeEdit(self.spectrumTab) self.maxTime.setObjectName("maxTime") self.spectrumControlsLayout.addWidget(self.maxTime, 2, 5, 1, 1) self.minFreq = QtWidgets.QSpinBox(self.spectrumTab) self.minFreq.setObjectName("minFreq") self.spectrumControlsLayout.addWidget(self.minFreq, 1, 6, 1, 1) self.maxLabel = QtWidgets.QLabel(self.spectrumTab) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.maxLabel.setFont(font) self.maxLabel.setAlignment(QtCore.Qt.AlignCenter) self.maxLabel.setObjectName("maxLabel") self.spectrumControlsLayout.addWidget(self.maxLabel, 2, 4, 1, 1) self.gridLayout_3.addLayout(self.spectrumControlsLayout, 0, 0, 1, 1) self.spectrumChart = MplWidget(self.spectrumTab) self.spectrumChart.setObjectName("spectrumChart") self.gridLayout_3.addWidget(self.spectrumChart, 3, 0, 1, 1) self.analysisTabs.addTab(self.spectrumTab, "") self.waveformTab = QtWidgets.QWidget() self.waveformTab.setObjectName("waveformTab") self.gridLayout = QtWidgets.QGridLayout(self.waveformTab) self.gridLayout.setObjectName("gridLayout") self.waveformChart = MplWidget(self.waveformTab) self.waveformChart.setObjectName("waveformChart") self.gridLayout.addWidget(self.waveformChart, 1, 0, 1, 1) self.waveformControls = QtWidgets.QGridLayout() self.waveformControls.setObjectName("waveformControls") self.magnitudeDecibels = QtWidgets.QCheckBox(self.waveformTab) self.magnitudeDecibels.setObjectName("magnitudeDecibels") self.waveformControls.addWidget(self.magnitudeDecibels, 0, 0, 1, 1) spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.waveformControls.addItem(spacerItem2, 0, 4, 1, 1) self.headroomLabel = QtWidgets.QLabel(self.waveformTab) self.headroomLabel.setObjectName("headroomLabel") self.waveformControls.addWidget(self.headroomLabel, 0, 1, 1, 1) self.headroom = QtWidgets.QDoubleSpinBox(self.waveformTab) self.headroom.setEnabled(True) self.headroom.setDecimals(3) self.headroom.setMinimum(-100.0) self.headroom.setMaximum(100.0) self.headroom.setSingleStep(0.001) self.headroom.setObjectName("headroom") self.waveformControls.addWidget(self.headroom, 0, 2, 1, 1) self.showLimitsButton = QtWidgets.QToolButton(self.waveformTab) self.showLimitsButton.setObjectName("showLimitsButton") self.waveformControls.addWidget(self.showLimitsButton, 0, 3, 1, 1) self.gridLayout.addLayout(self.waveformControls, 0, 0, 1, 1) self.analysisTabs.addTab(self.waveformTab, "") self.analysisGridLayout.addWidget(self.analysisTabs, 0, 1, 2, 1) self.signalFrame = QtWidgets.QFrame(analysisDialog) self.signalFrame.setFrameShape(QtWidgets.QFrame.StyledPanel) self.signalFrame.setFrameShadow(QtWidgets.QFrame.Raised) self.signalFrame.setObjectName("signalFrame") self.signalLayout = QtWidgets.QGridLayout(self.signalFrame) self.signalLayout.setObjectName("signalLayout") self.leftSignal = QtWidgets.QComboBox(self.signalFrame) self.leftSignal.setObjectName("leftSignal") self.signalLayout.addWidget(self.leftSignal, 0, 1, 1, 1) spacerItem3 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.signalLayout.addItem(spacerItem3, 3, 0, 1, 2) self.rightSignal = QtWidgets.QComboBox(self.signalFrame) self.rightSignal.setObjectName("rightSignal") self.signalLayout.addWidget(self.rightSignal, 1, 1, 1, 1) self.leftSignalLabel = QtWidgets.QLabel(self.signalFrame) self.leftSignalLabel.setObjectName("leftSignalLabel") self.signalLayout.addWidget(self.leftSignalLabel, 0, 0, 1, 1) self.rightSignalLabel = QtWidgets.QLabel(self.signalFrame) self.rightSignalLabel.setObjectName("rightSignalLabel") self.signalLayout.addWidget(self.rightSignalLabel, 1, 0, 1, 1) self.compareSignalsButton = QtWidgets.QPushButton(self.signalFrame) self.compareSignalsButton.setObjectName("compareSignalsButton") self.signalLayout.addWidget(self.compareSignalsButton, 2, 0, 1, 2) self.filterLeft = QtWidgets.QCheckBox(self.signalFrame) self.filterLeft.setText("") self.filterLeft.setObjectName("filterLeft") self.signalLayout.addWidget(self.filterLeft, 0, 2, 1, 1) self.filterRight = QtWidgets.QCheckBox(self.signalFrame) self.filterRight.setText("") self.filterRight.setObjectName("filterRight") self.signalLayout.addWidget(self.filterRight, 1, 2, 1, 1) self.signalLayout.setColumnStretch(1, 1) self.analysisGridLayout.addWidget(self.signalFrame, 1, 0, 1, 1) self.analysisGridLayout.setColumnStretch(1, 1) self.gridLayout_2.addLayout(self.analysisGridLayout, 0, 0, 1, 1) self.retranslateUi(analysisDialog) self.analysisTabs.setCurrentIndex(0) self.filePicker.clicked.connect(analysisDialog.select_wav_file) self.loadButton.clicked.connect(analysisDialog.load_file) self.analysisTabs.currentChanged['int'].connect( analysisDialog.show_chart) self.showLimitsButton.clicked.connect(analysisDialog.show_limits) self.magnitudeDecibels.clicked.connect(analysisDialog.show_chart) self.magLimitType.currentIndexChanged['QString'].connect( analysisDialog.set_mag_range_type) self.copyFilter.currentIndexChanged['int'].connect( analysisDialog.update_filter) self.markerType.currentIndexChanged['QString'].connect( analysisDialog.update_marker_type) self.saveChart.clicked.connect(analysisDialog.save_chart) self.updateChart.clicked.connect(analysisDialog.update_chart) self.saveLayout.clicked.connect(analysisDialog.save_layout) self.leftSignal.currentIndexChanged['QString'].connect( analysisDialog.enable_compare) self.rightSignal.currentIndexChanged['QString'].connect( analysisDialog.enable_compare) self.compareSignalsButton.clicked.connect( analysisDialog.compare_signals) self.filterLeft.clicked.connect(analysisDialog.enable_compare) self.filterRight.clicked.connect(analysisDialog.enable_compare) QtCore.QMetaObject.connectSlotsByName(analysisDialog)
def setupUi(self, addSignalDialog): addSignalDialog.setObjectName("addSignalDialog") addSignalDialog.resize(1392, 748) self.verticalLayout = QtWidgets.QVBoxLayout(addSignalDialog) self.verticalLayout.setObjectName("verticalLayout") self.panesLayout = QtWidgets.QGridLayout() self.panesLayout.setObjectName("panesLayout") self.buttonBox = QtWidgets.QDialogButtonBox(addSignalDialog) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel | QtWidgets.QDialogButtonBox.Ok) self.buttonBox.setObjectName("buttonBox") self.panesLayout.addWidget(self.buttonBox, 4, 0, 1, 1) self.linkedSignal = QtWidgets.QCheckBox(addSignalDialog) self.linkedSignal.setEnabled(True) self.linkedSignal.setObjectName("linkedSignal") self.panesLayout.addWidget(self.linkedSignal, 3, 0, 1, 1) self.filterSelectLayout = QtWidgets.QGridLayout() self.filterSelectLayout.setObjectName("filterSelectLayout") self.filterSelectLabel = QtWidgets.QLabel(addSignalDialog) self.filterSelectLabel.setObjectName("filterSelectLabel") self.filterSelectLayout.addWidget(self.filterSelectLabel, 0, 0, 1, 1) self.filterSelect = QtWidgets.QComboBox(addSignalDialog) self.filterSelect.setObjectName("filterSelect") self.filterSelect.addItem("") self.filterSelectLayout.addWidget(self.filterSelect, 0, 1, 1, 1) self.filterSelectLayout.setColumnStretch(1, 1) self.panesLayout.addLayout(self.filterSelectLayout, 2, 0, 1, 1) self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.signalTypeTabs = QtWidgets.QTabWidget(addSignalDialog) self.signalTypeTabs.setObjectName("signalTypeTabs") self.wavTab = QtWidgets.QWidget() self.wavTab.setObjectName("wavTab") self.gridLayout_3 = QtWidgets.QGridLayout(self.wavTab) self.gridLayout_3.setObjectName("gridLayout_3") self.wavGridLayout = QtWidgets.QGridLayout() self.wavGridLayout.setObjectName("wavGridLayout") self.wavStartTime = QtWidgets.QTimeEdit(self.wavTab) self.wavStartTime.setEnabled(False) self.wavStartTime.setTime(QtCore.QTime(0, 0, 0)) self.wavStartTime.setObjectName("wavStartTime") self.wavGridLayout.addWidget(self.wavStartTime, 4, 1, 1, 1) self.wavFile = QtWidgets.QLineEdit(self.wavTab) self.wavFile.setEnabled(False) self.wavFile.setReadOnly(True) self.wavFile.setObjectName("wavFile") self.wavGridLayout.addWidget(self.wavFile, 1, 1, 1, 1) self.wavFs = QtWidgets.QLineEdit(self.wavTab) self.wavFs.setEnabled(False) self.wavFs.setObjectName("wavFs") self.wavGridLayout.addWidget(self.wavFs, 2, 1, 1, 1) self.wavSignalName = QtWidgets.QLineEdit(self.wavTab) self.wavSignalName.setEnabled(False) self.wavSignalName.setObjectName("wavSignalName") self.wavGridLayout.addWidget(self.wavSignalName, 6, 1, 1, 1) self.decimate = QtWidgets.QCheckBox(self.wavTab) self.decimate.setChecked(True) self.decimate.setObjectName("decimate") self.wavGridLayout.addWidget(self.decimate, 9, 1, 1, 1) self.wavFileLabel = QtWidgets.QLabel(self.wavTab) self.wavFileLabel.setObjectName("wavFileLabel") self.wavGridLayout.addWidget(self.wavFileLabel, 1, 0, 1, 1) self.loadAllChannels = QtWidgets.QCheckBox(self.wavTab) self.loadAllChannels.setChecked(True) self.loadAllChannels.setObjectName("loadAllChannels") self.wavGridLayout.addWidget(self.loadAllChannels, 8, 1, 1, 1) spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.wavGridLayout.addItem(spacerItem, 10, 1, 1, 1) self.applyTimeRangeButton = QtWidgets.QToolButton(self.wavTab) self.applyTimeRangeButton.setObjectName("applyTimeRangeButton") self.wavGridLayout.addWidget(self.applyTimeRangeButton, 5, 2, 1, 1) self.wavStartTimeLabel = QtWidgets.QLabel(self.wavTab) self.wavStartTimeLabel.setObjectName("wavStartTimeLabel") self.wavGridLayout.addWidget(self.wavStartTimeLabel, 4, 0, 1, 1) self.wavEndTime = QtWidgets.QTimeEdit(self.wavTab) self.wavEndTime.setEnabled(False) self.wavEndTime.setObjectName("wavEndTime") self.wavGridLayout.addWidget(self.wavEndTime, 5, 1, 1, 1) self.wavSignalNameLabel = QtWidgets.QLabel(self.wavTab) self.wavSignalNameLabel.setObjectName("wavSignalNameLabel") self.wavGridLayout.addWidget(self.wavSignalNameLabel, 6, 0, 1, 1) self.wavFilePicker = QtWidgets.QToolButton(self.wavTab) self.wavFilePicker.setObjectName("wavFilePicker") self.wavGridLayout.addWidget(self.wavFilePicker, 1, 2, 1, 1) self.wavChannelSelector = QtWidgets.QComboBox(self.wavTab) self.wavChannelSelector.setEnabled(False) self.wavChannelSelector.setObjectName("wavChannelSelector") self.wavGridLayout.addWidget(self.wavChannelSelector, 3, 1, 1, 1) self.wavEndTimeLabel = QtWidgets.QLabel(self.wavTab) self.wavEndTimeLabel.setObjectName("wavEndTimeLabel") self.wavGridLayout.addWidget(self.wavEndTimeLabel, 5, 0, 1, 1) self.wavFsLabel = QtWidgets.QLabel(self.wavTab) self.wavFsLabel.setObjectName("wavFsLabel") self.wavGridLayout.addWidget(self.wavFsLabel, 2, 0, 1, 1) self.wavChannelLabel = QtWidgets.QLabel(self.wavTab) self.wavChannelLabel.setObjectName("wavChannelLabel") self.wavGridLayout.addWidget(self.wavChannelLabel, 3, 0, 1, 1) self.gainOffset = QtWidgets.QDoubleSpinBox(self.wavTab) self.gainOffset.setEnabled(False) self.gainOffset.setMinimum(-100.0) self.gainOffset.setMaximum(100.0) self.gainOffset.setSingleStep(0.01) self.gainOffset.setObjectName("gainOffset") self.wavGridLayout.addWidget(self.gainOffset, 7, 1, 1, 1) self.gainOffsetLabel = QtWidgets.QLabel(self.wavTab) self.gainOffsetLabel.setObjectName("gainOffsetLabel") self.wavGridLayout.addWidget(self.gainOffsetLabel, 7, 0, 1, 1) self.gridLayout_3.addLayout(self.wavGridLayout, 0, 0, 1, 1) self.signalTypeTabs.addTab(self.wavTab, "") self.frdTab = QtWidgets.QWidget() self.frdTab.setObjectName("frdTab") self.gridLayout_5 = QtWidgets.QGridLayout(self.frdTab) self.gridLayout_5.setObjectName("gridLayout_5") self.frdGridLayout = QtWidgets.QGridLayout() self.frdGridLayout.setObjectName("frdGridLayout") self.frdFsLabel = QtWidgets.QLabel(self.frdTab) self.frdFsLabel.setObjectName("frdFsLabel") self.frdGridLayout.addWidget(self.frdFsLabel, 2, 0, 1, 1) self.frdFs = QtWidgets.QSpinBox(self.frdTab) self.frdFs.setEnabled(False) self.frdFs.setMinimum(100) self.frdFs.setMaximum(96000) self.frdFs.setSingleStep(100) self.frdFs.setProperty("value", 48000) self.frdFs.setObjectName("frdFs") self.frdGridLayout.addWidget(self.frdFs, 2, 1, 1, 1) self.frdAvgFileLabel = QtWidgets.QLabel(self.frdTab) self.frdAvgFileLabel.setObjectName("frdAvgFileLabel") self.frdGridLayout.addWidget(self.frdAvgFileLabel, 0, 0, 1, 1) self.frdAvgFile = QtWidgets.QLineEdit(self.frdTab) self.frdAvgFile.setEnabled(False) self.frdAvgFile.setObjectName("frdAvgFile") self.frdGridLayout.addWidget(self.frdAvgFile, 0, 1, 1, 1) self.frdAvgFilePicker = QtWidgets.QToolButton(self.frdTab) self.frdAvgFilePicker.setObjectName("frdAvgFilePicker") self.frdGridLayout.addWidget(self.frdAvgFilePicker, 0, 2, 1, 1) self.frdSignalNameLabel = QtWidgets.QLabel(self.frdTab) self.frdSignalNameLabel.setObjectName("frdSignalNameLabel") self.frdGridLayout.addWidget(self.frdSignalNameLabel, 3, 0, 1, 1) spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.frdGridLayout.addItem(spacerItem1, 4, 1, 1, 1) self.frdSignalName = QtWidgets.QLineEdit(self.frdTab) self.frdSignalName.setEnabled(False) self.frdSignalName.setObjectName("frdSignalName") self.frdGridLayout.addWidget(self.frdSignalName, 3, 1, 1, 1) self.frdPeakFileLabel = QtWidgets.QLabel(self.frdTab) self.frdPeakFileLabel.setObjectName("frdPeakFileLabel") self.frdGridLayout.addWidget(self.frdPeakFileLabel, 1, 0, 1, 1) self.frdPeakFilePicker = QtWidgets.QToolButton(self.frdTab) self.frdPeakFilePicker.setObjectName("frdPeakFilePicker") self.frdGridLayout.addWidget(self.frdPeakFilePicker, 1, 2, 1, 1) self.frdPeakFile = QtWidgets.QLineEdit(self.frdTab) self.frdPeakFile.setEnabled(False) self.frdPeakFile.setObjectName("frdPeakFile") self.frdGridLayout.addWidget(self.frdPeakFile, 1, 1, 1, 1) self.gridLayout_5.addLayout(self.frdGridLayout, 0, 0, 1, 1) self.signalTypeTabs.addTab(self.frdTab, "") self.pulseTab = QtWidgets.QWidget() self.pulseTab.setObjectName("pulseTab") self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.pulseTab) self.verticalLayout_2.setObjectName("verticalLayout_2") self.gridLayout_2 = QtWidgets.QGridLayout() self.gridLayout_2.setObjectName("gridLayout_2") self.pulseFsLabel = QtWidgets.QLabel(self.pulseTab) self.pulseFsLabel.setObjectName("pulseFsLabel") self.gridLayout_2.addWidget(self.pulseFsLabel, 2, 0, 1, 1) self.pulsePrefixLabel = QtWidgets.QLabel(self.pulseTab) self.pulsePrefixLabel.setObjectName("pulsePrefixLabel") self.gridLayout_2.addWidget(self.pulsePrefixLabel, 1, 0, 1, 1) self.presetsHeaderLabel = QtWidgets.QLabel(self.pulseTab) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.presetsHeaderLabel.setFont(font) self.presetsHeaderLabel.setFrameShape(QtWidgets.QFrame.Box) self.presetsHeaderLabel.setFrameShadow(QtWidgets.QFrame.Sunken) self.presetsHeaderLabel.setAlignment(QtCore.Qt.AlignCenter) self.presetsHeaderLabel.setObjectName("presetsHeaderLabel") self.gridLayout_2.addWidget(self.presetsHeaderLabel, 0, 0, 1, 3) self.pulseChannels = QtWidgets.QListWidget(self.pulseTab) self.pulseChannels.setObjectName("pulseChannels") self.gridLayout_2.addWidget(self.pulseChannels, 3, 0, 1, 3) self.pulseFs = QtWidgets.QComboBox(self.pulseTab) self.pulseFs.setObjectName("pulseFs") self.pulseFs.addItem("") self.pulseFs.addItem("") self.gridLayout_2.addWidget(self.pulseFs, 2, 1, 1, 2) self.pulsePrefix = QtWidgets.QLineEdit(self.pulseTab) self.pulsePrefix.setEnabled(True) self.pulsePrefix.setReadOnly(False) self.pulsePrefix.setObjectName("pulsePrefix") self.gridLayout_2.addWidget(self.pulsePrefix, 1, 1, 1, 2) self.verticalLayout_2.addLayout(self.gridLayout_2) self.signalTypeTabs.addTab(self.pulseTab, "") self.gridLayout.addWidget(self.signalTypeTabs, 7, 1, 1, 1) self.panesLayout.addLayout(self.gridLayout, 0, 0, 1, 1) self.previewChart = MplWidget(addSignalDialog) self.previewChart.setObjectName("previewChart") self.panesLayout.addWidget(self.previewChart, 0, 1, 6, 1) spacerItem2 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.panesLayout.addItem(spacerItem2, 5, 0, 1, 1) self.panesLayout.setColumnStretch(1, 1) self.verticalLayout.addLayout(self.panesLayout) self.retranslateUi(addSignalDialog) self.signalTypeTabs.setCurrentIndex(0) self.buttonBox.rejected.connect(addSignalDialog.reject) # type: ignore self.buttonBox.accepted.connect(addSignalDialog.accept) # type: ignore self.wavFilePicker.clicked.connect( addSignalDialog.selectFile) # type: ignore self.signalTypeTabs.currentChanged['int'].connect( addSignalDialog.changeLoader) # type: ignore self.frdAvgFilePicker.clicked.connect( addSignalDialog.selectAvgFile) # type: ignore self.frdPeakFilePicker.clicked.connect( addSignalDialog.selectPeakFile) # type: ignore self.wavSignalName.textChanged['QString'].connect( addSignalDialog.enableOk) # type: ignore self.frdSignalName.textChanged['QString'].connect( addSignalDialog.enableOk) # type: ignore self.filterSelect.currentIndexChanged['int'].connect( addSignalDialog.masterFilterChanged) # type: ignore self.wavChannelSelector.currentTextChanged['QString'].connect( addSignalDialog.previewChannel) # type: ignore self.applyTimeRangeButton.clicked.connect( addSignalDialog.limitTimeRange) # type: ignore self.wavStartTime.timeChanged['QTime'].connect( addSignalDialog.enableLimitTimeRangeButton) # type: ignore self.wavEndTime.timeChanged['QTime'].connect( addSignalDialog.enableLimitTimeRangeButton) # type: ignore self.decimate.stateChanged['int'].connect( addSignalDialog.toggleDecimate) # type: ignore self.pulsePrefix.textChanged['QString'].connect( addSignalDialog.enableOk) # type: ignore QtCore.QMetaObject.connectSlotsByName(addSignalDialog) addSignalDialog.setTabOrder(self.signalTypeTabs, self.wavFilePicker) addSignalDialog.setTabOrder(self.wavFilePicker, self.wavChannelSelector) addSignalDialog.setTabOrder(self.wavChannelSelector, self.wavStartTime) addSignalDialog.setTabOrder(self.wavStartTime, self.wavEndTime) addSignalDialog.setTabOrder(self.wavEndTime, self.wavSignalName) addSignalDialog.setTabOrder(self.wavSignalName, self.loadAllChannels) addSignalDialog.setTabOrder(self.loadAllChannels, self.decimate) addSignalDialog.setTabOrder(self.decimate, self.filterSelect) addSignalDialog.setTabOrder(self.filterSelect, self.linkedSignal) addSignalDialog.setTabOrder(self.linkedSignal, self.wavFile) addSignalDialog.setTabOrder(self.wavFile, self.wavFs) addSignalDialog.setTabOrder(self.wavFs, self.frdFs) addSignalDialog.setTabOrder(self.frdFs, self.frdAvgFile) addSignalDialog.setTabOrder(self.frdAvgFile, self.frdAvgFilePicker) addSignalDialog.setTabOrder(self.frdAvgFilePicker, self.frdSignalName) addSignalDialog.setTabOrder(self.frdSignalName, self.frdPeakFilePicker) addSignalDialog.setTabOrder(self.frdPeakFilePicker, self.frdPeakFile) addSignalDialog.setTabOrder(self.frdPeakFile, self.previewChart)
def setupUi(self, geqDialog): geqDialog.setObjectName("geqDialog") geqDialog.resize(1228, 748) self.dialogLayout = QtWidgets.QVBoxLayout(geqDialog) self.dialogLayout.setObjectName("dialogLayout") self.graphicsLayout = QtWidgets.QHBoxLayout() self.graphicsLayout.setObjectName("graphicsLayout") self.previewChart = MplWidget(geqDialog) self.previewChart.setObjectName("previewChart") self.graphicsLayout.addWidget(self.previewChart) self.graphControlsLayout = QtWidgets.QVBoxLayout() self.graphControlsLayout.setObjectName("graphControlsLayout") self.limitsButton = QtWidgets.QToolButton(geqDialog) self.limitsButton.setObjectName("limitsButton") self.graphControlsLayout.addWidget(self.limitsButton) self.showPhase = QtWidgets.QToolButton(geqDialog) self.showPhase.setCheckable(True) self.showPhase.setObjectName("showPhase") self.graphControlsLayout.addWidget(self.showPhase) self.showIndividual = QtWidgets.QToolButton(geqDialog) self.showIndividual.setCheckable(True) self.showIndividual.setObjectName("showIndividual") self.graphControlsLayout.addWidget(self.showIndividual) spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.graphControlsLayout.addItem(spacerItem) self.graphicsLayout.addLayout(self.graphControlsLayout) self.dialogLayout.addLayout(self.graphicsLayout) self.controlsFrame = QtWidgets.QFrame(geqDialog) self.controlsFrame.setFrameShape(QtWidgets.QFrame.StyledPanel) self.controlsFrame.setFrameShadow(QtWidgets.QFrame.Raised) self.controlsFrame.setObjectName("controlsFrame") self.controlsLayout = QtWidgets.QHBoxLayout(self.controlsFrame) self.controlsLayout.setObjectName("controlsLayout") self.masterControlsLayout = QtWidgets.QGridLayout() self.masterControlsLayout.setObjectName("masterControlsLayout") self.peqCountLabel = QtWidgets.QLabel(self.controlsFrame) self.peqCountLabel.setAlignment(QtCore.Qt.AlignCenter) self.peqCountLabel.setObjectName("peqCountLabel") self.masterControlsLayout.addWidget(self.peqCountLabel, 0, 0, 1, 1) self.channelList = QtWidgets.QListWidget(self.controlsFrame) self.channelList.setSelectionMode(QtWidgets.QAbstractItemView.MultiSelection) self.channelList.setObjectName("channelList") self.masterControlsLayout.addWidget(self.channelList, 1, 0, 1, 4) self.advancedMode = QtWidgets.QToolButton(self.controlsFrame) self.advancedMode.setCheckable(True) self.advancedMode.setChecked(True) self.advancedMode.setObjectName("advancedMode") self.masterControlsLayout.addWidget(self.advancedMode, 0, 3, 1, 1) self.peqCount = QtWidgets.QSpinBox(self.controlsFrame) self.peqCount.setMinimum(1) self.peqCount.setMaximum(24) self.peqCount.setProperty("value", 8) self.peqCount.setObjectName("peqCount") self.masterControlsLayout.addWidget(self.peqCount, 0, 1, 1, 1) self.presetSelector = QtWidgets.QComboBox(self.controlsFrame) self.presetSelector.setObjectName("presetSelector") self.masterControlsLayout.addWidget(self.presetSelector, 0, 2, 1, 1) self.controlsLayout.addLayout(self.masterControlsLayout) self.peqScrollArea = QtWidgets.QScrollArea(self.controlsFrame) self.peqScrollArea.setVerticalScrollBarPolicy(QtCore.Qt.ScrollBarAlwaysOff) self.peqScrollArea.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustToContents) self.peqScrollArea.setWidgetResizable(True) self.peqScrollArea.setObjectName("peqScrollArea") self.scrollable = QtWidgets.QWidget() self.scrollable.setGeometry(QtCore.QRect(0, 0, 932, 325)) self.scrollable.setObjectName("scrollable") self.scrollableLayout = QtWidgets.QHBoxLayout(self.scrollable) self.scrollableLayout.setObjectName("scrollableLayout") self.peqScrollArea.setWidget(self.scrollable) self.controlsLayout.addWidget(self.peqScrollArea) self.dialogLayout.addWidget(self.controlsFrame) self.buttonBox = QtWidgets.QDialogButtonBox(geqDialog) self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Save) self.buttonBox.setObjectName("buttonBox") self.dialogLayout.addWidget(self.buttonBox) self.dialogLayout.setStretch(0, 1) self.dialogLayout.setStretch(1, 1) self.retranslateUi(geqDialog) self.limitsButton.clicked.connect(geqDialog.show_limits) # type: ignore self.peqCount.valueChanged['int'].connect(geqDialog.update_peq_editors) # type: ignore self.presetSelector.currentTextChanged['QString'].connect(geqDialog.update_peq_editors) # type: ignore self.advancedMode.toggled['bool'].connect(geqDialog.update_peq_editors) # type: ignore self.buttonBox.accepted.connect(geqDialog.accept) # type: ignore self.buttonBox.rejected.connect(geqDialog.reject) # type: ignore QtCore.QMetaObject.connectSlotsByName(geqDialog)
def setupUi(self, syncHtp1Dialog): syncHtp1Dialog.setObjectName("syncHtp1Dialog") syncHtp1Dialog.resize(1416, 700) self.gridLayout = QtWidgets.QGridLayout(syncHtp1Dialog) self.gridLayout.setObjectName("gridLayout") self.gridLayout_3 = QtWidgets.QGridLayout() self.gridLayout_3.setObjectName("gridLayout_3") self.resyncFilters = QtWidgets.QToolButton(syncHtp1Dialog) self.resyncFilters.setObjectName("resyncFilters") self.gridLayout_3.addWidget(self.resyncFilters, 1, 2, 1, 1) self.showDetailsButton = QtWidgets.QToolButton(syncHtp1Dialog) self.showDetailsButton.setObjectName("showDetailsButton") self.gridLayout_3.addWidget(self.showDetailsButton, 6, 2, 1, 1) self.selectBeqButton = QtWidgets.QToolButton(syncHtp1Dialog) self.selectBeqButton.setObjectName("selectBeqButton") self.gridLayout_3.addWidget(self.selectBeqButton, 3, 2, 1, 1) self.syncLayout = QtWidgets.QHBoxLayout() self.syncLayout.setObjectName("syncLayout") self.selectNoneButton = QtWidgets.QPushButton(syncHtp1Dialog) self.selectNoneButton.setObjectName("selectNoneButton") self.syncLayout.addWidget(self.selectNoneButton) self.selectAllButton = QtWidgets.QPushButton(syncHtp1Dialog) self.selectAllButton.setObjectName("selectAllButton") self.syncLayout.addWidget(self.selectAllButton) self.applyFiltersButton = QtWidgets.QPushButton(syncHtp1Dialog) self.applyFiltersButton.setObjectName("applyFiltersButton") self.syncLayout.addWidget(self.applyFiltersButton) self.autoSyncButton = QtWidgets.QToolButton(syncHtp1Dialog) self.autoSyncButton.setCheckable(True) self.autoSyncButton.setObjectName("autoSyncButton") self.syncLayout.addWidget(self.autoSyncButton) self.syncLayout.setStretch(2, 1) self.gridLayout_3.addLayout(self.syncLayout, 6, 1, 1, 1) self.filterView = QtWidgets.QTableView(syncHtp1Dialog) self.filterView.setSelectionMode( QtWidgets.QAbstractItemView.MultiSelection) self.filterView.setObjectName("filterView") self.gridLayout_3.addWidget(self.filterView, 2, 1, 1, 1) self.gridLayout_2 = QtWidgets.QGridLayout() self.gridLayout_2.setObjectName("gridLayout_2") self.addFilterButton = QtWidgets.QPushButton(syncHtp1Dialog) self.addFilterButton.setObjectName("addFilterButton") self.gridLayout_2.addWidget(self.addFilterButton, 0, 0, 1, 1) self.removeFilterButton = QtWidgets.QPushButton(syncHtp1Dialog) self.removeFilterButton.setObjectName("removeFilterButton") self.gridLayout_2.addWidget(self.removeFilterButton, 0, 1, 1, 1) self.loadFromSignalsButton = QtWidgets.QPushButton(syncHtp1Dialog) self.loadFromSignalsButton.setObjectName("loadFromSignalsButton") self.gridLayout_2.addWidget(self.loadFromSignalsButton, 0, 2, 1, 1) self.gridLayout_3.addLayout(self.gridLayout_2, 4, 1, 1, 1) self.createPulsesButton = QtWidgets.QToolButton(syncHtp1Dialog) self.createPulsesButton.setToolTip("") self.createPulsesButton.setToolTipDuration(5000) self.createPulsesButton.setObjectName("createPulsesButton") self.gridLayout_3.addWidget(self.createPulsesButton, 4, 2, 1, 1) self.ipAddressLabel = QtWidgets.QLabel(syncHtp1Dialog) self.ipAddressLabel.setObjectName("ipAddressLabel") self.gridLayout_3.addWidget(self.ipAddressLabel, 0, 0, 1, 1) self.filterLabel = QtWidgets.QLabel(syncHtp1Dialog) self.filterLabel.setObjectName("filterLabel") self.gridLayout_3.addWidget(self.filterLabel, 2, 0, 1, 1) self.ipAddress = QtWidgets.QLineEdit(syncHtp1Dialog) self.ipAddress.setObjectName("ipAddress") self.gridLayout_3.addWidget(self.ipAddress, 0, 1, 1, 1) self.connectButtonLayout = QtWidgets.QVBoxLayout() self.connectButtonLayout.setObjectName("connectButtonLayout") self.connectButton = QtWidgets.QToolButton(syncHtp1Dialog) self.connectButton.setObjectName("connectButton") self.connectButtonLayout.addWidget(self.connectButton) self.disconnectButton = QtWidgets.QToolButton(syncHtp1Dialog) self.disconnectButton.setObjectName("disconnectButton") self.connectButtonLayout.addWidget(self.disconnectButton) self.gridLayout_3.addLayout(self.connectButtonLayout, 0, 2, 1, 1) self.beqLabel = QtWidgets.QLabel(syncHtp1Dialog) self.beqLabel.setObjectName("beqLabel") self.gridLayout_3.addWidget(self.beqLabel, 3, 0, 1, 1) self.toolButtonsLayout = QtWidgets.QVBoxLayout() self.toolButtonsLayout.setObjectName("toolButtonsLayout") self.editFilterButton = QtWidgets.QToolButton(syncHtp1Dialog) self.editFilterButton.setObjectName("editFilterButton") self.toolButtonsLayout.addWidget(self.editFilterButton) self.deleteFiltersButton = QtWidgets.QToolButton(syncHtp1Dialog) self.deleteFiltersButton.setObjectName("deleteFiltersButton") self.toolButtonsLayout.addWidget(self.deleteFiltersButton) self.gridLayout_3.addLayout(self.toolButtonsLayout, 2, 2, 1, 1) self.filterMapping = QtWidgets.QListWidget(syncHtp1Dialog) self.filterMapping.setSelectionMode( QtWidgets.QAbstractItemView.MultiSelection) self.filterMapping.setObjectName("filterMapping") self.gridLayout_3.addWidget(self.filterMapping, 5, 1, 1, 1) self.filtersetLabel = QtWidgets.QLabel(syncHtp1Dialog) self.filtersetLabel.setObjectName("filtersetLabel") self.gridLayout_3.addWidget(self.filtersetLabel, 1, 0, 1, 1) self.beqFile = QtWidgets.QLineEdit(syncHtp1Dialog) self.beqFile.setReadOnly(True) self.beqFile.setObjectName("beqFile") self.gridLayout_3.addWidget(self.beqFile, 3, 1, 1, 1) self.filtersetSelector = QtWidgets.QComboBox(syncHtp1Dialog) self.filtersetSelector.setObjectName("filtersetSelector") self.gridLayout_3.addWidget(self.filtersetSelector, 1, 1, 1, 1) self.filterMappingLabel = QtWidgets.QLabel(syncHtp1Dialog) self.filterMappingLabel.setObjectName("filterMappingLabel") self.gridLayout_3.addWidget(self.filterMappingLabel, 5, 0, 1, 1) self.gridLayout.addLayout(self.gridLayout_3, 0, 0, 1, 1) self.previewChart = MplWidget(syncHtp1Dialog) self.previewChart.setObjectName("previewChart") self.gridLayout.addWidget(self.previewChart, 0, 1, 1, 1) self.graphButtonsLayout = QtWidgets.QVBoxLayout() self.graphButtonsLayout.setObjectName("graphButtonsLayout") self.limitsButton = QtWidgets.QToolButton(syncHtp1Dialog) self.limitsButton.setObjectName("limitsButton") self.graphButtonsLayout.addWidget(self.limitsButton) self.fullRangeButton = QtWidgets.QToolButton(syncHtp1Dialog) self.fullRangeButton.setObjectName("fullRangeButton") self.graphButtonsLayout.addWidget(self.fullRangeButton) self.subOnlyButton = QtWidgets.QToolButton(syncHtp1Dialog) self.subOnlyButton.setObjectName("subOnlyButton") self.graphButtonsLayout.addWidget(self.subOnlyButton) spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.graphButtonsLayout.addItem(spacerItem) self.gridLayout.addLayout(self.graphButtonsLayout, 0, 2, 1, 1) self.buttonBox = QtWidgets.QDialogButtonBox(syncHtp1Dialog) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Close) self.buttonBox.setObjectName("buttonBox") self.gridLayout.addWidget(self.buttonBox, 1, 0, 1, 3) self.gridLayout.setColumnStretch(0, 1) self.gridLayout.setColumnStretch(1, 3) self.retranslateUi(syncHtp1Dialog) self.buttonBox.accepted.connect(syncHtp1Dialog.accept) # type: ignore self.buttonBox.rejected.connect(syncHtp1Dialog.reject) # type: ignore self.selectBeqButton.clicked.connect( syncHtp1Dialog.select_beq) # type: ignore self.deleteFiltersButton.clicked.connect( syncHtp1Dialog.clear_filters) # type: ignore self.filtersetSelector.currentTextChanged['QString'].connect( syncHtp1Dialog.display_filterset) # type: ignore self.applyFiltersButton.clicked.connect( syncHtp1Dialog.send_filters_to_device) # type: ignore self.connectButton.clicked.connect( syncHtp1Dialog.connect_htp1) # type: ignore self.disconnectButton.clicked.connect( syncHtp1Dialog.disconnect_htp1) # type: ignore self.resyncFilters.clicked.connect( syncHtp1Dialog.resync_filters) # type: ignore self.addFilterButton.clicked.connect( syncHtp1Dialog.add_filter) # type: ignore self.removeFilterButton.clicked.connect( syncHtp1Dialog.remove_filter) # type: ignore self.limitsButton.clicked.connect( syncHtp1Dialog.show_limits) # type: ignore self.showDetailsButton.clicked.connect( syncHtp1Dialog.show_sync_details) # type: ignore self.createPulsesButton.clicked.connect( syncHtp1Dialog.create_pulses) # type: ignore self.fullRangeButton.clicked.connect( syncHtp1Dialog.show_full_range) # type: ignore self.subOnlyButton.clicked.connect( syncHtp1Dialog.show_sub_only) # type: ignore self.loadFromSignalsButton.clicked.connect( syncHtp1Dialog.load_from_signals) # type: ignore self.selectNoneButton.clicked.connect( syncHtp1Dialog.clear_sync_selection) # type: ignore self.selectAllButton.clicked.connect( syncHtp1Dialog.select_all_for_sync) # type: ignore self.filterMapping.itemSelectionChanged.connect( syncHtp1Dialog.on_signal_selected) # type: ignore self.editFilterButton.clicked.connect( syncHtp1Dialog.edit_filter) # type: ignore QtCore.QMetaObject.connectSlotsByName(syncHtp1Dialog)
def setupUi(self, saveReportDialog): saveReportDialog.setObjectName("saveReportDialog") saveReportDialog.resize(1530, 700) self.gridLayout_2 = QtWidgets.QGridLayout(saveReportDialog) self.gridLayout_2.setObjectName("gridLayout_2") self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setSpacing(0) self.horizontalLayout.setObjectName("horizontalLayout") self.toolboxContainer = QtWidgets.QVBoxLayout() self.toolboxContainer.setObjectName("toolboxContainer") self.toolBox = QtWidgets.QToolBox(saveReportDialog) font = QtGui.QFont() font.setBold(False) font.setWeight(50) self.toolBox.setFont(font) self.toolBox.setFrameShape(QtWidgets.QFrame.NoFrame) self.toolBox.setFrameShadow(QtWidgets.QFrame.Plain) self.toolBox.setObjectName("toolBox") self.page = QtWidgets.QWidget() self.page.setGeometry(QtCore.QRect(0, 0, 368, 342)) self.page.setObjectName("page") self.gridLayout_4 = QtWidgets.QGridLayout(self.page) self.gridLayout_4.setObjectName("gridLayout_4") self.gridLayout_3 = QtWidgets.QGridLayout() self.gridLayout_3.setObjectName("gridLayout_3") self.horizontalLayout_6 = QtWidgets.QHBoxLayout() self.horizontalLayout_6.setObjectName("horizontalLayout_6") self.imageWidthPixels = QtWidgets.QSpinBox(self.page) self.imageWidthPixels.setEnabled(False) self.imageWidthPixels.setMinimum(0) self.imageWidthPixels.setMaximum(999999) self.imageWidthPixels.setObjectName("imageWidthPixels") self.horizontalLayout_6.addWidget(self.imageWidthPixels) self.label_3 = QtWidgets.QLabel(self.page) self.label_3.setObjectName("label_3") self.horizontalLayout_6.addWidget(self.label_3) self.imageHeightPixels = QtWidgets.QSpinBox(self.page) self.imageHeightPixels.setEnabled(False) self.imageHeightPixels.setMinimum(0) self.imageHeightPixels.setMaximum(999999) self.imageHeightPixels.setObjectName("imageHeightPixels") self.horizontalLayout_6.addWidget(self.imageHeightPixels) self.horizontalLayout_6.setStretch(0, 1) self.horizontalLayout_6.setStretch(2, 1) self.gridLayout_3.addLayout(self.horizontalLayout_6, 6, 1, 1, 1) self.imageFileLabel = QtWidgets.QLabel(self.page) self.imageFileLabel.setObjectName("imageFileLabel") self.gridLayout_3.addWidget(self.imageFileLabel, 0, 0, 1, 1) self.imagePicker = QtWidgets.QToolButton(self.page) self.imagePicker.setObjectName("imagePicker") self.gridLayout_3.addWidget(self.imagePicker, 0, 2, 1, 1) self.image = QtWidgets.QLineEdit(self.page) self.image.setEnabled(True) self.image.setReadOnly(True) self.image.setObjectName("image") self.gridLayout_3.addWidget(self.image, 0, 1, 1, 1) self.titleLabel = QtWidgets.QLabel(self.page) self.titleLabel.setObjectName("titleLabel") self.gridLayout_3.addWidget(self.titleLabel, 4, 0, 1, 1) self.imageURLLabel = QtWidgets.QLabel(self.page) self.imageURLLabel.setObjectName("imageURLLabel") self.gridLayout_3.addWidget(self.imageURLLabel, 1, 0, 1, 1) self.imageURL = QtWidgets.QLineEdit(self.page) self.imageURL.setObjectName("imageURL") self.gridLayout_3.addWidget(self.imageURL, 1, 1, 1, 1) self.label_4 = QtWidgets.QLabel(self.page) self.label_4.setObjectName("label_4") self.gridLayout_3.addWidget(self.label_4, 2, 0, 1, 1) self.titleFontSizeLabel = QtWidgets.QLabel(self.page) self.titleFontSizeLabel.setObjectName("titleFontSizeLabel") self.gridLayout_3.addWidget(self.titleFontSizeLabel, 5, 0, 1, 1) self.imageAlphaLabel = QtWidgets.QLabel(self.page) self.imageAlphaLabel.setObjectName("imageAlphaLabel") self.gridLayout_3.addWidget(self.imageAlphaLabel, 3, 0, 1, 1) self.horizontalLayout_8 = QtWidgets.QHBoxLayout() self.horizontalLayout_8.setObjectName("horizontalLayout_8") self.nativeImageWidth = QtWidgets.QSpinBox(self.page) self.nativeImageWidth.setEnabled(False) self.nativeImageWidth.setMaximum(99999) self.nativeImageWidth.setObjectName("nativeImageWidth") self.horizontalLayout_8.addWidget(self.nativeImageWidth) self.label_5 = QtWidgets.QLabel(self.page) self.label_5.setObjectName("label_5") self.horizontalLayout_8.addWidget(self.label_5) self.nativeImageHeight = QtWidgets.QSpinBox(self.page) self.nativeImageHeight.setEnabled(False) self.nativeImageHeight.setMaximum(99999) self.nativeImageHeight.setObjectName("nativeImageHeight") self.horizontalLayout_8.addWidget(self.nativeImageHeight) self.horizontalLayout_8.setStretch(0, 1) self.horizontalLayout_8.setStretch(2, 1) self.gridLayout_3.addLayout(self.horizontalLayout_8, 2, 1, 1, 1) self.imageOpacity = QtWidgets.QDoubleSpinBox(self.page) self.imageOpacity.setDecimals(2) self.imageOpacity.setMinimum(0.01) self.imageOpacity.setMaximum(1.0) self.imageOpacity.setSingleStep(0.01) self.imageOpacity.setProperty("value", 1.0) self.imageOpacity.setObjectName("imageOpacity") self.gridLayout_3.addWidget(self.imageOpacity, 3, 1, 1, 1) self.loadURL = QtWidgets.QToolButton(self.page) self.loadURL.setObjectName("loadURL") self.gridLayout_3.addWidget(self.loadURL, 1, 2, 1, 1) self.titleFontSize = QtWidgets.QSpinBox(self.page) self.titleFontSize.setObjectName("titleFontSize") self.gridLayout_3.addWidget(self.titleFontSize, 5, 1, 1, 1) self.widthLabel = QtWidgets.QLabel(self.page) self.widthLabel.setObjectName("widthLabel") self.gridLayout_3.addWidget(self.widthLabel, 6, 0, 1, 1) self.title = QtWidgets.QLineEdit(self.page) self.title.setObjectName("title") self.gridLayout_3.addWidget(self.title, 4, 1, 1, 1) self.imageBorder = QtWidgets.QCheckBox(self.page) self.imageBorder.setObjectName("imageBorder") self.gridLayout_3.addWidget(self.imageBorder, 7, 1, 1, 1) self.gridLayout_4.addLayout(self.gridLayout_3, 0, 0, 1, 1) spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout_4.addItem(spacerItem, 1, 0, 1, 1) self.toolBox.addItem(self.page, "") self.page_2 = QtWidgets.QWidget() self.page_2.setGeometry(QtCore.QRect(0, 0, 368, 310)) self.page_2.setObjectName("page_2") self.gridLayout_6 = QtWidgets.QGridLayout(self.page_2) self.gridLayout_6.setObjectName("gridLayout_6") self.gridLayout_5 = QtWidgets.QGridLayout() self.gridLayout_5.setObjectName("gridLayout_5") self.tableAlphaLabel = QtWidgets.QLabel(self.page_2) self.tableAlphaLabel.setObjectName("tableAlphaLabel") self.gridLayout_5.addWidget(self.tableAlphaLabel, 5, 0, 1, 1) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.x0 = QtWidgets.QDoubleSpinBox(self.page_2) self.x0.setDecimals(3) self.x0.setMaximum(0.999) self.x0.setSingleStep(0.001) self.x0.setProperty("value", 0.748) self.x0.setObjectName("x0") self.horizontalLayout_3.addWidget(self.x0) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_3.addItem(spacerItem1) self.x1 = QtWidgets.QDoubleSpinBox(self.page_2) self.x1.setDecimals(3) self.x1.setMaximum(1.0) self.x1.setSingleStep(0.001) self.x1.setProperty("value", 1.0) self.x1.setObjectName("x1") self.horizontalLayout_3.addWidget(self.x1) self.gridLayout_5.addLayout(self.horizontalLayout_3, 2, 1, 1, 1) self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_4.addItem(spacerItem2) self.y0 = QtWidgets.QDoubleSpinBox(self.page_2) self.y0.setDecimals(3) self.y0.setMaximum(0.999) self.y0.setSingleStep(0.001) self.y0.setProperty("value", 0.75) self.y0.setObjectName("y0") self.horizontalLayout_4.addWidget(self.y0) spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_4.addItem(spacerItem3) self.gridLayout_5.addLayout(self.horizontalLayout_4, 3, 1, 1, 1) self.tableRowHeightLabel = QtWidgets.QLabel(self.page_2) self.tableRowHeightLabel.setObjectName("tableRowHeightLabel") self.gridLayout_5.addWidget(self.tableRowHeightLabel, 0, 0, 1, 1) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") spacerItem4 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem4) self.y1 = QtWidgets.QDoubleSpinBox(self.page_2) self.y1.setDecimals(3) self.y1.setMaximum(1.0) self.y1.setSingleStep(0.001) self.y1.setProperty("value", 1.0) self.y1.setObjectName("y1") self.horizontalLayout_2.addWidget(self.y1) spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_2.addItem(spacerItem5) self.gridLayout_5.addLayout(self.horizontalLayout_2, 1, 1, 1, 1) self.filterRowHeightMultiplier = QtWidgets.QDoubleSpinBox(self.page_2) self.filterRowHeightMultiplier.setMaximum(3.0) self.filterRowHeightMultiplier.setSingleStep(0.01) self.filterRowHeightMultiplier.setProperty("value", 1.2) self.filterRowHeightMultiplier.setObjectName( "filterRowHeightMultiplier") self.gridLayout_5.addWidget(self.filterRowHeightMultiplier, 0, 1, 1, 1) self.tableFontSizeLabel = QtWidgets.QLabel(self.page_2) self.tableFontSizeLabel.setObjectName("tableFontSizeLabel") self.gridLayout_5.addWidget(self.tableFontSizeLabel, 6, 0, 1, 1) self.showTableHeader = QtWidgets.QCheckBox(self.page_2) self.showTableHeader.setObjectName("showTableHeader") self.gridLayout_5.addWidget(self.showTableHeader, 4, 1, 1, 1) self.tablePositionLabel = QtWidgets.QLabel(self.page_2) self.tablePositionLabel.setObjectName("tablePositionLabel") self.gridLayout_5.addWidget(self.tablePositionLabel, 1, 0, 3, 1) self.tableAlpha = QtWidgets.QDoubleSpinBox(self.page_2) self.tableAlpha.setMinimum(0.01) self.tableAlpha.setMaximum(1.0) self.tableAlpha.setSingleStep(0.01) self.tableAlpha.setProperty("value", 1.0) self.tableAlpha.setObjectName("tableAlpha") self.gridLayout_5.addWidget(self.tableAlpha, 5, 1, 1, 1) self.tableFontSize = QtWidgets.QSpinBox(self.page_2) self.tableFontSize.setMaximum(24) self.tableFontSize.setProperty("value", 10) self.tableFontSize.setObjectName("tableFontSize") self.gridLayout_5.addWidget(self.tableFontSize, 6, 1, 1, 1) self.gridLayout_6.addLayout(self.gridLayout_5, 0, 0, 1, 1) spacerItem6 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout_6.addItem(spacerItem6, 1, 0, 1, 1) self.toolBox.addItem(self.page_2, "") self.page_3 = QtWidgets.QWidget() self.page_3.setGeometry(QtCore.QRect(0, 0, 410, 308)) self.page_3.setObjectName("page_3") self.gridLayout_8 = QtWidgets.QGridLayout(self.page_3) self.gridLayout_8.setObjectName("gridLayout_8") self.gridLayout_7 = QtWidgets.QGridLayout() self.gridLayout_7.setObjectName("gridLayout_7") self.label_6 = QtWidgets.QLabel(self.page_3) self.label_6.setObjectName("label_6") self.gridLayout_7.addWidget(self.label_6, 5, 0, 1, 1) self.majorSplitRatioLabel = QtWidgets.QLabel(self.page_3) self.majorSplitRatioLabel.setObjectName("majorSplitRatioLabel") self.gridLayout_7.addWidget(self.majorSplitRatioLabel, 0, 0, 1, 1) self.label_7 = QtWidgets.QLabel(self.page_3) self.label_7.setObjectName("label_7") self.gridLayout_7.addWidget(self.label_7, 3, 0, 1, 1) self.heightSpacing = QtWidgets.QDoubleSpinBox(self.page_3) self.heightSpacing.setMaximum(1.0) self.heightSpacing.setSingleStep(0.01) self.heightSpacing.setObjectName("heightSpacing") self.gridLayout_7.addWidget(self.heightSpacing, 6, 1, 1, 1) spacerItem7 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout_7.addItem(spacerItem7, 7, 0, 1, 3) self.majorSplitRatio = QtWidgets.QDoubleSpinBox(self.page_3) self.majorSplitRatio.setDecimals(3) self.majorSplitRatio.setMinimum(0.1) self.majorSplitRatio.setMaximum(10.0) self.majorSplitRatio.setSingleStep(0.001) self.majorSplitRatio.setProperty("value", 1.0) self.majorSplitRatio.setObjectName("majorSplitRatio") self.gridLayout_7.addWidget(self.majorSplitRatio, 0, 1, 1, 1) self.widthSpacing = QtWidgets.QDoubleSpinBox(self.page_3) self.widthSpacing.setMaximum(1.0) self.widthSpacing.setSingleStep(0.01) self.widthSpacing.setObjectName("widthSpacing") self.gridLayout_7.addWidget(self.widthSpacing, 5, 1, 1, 1) self.label_8 = QtWidgets.QLabel(self.page_3) self.label_8.setObjectName("label_8") self.gridLayout_7.addWidget(self.label_8, 6, 0, 1, 1) self.label = QtWidgets.QLabel(self.page_3) self.label.setObjectName("label") self.gridLayout_7.addWidget(self.label, 4, 0, 1, 1) self.chartSplitLabel = QtWidgets.QLabel(self.page_3) self.chartSplitLabel.setObjectName("chartSplitLabel") self.gridLayout_7.addWidget(self.chartSplitLabel, 2, 0, 1, 1) self.chartLayout = QtWidgets.QComboBox(self.page_3) self.chartLayout.setObjectName("chartLayout") self.chartLayout.addItem("") self.chartLayout.addItem("") self.chartLayout.addItem("") self.chartLayout.addItem("") self.chartLayout.addItem("") self.chartLayout.addItem("") self.chartLayout.addItem("") self.chartLayout.addItem("") self.chartLayout.addItem("") self.chartLayout.addItem("") self.chartLayout.addItem("") self.chartLayout.addItem("") self.chartLayout.addItem("") self.chartLayout.addItem("") self.chartLayout.addItem("") self.chartLayout.addItem("") self.chartLayout.addItem("") self.gridLayout_7.addWidget(self.chartLayout, 3, 1, 1, 1) self.chartSplit = QtWidgets.QComboBox(self.page_3) self.chartSplit.setObjectName("chartSplit") self.chartSplit.addItem("") self.chartSplit.addItem("") self.gridLayout_7.addWidget(self.chartSplit, 2, 1, 1, 1) self.horizontalLayout_7 = QtWidgets.QHBoxLayout() self.horizontalLayout_7.setObjectName("horizontalLayout_7") self.widthPixels = QtWidgets.QSpinBox(self.page_3) self.widthPixels.setMinimum(512) self.widthPixels.setMaximum(8192) self.widthPixels.setObjectName("widthPixels") self.horizontalLayout_7.addWidget(self.widthPixels) self.label_2 = QtWidgets.QLabel(self.page_3) self.label_2.setObjectName("label_2") self.horizontalLayout_7.addWidget(self.label_2) self.heightPixels = QtWidgets.QSpinBox(self.page_3) self.heightPixels.setMinimum(512) self.heightPixels.setMaximum(8192) self.heightPixels.setObjectName("heightPixels") self.horizontalLayout_7.addWidget(self.heightPixels) self.horizontalLayout_7.setStretch(0, 1) self.horizontalLayout_7.setStretch(2, 1) self.gridLayout_7.addLayout(self.horizontalLayout_7, 4, 1, 1, 1) self.minorSplitRatio = QtWidgets.QDoubleSpinBox(self.page_3) self.minorSplitRatio.setDecimals(3) self.minorSplitRatio.setMinimum(0.001) self.minorSplitRatio.setMaximum(10.0) self.minorSplitRatio.setSingleStep(0.001) self.minorSplitRatio.setProperty("value", 3.0) self.minorSplitRatio.setObjectName("minorSplitRatio") self.gridLayout_7.addWidget(self.minorSplitRatio, 1, 1, 1, 1) self.label_9 = QtWidgets.QLabel(self.page_3) self.label_9.setObjectName("label_9") self.gridLayout_7.addWidget(self.label_9, 1, 0, 1, 1) self.snapToImageSize = QtWidgets.QToolButton(self.page_3) self.snapToImageSize.setObjectName("snapToImageSize") self.gridLayout_7.addWidget(self.snapToImageSize, 5, 2, 1, 1) self.gridLayout_8.addLayout(self.gridLayout_7, 0, 0, 1, 1) self.toolBox.addItem(self.page_3, "") self.page_4 = QtWidgets.QWidget() self.page_4.setGeometry(QtCore.QRect(0, 0, 410, 329)) self.page_4.setObjectName("page_4") self.gridLayout_10 = QtWidgets.QGridLayout(self.page_4) self.gridLayout_10.setObjectName("gridLayout_10") self.gridLayout_9 = QtWidgets.QGridLayout() self.gridLayout_9.setObjectName("gridLayout_9") self.curves = QtWidgets.QListWidget(self.page_4) self.curves.setSelectionMode( QtWidgets.QAbstractItemView.MultiSelection) self.curves.setObjectName("curves") self.gridLayout_9.addWidget(self.curves, 1, 1, 1, 1) self.limitsButton = QtWidgets.QToolButton(self.page_4) self.limitsButton.setObjectName("limitsButton") self.gridLayout_9.addWidget(self.limitsButton, 0, 2, 1, 1) self.curvesLabel = QtWidgets.QLabel(self.page_4) self.curvesLabel.setObjectName("curvesLabel") self.gridLayout_9.addWidget(self.curvesLabel, 1, 0, 1, 1) self.gridAlphaLabel = QtWidgets.QLabel(self.page_4) self.gridAlphaLabel.setObjectName("gridAlphaLabel") self.gridLayout_9.addWidget(self.gridAlphaLabel, 0, 0, 1, 1) self.gridOpacity = QtWidgets.QDoubleSpinBox(self.page_4) self.gridOpacity.setMaximum(1.0) self.gridOpacity.setSingleStep(0.01) self.gridOpacity.setProperty("value", 0.4) self.gridOpacity.setObjectName("gridOpacity") self.gridLayout_9.addWidget(self.gridOpacity, 0, 1, 1, 1) self.saveLayout = QtWidgets.QPushButton(self.page_4) self.saveLayout.setObjectName("saveLayout") self.gridLayout_9.addWidget(self.saveLayout, 3, 1, 1, 1) self.showLegend = QtWidgets.QCheckBox(self.page_4) self.showLegend.setObjectName("showLegend") self.gridLayout_9.addWidget(self.showLegend, 2, 1, 1, 1) self.gridLayout_10.addLayout(self.gridLayout_9, 0, 0, 1, 1) self.toolBox.addItem(self.page_4, "") self.toolboxContainer.addWidget(self.toolBox) spacerItem8 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.toolboxContainer.addItem(spacerItem8) self.buttonBox = QtWidgets.QDialogButtonBox(saveReportDialog) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons( QtWidgets.QDialogButtonBox.Close | QtWidgets.QDialogButtonBox.RestoreDefaults | QtWidgets.QDialogButtonBox.Save) self.buttonBox.setObjectName("buttonBox") self.toolboxContainer.addWidget(self.buttonBox) self.horizontalLayout.addLayout(self.toolboxContainer) self.preview = MplWidget(saveReportDialog) self.preview.setObjectName("preview") self.horizontalLayout.addWidget(self.preview) self.horizontalLayout.setStretch(1, 1) self.gridLayout_2.addLayout(self.horizontalLayout, 0, 1, 1, 1) self.retranslateUi(saveReportDialog) self.toolBox.setCurrentIndex(0) self.chartLayout.setCurrentIndex(0) self.chartSplit.setCurrentIndex(1) self.buttonBox.accepted.connect(saveReportDialog.accept) self.buttonBox.rejected.connect(saveReportDialog.reject) self.curves.itemSelectionChanged.connect(saveReportDialog.set_selected) self.widthPixels.valueChanged['int'].connect( saveReportDialog.update_height) self.showLegend.clicked.connect(saveReportDialog.redraw) self.imagePicker.clicked.connect(saveReportDialog.choose_image) self.title.textChanged['QString'].connect(saveReportDialog.set_title) self.majorSplitRatio.valueChanged['double'].connect( saveReportDialog.redraw_all_axes) self.chartSplit.currentIndexChanged['int'].connect( saveReportDialog.redraw_all_axes) self.limitsButton.clicked.connect(saveReportDialog.show_limits) self.chartSplit.currentIndexChanged['int'].connect( saveReportDialog.redraw_all_axes) self.chartLayout.currentIndexChanged['int'].connect( saveReportDialog.redraw_all_axes) self.minorSplitRatio.valueChanged['double'].connect( saveReportDialog.redraw_all_axes) self.gridOpacity.valueChanged['double'].connect( saveReportDialog.set_grid_opacity) self.imageOpacity.valueChanged['double'].connect( saveReportDialog.set_image_opacity) self.filterRowHeightMultiplier.valueChanged['double'].connect( saveReportDialog.replace_table) self.y0.valueChanged['double'].connect(saveReportDialog.replace_table) self.x0.valueChanged['double'].connect(saveReportDialog.replace_table) self.y1.valueChanged['double'].connect(saveReportDialog.replace_table) self.x1.valueChanged['double'].connect(saveReportDialog.replace_table) self.saveLayout.clicked.connect(saveReportDialog.save_layout) self.imageURL.textChanged['QString'].connect( saveReportDialog.update_image_url) self.loadURL.clicked.connect(saveReportDialog.load_image_from_url) self.tableAlpha.valueChanged['double'].connect( saveReportDialog.replace_table) self.tableFontSize.valueChanged['int'].connect( saveReportDialog.replace_table) self.showTableHeader.clicked.connect(saveReportDialog.replace_table) self.imageBorder.clicked.connect(saveReportDialog.set_image_border) self.widthSpacing.valueChanged['double'].connect( saveReportDialog.redraw_all_axes) self.heightSpacing.valueChanged['double'].connect( saveReportDialog.redraw_all_axes) self.snapToImageSize.clicked.connect( saveReportDialog.snap_to_image_size) self.titleFontSize.valueChanged['int'].connect( saveReportDialog.set_title_size) QtCore.QMetaObject.connectSlotsByName(saveReportDialog) saveReportDialog.setTabOrder(self.x0, self.y0) saveReportDialog.setTabOrder(self.y0, self.x1) saveReportDialog.setTabOrder(self.x1, self.y1) saveReportDialog.setTabOrder(self.y1, self.preview)
def setupUi(self, xoDialog): xoDialog.setObjectName("xoDialog") xoDialog.resize(886, 820) self.verticalLayout = QtWidgets.QVBoxLayout(xoDialog) self.verticalLayout.setObjectName("verticalLayout") self.chartLayout = QtWidgets.QHBoxLayout() self.chartLayout.setObjectName("chartLayout") self.previewChart = MplWidget(xoDialog) self.previewChart.setObjectName("previewChart") self.chartLayout.addWidget(self.previewChart) self.chartControlsLayout = QtWidgets.QVBoxLayout() self.chartControlsLayout.setObjectName("chartControlsLayout") self.limitsButton = QtWidgets.QToolButton(xoDialog) self.limitsButton.setObjectName("limitsButton") self.chartControlsLayout.addWidget(self.limitsButton) self.showPhase = QtWidgets.QToolButton(xoDialog) self.showPhase.setCheckable(True) self.showPhase.setObjectName("showPhase") self.chartControlsLayout.addWidget(self.showPhase) spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.chartControlsLayout.addItem(spacerItem) self.chartLayout.addLayout(self.chartControlsLayout) self.verticalLayout.addLayout(self.chartLayout) self.xoContainerLayout = QtWidgets.QGridLayout() self.xoContainerLayout.setObjectName("xoContainerLayout") self.peqScrollArea = QtWidgets.QScrollArea(xoDialog) self.peqScrollArea.setSizeAdjustPolicy( QtWidgets.QAbstractScrollArea.AdjustToContents) self.peqScrollArea.setWidgetResizable(True) self.peqScrollArea.setObjectName("peqScrollArea") self.channelsFrame = QtWidgets.QFrame() self.channelsFrame.setGeometry(QtCore.QRect(0, 0, 868, 257)) self.channelsFrame.setObjectName("channelsFrame") self.channelsLayout = QtWidgets.QVBoxLayout(self.channelsFrame) self.channelsLayout.setObjectName("channelsLayout") self.peqScrollArea.setWidget(self.channelsFrame) self.xoContainerLayout.addWidget(self.peqScrollArea, 1, 0, 1, 5) self.lfeAdjustLayout = QtWidgets.QHBoxLayout() self.lfeAdjustLayout.setObjectName("lfeAdjustLayout") self.lfeAdjustLabel = QtWidgets.QLabel(xoDialog) self.lfeAdjustLabel.setEnabled(True) self.lfeAdjustLabel.setObjectName("lfeAdjustLabel") self.lfeAdjustLayout.addWidget(self.lfeAdjustLabel) self.lfeAdjust = QtWidgets.QSpinBox(xoDialog) self.lfeAdjust.setEnabled(True) self.lfeAdjust.setMinimum(1) self.lfeAdjust.setMaximum(9) self.lfeAdjust.setProperty("value", 5) self.lfeAdjust.setObjectName("lfeAdjust") self.lfeAdjustLayout.addWidget(self.lfeAdjust) self.showFiltersButton = QtWidgets.QToolButton(xoDialog) self.showFiltersButton.setObjectName("showFiltersButton") self.lfeAdjustLayout.addWidget(self.showFiltersButton) self.xoContainerLayout.addLayout(self.lfeAdjustLayout, 0, 4, 1, 1) self.showMatrixButton = QtWidgets.QPushButton(xoDialog) self.showMatrixButton.setObjectName("showMatrixButton") self.xoContainerLayout.addWidget(self.showMatrixButton, 0, 1, 1, 1) self.lfeChannelSelectorLabel = QtWidgets.QLabel(xoDialog) self.lfeChannelSelectorLabel.setObjectName("lfeChannelSelectorLabel") self.xoContainerLayout.addWidget(self.lfeChannelSelectorLabel, 0, 2, 1, 1) self.linkChannelsButton = QtWidgets.QPushButton(xoDialog) self.linkChannelsButton.setObjectName("linkChannelsButton") self.xoContainerLayout.addWidget(self.linkChannelsButton, 0, 0, 1, 1) self.lfeChannelSelector = QtWidgets.QComboBox(xoDialog) self.lfeChannelSelector.setObjectName("lfeChannelSelector") self.xoContainerLayout.addWidget(self.lfeChannelSelector, 0, 3, 1, 1) self.xoContainerLayout.setColumnStretch(0, 1) self.xoContainerLayout.setColumnStretch(1, 1) self.xoContainerLayout.setColumnStretch(4, 1) self.verticalLayout.addLayout(self.xoContainerLayout) self.buttonBox = QtWidgets.QDialogButtonBox(xoDialog) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel | QtWidgets.QDialogButtonBox.Save) self.buttonBox.setObjectName("buttonBox") self.verticalLayout.addWidget(self.buttonBox) self.verticalLayout.setStretch(0, 3) self.verticalLayout.setStretch(1, 2) self.retranslateUi(xoDialog) self.buttonBox.accepted.connect(xoDialog.accept) # type: ignore self.buttonBox.rejected.connect(xoDialog.reject) # type: ignore self.showMatrixButton.clicked.connect( xoDialog.show_matrix) # type: ignore QtCore.QMetaObject.connectSlotsByName(xoDialog) xoDialog.setTabOrder(self.linkChannelsButton, self.showMatrixButton) xoDialog.setTabOrder(self.showMatrixButton, self.lfeAdjust) xoDialog.setTabOrder(self.lfeAdjust, self.peqScrollArea) xoDialog.setTabOrder(self.peqScrollArea, self.limitsButton) xoDialog.setTabOrder(self.limitsButton, self.showPhase) xoDialog.setTabOrder(self.showPhase, self.previewChart)
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.showImpulseButton = QtWidgets.QToolButton(self.chartWrapper) self.showImpulseButton.setObjectName("showImpulseButton") self.chartControlLayout.addWidget(self.showImpulseButton) 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 self.showImpulseButton.clicked.connect(jriverDspDialog.show_impulse) # 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 setupUi(self, editFilterDialog): editFilterDialog.setObjectName("editFilterDialog") editFilterDialog.resize(1390, 982) self.panes = QtWidgets.QGridLayout(editFilterDialog) self.panes.setObjectName("panes") self.previewChart = MplWidget(editFilterDialog) self.previewChart.setObjectName("previewChart") self.panes.addWidget(self.previewChart, 0, 1, 1, 1) self.graphButtonsLayout = QtWidgets.QVBoxLayout() self.graphButtonsLayout.setObjectName("graphButtonsLayout") self.limitsButton = QtWidgets.QToolButton(editFilterDialog) self.limitsButton.setObjectName("limitsButton") self.graphButtonsLayout.addWidget(self.limitsButton) self.fullRangeButton = QtWidgets.QToolButton(editFilterDialog) self.fullRangeButton.setObjectName("fullRangeButton") self.graphButtonsLayout.addWidget(self.fullRangeButton) self.subOnlyButton = QtWidgets.QToolButton(editFilterDialog) self.subOnlyButton.setObjectName("subOnlyButton") self.graphButtonsLayout.addWidget(self.subOnlyButton) spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.graphButtonsLayout.addItem(spacerItem) self.panes.addLayout(self.graphButtonsLayout, 0, 2, 1, 1) self.paramsPane = QtWidgets.QGridLayout() self.paramsPane.setObjectName("paramsPane") self.filterCountLabel = QtWidgets.QLabel(editFilterDialog) self.filterCountLabel.setObjectName("filterCountLabel") self.paramsPane.addWidget(self.filterCountLabel, 10, 0, 1, 1) self.filterType = QtWidgets.QComboBox(editFilterDialog) self.filterType.setObjectName("filterType") self.filterType.addItem("") self.filterType.addItem("") self.filterType.addItem("") self.filterType.addItem("") self.filterType.addItem("") self.filterType.addItem("") self.filterType.addItem("") self.filterType.addItem("") self.filterType.addItem("") self.filterType.addItem("") self.paramsPane.addWidget(self.filterType, 3, 1, 1, 1) spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.paramsPane.addItem(spacerItem1, 15, 1, 1, 1) self.gainLabel = QtWidgets.QLabel(editFilterDialog) self.gainLabel.setObjectName("gainLabel") self.paramsPane.addWidget(self.gainLabel, 9, 0, 1, 1) self.ltInLabel = QtWidgets.QLabel(editFilterDialog) self.ltInLabel.setObjectName("ltInLabel") self.paramsPane.addWidget(self.ltInLabel, 11, 0, 1, 1) self.headerLabel = QtWidgets.QLabel(editFilterDialog) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.headerLabel.setFont(font) self.headerLabel.setFrameShape(QtWidgets.QFrame.Box) self.headerLabel.setFrameShadow(QtWidgets.QFrame.Sunken) self.headerLabel.setText("") self.headerLabel.setAlignment(QtCore.Qt.AlignCenter) self.headerLabel.setObjectName("headerLabel") self.paramsPane.addWidget(self.headerLabel, 1, 0, 1, 2) self.snapLayout = QtWidgets.QHBoxLayout() self.snapLayout.setObjectName("snapLayout") self.snapLabel = QtWidgets.QLabel(editFilterDialog) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.snapLabel.setFont(font) self.snapLabel.setObjectName("snapLabel") self.snapLayout.addWidget(self.snapLabel) self.snapFilterButton = QtWidgets.QToolButton(editFilterDialog) self.snapFilterButton.setObjectName("snapFilterButton") self.snapLayout.addWidget(self.snapFilterButton) self.loadSnapButton = QtWidgets.QToolButton(editFilterDialog) self.loadSnapButton.setObjectName("loadSnapButton") self.snapLayout.addWidget(self.loadSnapButton) self.acceptSnapButton = QtWidgets.QToolButton(editFilterDialog) self.acceptSnapButton.setObjectName("acceptSnapButton") self.snapLayout.addWidget(self.acceptSnapButton) self.resetButton = QtWidgets.QToolButton(editFilterDialog) self.resetButton.setObjectName("resetButton") self.snapLayout.addWidget(self.resetButton) self.paramsPane.addLayout(self.snapLayout, 16, 0, 1, 2) self.passFilterType = QtWidgets.QComboBox(editFilterDialog) self.passFilterType.setEnabled(True) self.passFilterType.setObjectName("passFilterType") self.paramsPane.addWidget(self.passFilterType, 4, 1, 1, 1) self.qStepButton = QtWidgets.QToolButton(editFilterDialog) self.qStepButton.setObjectName("qStepButton") self.paramsPane.addWidget(self.qStepButton, 7, 2, 1, 1) self.freqStepButton = QtWidgets.QToolButton(editFilterDialog) self.freqStepButton.setObjectName("freqStepButton") self.paramsPane.addWidget(self.freqStepButton, 6, 2, 1, 1) self.filterGain = NoFillDoubleSpinBox(editFilterDialog) self.filterGain.setDecimals(2) self.filterGain.setMinimum(-30.0) self.filterGain.setMaximum(30.0) self.filterGain.setSingleStep(0.01) self.filterGain.setObjectName("filterGain") self.paramsPane.addWidget(self.filterGain, 9, 1, 1, 1) self.snapshotFilterView = QtWidgets.QTableView(editFilterDialog) self.snapshotFilterView.setSelectionMode( QtWidgets.QAbstractItemView.SingleSelection) self.snapshotFilterView.setSelectionBehavior( QtWidgets.QAbstractItemView.SelectRows) self.snapshotFilterView.setObjectName("snapshotFilterView") self.paramsPane.addWidget(self.snapshotFilterView, 18, 0, 1, 2) self.freqLabel = QtWidgets.QLabel(editFilterDialog) self.freqLabel.setObjectName("freqLabel") self.paramsPane.addWidget(self.freqLabel, 6, 0, 1, 1) self.ltOutLayout = QtWidgets.QHBoxLayout() self.ltOutLayout.setObjectName("ltOutLayout") self.fp = NoFillDoubleSpinBox(editFilterDialog) self.fp.setDecimals(1) self.fp.setMinimum(1.0) self.fp.setMaximum(400.0) self.fp.setSingleStep(0.1) self.fp.setProperty("value", 30.0) self.fp.setObjectName("fp") self.ltOutLayout.addWidget(self.fp) self.qp = NoFillDoubleSpinBox(editFilterDialog) self.qp.setDecimals(3) self.qp.setMinimum(0.001) self.qp.setMaximum(3.0) self.qp.setSingleStep(0.001) self.qp.setProperty("value", 0.707) self.qp.setObjectName("qp") self.ltOutLayout.addWidget(self.qp) self.paramsPane.addLayout(self.ltOutLayout, 12, 1, 1, 1) self.typeLabel = QtWidgets.QLabel(editFilterDialog) self.typeLabel.setObjectName("typeLabel") self.paramsPane.addWidget(self.typeLabel, 3, 0, 1, 1) self.filterQ = NoFillDoubleSpinBox(editFilterDialog) self.filterQ.setCorrectionMode( QtWidgets.QAbstractSpinBox.CorrectToNearestValue) self.filterQ.setDecimals(4) self.filterQ.setMinimum(0.001) self.filterQ.setMaximum(20.0) self.filterQ.setSingleStep(0.0001) self.filterQ.setProperty("value", 0.7071) self.filterQ.setObjectName("filterQ") self.paramsPane.addWidget(self.filterQ, 7, 1, 1, 1) self.workingViewButtonWidget = QtWidgets.QWidget(editFilterDialog) self.workingViewButtonWidget.setObjectName("workingViewButtonWidget") self.workingViewButtonLayout = QtWidgets.QVBoxLayout( self.workingViewButtonWidget) self.workingViewButtonLayout.setObjectName("workingViewButtonLayout") self.addWorkingRowButton = QtWidgets.QToolButton( self.workingViewButtonWidget) self.addWorkingRowButton.setObjectName("addWorkingRowButton") self.workingViewButtonLayout.addWidget(self.addWorkingRowButton) self.removeWorkingRowButton = QtWidgets.QToolButton( self.workingViewButtonWidget) self.removeWorkingRowButton.setObjectName("removeWorkingRowButton") self.workingViewButtonLayout.addWidget(self.removeWorkingRowButton) self.pasteWorkingRowButton = QtWidgets.QToolButton( self.workingViewButtonWidget) self.pasteWorkingRowButton.setObjectName("pasteWorkingRowButton") self.workingViewButtonLayout.addWidget(self.pasteWorkingRowButton) self.importWorkingButton = QtWidgets.QToolButton( self.workingViewButtonWidget) self.importWorkingButton.setObjectName("importWorkingButton") self.workingViewButtonLayout.addWidget(self.importWorkingButton) self.paramsPane.addWidget(self.workingViewButtonWidget, 0, 2, 1, 1) self.orderLabel = QtWidgets.QLabel(editFilterDialog) self.orderLabel.setObjectName("orderLabel") self.paramsPane.addWidget(self.orderLabel, 5, 0, 1, 1) self.filterS = NoFillDoubleSpinBox(editFilterDialog) self.filterS.setEnabled(False) self.filterS.setDecimals(4) self.filterS.setMinimum(0.1) self.filterS.setMaximum(100.0) self.filterS.setSingleStep(0.0001) self.filterS.setProperty("value", 1.0) self.filterS.setObjectName("filterS") self.paramsPane.addWidget(self.filterS, 8, 1, 1, 1) self.snapshotViewButtonWidget = QtWidgets.QWidget(editFilterDialog) self.snapshotViewButtonWidget.setObjectName("snapshotViewButtonWidget") self.snapshotViewButtonLayout = QtWidgets.QVBoxLayout( self.snapshotViewButtonWidget) self.snapshotViewButtonLayout.setObjectName("snapshotViewButtonLayout") self.addSnapshotRowButton = QtWidgets.QToolButton( self.snapshotViewButtonWidget) self.addSnapshotRowButton.setObjectName("addSnapshotRowButton") self.snapshotViewButtonLayout.addWidget(self.addSnapshotRowButton) self.removeSnapshotRowButton = QtWidgets.QToolButton( self.snapshotViewButtonWidget) self.removeSnapshotRowButton.setObjectName("removeSnapshotRowButton") self.snapshotViewButtonLayout.addWidget(self.removeSnapshotRowButton) self.pasteSnapshotRowButton = QtWidgets.QToolButton( self.snapshotViewButtonWidget) self.pasteSnapshotRowButton.setObjectName("pasteSnapshotRowButton") self.snapshotViewButtonLayout.addWidget(self.pasteSnapshotRowButton) self.importSnapshotButton = QtWidgets.QToolButton( self.snapshotViewButtonWidget) self.importSnapshotButton.setObjectName("importSnapshotButton") self.snapshotViewButtonLayout.addWidget(self.importSnapshotButton) self.paramsPane.addWidget(self.snapshotViewButtonWidget, 18, 2, 1, 1) self.sStepButton = QtWidgets.QToolButton(editFilterDialog) self.sStepButton.setObjectName("sStepButton") self.paramsPane.addWidget(self.sStepButton, 8, 2, 1, 1) self.ltInLayout = QtWidgets.QHBoxLayout() self.ltInLayout.setObjectName("ltInLayout") self.f0 = NoFillDoubleSpinBox(editFilterDialog) self.f0.setDecimals(1) self.f0.setMinimum(1.0) self.f0.setMaximum(400.0) self.f0.setSingleStep(0.1) self.f0.setProperty("value", 40.0) self.f0.setObjectName("f0") self.ltInLayout.addWidget(self.f0) self.q0 = NoFillDoubleSpinBox(editFilterDialog) self.q0.setDecimals(3) self.q0.setMinimum(0.001) self.q0.setMaximum(3.0) self.q0.setSingleStep(0.001) self.q0.setProperty("value", 0.707) self.q0.setObjectName("q0") self.ltInLayout.addWidget(self.q0) self.paramsPane.addLayout(self.ltInLayout, 11, 1, 1, 1) self.filterQLabel = QtWidgets.QLabel(editFilterDialog) self.filterQLabel.setObjectName("filterQLabel") self.paramsPane.addWidget(self.filterQLabel, 7, 0, 1, 1) self.optimiseLayout = QtWidgets.QHBoxLayout() self.optimiseLayout.setObjectName("optimiseLayout") self.optimiseLabel = QtWidgets.QLabel(editFilterDialog) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.optimiseLabel.setFont(font) self.optimiseLabel.setObjectName("optimiseLabel") self.optimiseLayout.addWidget(self.optimiseLabel) self.optimiseButton = QtWidgets.QToolButton(editFilterDialog) self.optimiseButton.setObjectName("optimiseButton") self.optimiseLayout.addWidget(self.optimiseButton) self.targetBiquadCount = QtWidgets.QSpinBox(editFilterDialog) self.targetBiquadCount.setMinimum(1) self.targetBiquadCount.setMaximum(20) self.targetBiquadCount.setProperty("value", 6) self.targetBiquadCount.setObjectName("targetBiquadCount") self.optimiseLayout.addWidget(self.targetBiquadCount) self.paramsPane.addLayout(self.optimiseLayout, 17, 0, 1, 2) self.buttonLayout = QtWidgets.QHBoxLayout() self.buttonLayout.setObjectName("buttonLayout") self.saveButton = QtWidgets.QToolButton(editFilterDialog) self.saveButton.setText("") self.saveButton.setObjectName("saveButton") self.buttonLayout.addWidget(self.saveButton) self.exitButton = QtWidgets.QToolButton(editFilterDialog) self.exitButton.setObjectName("exitButton") self.buttonLayout.addWidget(self.exitButton) self.paramsPane.addLayout(self.buttonLayout, 14, 0, 1, 2) self.ltOutLabel = QtWidgets.QLabel(editFilterDialog) self.ltOutLabel.setObjectName("ltOutLabel") self.paramsPane.addWidget(self.ltOutLabel, 12, 0, 1, 1) self.gainStepButton = QtWidgets.QToolButton(editFilterDialog) self.gainStepButton.setObjectName("gainStepButton") self.paramsPane.addWidget(self.gainStepButton, 9, 2, 1, 1) self.sLabel = QtWidgets.QLabel(editFilterDialog) self.sLabel.setObjectName("sLabel") self.paramsPane.addWidget(self.sLabel, 8, 0, 1, 1) self.freq = NoFillDoubleSpinBox(editFilterDialog) self.freq.setDecimals(2) self.freq.setMinimum(1.0) self.freq.setMaximum(24000.0) self.freq.setSingleStep(0.1) self.freq.setProperty("value", 40.0) self.freq.setObjectName("freq") self.paramsPane.addWidget(self.freq, 6, 1, 1, 1) self.filterCount = QtWidgets.QSpinBox(editFilterDialog) self.filterCount.setMinimum(1) self.filterCount.setMaximum(20) self.filterCount.setObjectName("filterCount") self.paramsPane.addWidget(self.filterCount, 10, 1, 1, 1) self.filterOrder = QtWidgets.QSpinBox(editFilterDialog) self.filterOrder.setEnabled(True) self.filterOrder.setMinimum(1) self.filterOrder.setMaximum(24) self.filterOrder.setProperty("value", 2) self.filterOrder.setObjectName("filterOrder") self.paramsPane.addWidget(self.filterOrder, 5, 1, 1, 1) spacerItem2 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.paramsPane.addItem(spacerItem2, 19, 1, 1, 1) self.workingFilterView = QtWidgets.QTableView(editFilterDialog) self.workingFilterView.setSelectionMode( QtWidgets.QAbstractItemView.SingleSelection) self.workingFilterView.setSelectionBehavior( QtWidgets.QAbstractItemView.SelectRows) self.workingFilterView.setObjectName("workingFilterView") self.paramsPane.addWidget(self.workingFilterView, 0, 0, 1, 2) self.shortcutLayout = QtWidgets.QHBoxLayout() self.shortcutLayout.setObjectName("shortcutLayout") self.addWorkingPeakingButton = QtWidgets.QToolButton(editFilterDialog) self.addWorkingPeakingButton.setObjectName("addWorkingPeakingButton") self.shortcutLayout.addWidget(self.addWorkingPeakingButton) self.addWorkingLowShelfButton = QtWidgets.QToolButton(editFilterDialog) self.addWorkingLowShelfButton.setObjectName("addWorkingLowShelfButton") self.shortcutLayout.addWidget(self.addWorkingLowShelfButton) self.addWorkingHighShelfButton = QtWidgets.QToolButton( editFilterDialog) self.addWorkingHighShelfButton.setObjectName( "addWorkingHighShelfButton") self.shortcutLayout.addWidget(self.addWorkingHighShelfButton) self.paramsPane.addLayout(self.shortcutLayout, 2, 0, 1, 2) self.checkboxLayout = QtWidgets.QHBoxLayout() self.checkboxLayout.setObjectName("checkboxLayout") self.showIndividual = QtWidgets.QCheckBox(editFilterDialog) self.showIndividual.setChecked(True) self.showIndividual.setObjectName("showIndividual") self.checkboxLayout.addWidget(self.showIndividual) self.showPhase = QtWidgets.QCheckBox(editFilterDialog) self.showPhase.setChecked(False) self.showPhase.setObjectName("showPhase") self.checkboxLayout.addWidget(self.showPhase) self.paramsPane.addLayout(self.checkboxLayout, 13, 0, 1, 3) self.paramsPane.setColumnStretch(0, 1) self.paramsPane.setColumnStretch(1, 4) self.panes.addLayout(self.paramsPane, 0, 0, 1, 1) self.panes.setColumnStretch(0, 1) self.panes.setColumnStretch(1, 3) self.retranslateUi(editFilterDialog) self.filterType.currentTextChanged['QString'].connect( editFilterDialog.enableFilterParams) # type: ignore self.passFilterType.currentTextChanged['QString'].connect( editFilterDialog.changeOrderStep) # type: ignore self.filterQ.valueChanged['double'].connect( editFilterDialog.recalcShelfFromQ) # type: ignore self.filterGain.valueChanged['double'].connect( editFilterDialog.recalcShelfFromGain) # type: ignore self.filterType.currentIndexChanged['int'].connect( editFilterDialog.previewFilter) # type: ignore self.passFilterType.currentIndexChanged['int'].connect( editFilterDialog.previewFilter) # type: ignore self.filterOrder.valueChanged['int'].connect( editFilterDialog.previewFilter) # type: ignore self.freq.valueChanged['double'].connect( editFilterDialog.previewFilter) # type: ignore self.filterQ.valueChanged['double'].connect( editFilterDialog.previewFilter) # type: ignore self.filterGain.valueChanged['double'].connect( editFilterDialog.previewFilter) # type: ignore self.filterCount.valueChanged['int'].connect( editFilterDialog.previewFilter) # type: ignore self.filterS.valueChanged['double'].connect( editFilterDialog.recalcShelfFromS) # type: ignore self.sStepButton.clicked.connect( editFilterDialog.handleSToolButton) # type: ignore self.qStepButton.clicked.connect( editFilterDialog.handleQToolButton) # type: ignore self.gainStepButton.clicked.connect( editFilterDialog.handleGainToolButton) # type: ignore self.freqStepButton.clicked.connect( editFilterDialog.handleFreqToolButton) # type: ignore self.saveButton.clicked.connect( editFilterDialog.accept) # type: ignore self.exitButton.clicked.connect( editFilterDialog.reject) # type: ignore self.showIndividual.clicked.connect( editFilterDialog.previewFilter) # type: ignore self.limitsButton.clicked.connect( editFilterDialog.show_limits) # type: ignore self.fullRangeButton.clicked.connect( editFilterDialog.show_full_range) # type: ignore self.subOnlyButton.clicked.connect( editFilterDialog.show_sub_only) # type: ignore self.showPhase.clicked.connect( editFilterDialog.show_phase_response) # type: ignore self.f0.valueChanged['double'].connect( editFilterDialog.previewFilter) # type: ignore self.q0.valueChanged['double'].connect( editFilterDialog.previewFilter) # type: ignore self.fp.valueChanged['double'].connect( editFilterDialog.previewFilter) # type: ignore self.qp.valueChanged['double'].connect( editFilterDialog.previewFilter) # type: ignore QtCore.QMetaObject.connectSlotsByName(editFilterDialog) editFilterDialog.setTabOrder(self.filterType, self.passFilterType) editFilterDialog.setTabOrder(self.passFilterType, self.filterOrder) editFilterDialog.setTabOrder(self.filterOrder, self.freq) editFilterDialog.setTabOrder(self.freq, self.filterQ) editFilterDialog.setTabOrder(self.filterQ, self.filterS) editFilterDialog.setTabOrder(self.filterS, self.filterGain) editFilterDialog.setTabOrder(self.filterGain, self.filterCount) editFilterDialog.setTabOrder(self.filterCount, self.f0) editFilterDialog.setTabOrder(self.f0, self.q0) editFilterDialog.setTabOrder(self.q0, self.fp) editFilterDialog.setTabOrder(self.fp, self.qp) editFilterDialog.setTabOrder(self.qp, self.freqStepButton) editFilterDialog.setTabOrder(self.freqStepButton, self.qStepButton) editFilterDialog.setTabOrder(self.qStepButton, self.sStepButton) editFilterDialog.setTabOrder(self.sStepButton, self.gainStepButton) editFilterDialog.setTabOrder(self.gainStepButton, self.previewChart) editFilterDialog.setTabOrder(self.previewChart, self.limitsButton) editFilterDialog.setTabOrder(self.limitsButton, self.fullRangeButton) editFilterDialog.setTabOrder(self.fullRangeButton, self.subOnlyButton) editFilterDialog.setTabOrder(self.subOnlyButton, self.snapFilterButton) editFilterDialog.setTabOrder(self.snapFilterButton, self.loadSnapButton) editFilterDialog.setTabOrder(self.loadSnapButton, self.acceptSnapButton) editFilterDialog.setTabOrder(self.acceptSnapButton, self.resetButton) editFilterDialog.setTabOrder(self.resetButton, self.saveButton) editFilterDialog.setTabOrder(self.saveButton, self.exitButton) editFilterDialog.setTabOrder(self.exitButton, self.snapshotFilterView) editFilterDialog.setTabOrder(self.snapshotFilterView, self.workingFilterView) editFilterDialog.setTabOrder(self.workingFilterView, self.showIndividual) editFilterDialog.setTabOrder(self.showIndividual, self.showPhase) editFilterDialog.setTabOrder(self.showPhase, self.addSnapshotRowButton) editFilterDialog.setTabOrder(self.addSnapshotRowButton, self.removeSnapshotRowButton) editFilterDialog.setTabOrder(self.removeSnapshotRowButton, self.importSnapshotButton) editFilterDialog.setTabOrder(self.importSnapshotButton, self.optimiseButton) editFilterDialog.setTabOrder(self.optimiseButton, self.targetBiquadCount) editFilterDialog.setTabOrder(self.targetBiquadCount, self.addWorkingRowButton) editFilterDialog.setTabOrder(self.addWorkingRowButton, self.removeWorkingRowButton) editFilterDialog.setTabOrder(self.removeWorkingRowButton, self.importWorkingButton)
class Ui_editFilterDialog(object): def setupUi(self, editFilterDialog): editFilterDialog.setObjectName("editFilterDialog") editFilterDialog.resize(1390, 658) self.panes = QtWidgets.QGridLayout(editFilterDialog) self.panes.setObjectName("panes") self.viewPane = QtWidgets.QGridLayout() self.viewPane.setObjectName("viewPane") self.previewChart = MplWidget(editFilterDialog) self.previewChart.setObjectName("previewChart") self.viewPane.addWidget(self.previewChart, 0, 0, 1, 1) self.panes.addLayout(self.viewPane, 0, 1, 1, 1) self.graphButtonsLayout = QtWidgets.QVBoxLayout() self.graphButtonsLayout.setObjectName("graphButtonsLayout") self.limitsButton = QtWidgets.QToolButton(editFilterDialog) self.limitsButton.setObjectName("limitsButton") self.graphButtonsLayout.addWidget(self.limitsButton) self.fullRangeButton = QtWidgets.QToolButton(editFilterDialog) self.fullRangeButton.setObjectName("fullRangeButton") self.graphButtonsLayout.addWidget(self.fullRangeButton) self.subOnlyButton = QtWidgets.QToolButton(editFilterDialog) self.subOnlyButton.setObjectName("subOnlyButton") self.graphButtonsLayout.addWidget(self.subOnlyButton) spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.graphButtonsLayout.addItem(spacerItem) self.panes.addLayout(self.graphButtonsLayout, 0, 2, 1, 1) self.paramsPane = QtWidgets.QGridLayout() self.paramsPane.setObjectName("paramsPane") self.gainLabel = QtWidgets.QLabel(editFilterDialog) self.gainLabel.setObjectName("gainLabel") self.paramsPane.addWidget(self.gainLabel, 8, 0, 1, 1) self.filterQLabel = QtWidgets.QLabel(editFilterDialog) self.filterQLabel.setObjectName("filterQLabel") self.paramsPane.addWidget(self.filterQLabel, 6, 0, 1, 1) self.snapLayout = QtWidgets.QHBoxLayout() self.snapLayout.setObjectName("snapLayout") self.snapLabel = QtWidgets.QLabel(editFilterDialog) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.snapLabel.setFont(font) self.snapLabel.setObjectName("snapLabel") self.snapLayout.addWidget(self.snapLabel) self.snapFilterButton = QtWidgets.QToolButton(editFilterDialog) self.snapFilterButton.setObjectName("snapFilterButton") self.snapLayout.addWidget(self.snapFilterButton) self.loadSnapButton = QtWidgets.QToolButton(editFilterDialog) self.loadSnapButton.setObjectName("loadSnapButton") self.snapLayout.addWidget(self.loadSnapButton) self.acceptSnapButton = QtWidgets.QToolButton(editFilterDialog) self.acceptSnapButton.setObjectName("acceptSnapButton") self.snapLayout.addWidget(self.acceptSnapButton) self.resetButton = QtWidgets.QToolButton(editFilterDialog) self.resetButton.setObjectName("resetButton") self.snapLayout.addWidget(self.resetButton) self.paramsPane.addLayout(self.snapLayout, 13, 0, 1, 2) self.typeLabel = QtWidgets.QLabel(editFilterDialog) self.typeLabel.setObjectName("typeLabel") self.paramsPane.addWidget(self.typeLabel, 2, 0, 1, 1) self.sLabel = QtWidgets.QLabel(editFilterDialog) self.sLabel.setObjectName("sLabel") self.paramsPane.addWidget(self.sLabel, 7, 0, 1, 1) self.buttonLayout = QtWidgets.QHBoxLayout() self.buttonLayout.setObjectName("buttonLayout") self.saveButton = QtWidgets.QToolButton(editFilterDialog) self.saveButton.setText("") self.saveButton.setObjectName("saveButton") self.buttonLayout.addWidget(self.saveButton) self.exitButton = QtWidgets.QToolButton(editFilterDialog) self.exitButton.setObjectName("exitButton") self.buttonLayout.addWidget(self.exitButton) self.paramsPane.addLayout(self.buttonLayout, 11, 0, 1, 2) self.passFilterType = QtWidgets.QComboBox(editFilterDialog) self.passFilterType.setEnabled(True) self.passFilterType.setObjectName("passFilterType") self.passFilterType.addItem("") self.passFilterType.addItem("") self.paramsPane.addWidget(self.passFilterType, 3, 1, 1, 1) self.snapshotFilterView = QtWidgets.QTableView(editFilterDialog) self.snapshotFilterView.setSelectionMode( QtWidgets.QAbstractItemView.SingleSelection) self.snapshotFilterView.setSelectionBehavior( QtWidgets.QAbstractItemView.SelectRows) self.snapshotFilterView.setObjectName("snapshotFilterView") self.paramsPane.addWidget(self.snapshotFilterView, 15, 0, 1, 2) self.filterCount = QtWidgets.QSpinBox(editFilterDialog) self.filterCount.setMinimum(1) self.filterCount.setMaximum(20) self.filterCount.setObjectName("filterCount") self.paramsPane.addWidget(self.filterCount, 9, 1, 1, 1) spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.paramsPane.addItem(spacerItem1, 12, 1, 1, 1) self.workingFilterView = QtWidgets.QTableView(editFilterDialog) self.workingFilterView.setSelectionMode( QtWidgets.QAbstractItemView.SingleSelection) self.workingFilterView.setSelectionBehavior( QtWidgets.QAbstractItemView.SelectRows) self.workingFilterView.setObjectName("workingFilterView") self.paramsPane.addWidget(self.workingFilterView, 0, 0, 1, 2) self.filterType = QtWidgets.QComboBox(editFilterDialog) self.filterType.setObjectName("filterType") self.filterType.addItem("") self.filterType.addItem("") self.filterType.addItem("") self.filterType.addItem("") self.filterType.addItem("") self.filterType.addItem("") self.filterType.addItem("") self.filterType.addItem("") self.paramsPane.addWidget(self.filterType, 2, 1, 1, 1) self.showIndividual = QtWidgets.QCheckBox(editFilterDialog) self.showIndividual.setChecked(True) self.showIndividual.setObjectName("showIndividual") self.paramsPane.addWidget(self.showIndividual, 10, 0, 1, 2) self.qStepButton = QtWidgets.QToolButton(editFilterDialog) self.qStepButton.setObjectName("qStepButton") self.paramsPane.addWidget(self.qStepButton, 6, 2, 1, 1) self.filterS = QtWidgets.QDoubleSpinBox(editFilterDialog) self.filterS.setEnabled(False) self.filterS.setDecimals(4) self.filterS.setMinimum(0.1) self.filterS.setMaximum(100.0) self.filterS.setSingleStep(0.0001) self.filterS.setProperty("value", 1.0) self.filterS.setObjectName("filterS") self.paramsPane.addWidget(self.filterS, 7, 1, 1, 1) self.freqStepButton = QtWidgets.QToolButton(editFilterDialog) self.freqStepButton.setObjectName("freqStepButton") self.paramsPane.addWidget(self.freqStepButton, 5, 2, 1, 1) self.freqLabel = QtWidgets.QLabel(editFilterDialog) self.freqLabel.setObjectName("freqLabel") self.paramsPane.addWidget(self.freqLabel, 5, 0, 1, 1) self.freq = QtWidgets.QDoubleSpinBox(editFilterDialog) self.freq.setDecimals(1) self.freq.setMinimum(1.0) self.freq.setMaximum(500.0) self.freq.setSingleStep(0.1) self.freq.setProperty("value", 40.0) self.freq.setObjectName("freq") self.paramsPane.addWidget(self.freq, 5, 1, 1, 1) self.filterCountLabel = QtWidgets.QLabel(editFilterDialog) self.filterCountLabel.setObjectName("filterCountLabel") self.paramsPane.addWidget(self.filterCountLabel, 9, 0, 1, 1) self.snapshotViewButtonWidget = QtWidgets.QWidget(editFilterDialog) self.snapshotViewButtonWidget.setObjectName("snapshotViewButtonWidget") self.snapshotViewButtonLayout = QtWidgets.QVBoxLayout( self.snapshotViewButtonWidget) self.snapshotViewButtonLayout.setObjectName("snapshotViewButtonLayout") self.addSnapshotRowButton = QtWidgets.QToolButton( self.snapshotViewButtonWidget) self.addSnapshotRowButton.setObjectName("addSnapshotRowButton") self.snapshotViewButtonLayout.addWidget(self.addSnapshotRowButton) self.removeSnapshotRowButton = QtWidgets.QToolButton( self.snapshotViewButtonWidget) self.removeSnapshotRowButton.setObjectName("removeSnapshotRowButton") self.snapshotViewButtonLayout.addWidget(self.removeSnapshotRowButton) self.paramsPane.addWidget(self.snapshotViewButtonWidget, 15, 2, 1, 1) self.filterQ = QtWidgets.QDoubleSpinBox(editFilterDialog) self.filterQ.setDecimals(4) self.filterQ.setMinimum(0.001) self.filterQ.setMaximum(20.0) self.filterQ.setSingleStep(0.0001) self.filterQ.setProperty("value", 0.7071) self.filterQ.setObjectName("filterQ") self.paramsPane.addWidget(self.filterQ, 6, 1, 1, 1) self.filterGain = QtWidgets.QDoubleSpinBox(editFilterDialog) self.filterGain.setDecimals(1) self.filterGain.setMinimum(-30.0) self.filterGain.setMaximum(30.0) self.filterGain.setSingleStep(0.1) self.filterGain.setObjectName("filterGain") self.paramsPane.addWidget(self.filterGain, 8, 1, 1, 1) self.gainStepButton = QtWidgets.QToolButton(editFilterDialog) self.gainStepButton.setObjectName("gainStepButton") self.paramsPane.addWidget(self.gainStepButton, 8, 2, 1, 1) self.orderLabel = QtWidgets.QLabel(editFilterDialog) self.orderLabel.setObjectName("orderLabel") self.paramsPane.addWidget(self.orderLabel, 4, 0, 1, 1) self.sStepButton = QtWidgets.QToolButton(editFilterDialog) self.sStepButton.setObjectName("sStepButton") self.paramsPane.addWidget(self.sStepButton, 7, 2, 1, 1) self.optimiseLayout = QtWidgets.QHBoxLayout() self.optimiseLayout.setObjectName("optimiseLayout") self.label_2 = QtWidgets.QLabel(editFilterDialog) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.label_2.setFont(font) self.label_2.setObjectName("label_2") self.optimiseLayout.addWidget(self.label_2) self.optimiseButton = QtWidgets.QToolButton(editFilterDialog) self.optimiseButton.setObjectName("optimiseButton") self.optimiseLayout.addWidget(self.optimiseButton) self.targetBiquadCount = QtWidgets.QSpinBox(editFilterDialog) self.targetBiquadCount.setMinimum(1) self.targetBiquadCount.setMaximum(20) self.targetBiquadCount.setProperty("value", 6) self.targetBiquadCount.setObjectName("targetBiquadCount") self.optimiseLayout.addWidget(self.targetBiquadCount) self.paramsPane.addLayout(self.optimiseLayout, 14, 0, 1, 2) self.filterOrder = QtWidgets.QSpinBox(editFilterDialog) self.filterOrder.setEnabled(True) self.filterOrder.setMinimum(1) self.filterOrder.setMaximum(24) self.filterOrder.setProperty("value", 2) self.filterOrder.setObjectName("filterOrder") self.paramsPane.addWidget(self.filterOrder, 4, 1, 1, 1) spacerItem2 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.paramsPane.addItem(spacerItem2, 16, 1, 1, 1) self.workingViewButtonWidget = QtWidgets.QWidget(editFilterDialog) self.workingViewButtonWidget.setObjectName("workingViewButtonWidget") self.workingViewButtonLayout = QtWidgets.QVBoxLayout( self.workingViewButtonWidget) self.workingViewButtonLayout.setObjectName("workingViewButtonLayout") self.addWorkingRowButton = QtWidgets.QToolButton( self.workingViewButtonWidget) self.addWorkingRowButton.setObjectName("addWorkingRowButton") self.workingViewButtonLayout.addWidget(self.addWorkingRowButton) self.removeWorkingRowButton = QtWidgets.QToolButton( self.workingViewButtonWidget) self.removeWorkingRowButton.setObjectName("removeWorkingRowButton") self.workingViewButtonLayout.addWidget(self.removeWorkingRowButton) self.paramsPane.addWidget(self.workingViewButtonWidget, 0, 2, 1, 1) self.headerLabel = QtWidgets.QLabel(editFilterDialog) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.headerLabel.setFont(font) self.headerLabel.setFrameShape(QtWidgets.QFrame.Box) self.headerLabel.setFrameShadow(QtWidgets.QFrame.Sunken) self.headerLabel.setText("") self.headerLabel.setAlignment(QtCore.Qt.AlignCenter) self.headerLabel.setObjectName("headerLabel") self.paramsPane.addWidget(self.headerLabel, 1, 0, 1, 2) self.paramsPane.setColumnStretch(0, 1) self.paramsPane.setColumnStretch(1, 4) self.panes.addLayout(self.paramsPane, 0, 0, 1, 1) self.panes.setColumnStretch(0, 1) self.panes.setColumnStretch(1, 3) self.retranslateUi(editFilterDialog) self.filterType.currentTextChanged['QString'].connect( editFilterDialog.enableFilterParams) self.passFilterType.currentTextChanged['QString'].connect( editFilterDialog.changeOrderStep) self.filterQ.valueChanged['double'].connect( editFilterDialog.recalcShelfFromQ) self.filterGain.valueChanged['double'].connect( editFilterDialog.recalcShelfFromGain) self.filterType.currentIndexChanged['int'].connect( editFilterDialog.previewFilter) self.passFilterType.currentIndexChanged['int'].connect( editFilterDialog.previewFilter) self.filterOrder.valueChanged['int'].connect( editFilterDialog.previewFilter) self.freq.valueChanged['double'].connect( editFilterDialog.previewFilter) self.filterQ.valueChanged['double'].connect( editFilterDialog.previewFilter) self.filterGain.valueChanged['double'].connect( editFilterDialog.previewFilter) self.filterCount.valueChanged['int'].connect( editFilterDialog.previewFilter) self.filterS.valueChanged['double'].connect( editFilterDialog.recalcShelfFromS) self.sStepButton.clicked.connect(editFilterDialog.handleSToolButton) self.qStepButton.clicked.connect(editFilterDialog.handleQToolButton) self.gainStepButton.clicked.connect( editFilterDialog.handleGainToolButton) self.freqStepButton.clicked.connect( editFilterDialog.handleFreqToolButton) self.saveButton.clicked.connect(editFilterDialog.accept) self.exitButton.clicked.connect(editFilterDialog.reject) self.showIndividual.clicked.connect(editFilterDialog.previewFilter) self.limitsButton.clicked.connect(editFilterDialog.show_limits) self.fullRangeButton.clicked.connect(editFilterDialog.show_full_range) self.subOnlyButton.clicked.connect(editFilterDialog.show_sub_only) QtCore.QMetaObject.connectSlotsByName(editFilterDialog) editFilterDialog.setTabOrder(self.filterType, self.passFilterType) editFilterDialog.setTabOrder(self.passFilterType, self.filterOrder) editFilterDialog.setTabOrder(self.filterOrder, self.freq) editFilterDialog.setTabOrder(self.freq, self.filterQ) editFilterDialog.setTabOrder(self.filterQ, self.filterS) editFilterDialog.setTabOrder(self.filterS, self.filterGain) editFilterDialog.setTabOrder(self.filterGain, self.filterCount) editFilterDialog.setTabOrder(self.filterCount, self.freqStepButton) editFilterDialog.setTabOrder(self.freqStepButton, self.qStepButton) editFilterDialog.setTabOrder(self.qStepButton, self.gainStepButton) editFilterDialog.setTabOrder(self.gainStepButton, self.sStepButton) editFilterDialog.setTabOrder(self.sStepButton, self.previewChart) def retranslateUi(self, editFilterDialog): _translate = QtCore.QCoreApplication.translate editFilterDialog.setWindowTitle( _translate("editFilterDialog", "Create Filter")) self.limitsButton.setText(_translate("editFilterDialog", "...")) self.fullRangeButton.setText(_translate("editFilterDialog", "...")) self.subOnlyButton.setText(_translate("editFilterDialog", "...")) self.gainLabel.setText(_translate("editFilterDialog", "Gain")) self.filterQLabel.setText(_translate("editFilterDialog", "Q")) self.snapLabel.setText(_translate("editFilterDialog", "Compare")) self.snapFilterButton.setText(_translate("editFilterDialog", "...")) self.loadSnapButton.setText(_translate("editFilterDialog", "...")) self.acceptSnapButton.setText(_translate("editFilterDialog", "...")) self.resetButton.setText(_translate("editFilterDialog", "...")) self.typeLabel.setText(_translate("editFilterDialog", "Type")) self.sLabel.setText(_translate("editFilterDialog", "S")) self.saveButton.setShortcut(_translate("editFilterDialog", "Return")) self.exitButton.setText(_translate("editFilterDialog", "...")) self.passFilterType.setItemText( 0, _translate("editFilterDialog", "Butterworth")) self.passFilterType.setItemText( 1, _translate("editFilterDialog", "Linkwitz-Riley")) self.filterType.setItemText( 0, _translate("editFilterDialog", "Low Shelf")) self.filterType.setItemText( 1, _translate("editFilterDialog", "High Shelf")) self.filterType.setItemText(2, _translate("editFilterDialog", "PEQ")) self.filterType.setItemText(3, _translate("editFilterDialog", "Gain")) self.filterType.setItemText( 4, _translate("editFilterDialog", "Variable Q LPF")) self.filterType.setItemText( 5, _translate("editFilterDialog", "Variable Q HPF")) self.filterType.setItemText(6, _translate("editFilterDialog", "Low Pass")) self.filterType.setItemText( 7, _translate("editFilterDialog", "High Pass")) self.showIndividual.setText( _translate("editFilterDialog", "Show Individual Filters")) self.qStepButton.setText(_translate("editFilterDialog", "...")) self.freqStepButton.setText(_translate("editFilterDialog", "...")) self.freqLabel.setText(_translate("editFilterDialog", "Freq")) self.filterCountLabel.setText(_translate("editFilterDialog", "Count")) self.addSnapshotRowButton.setText(_translate("editFilterDialog", "...")) self.removeSnapshotRowButton.setText( _translate("editFilterDialog", "...")) self.gainStepButton.setText(_translate("editFilterDialog", "...")) self.orderLabel.setText(_translate("editFilterDialog", "Order")) self.sStepButton.setText(_translate("editFilterDialog", "...")) self.label_2.setText(_translate("editFilterDialog", "Optimise")) self.optimiseButton.setText(_translate("editFilterDialog", "...")) self.addWorkingRowButton.setText(_translate("editFilterDialog", "...")) self.removeWorkingRowButton.setText( _translate("editFilterDialog", "..."))