Moved window size widget to conversion settings section

This commit is contained in:
Dilan Boskan 2021-07-10 16:31:51 +02:00
parent f5d58c54cc
commit 022e63852c
5 changed files with 374 additions and 355 deletions

View File

@ -133,6 +133,7 @@ class CustomApplication(QtWidgets.QApplication):
self.settingsWindow.ui.info_conversion.clicked.connect(lambda: show_info(self.tr("Conversion Info"), self.settingsWindow.ui.info_conversion.clicked.connect(lambda: show_info(self.tr("Conversion Info"),
self.translator.loaded_language.settings_conversion)) self.translator.loaded_language.settings_conversion))
# -Before- # -Before-
# -Setup- # -Setup-
@ -150,10 +151,18 @@ class CustomApplication(QtWidgets.QApplication):
theme = self.settings.value('user/theme', theme = self.settings.value('user/theme',
const.DEFAULT_SETTINGS['theme']) const.DEFAULT_SETTINGS['theme'])
self.themeManager.load_theme(theme) self.themeManager.load_theme(theme)
# Check for first startup
if not self.settings.allKeys():
self.first_startup()
# with open(os.path.join(os.getcwd(), '..', 'startup', 'run.txt'), 'w') as f: # with open(os.path.join(os.getcwd(), '..', 'startup', 'run.txt'), 'w') as f:
# f.write('1') # f.write('1')
def first_startup(self):
"""
First time user started the application or he reset the app.
"""
print("FIRST STARTUP")
@staticmethod @staticmethod
def improved_combobox_showPopup(widget: QtWidgets.QComboBox, showPopup: QtWidgets.QComboBox.showPopup): def improved_combobox_showPopup(widget: QtWidgets.QComboBox, showPopup: QtWidgets.QComboBox.showPopup):
"""Extend functionality for the QComboBox.showPopup function """Extend functionality for the QComboBox.showPopup function

View File

@ -1,34 +1,32 @@
[settingswindow] [settingswindow]
size=@Size(940 619)
pos=@Point(485 246)
checkBox_gpuConversion=false checkBox_gpuConversion=false
checkBox_tta=true checkBox_tta=true
checkBox_modelFolder=true checkBox_modelFolder=false
checkBox_outputImage=true checkBox_outputImage=false
checkBox_postProcess=true checkBox_postProcess=true
checkBox_deepExtraction=true checkBox_deepExtraction=true
comboBox_instrumental=MGM-v5-2Band-32000-BETA1 checkBox_ensemble=false
comboBox_instrumental=MGM-v5-2Band-32000-BETA1 - Kopie
comboBox_vocal= comboBox_vocal=
comboBox_winSize=1024 comboBox_winSize=1024
doubleSpinBox_aggressiveness=0.1 doubleSpinBox_aggressiveness=0.1
comboBox_highEndProcess=Bypass comboBox_highEndProcess=Mirroring
comboBox_presets=ALL comboBox_presets=Custom
checkBox_notifiyOnFinish=false checkBox_notifiyOnFinish=true
checkBox_notifyUpdates=true checkBox_notifyUpdates=true
checkBox_settingsStartup=true checkBox_settingsStartup=true
checkBox_disableAnimations=false checkBox_enableAnimations=true
checkBox_disableShortcuts=false checkBox_showInfoButtons=true
checkBox_multithreading=false checkBox_multithreading=false
comboBox_command=Off comboBox_command=Off
checkBox_autoSaveInstrumentals=true checkBox_autoSaveInstrumentals=true
checkBox_autoSaveVocals=true checkBox_autoSaveVocals=true
checkBox_enableAnimations=true size=@Size(993 526)
checkBox_showInfoButtons=true pos=@Point(437 242)
checkBox_ensemble=false
[user] [user]
exportDirectory=C:/Users/boska/Desktop exportDirectory=C:/Users/boska/Desktop
language=de language=en
inputPaths=@Invalid() inputPaths=@Invalid()
inputsDirectory=C:/Users/boska/Desktop inputsDirectory=C:/Users/boska/Desktop
presets=@Variant(\0\0\0\x7f\0\0\0\x18PySide::PyObjectWrapper\0\0\0\0\xc3\x80\x3X\x3\0\0\0\x41LLq\0}q\x1(X\xe\0\0\0\x61ggressivenessq\x2G?\xb9\x99\x99\x99\x99\x99\x9aX\xe\0\0\0\x64\x65\x65pExtractionq\x3\x88X\xe\0\0\0highEndProcessq\x4X\x6\0\0\0\x42ypassq\x5X\v\0\0\0modelFolderq\x6\x88X\v\0\0\0outputImageq\a\x88X\v\0\0\0postProcessq\b\x88X\x3\0\0\0ttaq\t\x88X\n\0\0\0windowSizeq\nM\0\x4u\x86q\v.), @Variant(\0\0\0\x7f\0\0\0\x18PySide::PyObjectWrapper\0\0\0\0\xc7\x80\x3X\x4\0\0\0NONEq\0}q\x1(X\xe\0\0\0\x61ggressivenessq\x2G\xbf\xb9\x99\x99\x99\x99\x99\x9aX\xe\0\0\0\x64\x65\x65pExtractionq\x3\x89X\xe\0\0\0highEndProcessq\x4X\t\0\0\0Mirroringq\x5X\v\0\0\0modelFolderq\x6\x89X\v\0\0\0outputImageq\a\x89X\v\0\0\0postProcessq\b\x89X\x3\0\0\0ttaq\t\x89X\n\0\0\0windowSizeq\nM`\x1u\x86q\v.) presets=@Variant(\0\0\0\x7f\0\0\0\x18PySide::PyObjectWrapper\0\0\0\0\xc3\x80\x3X\x3\0\0\0\x41LLq\0}q\x1(X\xe\0\0\0\x61ggressivenessq\x2G?\xb9\x99\x99\x99\x99\x99\x9aX\xe\0\0\0\x64\x65\x65pExtractionq\x3\x88X\xe\0\0\0highEndProcessq\x4X\x6\0\0\0\x42ypassq\x5X\v\0\0\0modelFolderq\x6\x88X\v\0\0\0outputImageq\a\x88X\v\0\0\0postProcessq\b\x88X\x3\0\0\0ttaq\t\x88X\n\0\0\0windowSizeq\nM\0\x4u\x86q\v.), @Variant(\0\0\0\x7f\0\0\0\x18PySide::PyObjectWrapper\0\0\0\0\xc7\x80\x3X\x4\0\0\0NONEq\0}q\x1(X\xe\0\0\0\x61ggressivenessq\x2G\xbf\xb9\x99\x99\x99\x99\x99\x9aX\xe\0\0\0\x64\x65\x65pExtractionq\x3\x89X\xe\0\0\0highEndProcessq\x4X\t\0\0\0Mirroringq\x5X\v\0\0\0modelFolderq\x6\x89X\v\0\0\0outputImageq\a\x89X\v\0\0\0postProcessq\b\x89X\x3\0\0\0ttaq\t\x89X\n\0\0\0windowSizeq\nM`\x1u\x86q\v.)
@ -37,15 +35,15 @@ presets_saveDir=C:/Users/boska/Desktop
theme=dark theme=dark
[mainwindow] [mainwindow]
size=@Size(946 559) size=@Size(906 559)
pos=@Point(472 235) pos=@Point(507 260)
isMaximized=false
[infowindow]
size=@Size(621 551)
pos=@Point(637 279)
isMaximized=false isMaximized=false
[presetseditorwindow] [presetseditorwindow]
size=@Size(322 403) size=@Size(322 403)
pos=@Point(799 338) pos=@Point(841 355)
[infowindow]
size=@Size(563 562)
pos=@Point(678 259)
isMaximized=false

