class Ui_InterfaceTopTagsOptionsPage(object): def setupUi(self, InterfaceTopTagsOptionsPage): InterfaceTopTagsOptionsPage.setObjectName( "InterfaceTopTagsOptionsPage") InterfaceTopTagsOptionsPage.resize(418, 310) self.vboxlayout = QtWidgets.QVBoxLayout(InterfaceTopTagsOptionsPage) self.vboxlayout.setContentsMargins(9, 9, 9, 9) self.vboxlayout.setSpacing(6) self.vboxlayout.setObjectName("vboxlayout") self.label = QtWidgets.QLabel(InterfaceTopTagsOptionsPage) self.label.setObjectName("label") self.vboxlayout.addWidget(self.label) self.top_tags_list = TagListEditor(InterfaceTopTagsOptionsPage) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.top_tags_list.sizePolicy().hasHeightForWidth()) self.top_tags_list.setSizePolicy(sizePolicy) self.top_tags_list.setObjectName("top_tags_list") self.vboxlayout.addWidget(self.top_tags_list) self.retranslateUi(InterfaceTopTagsOptionsPage) QtCore.QMetaObject.connectSlotsByName(InterfaceTopTagsOptionsPage) def retranslateUi(self, InterfaceTopTagsOptionsPage): _translate = QtCore.QCoreApplication.translate self.label.setText( _("Show the below tags above all other tags in the metadata view"))
def setupUi(self, InterfaceTopTagsOptionsPage): InterfaceTopTagsOptionsPage.setObjectName( "InterfaceTopTagsOptionsPage") InterfaceTopTagsOptionsPage.resize(418, 310) self.vboxlayout = QtWidgets.QVBoxLayout(InterfaceTopTagsOptionsPage) self.vboxlayout.setContentsMargins(9, 9, 9, 9) self.vboxlayout.setSpacing(6) self.vboxlayout.setObjectName("vboxlayout") self.groupBox = QtWidgets.QGroupBox(InterfaceTopTagsOptionsPage) self.groupBox.setObjectName("groupBox") self.verticalLayout = QtWidgets.QVBoxLayout(self.groupBox) self.verticalLayout.setObjectName("verticalLayout") self.top_tags_list = TagListEditor(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.top_tags_list.sizePolicy().hasHeightForWidth()) self.top_tags_list.setSizePolicy(sizePolicy) self.top_tags_list.setObjectName("top_tags_list") self.verticalLayout.addWidget(self.top_tags_list) self.vboxlayout.addWidget(self.groupBox) self.retranslateUi(InterfaceTopTagsOptionsPage) QtCore.QMetaObject.connectSlotsByName(InterfaceTopTagsOptionsPage)
def setupUi(self, TagsOptionsPage): TagsOptionsPage.setObjectName("TagsOptionsPage") TagsOptionsPage.resize(539, 525) self.vboxlayout = QtWidgets.QVBoxLayout(TagsOptionsPage) self.vboxlayout.setObjectName("vboxlayout") self.write_tags = QtWidgets.QCheckBox(TagsOptionsPage) self.write_tags.setObjectName("write_tags") self.vboxlayout.addWidget(self.write_tags) self.preserve_timestamps = QtWidgets.QCheckBox(TagsOptionsPage) self.preserve_timestamps.setObjectName("preserve_timestamps") self.vboxlayout.addWidget(self.preserve_timestamps) self.before_tagging = QtWidgets.QGroupBox(TagsOptionsPage) self.before_tagging.setObjectName("before_tagging") self.vboxlayout1 = QtWidgets.QVBoxLayout(self.before_tagging) self.vboxlayout1.setContentsMargins(-1, 6, -1, 7) self.vboxlayout1.setSpacing(2) self.vboxlayout1.setObjectName("vboxlayout1") self.clear_existing_tags = QtWidgets.QCheckBox(self.before_tagging) self.clear_existing_tags.setObjectName("clear_existing_tags") self.vboxlayout1.addWidget(self.clear_existing_tags) self.remove_id3_from_flac = QtWidgets.QCheckBox(self.before_tagging) self.remove_id3_from_flac.setObjectName("remove_id3_from_flac") self.vboxlayout1.addWidget(self.remove_id3_from_flac) self.remove_ape_from_mp3 = QtWidgets.QCheckBox(self.before_tagging) self.remove_ape_from_mp3.setObjectName("remove_ape_from_mp3") self.vboxlayout1.addWidget(self.remove_ape_from_mp3) spacerItem = QtWidgets.QSpacerItem(20, 6, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) self.vboxlayout1.addItem(spacerItem) self.preserved_tags_label = QtWidgets.QLabel(self.before_tagging) self.preserved_tags_label.setObjectName("preserved_tags_label") self.vboxlayout1.addWidget(self.preserved_tags_label) self.preserved_tags = TagListEditor(self.before_tagging) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.preserved_tags.sizePolicy().hasHeightForWidth()) self.preserved_tags.setSizePolicy(sizePolicy) self.preserved_tags.setObjectName("preserved_tags") self.vboxlayout1.addWidget(self.preserved_tags) self.vboxlayout.addWidget(self.before_tagging) self.retranslateUi(TagsOptionsPage) QtCore.QMetaObject.connectSlotsByName(TagsOptionsPage) TagsOptionsPage.setTabOrder(self.write_tags, self.preserve_timestamps) TagsOptionsPage.setTabOrder(self.preserve_timestamps, self.clear_existing_tags) TagsOptionsPage.setTabOrder(self.clear_existing_tags, self.remove_id3_from_flac) TagsOptionsPage.setTabOrder(self.remove_id3_from_flac, self.remove_ape_from_mp3) TagsOptionsPage.setTabOrder(self.remove_ape_from_mp3, self.preserved_tags)
def setupUi(self, AdvancedOptionsPage): AdvancedOptionsPage.setObjectName("AdvancedOptionsPage") AdvancedOptionsPage.resize(570, 435) self.vboxlayout = QtWidgets.QVBoxLayout(AdvancedOptionsPage) self.vboxlayout.setObjectName("vboxlayout") self.groupBox = QtWidgets.QGroupBox(AdvancedOptionsPage) self.groupBox.setObjectName("groupBox") self.gridlayout = QtWidgets.QGridLayout(self.groupBox) self.gridlayout.setSpacing(2) self.gridlayout.setObjectName("gridlayout") self.recursively_add_files = QtWidgets.QCheckBox(self.groupBox) self.recursively_add_files.setObjectName("recursively_add_files") self.gridlayout.addWidget(self.recursively_add_files, 5, 0, 1, 1) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setSizeConstraint( QtWidgets.QLayout.SetDefaultConstraint) self.horizontalLayout.setObjectName("horizontalLayout") self.label_track_duration_diff = QtWidgets.QLabel(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_track_duration_diff.sizePolicy().hasHeightForWidth()) self.label_track_duration_diff.setSizePolicy(sizePolicy) self.label_track_duration_diff.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignVCenter) self.label_track_duration_diff.setObjectName( "label_track_duration_diff") self.horizontalLayout.addWidget(self.label_track_duration_diff) self.ignore_track_duration_difference_under = QtWidgets.QSpinBox( self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.ignore_track_duration_difference_under.sizePolicy( ).hasHeightForWidth()) self.ignore_track_duration_difference_under.setSizePolicy(sizePolicy) self.ignore_track_duration_difference_under.setButtonSymbols( QtWidgets.QAbstractSpinBox.UpDownArrows) self.ignore_track_duration_difference_under.setAccelerated(True) self.ignore_track_duration_difference_under.setSuffix("") self.ignore_track_duration_difference_under.setMinimum(1) self.ignore_track_duration_difference_under.setMaximum(7200) self.ignore_track_duration_difference_under.setProperty("value", 2) self.ignore_track_duration_difference_under.setObjectName( "ignore_track_duration_difference_under") self.horizontalLayout.addWidget( self.ignore_track_duration_difference_under) self.gridlayout.addLayout(self.horizontalLayout, 6, 0, 2, 1) self.label_ignore_regex = QtWidgets.QLabel(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_ignore_regex.sizePolicy().hasHeightForWidth()) self.label_ignore_regex.setSizePolicy(sizePolicy) self.label_ignore_regex.setWordWrap(True) self.label_ignore_regex.setObjectName("label_ignore_regex") self.gridlayout.addWidget(self.label_ignore_regex, 1, 0, 1, 1) self.regex_error = QtWidgets.QLabel(self.groupBox) self.regex_error.setText("") self.regex_error.setObjectName("regex_error") self.gridlayout.addWidget(self.regex_error, 3, 0, 1, 1) self.ignore_hidden_files = QtWidgets.QCheckBox(self.groupBox) self.ignore_hidden_files.setObjectName("ignore_hidden_files") self.gridlayout.addWidget(self.ignore_hidden_files, 4, 0, 1, 1) self.ignore_regex = QtWidgets.QLineEdit(self.groupBox) self.ignore_regex.setObjectName("ignore_regex") self.gridlayout.addWidget(self.ignore_regex, 2, 0, 1, 1) self.vboxlayout.addWidget(self.groupBox) self.groupBox_completeness = QtWidgets.QGroupBox(AdvancedOptionsPage) self.groupBox_completeness.setObjectName("groupBox_completeness") self.verticalLayout_2 = QtWidgets.QVBoxLayout( self.groupBox_completeness) self.verticalLayout_2.setObjectName("verticalLayout_2") self.completeness_ignore_videos = QtWidgets.QCheckBox( self.groupBox_completeness) self.completeness_ignore_videos.setObjectName( "completeness_ignore_videos") self.verticalLayout_2.addWidget(self.completeness_ignore_videos) self.completeness_ignore_pregap = QtWidgets.QCheckBox( self.groupBox_completeness) self.completeness_ignore_pregap.setObjectName( "completeness_ignore_pregap") self.verticalLayout_2.addWidget(self.completeness_ignore_pregap) self.completeness_ignore_data = QtWidgets.QCheckBox( self.groupBox_completeness) self.completeness_ignore_data.setCheckable(True) self.completeness_ignore_data.setObjectName("completeness_ignore_data") self.verticalLayout_2.addWidget(self.completeness_ignore_data) self.completeness_ignore_silence = QtWidgets.QCheckBox( self.groupBox_completeness) self.completeness_ignore_silence.setObjectName( "completeness_ignore_silence") self.verticalLayout_2.addWidget(self.completeness_ignore_silence) self.vboxlayout.addWidget(self.groupBox_completeness) self.groupBox_2 = QtWidgets.QGroupBox(AdvancedOptionsPage) self.groupBox_2.setObjectName("groupBox_2") self.verticalLayout = QtWidgets.QVBoxLayout(self.groupBox_2) self.verticalLayout.setObjectName("verticalLayout") self.compare_ignore_tags = TagListEditor(self.groupBox_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.compare_ignore_tags.sizePolicy().hasHeightForWidth()) self.compare_ignore_tags.setSizePolicy(sizePolicy) self.compare_ignore_tags.setObjectName("compare_ignore_tags") self.verticalLayout.addWidget(self.compare_ignore_tags) self.vboxlayout.addWidget(self.groupBox_2) self.retranslateUi(AdvancedOptionsPage) QtCore.QMetaObject.connectSlotsByName(AdvancedOptionsPage) AdvancedOptionsPage.setTabOrder(self.ignore_regex, self.ignore_hidden_files) AdvancedOptionsPage.setTabOrder(self.ignore_hidden_files, self.recursively_add_files) AdvancedOptionsPage.setTabOrder( self.recursively_add_files, self.ignore_track_duration_difference_under) AdvancedOptionsPage.setTabOrder( self.ignore_track_duration_difference_under, self.completeness_ignore_videos) AdvancedOptionsPage.setTabOrder(self.completeness_ignore_videos, self.completeness_ignore_pregap) AdvancedOptionsPage.setTabOrder(self.completeness_ignore_pregap, self.completeness_ignore_data) AdvancedOptionsPage.setTabOrder(self.completeness_ignore_data, self.completeness_ignore_silence)
class Ui_AdvancedOptionsPage(object): def setupUi(self, AdvancedOptionsPage): AdvancedOptionsPage.setObjectName("AdvancedOptionsPage") AdvancedOptionsPage.resize(570, 435) self.vboxlayout = QtWidgets.QVBoxLayout(AdvancedOptionsPage) self.vboxlayout.setObjectName("vboxlayout") self.groupBox = QtWidgets.QGroupBox(AdvancedOptionsPage) self.groupBox.setObjectName("groupBox") self.gridlayout = QtWidgets.QGridLayout(self.groupBox) self.gridlayout.setSpacing(2) self.gridlayout.setObjectName("gridlayout") self.recursively_add_files = QtWidgets.QCheckBox(self.groupBox) self.recursively_add_files.setObjectName("recursively_add_files") self.gridlayout.addWidget(self.recursively_add_files, 5, 0, 1, 1) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setSizeConstraint( QtWidgets.QLayout.SetDefaultConstraint) self.horizontalLayout.setObjectName("horizontalLayout") self.label_track_duration_diff = QtWidgets.QLabel(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_track_duration_diff.sizePolicy().hasHeightForWidth()) self.label_track_duration_diff.setSizePolicy(sizePolicy) self.label_track_duration_diff.setAlignment(QtCore.Qt.AlignLeading | QtCore.Qt.AlignLeft | QtCore.Qt.AlignVCenter) self.label_track_duration_diff.setObjectName( "label_track_duration_diff") self.horizontalLayout.addWidget(self.label_track_duration_diff) self.ignore_track_duration_difference_under = QtWidgets.QSpinBox( self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.ignore_track_duration_difference_under.sizePolicy( ).hasHeightForWidth()) self.ignore_track_duration_difference_under.setSizePolicy(sizePolicy) self.ignore_track_duration_difference_under.setButtonSymbols( QtWidgets.QAbstractSpinBox.UpDownArrows) self.ignore_track_duration_difference_under.setAccelerated(True) self.ignore_track_duration_difference_under.setSuffix("") self.ignore_track_duration_difference_under.setMinimum(1) self.ignore_track_duration_difference_under.setMaximum(7200) self.ignore_track_duration_difference_under.setProperty("value", 2) self.ignore_track_duration_difference_under.setObjectName( "ignore_track_duration_difference_under") self.horizontalLayout.addWidget( self.ignore_track_duration_difference_under) self.gridlayout.addLayout(self.horizontalLayout, 6, 0, 2, 1) self.label_ignore_regex = QtWidgets.QLabel(self.groupBox) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.label_ignore_regex.sizePolicy().hasHeightForWidth()) self.label_ignore_regex.setSizePolicy(sizePolicy) self.label_ignore_regex.setWordWrap(True) self.label_ignore_regex.setObjectName("label_ignore_regex") self.gridlayout.addWidget(self.label_ignore_regex, 1, 0, 1, 1) self.regex_error = QtWidgets.QLabel(self.groupBox) self.regex_error.setText("") self.regex_error.setObjectName("regex_error") self.gridlayout.addWidget(self.regex_error, 3, 0, 1, 1) self.ignore_hidden_files = QtWidgets.QCheckBox(self.groupBox) self.ignore_hidden_files.setObjectName("ignore_hidden_files") self.gridlayout.addWidget(self.ignore_hidden_files, 4, 0, 1, 1) self.ignore_regex = QtWidgets.QLineEdit(self.groupBox) self.ignore_regex.setObjectName("ignore_regex") self.gridlayout.addWidget(self.ignore_regex, 2, 0, 1, 1) self.vboxlayout.addWidget(self.groupBox) self.groupBox_completeness = QtWidgets.QGroupBox(AdvancedOptionsPage) self.groupBox_completeness.setObjectName("groupBox_completeness") self.verticalLayout_2 = QtWidgets.QVBoxLayout( self.groupBox_completeness) self.verticalLayout_2.setObjectName("verticalLayout_2") self.completeness_ignore_videos = QtWidgets.QCheckBox( self.groupBox_completeness) self.completeness_ignore_videos.setObjectName( "completeness_ignore_videos") self.verticalLayout_2.addWidget(self.completeness_ignore_videos) self.completeness_ignore_pregap = QtWidgets.QCheckBox( self.groupBox_completeness) self.completeness_ignore_pregap.setObjectName( "completeness_ignore_pregap") self.verticalLayout_2.addWidget(self.completeness_ignore_pregap) self.completeness_ignore_data = QtWidgets.QCheckBox( self.groupBox_completeness) self.completeness_ignore_data.setCheckable(True) self.completeness_ignore_data.setObjectName("completeness_ignore_data") self.verticalLayout_2.addWidget(self.completeness_ignore_data) self.completeness_ignore_silence = QtWidgets.QCheckBox( self.groupBox_completeness) self.completeness_ignore_silence.setObjectName( "completeness_ignore_silence") self.verticalLayout_2.addWidget(self.completeness_ignore_silence) self.vboxlayout.addWidget(self.groupBox_completeness) self.groupBox_2 = QtWidgets.QGroupBox(AdvancedOptionsPage) self.groupBox_2.setObjectName("groupBox_2") self.verticalLayout = QtWidgets.QVBoxLayout(self.groupBox_2) self.verticalLayout.setObjectName("verticalLayout") self.compare_ignore_tags = TagListEditor(self.groupBox_2) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.compare_ignore_tags.sizePolicy().hasHeightForWidth()) self.compare_ignore_tags.setSizePolicy(sizePolicy) self.compare_ignore_tags.setObjectName("compare_ignore_tags") self.verticalLayout.addWidget(self.compare_ignore_tags) self.vboxlayout.addWidget(self.groupBox_2) self.retranslateUi(AdvancedOptionsPage) QtCore.QMetaObject.connectSlotsByName(AdvancedOptionsPage) AdvancedOptionsPage.setTabOrder(self.ignore_regex, self.ignore_hidden_files) AdvancedOptionsPage.setTabOrder(self.ignore_hidden_files, self.recursively_add_files) AdvancedOptionsPage.setTabOrder( self.recursively_add_files, self.ignore_track_duration_difference_under) AdvancedOptionsPage.setTabOrder( self.ignore_track_duration_difference_under, self.completeness_ignore_videos) AdvancedOptionsPage.setTabOrder(self.completeness_ignore_videos, self.completeness_ignore_pregap) AdvancedOptionsPage.setTabOrder(self.completeness_ignore_pregap, self.completeness_ignore_data) AdvancedOptionsPage.setTabOrder(self.completeness_ignore_data, self.completeness_ignore_silence) def retranslateUi(self, AdvancedOptionsPage): _translate = QtCore.QCoreApplication.translate self.groupBox.setTitle(_("Advanced options")) self.recursively_add_files.setText( _("Include sub-folders when adding files from folder")) self.label_track_duration_diff.setText( _("Ignore track duration difference under this number of seconds")) self.label_ignore_regex.setText( _("Ignore file paths matching the following regular expression:")) self.ignore_hidden_files.setText(_("Ignore hidden files")) self.groupBox_completeness.setTitle( _("Ignore the following tracks when determining whether a release is complete" )) self.completeness_ignore_videos.setText(_("Video tracks")) self.completeness_ignore_pregap.setText(_("Pregap tracks")) self.completeness_ignore_data.setText(_("Data tracks")) self.completeness_ignore_silence.setText(_("Silent tracks")) self.groupBox_2.setTitle(_("Tags to ignore for comparison:"))
class Ui_TagsOptionsPage(object): def setupUi(self, TagsOptionsPage): TagsOptionsPage.setObjectName("TagsOptionsPage") TagsOptionsPage.resize(567, 525) self.vboxlayout = QtWidgets.QVBoxLayout(TagsOptionsPage) self.vboxlayout.setObjectName("vboxlayout") self.write_tags = QtWidgets.QCheckBox(TagsOptionsPage) self.write_tags.setObjectName("write_tags") self.vboxlayout.addWidget(self.write_tags) self.preserve_timestamps = QtWidgets.QCheckBox(TagsOptionsPage) self.preserve_timestamps.setObjectName("preserve_timestamps") self.vboxlayout.addWidget(self.preserve_timestamps) self.before_tagging = QtWidgets.QGroupBox(TagsOptionsPage) self.before_tagging.setObjectName("before_tagging") self.vboxlayout1 = QtWidgets.QVBoxLayout(self.before_tagging) self.vboxlayout1.setContentsMargins(-1, 6, -1, 7) self.vboxlayout1.setSpacing(2) self.vboxlayout1.setObjectName("vboxlayout1") self.clear_existing_tags = QtWidgets.QCheckBox(self.before_tagging) self.clear_existing_tags.setObjectName("clear_existing_tags") self.vboxlayout1.addWidget(self.clear_existing_tags) self.preserve_images = QtWidgets.QCheckBox(self.before_tagging) self.preserve_images.setEnabled(False) self.preserve_images.setObjectName("preserve_images") self.vboxlayout1.addWidget(self.preserve_images) self.remove_id3_from_flac = QtWidgets.QCheckBox(self.before_tagging) self.remove_id3_from_flac.setObjectName("remove_id3_from_flac") self.vboxlayout1.addWidget(self.remove_id3_from_flac) self.remove_ape_from_mp3 = QtWidgets.QCheckBox(self.before_tagging) self.remove_ape_from_mp3.setObjectName("remove_ape_from_mp3") self.vboxlayout1.addWidget(self.remove_ape_from_mp3) spacerItem = QtWidgets.QSpacerItem(20, 6, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) self.vboxlayout1.addItem(spacerItem) self.preserved_tags_label = QtWidgets.QLabel(self.before_tagging) self.preserved_tags_label.setObjectName("preserved_tags_label") self.vboxlayout1.addWidget(self.preserved_tags_label) self.preserved_tags = TagListEditor(self.before_tagging) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.preserved_tags.sizePolicy().hasHeightForWidth()) self.preserved_tags.setSizePolicy(sizePolicy) self.preserved_tags.setObjectName("preserved_tags") self.vboxlayout1.addWidget(self.preserved_tags) self.vboxlayout.addWidget(self.before_tagging) self.retranslateUi(TagsOptionsPage) self.clear_existing_tags.toggled['bool'].connect( self.preserve_images.setEnabled) # type: ignore QtCore.QMetaObject.connectSlotsByName(TagsOptionsPage) TagsOptionsPage.setTabOrder(self.write_tags, self.preserve_timestamps) TagsOptionsPage.setTabOrder(self.preserve_timestamps, self.clear_existing_tags) TagsOptionsPage.setTabOrder(self.clear_existing_tags, self.preserve_images) TagsOptionsPage.setTabOrder(self.preserve_images, self.remove_id3_from_flac) TagsOptionsPage.setTabOrder(self.remove_id3_from_flac, self.remove_ape_from_mp3) def retranslateUi(self, TagsOptionsPage): _translate = QtCore.QCoreApplication.translate self.write_tags.setText(_("Write tags to files")) self.preserve_timestamps.setText( _("Preserve timestamps of tagged files")) self.before_tagging.setTitle(_("Before Tagging")) self.clear_existing_tags.setText(_("Clear existing tags")) self.preserve_images.setText( _("Keep embedded images when clearing tags")) self.remove_id3_from_flac.setText(_("Remove ID3 tags from FLAC files")) self.remove_ape_from_mp3.setText(_("Remove APEv2 tags from MP3 files")) self.preserved_tags_label.setText( _("Preserve these tags from being cleared or overwritten with MusicBrainz data:" ))