def saveSettings(self):
lineEdit_filemaskregex = self.findChild(QLineEdit, "lineEdit_filemaskregex")
cfg.settings.setValue('Options/FilemaskRegEx', lineEdit_filemaskregex.text())
lineEdit_mediainfo_path = self.findChild(QLineEdit, "lineEdit_mediainfo_path")
cfg.settings.setValue('Paths/mediainfo_bin', lineEdit_mediainfo_path.text())
lineEdit_mp3guessenc_path = self.findChild(QLineEdit, "lineEdit_mp3guessenc_path")
cfg.settings.setValue('Paths/mp3guessenc_bin', lineEdit_mp3guessenc_path.text())
lineEdit_aucdtect_path = self.findChild(QLineEdit, "lineEdit_aucdtect_path")
cfg.settings.setValue('Paths/aucdtect_bin', lineEdit_aucdtect_path.text())
lineEdit_sox_path = self.findChild(QLineEdit, "lineEdit_sox_path")
cfg.settings.setValue('Paths/sox_bin', lineEdit_sox_path.text())
lineEdit_ffprobe_path = self.findChild(QLineEdit, "lineEdit_ffprobe_path")
cfg.settings.setValue('Paths/ffprobe_bin', lineEdit_ffprobe_path.text())
checkBox_recursive = self.findChild(QCheckBox, "checkBox_recursive")
cfg.settings.setValue('Options/RecurseDirectories', checkBox_recursive.isChecked())
checkBox_followsymlinks = self.findChild(QCheckBox, "checkBox_followsymlinks")
cfg.settings.setValue('Options/FollowSymlinks', checkBox_followsymlinks.isChecked())
checkBox_cache = self.findChild(QCheckBox, "checkBox_cache")
cfg.settings.setValue('Options/UseCache', checkBox_cache.isChecked())
checkBox_cacheraw = self.findChild(QCheckBox, "checkBox_cacheraw")
cfg.settings.setValue('Options/CacheRawOutput', checkBox_cacheraw.isChecked())
spinBox_processes = self.findChild(QSpinBox, "spinBox_processes")
cfg.settings.setValue('Options/Processes', spinBox_processes.value())
spinBox_spectrogram_palette = self.findChild(QSpinBox, "spinBox_spectrogram_palette")
cfg.settings.setValue('Options/SpectrogramPalette', spinBox_spectrogram_palette.value())
checkBox_debug = self.findChild(QCheckBox, "checkBox_debug")
cfg.settings.setValue('Options/Debug', checkBox_debug.isChecked())
cfg.debug_enabled = checkBox_debug.isChecked()
checkBox_savewindowstate = self.findChild(QCheckBox, "checkBox_savewindowstate")
cfg.settings.setValue('Options/SaveWindowState', checkBox_savewindowstate.isChecked())
checkBox_clearfilelist = self.findChild(QCheckBox, "checkBox_clearfilelist")
cfg.settings.setValue('Options/ClearFilelist', checkBox_clearfilelist.isChecked())
checkBox_spectrogram = self.findChild(QCheckBox, "checkBox_spectrogram")
cfg.settings.setValue('Options/EnableSpectrogram', checkBox_spectrogram.isChecked())
checkBox_bitrate_graph = self.findChild(QCheckBox, "checkBox_bitrate_graph")
cfg.settings.setValue('Options/EnableBitGraph', checkBox_bitrate_graph.isChecked())
checkBox_aucdtect_scan = self.findChild(QCheckBox, "checkBox_aucdtect_scan")
cfg.settings.setValue('Options/auCDtect_scan', checkBox_aucdtect_scan.isChecked())
horizontalSlider_aucdtect_mode = self.findChild(QSlider, "horizontalSlider_aucdtect_mode")
cfg.settings.setValue('Options/auCDtect_mode', horizontalSlider_aucdtect_mode.value())
self.close()
评论列表
文章目录