View File

@ -18,7 +18,7 @@ class Ui_SettingsWindow(object):
if not SettingsWindow.objectName(): if not SettingsWindow.objectName():
SettingsWindow.setObjectName(u"SettingsWindow") SettingsWindow.setObjectName(u"SettingsWindow")
SettingsWindow.setEnabled(True) SettingsWindow.setEnabled(True)
SettingsWindow.resize(856, 551) SettingsWindow.resize(941, 551)
SettingsWindow.setStyleSheet(u"") SettingsWindow.setStyleSheet(u"")
self.horizontalLayout = QHBoxLayout(SettingsWindow) self.horizontalLayout = QHBoxLayout(SettingsWindow)
self.horizontalLayout.setSpacing(0) self.horizontalLayout.setSpacing(0)
@ -134,7 +134,7 @@ class Ui_SettingsWindow(object):
self.scrollAreaWidgetContents_2 = QWidget() self.scrollAreaWidgetContents_2 = QWidget()
self.scrollAreaWidgetContents_2.setObjectName( self.scrollAreaWidgetContents_2.setObjectName(
u"scrollAreaWidgetContents_2") u"scrollAreaWidgetContents_2")
self.scrollAreaWidgetContents_2.setGeometry(QRect(0, 0, 656, 551)) self.scrollAreaWidgetContents_2.setGeometry(QRect(0, 0, 741, 551))
sizePolicy2 = QSizePolicy(QSizePolicy.Minimum, QSizePolicy.Preferred) sizePolicy2 = QSizePolicy(QSizePolicy.Minimum, QSizePolicy.Preferred)
sizePolicy2.setHorizontalStretch(0) sizePolicy2.setHorizontalStretch(0)
sizePolicy2.setVerticalStretch(0) sizePolicy2.setVerticalStretch(0)
@ -213,31 +213,38 @@ class Ui_SettingsWindow(object):
self.gridLayout_16 = QGridLayout(self.frame_16) self.gridLayout_16 = QGridLayout(self.frame_16)
self.gridLayout_16.setObjectName(u"gridLayout_16") self.gridLayout_16.setObjectName(u"gridLayout_16")
self.gridLayout_16.setHorizontalSpacing(10) self.gridLayout_16.setHorizontalSpacing(10)
self.gridLayout_16.setVerticalSpacing(7)
self.gridLayout_16.setContentsMargins(20, 15, 20, 15) self.gridLayout_16.setContentsMargins(20, 15, 20, 15)
self.frame_10 = QFrame(self.frame_16) self.checkBox_gpuConversion = QCheckBox(self.frame_16)
self.frame_10.setObjectName(u"frame_10") self.checkBox_gpuConversion.setObjectName(u"checkBox_gpuConversion")
self.frame_10.setFrameShape(QFrame.NoFrame)
self.frame_10.setFrameShadow(QFrame.Raised)
self.horizontalLayout_9 = QHBoxLayout(self.frame_10)
self.horizontalLayout_9.setObjectName(u"horizontalLayout_9")
self.horizontalLayout_9.setContentsMargins(0, 0, 0, 0)
self.comboBox_highEndProcess = QComboBox(self.frame_10)
self.comboBox_highEndProcess.addItem("")
self.comboBox_highEndProcess.addItem("")
self.comboBox_highEndProcess.addItem("")
self.comboBox_highEndProcess.addItem("")
self.comboBox_highEndProcess.addItem("")
self.comboBox_highEndProcess.setObjectName(u"comboBox_highEndProcess")
self.horizontalLayout_9.addWidget(self.comboBox_highEndProcess) self.gridLayout_16.addWidget(self.checkBox_gpuConversion, 0, 0, 1, 1)
self.label_8 = QLabel(self.frame_10) self.checkBox_tta = QCheckBox(self.frame_16)
self.label_8.setObjectName(u"label_8") self.checkBox_tta.setObjectName(u"checkBox_tta")
self.label_8.setEnabled(True)
self.horizontalLayout_9.addWidget(self.label_8) self.gridLayout_16.addWidget(self.checkBox_tta, 2, 0, 1, 1)
self.gridLayout_16.addWidget(self.frame_10, 3, 1, 1, 1) self.checkBox_postProcess = QCheckBox(self.frame_16)
self.checkBox_postProcess.setObjectName(u"checkBox_postProcess")
self.gridLayout_16.addWidget(self.checkBox_postProcess, 0, 1, 1, 1)
self.checkBox_deepExtraction = QCheckBox(self.frame_16)
self.checkBox_deepExtraction.setObjectName(u"checkBox_deepExtraction")
self.checkBox_deepExtraction.setEnabled(True)
self.gridLayout_16.addWidget(self.checkBox_deepExtraction, 2, 1, 1, 1)
self.checkBox_modelFolder = QCheckBox(self.frame_16)
self.checkBox_modelFolder.setObjectName(u"checkBox_modelFolder")
self.gridLayout_16.addWidget(self.checkBox_modelFolder, 3, 0, 1, 1)
self.checkBox_outputImage = QCheckBox(self.frame_16)
self.checkBox_outputImage.setObjectName(u"checkBox_outputImage")
self.gridLayout_16.addWidget(self.checkBox_outputImage, 3, 1, 1, 1)
self.frame_9 = QFrame(self.frame_16) self.frame_9 = QFrame(self.frame_16)
self.frame_9.setObjectName(u"frame_9") self.frame_9.setObjectName(u"frame_9")
@ -265,38 +272,73 @@ class Ui_SettingsWindow(object):
self.horizontalLayout_3.addWidget(self.label_7) self.horizontalLayout_3.addWidget(self.label_7)
self.gridLayout_16.addWidget(self.frame_9, 2, 1, 1, 1) self.gridLayout_16.addWidget(self.frame_9, 0, 2, 1, 1)
self.checkBox_outputImage = QCheckBox(self.frame_16) self.frame_10 = QFrame(self.frame_16)
self.checkBox_outputImage.setObjectName(u"checkBox_outputImage") self.frame_10.setObjectName(u"frame_10")
self.frame_10.setFrameShape(QFrame.NoFrame)
self.frame_10.setFrameShadow(QFrame.Raised)
self.horizontalLayout_9 = QHBoxLayout(self.frame_10)
self.horizontalLayout_9.setObjectName(u"horizontalLayout_9")
self.horizontalLayout_9.setContentsMargins(0, 0, 0, 0)
self.comboBox_highEndProcess = QComboBox(self.frame_10)
self.comboBox_highEndProcess.addItem("")
self.comboBox_highEndProcess.addItem("")
self.comboBox_highEndProcess.addItem("")
self.comboBox_highEndProcess.addItem("")
self.comboBox_highEndProcess.addItem("")
self.comboBox_highEndProcess.setObjectName(u"comboBox_highEndProcess")
self.gridLayout_16.addWidget(self.checkBox_outputImage, 3, 0, 1, 1) self.horizontalLayout_9.addWidget(self.comboBox_highEndProcess)
self.checkBox_gpuConversion = QCheckBox(self.frame_16) self.label_8 = QLabel(self.frame_10)
self.checkBox_gpuConversion.setObjectName(u"checkBox_gpuConversion") self.label_8.setObjectName(u"label_8")
self.label_8.setEnabled(True)
self.gridLayout_16.addWidget(self.checkBox_gpuConversion, 0, 0, 1, 1) self.horizontalLayout_9.addWidget(self.label_8)
self.checkBox_tta = QCheckBox(self.frame_16) self.gridLayout_16.addWidget(self.frame_10, 3, 2, 1, 1)
self.checkBox_tta.setObjectName(u"checkBox_tta")
self.gridLayout_16.addWidget(self.checkBox_tta, 1, 0, 1, 1) self.frame_constants = QFrame(self.frame_16)
self.frame_constants.setObjectName(u"frame_constants")
sizePolicy4 = QSizePolicy(QSizePolicy.Maximum, QSizePolicy.Preferred)
sizePolicy4.setHorizontalStretch(0)
sizePolicy4.setVerticalStretch(0)
sizePolicy4.setHeightForWidth(
self.frame_constants.sizePolicy().hasHeightForWidth())
self.frame_constants.setSizePolicy(sizePolicy4)
self.frame_constants.setMinimumSize(QSize(0, 0))
self.frame_constants.setMaximumSize(QSize(230, 140))
self.frame_constants.setFrameShape(QFrame.NoFrame)
self.frame_constants.setFrameShadow(QFrame.Raised)
self.frame_constants.setLineWidth(0)
self.horizontalLayout_2 = QHBoxLayout(self.frame_constants)
self.horizontalLayout_2.setObjectName(u"horizontalLayout_2")
self.horizontalLayout_2.setContentsMargins(0, 0, 0, 0)
self.comboBox_winSize = QComboBox(self.frame_constants)
self.comboBox_winSize.addItem(u"352")
self.comboBox_winSize.addItem(u"512")
self.comboBox_winSize.addItem(u"1024")
self.comboBox_winSize.setObjectName(u"comboBox_winSize")
self.comboBox_winSize.setMinimumSize(QSize(55, 0))
self.comboBox_winSize.setMaximumSize(QSize(55, 25))
self.comboBox_winSize.setEditable(True)
self.comboBox_winSize.setCurrentText(u"352")
self.comboBox_winSize.setProperty("canEdit", True)
self.checkBox_modelFolder = QCheckBox(self.frame_16) self.horizontalLayout_2.addWidget(
self.checkBox_modelFolder.setObjectName(u"checkBox_modelFolder") self.comboBox_winSize, 0, Qt.AlignLeft)
self.gridLayout_16.addWidget(self.checkBox_modelFolder, 2, 0, 1, 1) self.label_winSize = QLabel(self.frame_constants)
self.label_winSize.setObjectName(u"label_winSize")
self.label_winSize.setAlignment(
Qt.AlignLeading | Qt.AlignLeft | Qt.AlignVCenter)
self.checkBox_postProcess = QCheckBox(self.frame_16) self.horizontalLayout_2.addWidget(self.label_winSize)
self.checkBox_postProcess.setObjectName(u"checkBox_postProcess")
self.gridLayout_16.addWidget(self.checkBox_postProcess, 0, 1, 1, 1) self.horizontalLayout_2.setStretch(1, 1)
self.checkBox_deepExtraction = QCheckBox(self.frame_16) self.gridLayout_16.addWidget(self.frame_constants, 2, 2, 1, 1)
self.checkBox_deepExtraction.setObjectName(u"checkBox_deepExtraction")
self.checkBox_deepExtraction.setEnabled(True)
self.gridLayout_16.addWidget(self.checkBox_deepExtraction, 1, 1, 1, 1)
self.verticalLayout_25.addWidget(self.frame_16) self.verticalLayout_25.addWidget(self.frame_16)
@ -307,6 +349,7 @@ class Ui_SettingsWindow(object):
self.frame_template_4 = QFrame(self.horizontalFrame_1) self.frame_template_4 = QFrame(self.horizontalFrame_1)
self.frame_template_4.setObjectName(u"frame_template_4") self.frame_template_4.setObjectName(u"frame_template_4")
self.frame_template_4.setMinimumSize(QSize(0, 104)) self.frame_template_4.setMinimumSize(QSize(0, 104))
self.frame_template_4.setMaximumSize(QSize(230, 16777215))
self.frame_template_4.setAcceptDrops(True) self.frame_template_4.setAcceptDrops(True)
self.verticalLayout_26 = QVBoxLayout(self.frame_template_4) self.verticalLayout_26 = QVBoxLayout(self.frame_template_4)
self.verticalLayout_26.setSpacing(7) self.verticalLayout_26.setSpacing(7)
@ -347,32 +390,35 @@ class Ui_SettingsWindow(object):
self.frame_18 = QFrame(self.frame_template_4) self.frame_18 = QFrame(self.frame_template_4)
self.frame_18.setObjectName(u"frame_18") self.frame_18.setObjectName(u"frame_18")
self.frame_18.setProperty("settingsContent", True) self.frame_18.setProperty("settingsContent", True)
self.gridLayout_17 = QGridLayout(self.frame_18) self.verticalLayout_29 = QVBoxLayout(self.frame_18)
self.gridLayout_17.setObjectName(u"gridLayout_17") self.verticalLayout_29.setObjectName(u"verticalLayout_29")
self.gridLayout_17.setHorizontalSpacing(10) self.verticalLayout_29.setContentsMargins(20, 15, 20, 10)
self.gridLayout_17.setContentsMargins(20, 15, 20, 10)
self.pushButton_presetsEdit = QPushButton(self.frame_18)
self.pushButton_presetsEdit.setObjectName(u"pushButton_presetsEdit")
sizePolicy4 = QSizePolicy(QSizePolicy.Maximum, QSizePolicy.Fixed)
sizePolicy4.setHorizontalStretch(0)
sizePolicy4.setVerticalStretch(0)
sizePolicy4.setHeightForWidth(
self.pushButton_presetsEdit.sizePolicy().hasHeightForWidth())
self.pushButton_presetsEdit.setSizePolicy(sizePolicy4)
self.pushButton_presetsEdit.setMinimumSize(QSize(65, 27))
self.pushButton_presetsEdit.setMaximumSize(QSize(16777215, 16777215))
self.pushButton_presetsEdit.setCursor(QCursor(Qt.PointingHandCursor))
self.gridLayout_17.addWidget(self.pushButton_presetsEdit, 0, 1, 1, 1)
self.comboBox_presets = QComboBox(self.frame_18) self.comboBox_presets = QComboBox(self.frame_18)
self.comboBox_presets.setObjectName(u"comboBox_presets") self.comboBox_presets.setObjectName(u"comboBox_presets")
sizePolicy1.setHeightForWidth(
self.comboBox_presets.sizePolicy().hasHeightForWidth())
self.comboBox_presets.setSizePolicy(sizePolicy1)
self.comboBox_presets.setMinimumSize(QSize(0, 25)) self.comboBox_presets.setMinimumSize(QSize(0, 25))
self.comboBox_presets.setSizeAdjustPolicy( self.comboBox_presets.setSizeAdjustPolicy(
QComboBox.AdjustToMinimumContentsLength) QComboBox.AdjustToMinimumContentsLength)
self.comboBox_presets.setModelColumn(0) self.comboBox_presets.setModelColumn(0)
self.gridLayout_17.addWidget(self.comboBox_presets, 0, 0, 1, 1) self.verticalLayout_29.addWidget(self.comboBox_presets)
self.pushButton_presetsEdit = QPushButton(self.frame_18)
self.pushButton_presetsEdit.setObjectName(u"pushButton_presetsEdit")
sizePolicy5 = QSizePolicy(QSizePolicy.Maximum, QSizePolicy.Fixed)
sizePolicy5.setHorizontalStretch(0)
sizePolicy5.setVerticalStretch(0)
sizePolicy5.setHeightForWidth(
self.pushButton_presetsEdit.sizePolicy().hasHeightForWidth())
self.pushButton_presetsEdit.setSizePolicy(sizePolicy5)
self.pushButton_presetsEdit.setMinimumSize(QSize(65, 27))
self.pushButton_presetsEdit.setMaximumSize(QSize(16777215, 16777215))
self.pushButton_presetsEdit.setCursor(QCursor(Qt.PointingHandCursor))
self.verticalLayout_29.addWidget(
self.pushButton_presetsEdit, 0, Qt.AlignHCenter)
self.verticalLayout_26.addWidget(self.frame_18) self.verticalLayout_26.addWidget(self.frame_18)
@ -380,7 +426,7 @@ class Ui_SettingsWindow(object):
self.horizontalLayout_4.addWidget(self.frame_template_4) self.horizontalLayout_4.addWidget(self.frame_template_4)
self.horizontalLayout_4.setStretch(0, 3) self.horizontalLayout_4.setStretch(0, 5)
self.horizontalLayout_4.setStretch(1, 2) self.horizontalLayout_4.setStretch(1, 2)
self.verticalLayout_6.addWidget(self.horizontalFrame_1) self.verticalLayout_6.addWidget(self.horizontalFrame_1)
@ -485,47 +531,6 @@ class Ui_SettingsWindow(object):
self.gridLayout_18.addWidget( self.gridLayout_18.addWidget(
self.frame_instrumentalComboBox, 0, 0, 1, 1) self.frame_instrumentalComboBox, 0, 0, 1, 1)
self.frame_constants = QFrame(self.models_stackedWidget_page_1)
self.frame_constants.setObjectName(u"frame_constants")
sizePolicy5 = QSizePolicy(QSizePolicy.Maximum, QSizePolicy.Preferred)
sizePolicy5.setHorizontalStretch(0)
sizePolicy5.setVerticalStretch(0)
sizePolicy5.setHeightForWidth(
self.frame_constants.sizePolicy().hasHeightForWidth())
self.frame_constants.setSizePolicy(sizePolicy5)
self.frame_constants.setMinimumSize(QSize(0, 0))
self.frame_constants.setMaximumSize(QSize(230, 140))
self.frame_constants.setFrameShape(QFrame.NoFrame)
self.frame_constants.setFrameShadow(QFrame.Raised)
self.frame_constants.setLineWidth(0)
self.gridLayout_5 = QGridLayout(self.frame_constants)
self.gridLayout_5.setObjectName(u"gridLayout_5")
self.gridLayout_5.setContentsMargins(-1, 5, -1, 3)
self.label_winSize = QLabel(self.frame_constants)
self.label_winSize.setObjectName(u"label_winSize")
self.label_winSize.setMinimumSize(QSize(80, 0))
self.label_winSize.setMaximumSize(QSize(80, 16777215))
self.label_winSize.setAlignment(Qt.AlignCenter)
self.gridLayout_5.addWidget(self.label_winSize, 0, 1, 1, 1)
self.comboBox_winSize = QComboBox(self.frame_constants)
self.comboBox_winSize.addItem(u"352")
self.comboBox_winSize.addItem(u"512")
self.comboBox_winSize.addItem(u"1024")
self.comboBox_winSize.setObjectName(u"comboBox_winSize")
self.comboBox_winSize.setMinimumSize(QSize(0, 25))
self.comboBox_winSize.setMaximumSize(QSize(60, 25))
self.comboBox_winSize.setEditable(True)
self.comboBox_winSize.setCurrentText(u"352")
self.comboBox_winSize.setProperty("canEdit", True)
self.gridLayout_5.addWidget(self.comboBox_winSize, 0, 0, 1, 1)
self.gridLayout_5.setColumnStretch(0, 1)
self.gridLayout_18.addWidget(self.frame_constants, 0, 1, 1, 1)
self.frame_stackComboBox = QFrame(self.models_stackedWidget_page_1) self.frame_stackComboBox = QFrame(self.models_stackedWidget_page_1)
self.frame_stackComboBox.setObjectName(u"frame_stackComboBox") self.frame_stackComboBox.setObjectName(u"frame_stackComboBox")
self.frame_stackComboBox.setFrameShape(QFrame.NoFrame) self.frame_stackComboBox.setFrameShape(QFrame.NoFrame)
@ -957,9 +962,9 @@ class Ui_SettingsWindow(object):
self.label_3 = QLabel(self.frame_export_2) self.label_3 = QLabel(self.frame_export_2)
self.label_3.setObjectName(u"label_3") self.label_3.setObjectName(u"label_3")
sizePolicy5.setHeightForWidth( sizePolicy4.setHeightForWidth(
self.label_3.sizePolicy().hasHeightForWidth()) self.label_3.sizePolicy().hasHeightForWidth())
self.label_3.setSizePolicy(sizePolicy5) self.label_3.setSizePolicy(sizePolicy4)
self.label_3.setMinimumSize(QSize(110, 0)) self.label_3.setMinimumSize(QSize(110, 0))
self.label_3.setAlignment( self.label_3.setAlignment(
Qt.AlignLeading | Qt.AlignLeft | Qt.AlignVCenter) Qt.AlignLeading | Qt.AlignLeft | Qt.AlignVCenter)
@ -1131,8 +1136,8 @@ class Ui_SettingsWindow(object):
self.stackedWidget.setCurrentIndex(0) self.stackedWidget.setCurrentIndex(0)
self.comboBox_highEndProcess.setCurrentIndex(4) self.comboBox_highEndProcess.setCurrentIndex(4)
self.models_stackedWidget.setCurrentIndex(1)
self.comboBox_winSize.setCurrentIndex(0) self.comboBox_winSize.setCurrentIndex(0)
self.models_stackedWidget.setCurrentIndex(0)
self.pushButton_de.setDefault(False) self.pushButton_de.setDefault(False)
self.pushButton_en.setDefault(False) self.pushButton_en.setDefault(False)
@ -1152,6 +1157,24 @@ class Ui_SettingsWindow(object):
QCoreApplication.translate("SettingsWindow", u"Preferences", None)) QCoreApplication.translate("SettingsWindow", u"Preferences", None))
self.label_15.setText(QCoreApplication.translate( self.label_15.setText(QCoreApplication.translate(
"SettingsWindow", u"Conversion", None)) "SettingsWindow", u"Conversion", None))
self.checkBox_gpuConversion.setText(QCoreApplication.translate(
"SettingsWindow", u"GPU Conversion", None))
self.checkBox_tta.setText(
QCoreApplication.translate("SettingsWindow", u"TTA", None))
self.checkBox_postProcess.setText(QCoreApplication.translate(
"SettingsWindow", u"Post-Process", None))
self.checkBox_deepExtraction.setText(QCoreApplication.translate(
"SettingsWindow", u"Deep extraction", None))
self.checkBox_modelFolder.setText(QCoreApplication.translate(
"SettingsWindow", u"Model Test Mode", None))
# if QT_CONFIG(tooltip)
self.checkBox_outputImage.setToolTip(QCoreApplication.translate(
"SettingsWindow", u"Save spectogram of seperated music files", None))
#endif // QT_CONFIG(tooltip)
self.checkBox_outputImage.setText(QCoreApplication.translate(
"SettingsWindow", u"Output Image", None))
self.label_7.setText(QCoreApplication.translate(
"SettingsWindow", u"Aggressiveness", None))
self.comboBox_highEndProcess.setItemText( self.comboBox_highEndProcess.setItemText(
0, QCoreApplication.translate("SettingsWindow", u"None", None)) 0, QCoreApplication.translate("SettingsWindow", u"None", None))
self.comboBox_highEndProcess.setItemText( self.comboBox_highEndProcess.setItemText(
@ -1165,24 +1188,9 @@ class Ui_SettingsWindow(object):
self.label_8.setText(QCoreApplication.translate( self.label_8.setText(QCoreApplication.translate(
"SettingsWindow", u"High End Processing", None)) "SettingsWindow", u"High End Processing", None))
self.label_7.setText(QCoreApplication.translate(
"SettingsWindow", u"Aggressiveness", None)) self.label_winSize.setText(QCoreApplication.translate(
# if QT_CONFIG(tooltip) "SettingsWindow", u"Window Size", None))
self.checkBox_outputImage.setToolTip(QCoreApplication.translate(
"SettingsWindow", u"Save spectogram of seperated music files", None))
#endif // QT_CONFIG(tooltip)
self.checkBox_outputImage.setText(QCoreApplication.translate(
"SettingsWindow", u"Output Image", None))
self.checkBox_gpuConversion.setText(QCoreApplication.translate(
"SettingsWindow", u"GPU Conversion", None))
self.checkBox_tta.setText(
QCoreApplication.translate("SettingsWindow", u"TTA", None))
self.checkBox_modelFolder.setText(QCoreApplication.translate(
"SettingsWindow", u"Model Test Mode", None))
self.checkBox_postProcess.setText(QCoreApplication.translate(
"SettingsWindow", u"Post-Process", None))
self.checkBox_deepExtraction.setText(QCoreApplication.translate(
"SettingsWindow", u"Deep extraction", None))
self.label_16.setText(QCoreApplication.translate( self.label_16.setText(QCoreApplication.translate(
"SettingsWindow", u"Presets", None)) "SettingsWindow", u"Presets", None))
self.pushButton_presetsEdit.setText( self.pushButton_presetsEdit.setText(
@ -1193,9 +1201,6 @@ class Ui_SettingsWindow(object):
QCoreApplication.translate("SettingsWindow", u"Ensemble", None)) QCoreApplication.translate("SettingsWindow", u"Ensemble", None))
self.label_2.setText(QCoreApplication.translate( self.label_2.setText(QCoreApplication.translate(
"SettingsWindow", u"Instrumental Model", None)) "SettingsWindow", u"Instrumental Model", None))
self.label_winSize.setText(QCoreApplication.translate(
"SettingsWindow", u"Window Size", None))
self.label_4.setText(QCoreApplication.translate( self.label_4.setText(QCoreApplication.translate(
"SettingsWindow", u"Vocal Model", None)) "SettingsWindow", u"Vocal Model", None))
self.label_9.setText(QCoreApplication.translate( self.label_9.setText(QCoreApplication.translate(

View File

@ -689,16 +689,17 @@ class SettingsManager:
self.win.ui.checkBox_outputImage, self.win.ui.checkBox_outputImage,
self.win.ui.checkBox_postProcess, self.win.ui.checkBox_postProcess,
self.win.ui.checkBox_deepExtraction, self.win.ui.checkBox_deepExtraction,
# Combobox
self.win.ui.comboBox_winSize,
self.win.ui.comboBox_highEndProcess,
# SpinBox
self.win.ui.doubleSpinBox_aggressiveness,
# -Models- # -Models-
# Checkbox # Checkbox
self.win.ui.checkBox_ensemble, self.win.ui.checkBox_ensemble,
# Combobox # Combobox
self.win.ui.comboBox_instrumental, self.win.ui.comboBox_instrumental,
self.win.ui.comboBox_vocal, self.win.ui.comboBox_vocal,
self.win.ui.comboBox_winSize,
# SpinBox
self.win.ui.doubleSpinBox_aggressiveness,
self.win.ui.comboBox_highEndProcess,
# -Presets- # -Presets-
# Combobox # Combobox
self.win.ui.comboBox_presets, ] self.win.ui.comboBox_presets, ]

View File

@ -9,7 +9,7 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>856</width> <width>941</width>
<height>551</height> <height>551</height>
</rect> </rect>
</property> </property>
@ -287,7 +287,7 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>656</width> <width>741</width>
<height>551</height> <height>551</height>
</rect> </rect>
</property> </property>
@ -354,7 +354,7 @@
</property> </property>
<item> <item>
<widget class="QFrame" name="horizontalFrame_1"> <widget class="QFrame" name="horizontalFrame_1">
<layout class="QHBoxLayout" name="horizontalLayout_4" stretch="3,2"> <layout class="QHBoxLayout" name="horizontalLayout_4" stretch="5,2">
<property name="spacing"> <property name="spacing">
<number>45</number> <number>45</number>
</property> </property>
@ -471,7 +471,7 @@
<property name="settingsContent" stdset="0"> <property name="settingsContent" stdset="0">
<bool>true</bool> <bool>true</bool>
</property> </property>
<layout class="QGridLayout" name="gridLayout_16" rowstretch="0,0,0,0"> <layout class="QGridLayout" name="gridLayout_16" rowstretch="0,0,0,0,0">
<property name="leftMargin"> <property name="leftMargin">
<number>20</number> <number>20</number>
</property> </property>
@ -487,7 +487,123 @@
<property name="horizontalSpacing"> <property name="horizontalSpacing">
<number>10</number> <number>10</number>
</property> </property>
<property name="verticalSpacing">
<number>7</number>
</property>
<item row="0" column="0">
<widget class="QCheckBox" name="checkBox_gpuConversion">
<property name="text">
<string>GPU Conversion</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QCheckBox" name="checkBox_tta">
<property name="text">
<string>TTA</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QCheckBox" name="checkBox_postProcess">
<property name="text">
<string>Post-Process</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QCheckBox" name="checkBox_deepExtraction">
<property name="enabled">
<bool>true</bool>
</property>
<property name="text">
<string>Deep extraction</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QCheckBox" name="checkBox_modelFolder">
<property name="text">
<string>Model Test Mode</string>
</property>
</widget>
</item>
<item row="3" column="1"> <item row="3" column="1">
<widget class="QCheckBox" name="checkBox_outputImage">
<property name="toolTip">
<string>Save spectogram of seperated music files</string>
</property>
<property name="text">
<string>Output Image</string>
</property>
</widget>
</item>
<item row="0" column="2">
<widget class="QFrame" name="frame_9">
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_3">
<property name="leftMargin">
<number>0</number>
</property>
<property name="topMargin">
<number>0</number>
</property>
<property name="rightMargin">
<number>0</number>
</property>
<property name="bottomMargin">
<number>0</number>
</property>
<item>
<widget class="QDoubleSpinBox" name="doubleSpinBox_aggressiveness">
<property name="enabled">
<bool>true</bool>
</property>
<property name="minimumSize">
<size>
<width>55</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>55</width>
<height>16777215</height>
</size>
</property>
<property name="minimum">
<double>-0.100000000000000</double>
</property>
<property name="maximum">
<double>0.100000000000000</double>
</property>
<property name="singleStep">
<double>0.010000000000000</double>
</property>
<property name="value">
<double>0.020000000000000</double>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="label_7">
<property name="enabled">
<bool>true</bool>
</property>
<property name="text">
<string>Aggressiveness</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="3" column="2">
<widget class="QFrame" name="frame_10"> <widget class="QFrame" name="frame_10">
<property name="frameShape"> <property name="frameShape">
<enum>QFrame::NoFrame</enum> <enum>QFrame::NoFrame</enum>
@ -553,15 +669,36 @@
</layout> </layout>
</widget> </widget>
</item> </item>
<item row="2" column="1"> <item row="2" column="2">
<widget class="QFrame" name="frame_9"> <widget class="QFrame" name="frame_constants">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>230</width>
<height>140</height>
</size>
</property>
<property name="frameShape"> <property name="frameShape">
<enum>QFrame::NoFrame</enum> <enum>QFrame::NoFrame</enum>
</property> </property>
<property name="frameShadow"> <property name="frameShadow">
<enum>QFrame::Raised</enum> <enum>QFrame::Raised</enum>
</property> </property>
<layout class="QHBoxLayout" name="horizontalLayout_3"> <property name="lineWidth">
<number>0</number>
</property>
<layout class="QHBoxLayout" name="horizontalLayout_2" stretch="0,1">
<property name="leftMargin"> <property name="leftMargin">
<number>0</number> <number>0</number>
</property> </property>
@ -574,11 +711,8 @@
<property name="bottomMargin"> <property name="bottomMargin">
<number>0</number> <number>0</number>
</property> </property>
<item> <item alignment="Qt::AlignLeft">
<widget class="QDoubleSpinBox" name="doubleSpinBox_aggressiveness"> <widget class="QComboBox" name="comboBox_winSize">
<property name="enabled">
<bool>true</bool>
</property>
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>55</width> <width>55</width>
@ -588,84 +722,51 @@
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
<width>55</width> <width>55</width>
<height>16777215</height> <height>25</height>
</size> </size>
</property> </property>
<property name="minimum"> <property name="editable">
<double>-0.100000000000000</double> <bool>true</bool>
</property> </property>
<property name="maximum"> <property name="currentText">
<double>0.100000000000000</double> <string notr="true">352</string>
</property> </property>
<property name="singleStep"> <property name="currentIndex">
<double>0.010000000000000</double> <number>0</number>
</property> </property>
<property name="value"> <property name="canEdit" stdset="0">
<double>0.020000000000000</double> <bool>true</bool>
</property> </property>
<item>
<property name="text">
<string notr="true">352</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">512</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">1024</string>
</property>
</item>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QLabel" name="label_7"> <widget class="QLabel" name="label_winSize">
<property name="enabled">
<bool>true</bool>
</property>
<property name="text"> <property name="text">
<string>Aggressiveness</string> <string>Window Size</string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter</set>
</property> </property>
</widget> </widget>
</item> </item>
</layout> </layout>
</widget> </widget>
</item> </item>
<item row="3" column="0">
<widget class="QCheckBox" name="checkBox_outputImage">
<property name="toolTip">
<string>Save spectogram of seperated music files</string>
</property>
<property name="text">
<string>Output Image</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QCheckBox" name="checkBox_gpuConversion">
<property name="text">
<string>GPU Conversion</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QCheckBox" name="checkBox_tta">
<property name="text">
<string>TTA</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QCheckBox" name="checkBox_modelFolder">
<property name="text">
<string>Model Test Mode</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QCheckBox" name="checkBox_postProcess">
<property name="text">
<string>Post-Process</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QCheckBox" name="checkBox_deepExtraction">
<property name="enabled">
<bool>true</bool>
</property>
<property name="text">
<string>Deep extraction</string>
</property>
</widget>
</item>
</layout> </layout>
</widget> </widget>
</item> </item>
@ -680,6 +781,12 @@
<height>104</height> <height>104</height>
</size> </size>
</property> </property>
<property name="maximumSize">
<size>
<width>230</width>
<height>16777215</height>
</size>
</property>
<property name="acceptDrops"> <property name="acceptDrops">
<bool>true</bool> <bool>true</bool>
</property> </property>
@ -773,7 +880,7 @@
<property name="settingsContent" stdset="0"> <property name="settingsContent" stdset="0">
<bool>true</bool> <bool>true</bool>
</property> </property>
<layout class="QGridLayout" name="gridLayout_17" rowstretch="0"> <layout class="QVBoxLayout" name="verticalLayout_29">
<property name="leftMargin"> <property name="leftMargin">
<number>20</number> <number>20</number>
</property> </property>
@ -786,10 +893,29 @@
<property name="bottomMargin"> <property name="bottomMargin">
<number>10</number> <number>10</number>
</property> </property>
<property name="horizontalSpacing"> <item>
<number>10</number> <widget class="QComboBox" name="comboBox_presets">
</property> <property name="sizePolicy">
<item row="0" column="1"> <sizepolicy hsizetype="Minimum" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>25</height>
</size>
</property>
<property name="sizeAdjustPolicy">
<enum>QComboBox::AdjustToMinimumContentsLength</enum>
</property>
<property name="modelColumn">
<number>0</number>
</property>
</widget>
</item>
<item alignment="Qt::AlignHCenter">
<widget class="QPushButton" name="pushButton_presetsEdit"> <widget class="QPushButton" name="pushButton_presetsEdit">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Fixed"> <sizepolicy hsizetype="Maximum" vsizetype="Fixed">
@ -817,22 +943,6 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="0">
<widget class="QComboBox" name="comboBox_presets">
<property name="minimumSize">
<size>
<width>0</width>
<height>25</height>
</size>
</property>
<property name="sizeAdjustPolicy">
<enum>QComboBox::AdjustToMinimumContentsLength</enum>
</property>
<property name="modelColumn">
<number>0</number>
</property>
</widget>
</item>
</layout> </layout>
</widget> </widget>
</item> </item>
@ -984,7 +1094,7 @@
</size> </size>
</property> </property>
<property name="currentIndex"> <property name="currentIndex">
<number>1</number> <number>0</number>
</property> </property>
<property name="settingsContent" stdset="0"> <property name="settingsContent" stdset="0">
<bool>true</bool> <bool>true</bool>
@ -1083,110 +1193,6 @@
</layout> </layout>
</widget> </widget>
</item> </item>
<item row="0" column="1">
<widget class="QFrame" name="frame_constants">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>230</width>
<height>140</height>
</size>
</property>
<property name="frameShape">
<enum>QFrame::NoFrame</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<property name="lineWidth">
<number>0</number>
</property>
<layout class="QGridLayout" name="gridLayout_5" columnstretch="1,0">
<property name="topMargin">
<number>5</number>
</property>
<property name="bottomMargin">
<number>3</number>
</property>
<item row="0" column="1">
<widget class="QLabel" name="label_winSize">
<property name="minimumSize">
<size>
<width>80</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>80</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>Window Size</string>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QComboBox" name="comboBox_winSize">
<property name="minimumSize">
<size>
<width>0</width>
<height>25</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>60</width>
<height>25</height>
</size>
</property>
<property name="editable">
<bool>true</bool>
</property>
<property name="currentText">
<string notr="true">352</string>
</property>
<property name="currentIndex">
<number>0</number>
</property>
<property name="canEdit" stdset="0">
<bool>true</bool>
</property>
<item>
<property name="text">
<string notr="true">352</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">512</string>
</property>
</item>
<item>
<property name="text">
<string notr="true">1024</string>
</property>
</item>
</widget>
</item>
</layout>
</widget>
</item>
<item row="0" column="2"> <item row="0" column="2">
<widget class="QFrame" name="frame_stackComboBox"> <widget class="QFrame" name="frame_stackComboBox">
<property name="frameShape"> <property name="frameShape">