Skip to content

Commit

Permalink
remove redundant UI field
Browse files Browse the repository at this point in the history
  • Loading branch information
3ll3d00d committed Oct 10, 2023
1 parent 8cb9cb2 commit b07deda
Show file tree
Hide file tree
Showing 2 changed files with 194 additions and 211 deletions.
177 changes: 85 additions & 92 deletions src/main/python/ui/merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,80 @@
class Ui_mergeDspDialog(object):
def setupUi(self, mergeDspDialog):
mergeDspDialog.setObjectName("mergeDspDialog")
mergeDspDialog.resize(639, 856)
mergeDspDialog.resize(639, 737)
self.gridLayout = QtWidgets.QGridLayout(mergeDspDialog)
self.gridLayout.setObjectName("gridLayout")
self.innerLayout = QtWidgets.QGridLayout()
self.innerLayout.setObjectName("innerLayout")
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.innerLayout.addItem(spacerItem, 6, 4, 1, 1)
self.filesProcessed = QtWidgets.QSpinBox(mergeDspDialog)
self.filesProcessed.setReadOnly(True)
self.filesProcessed.setMaximum(100000)
self.filesProcessed.setObjectName("filesProcessed")
self.innerLayout.addWidget(self.filesProcessed, 6, 1, 1, 1)
self.outputDirectory = QtWidgets.QLineEdit(mergeDspDialog)
self.outputDirectory.setEnabled(False)
self.outputDirectory.setReadOnly(True)
self.outputDirectory.setObjectName("outputDirectory")
self.innerLayout.addWidget(self.outputDirectory, 2, 1, 1, 4)
self.processFiles = QtWidgets.QToolButton(mergeDspDialog)
self.processFiles.setObjectName("processFiles")
self.innerLayout.addWidget(self.processFiles, 6, 5, 1, 1)
self.copyErrorsButton = QtWidgets.QToolButton(mergeDspDialog)
self.copyErrorsButton.setObjectName("copyErrorsButton")
self.innerLayout.addWidget(self.copyErrorsButton, 8, 5, 1, 1)
self.dspTypeLabel = QtWidgets.QLabel(mergeDspDialog)
self.dspTypeLabel.setObjectName("dspTypeLabel")
self.innerLayout.addWidget(self.dspTypeLabel, 3, 0, 1, 1)
self.outputMode = QtWidgets.QComboBox(mergeDspDialog)
self.outputMode.setObjectName("outputMode")
self.innerLayout.addWidget(self.outputMode, 4, 1, 1, 3)
self.optimisedLabel = QtWidgets.QLabel(mergeDspDialog)
self.optimisedLabel.setObjectName("optimisedLabel")
self.innerLayout.addWidget(self.optimisedLabel, 7, 0, 1, 1)
self.userSourceDirLabel = QtWidgets.QLabel(mergeDspDialog)
self.userSourceDirLabel.setObjectName("userSourceDirLabel")
self.innerLayout.addWidget(self.userSourceDirLabel, 0, 0, 1, 1)
self.outputModeLabel = QtWidgets.QLabel(mergeDspDialog)
self.outputModeLabel.setObjectName("outputModeLabel")
self.innerLayout.addWidget(self.outputModeLabel, 4, 0, 1, 1)
self.outputChannelsLabel = QtWidgets.QLabel(mergeDspDialog)
self.outputChannelsLabel.setObjectName("outputChannelsLabel")
self.innerLayout.addWidget(self.outputChannelsLabel, 5, 0, 1, 1)
self.filesProcessedLabel = QtWidgets.QLabel(mergeDspDialog)
self.filesProcessedLabel.setObjectName("filesProcessedLabel")
self.innerLayout.addWidget(self.filesProcessedLabel, 6, 0, 1, 1)
self.outputDirectoryPicker = QtWidgets.QToolButton(mergeDspDialog)
self.outputDirectoryPicker.setObjectName("outputDirectoryPicker")
self.innerLayout.addWidget(self.outputDirectoryPicker, 2, 5, 1, 1)
self.errors = QtWidgets.QListWidget(mergeDspDialog)
self.errors.setEnabled(False)
self.errors.setObjectName("errors")
self.innerLayout.addWidget(self.errors, 8, 1, 1, 4)
self.totalFiles = QtWidgets.QSpinBox(mergeDspDialog)
self.totalFiles.setReadOnly(True)
self.totalFiles.setMaximum(100000)
self.totalFiles.setObjectName("totalFiles")
self.innerLayout.addWidget(self.totalFiles, 6, 3, 1, 1)
self.userSourceDirPicker = QtWidgets.QToolButton(mergeDspDialog)
self.userSourceDirPicker.setObjectName("userSourceDirPicker")
self.innerLayout.addWidget(self.userSourceDirPicker, 0, 5, 1, 1)
self.errorsLabel = QtWidgets.QLabel(mergeDspDialog)
self.errorsLabel.setObjectName("errorsLabel")
self.innerLayout.addWidget(self.errorsLabel, 8, 0, 1, 1)
self.dspType = QtWidgets.QComboBox(mergeDspDialog)
self.dspType.setObjectName("dspType")
self.innerLayout.addWidget(self.dspType, 3, 1, 1, 4)
self.copyOptimisedButton = QtWidgets.QToolButton(mergeDspDialog)
self.copyOptimisedButton.setObjectName("copyOptimisedButton")
self.innerLayout.addWidget(self.copyOptimisedButton, 7, 5, 1, 1)
self.configFilePicker = QtWidgets.QToolButton(mergeDspDialog)
self.configFilePicker.setObjectName("configFilePicker")
self.innerLayout.addWidget(self.configFilePicker, 1, 5, 1, 1)
self.configFileLabel = QtWidgets.QLabel(mergeDspDialog)
self.configFileLabel.setObjectName("configFileLabel")
self.innerLayout.addWidget(self.configFileLabel, 1, 0, 1, 1)
self.userSourceDirLayout = QtWidgets.QHBoxLayout()
self.userSourceDirLayout.setObjectName("userSourceDirLayout")
self.userSourceDir = QtWidgets.QLineEdit(mergeDspDialog)
Expand All @@ -32,96 +98,24 @@ def setupUi(self, mergeDspDialog):
self.clearUserSourceDir.setObjectName("clearUserSourceDir")
self.userSourceDirLayout.addWidget(self.clearUserSourceDir)
self.innerLayout.addLayout(self.userSourceDirLayout, 0, 1, 1, 4)
self.userSourceDirPicker = QtWidgets.QToolButton(mergeDspDialog)
self.userSourceDirPicker.setObjectName("userSourceDirPicker")
self.innerLayout.addWidget(self.userSourceDirPicker, 0, 5, 1, 1)
self.configFileLabel = QtWidgets.QLabel(mergeDspDialog)
self.configFileLabel.setObjectName("configFileLabel")
self.innerLayout.addWidget(self.configFileLabel, 1, 0, 1, 1)
self.optimised = QtWidgets.QListWidget(mergeDspDialog)
self.optimised.setObjectName("optimised")
self.innerLayout.addWidget(self.optimised, 7, 1, 1, 4)
self.configFile = QtWidgets.QLineEdit(mergeDspDialog)
self.configFile.setEnabled(False)
self.configFile.setReadOnly(True)
self.configFile.setObjectName("configFile")
self.innerLayout.addWidget(self.configFile, 1, 1, 1, 4)
self.configFilePicker = QtWidgets.QToolButton(mergeDspDialog)
self.configFilePicker.setObjectName("configFilePicker")
self.innerLayout.addWidget(self.configFilePicker, 1, 5, 1, 1)
self.outputDirectoryLabel = QtWidgets.QLabel(mergeDspDialog)
self.outputDirectoryLabel.setObjectName("outputDirectoryLabel")
self.innerLayout.addWidget(self.outputDirectoryLabel, 2, 0, 1, 1)
self.outputDirectory = QtWidgets.QLineEdit(mergeDspDialog)
self.outputDirectory.setEnabled(False)
self.outputDirectory.setReadOnly(True)
self.outputDirectory.setObjectName("outputDirectory")
self.innerLayout.addWidget(self.outputDirectory, 2, 1, 1, 4)
self.outputDirectoryPicker = QtWidgets.QToolButton(mergeDspDialog)
self.outputDirectoryPicker.setObjectName("outputDirectoryPicker")
self.innerLayout.addWidget(self.outputDirectoryPicker, 2, 5, 1, 1)
self.dspTypeLabel = QtWidgets.QLabel(mergeDspDialog)
self.dspTypeLabel.setObjectName("dspTypeLabel")
self.innerLayout.addWidget(self.dspTypeLabel, 3, 0, 1, 1)
self.dspType = QtWidgets.QComboBox(mergeDspDialog)
self.dspType.setObjectName("dspType")
self.innerLayout.addWidget(self.dspType, 3, 1, 1, 4)
self.outputModeLabel = QtWidgets.QLabel(mergeDspDialog)
self.outputModeLabel.setObjectName("outputModeLabel")
self.innerLayout.addWidget(self.outputModeLabel, 4, 0, 1, 1)
self.outputMode = QtWidgets.QComboBox(mergeDspDialog)
self.outputMode.setObjectName("outputMode")
self.innerLayout.addWidget(self.outputMode, 4, 1, 1, 3)
self.outputChannelsLabel = QtWidgets.QLabel(mergeDspDialog)
self.outputChannelsLabel.setObjectName("outputChannelsLabel")
self.innerLayout.addWidget(self.outputChannelsLabel, 5, 0, 1, 1)
self.outputChannels = QtWidgets.QListWidget(mergeDspDialog)
self.outputChannels.setSelectionMode(QtWidgets.QAbstractItemView.MultiSelection)
self.outputChannels.setObjectName("outputChannels")
self.innerLayout.addWidget(self.outputChannels, 5, 1, 1, 3)
self.totalFiles = QtWidgets.QSpinBox(mergeDspDialog)
self.totalFiles.setReadOnly(True)
self.totalFiles.setMaximum(100000)
self.totalFiles.setObjectName("totalFiles")
self.innerLayout.addWidget(self.totalFiles, 6, 3, 1, 1)
self.filesProcessedLabel = QtWidgets.QLabel(mergeDspDialog)
self.filesProcessedLabel.setObjectName("filesProcessedLabel")
self.innerLayout.addWidget(self.filesProcessedLabel, 6, 0, 1, 1)
self.filesProcessed = QtWidgets.QSpinBox(mergeDspDialog)
self.filesProcessed.setReadOnly(True)
self.filesProcessed.setMaximum(100000)
self.filesProcessed.setObjectName("filesProcessed")
self.innerLayout.addWidget(self.filesProcessed, 6, 1, 1, 1)
self.ofLabel = QtWidgets.QLabel(mergeDspDialog)
self.ofLabel.setObjectName("ofLabel")
self.innerLayout.addWidget(self.ofLabel, 6, 2, 1, 1)
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.innerLayout.addItem(spacerItem, 6, 4, 1, 1)
self.processFiles = QtWidgets.QToolButton(mergeDspDialog)
self.processFiles.setObjectName("processFiles")
self.innerLayout.addWidget(self.processFiles, 6, 5, 1, 1)
self.optimisedLabel = QtWidgets.QLabel(mergeDspDialog)
self.optimisedLabel.setObjectName("optimisedLabel")
self.innerLayout.addWidget(self.optimisedLabel, 7, 0, 1, 1)
self.optimised = QtWidgets.QListWidget(mergeDspDialog)
self.optimised.setObjectName("optimised")
self.innerLayout.addWidget(self.optimised, 7, 1, 1, 4)
self.copyOptimisedButton = QtWidgets.QToolButton(mergeDspDialog)
self.copyOptimisedButton.setObjectName("copyOptimisedButton")
self.innerLayout.addWidget(self.copyOptimisedButton, 7, 5, 1, 1)
self.errorsLabel = QtWidgets.QLabel(mergeDspDialog)
self.errorsLabel.setObjectName("errorsLabel")
self.innerLayout.addWidget(self.errorsLabel, 8, 0, 1, 1)
self.errors = QtWidgets.QListWidget(mergeDspDialog)
self.errors.setEnabled(False)
self.errors.setObjectName("errors")
self.innerLayout.addWidget(self.errors, 8, 1, 1, 4)
self.copyErrorsButton = QtWidgets.QToolButton(mergeDspDialog)
self.copyErrorsButton.setObjectName("copyErrorsButton")
self.innerLayout.addWidget(self.copyErrorsButton, 8, 5, 1, 1)
self.gitStatusLabel = QtWidgets.QLabel(mergeDspDialog)
self.gitStatusLabel.setObjectName("gitStatusLabel")
self.innerLayout.addWidget(self.gitStatusLabel, 9, 0, 1, 1)
self.gitStatus = QtWidgets.QListWidget(mergeDspDialog)
self.gitStatus.setObjectName("gitStatus")
self.innerLayout.addWidget(self.gitStatus, 9, 1, 1, 4)
self.outputDirectoryLabel = QtWidgets.QLabel(mergeDspDialog)
self.outputDirectoryLabel.setObjectName("outputDirectoryLabel")
self.innerLayout.addWidget(self.outputDirectoryLabel, 2, 0, 1, 1)
self.gridLayout.addLayout(self.innerLayout, 0, 0, 1, 1)
self.buttonBox = QtWidgets.QDialogButtonBox(mergeDspDialog)
self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
Expand Down Expand Up @@ -157,21 +151,20 @@ def setupUi(self, mergeDspDialog):
def retranslateUi(self, mergeDspDialog):
_translate = QtCore.QCoreApplication.translate
mergeDspDialog.setWindowTitle(_translate("mergeDspDialog", "Merge DSP Config"))
self.userSourceDirLabel.setText(_translate("mergeDspDialog", "User Source Directory"))
self.clearUserSourceDir.setText(_translate("mergeDspDialog", "..."))
self.userSourceDirPicker.setText(_translate("mergeDspDialog", "..."))
self.configFileLabel.setText(_translate("mergeDspDialog", "Config File"))
self.configFilePicker.setText(_translate("mergeDspDialog", "..."))
self.outputDirectoryLabel.setText(_translate("mergeDspDialog", "Output Directory"))
self.outputDirectoryPicker.setText(_translate("mergeDspDialog", "..."))
self.processFiles.setText(_translate("mergeDspDialog", "..."))
self.copyErrorsButton.setText(_translate("mergeDspDialog", "..."))
self.dspTypeLabel.setText(_translate("mergeDspDialog", "DSP Type"))
self.optimisedLabel.setText(_translate("mergeDspDialog", "Optimised"))
self.userSourceDirLabel.setText(_translate("mergeDspDialog", "User Source Directory"))
self.outputModeLabel.setText(_translate("mergeDspDialog", "Output Mode"))
self.outputChannelsLabel.setText(_translate("mergeDspDialog", "Output Channels"))
self.filesProcessedLabel.setText(_translate("mergeDspDialog", "Files Processed"))
self.ofLabel.setText(_translate("mergeDspDialog", "of"))
self.processFiles.setText(_translate("mergeDspDialog", "..."))
self.optimisedLabel.setText(_translate("mergeDspDialog", "Optimised"))
self.copyOptimisedButton.setText(_translate("mergeDspDialog", "..."))
self.outputDirectoryPicker.setText(_translate("mergeDspDialog", "..."))
self.userSourceDirPicker.setText(_translate("mergeDspDialog", "..."))
self.errorsLabel.setText(_translate("mergeDspDialog", "Errors"))
self.copyErrorsButton.setText(_translate("mergeDspDialog", "..."))
self.gitStatusLabel.setText(_translate("mergeDspDialog", "Git Status"))
self.copyOptimisedButton.setText(_translate("mergeDspDialog", "..."))
self.configFilePicker.setText(_translate("mergeDspDialog", "..."))
self.configFileLabel.setText(_translate("mergeDspDialog", "Config File"))
self.clearUserSourceDir.setText(_translate("mergeDspDialog", "..."))
self.ofLabel.setText(_translate("mergeDspDialog", "of"))
self.outputDirectoryLabel.setText(_translate("mergeDspDialog", "Output Directory"))
Loading

0 comments on commit b07deda

Please sign in to comment.