def __init__(self, parent, authors_edit, autogen_button, db, copy_a_to_as_action, copy_as_to_a_action, a_to_as, as_to_a): EnLineEdit.__init__(self, parent) self.authors_edit = authors_edit self.db = db base = self.TOOLTIP ok_tooltip = '<p>' + textwrap.fill(base+'<br><br>'+ _(' The green color indicates that the current ' 'author sort matches the current author')) bad_tooltip = '<p>'+textwrap.fill(base + '<br><br>'+ _(' The red color indicates that the current ' 'author sort does not match the current author. ' 'No action is required if this is what you want.')) self.tooltips = (ok_tooltip, bad_tooltip) self.authors_edit.editTextChanged.connect(self.update_state_and_val) self.textChanged.connect(self.update_state) self.autogen_button = autogen_button self.copy_a_to_as_action = copy_a_to_as_action self.copy_as_to_a_action = copy_as_to_a_action autogen_button.clicked.connect(self.auto_generate) copy_a_to_as_action.triggered.connect(self.auto_generate) copy_as_to_a_action.triggered.connect(self.copy_to_authors) a_to_as.triggered.connect(self.author_to_sort) as_to_a.triggered.connect(self.sort_to_author) self.update_state()
def createEditor(self, parent, option, index): if index.column() == 0: if self.completion_data: from calibre.gui2.complete2 import EditWithComplete editor = EditWithComplete(parent) editor.set_separator(None) editor.update_items_cache(self.completion_data) else: from calibre.gui2.widgets import EnLineEdit editor = EnLineEdit(parent) return editor return QItemDelegate.createEditor(self, parent, option, index)
def createEditor(self, parent, option, index): if self.auto_complete_function: if self.use_title_sort: editor = EditWithComplete(parent, sort_func=title_sort) else: editor = EditWithComplete(parent) editor.set_separator(None) editor.set_clear_button_enabled(False) complete_items = [i[1] for i in self.auto_complete_function()] editor.update_items_cache(complete_items) else: editor = EnLineEdit(parent) return editor
def createEditor(self, parent, option, index): self.editing_started.emit(index.row()) if index.column() == 0: self.item = self.table.itemFromIndex(index) if self.item.is_deleted: return None if self.completion_data: editor = EditWithComplete(parent) editor.set_separator(None) editor.update_items_cache(self.completion_data) else: editor = EnLineEdit(parent) return editor return None
def createEditor(self, parent, option, index): if self.db and hasattr(self.db, self.items_func_name): col = index.model().column_map[index.column()] editor = EditWithComplete(parent) editor.set_separator(self.sep) editor.set_space_before_sep(self.space_before_sep) if self.sep == '&': editor.set_add_separator(tweaks['authors_completer_append_separator']) if not index.model().is_custom_column(col): all_items = getattr(self.db, self.items_func_name)() else: all_items = list(self.db.all_custom( label=self.db.field_metadata.key_to_label(col))) editor.update_items_cache(all_items) else: editor = EnLineEdit(parent) return editor
def createEditor(self, parent, option, index): if self.db and hasattr(self.db, self.items_func_name): editor = EditWithComplete(parent) editor.set_separator(self.sep) editor.set_space_before_sep(self.space_before_sep) if self.sep == '&': editor.set_add_separator( tweaks['authors_completer_append_separator']) if self.col.startswith('#'): all_items = list( self.db.all_custom( label=self.db.field_metadata.key_to_label(self.col))) else: all_items = getattr(self.db, self.items_func_name)() editor.update_items_cache(all_items) for item in sorted(all_items, key=sort_key): editor.addItem(item) ct = index.data(Qt.DisplayRole).toString() editor.show_initial_value(ct) else: editor = EnLineEdit(parent) return editor
class Ui_MetadataBulkDialog(object): def setupUi(self, MetadataBulkDialog): MetadataBulkDialog.setObjectName("MetadataBulkDialog") MetadataBulkDialog.resize(955, 740) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(I("edit_input.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) MetadataBulkDialog.setWindowIcon(icon) self.verticalLayout_3 = QtWidgets.QVBoxLayout(MetadataBulkDialog) self.verticalLayout_3.setObjectName("verticalLayout_3") self.central_widget = QtWidgets.QTabWidget(MetadataBulkDialog) self.central_widget.setObjectName("central_widget") self.scrollArea1 = QtWidgets.QScrollArea() self.scrollArea1.setFrameShape(QtWidgets.QFrame.NoFrame) self.scrollArea1.setWidgetResizable(True) self.scrollArea1.setObjectName("scrollArea1") self.btab = QtWidgets.QWidget() self.btab.setGeometry(QtCore.QRect(0, 0, 933, 660)) self.btab.setObjectName("btab") self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.btab) self.verticalLayout_4.setObjectName("verticalLayout_4") self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.label_2 = QtWidgets.QLabel(self.btab) self.label_2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_2.setObjectName("label_2") self.gridLayout.addWidget(self.label_2, 0, 0, 1, 1) self.authors = EditWithComplete(self.btab) self.authors.setEditable(True) self.authors.setObjectName("authors") self.gridLayout.addWidget(self.authors, 0, 1, 1, 1) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.auto_author_sort = QtWidgets.QCheckBox(self.btab) self.auto_author_sort.setObjectName("auto_author_sort") self.horizontalLayout_2.addWidget(self.auto_author_sort) self.swap_title_and_author = QtWidgets.QCheckBox(self.btab) self.swap_title_and_author.setObjectName("swap_title_and_author") self.horizontalLayout_2.addWidget(self.swap_title_and_author) self.gridLayout.addLayout(self.horizontalLayout_2, 1, 1, 1, 1) self.label_8 = QtWidgets.QLabel(self.btab) self.label_8.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_8.setObjectName("label_8") self.gridLayout.addWidget(self.label_8, 2, 0, 1, 1) self.author_sort = EnLineEdit(self.btab) self.author_sort.setObjectName("author_sort") self.gridLayout.addWidget(self.author_sort, 2, 1, 1, 1) self.label_6 = QtWidgets.QLabel(self.btab) self.label_6.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_6.setObjectName("label_6") self.gridLayout.addWidget(self.label_6, 3, 0, 1, 1) self.rating = RatingEditor(self.btab) self.rating.setObjectName("rating") self.gridLayout.addWidget(self.rating, 3, 1, 1, 1) self.apply_rating = QtWidgets.QCheckBox(self.btab) self.apply_rating.setObjectName("apply_rating") self.gridLayout.addWidget(self.apply_rating, 3, 2, 1, 1) self.label_3 = QtWidgets.QLabel(self.btab) self.label_3.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_3.setObjectName("label_3") self.gridLayout.addWidget(self.label_3, 4, 0, 1, 1) self.publisher = EditWithComplete(self.btab) self.publisher.setEditable(True) self.publisher.setObjectName("publisher") self.gridLayout.addWidget(self.publisher, 4, 1, 1, 1) self.clear_pub = QtWidgets.QCheckBox(self.btab) self.clear_pub.setObjectName("clear_pub") self.gridLayout.addWidget(self.clear_pub, 4, 2, 1, 1) self.label_4 = QtWidgets.QLabel(self.btab) self.label_4.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_4.setObjectName("label_4") self.gridLayout.addWidget(self.label_4, 5, 0, 1, 1) self.tags = EditWithComplete(self.btab) self.tags.setObjectName("tags") self.gridLayout.addWidget(self.tags, 5, 1, 1, 1) self.tag_editor_button = QtWidgets.QToolButton(self.btab) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(I("chapters.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.tag_editor_button.setIcon(icon1) self.tag_editor_button.setObjectName("tag_editor_button") self.gridLayout.addWidget(self.tag_editor_button, 5, 2, 1, 1) self.label = QtWidgets.QLabel(self.btab) self.label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label.setObjectName("label") self.gridLayout.addWidget(self.label, 6, 0, 1, 1) self.remove_tags = EditWithComplete(self.btab) self.remove_tags.setObjectName("remove_tags") self.gridLayout.addWidget(self.remove_tags, 6, 1, 1, 1) self.remove_all_tags = QtWidgets.QCheckBox(self.btab) self.remove_all_tags.setObjectName("remove_all_tags") self.gridLayout.addWidget(self.remove_all_tags, 6, 2, 1, 1) self.label_7 = QtWidgets.QLabel(self.btab) self.label_7.setTextFormat(QtCore.Qt.PlainText) self.label_7.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_7.setObjectName("label_7") self.gridLayout.addWidget(self.label_7, 7, 0, 1, 1) self.series = EditWithComplete(self.btab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.series.sizePolicy().hasHeightForWidth()) self.series.setSizePolicy(sizePolicy) self.series.setEditable(True) self.series.setInsertPolicy(QtWidgets.QComboBox.InsertAlphabetically) self.series.setSizeAdjustPolicy(QtWidgets.QComboBox.AdjustToMinimumContentsLengthWithIcon) self.series.setMinimumContentsLength(40) self.series.setObjectName("series") self.gridLayout.addWidget(self.series, 7, 1, 1, 1) self.clear_series = QtWidgets.QCheckBox(self.btab) self.clear_series.setObjectName("clear_series") self.gridLayout.addWidget(self.clear_series, 7, 2, 1, 1) self.HLayout_3 = QtWidgets.QHBoxLayout() self.HLayout_3.setObjectName("HLayout_3") self.autonumber_series = QtWidgets.QCheckBox(self.btab) self.autonumber_series.setEnabled(False) self.autonumber_series.setObjectName("autonumber_series") self.HLayout_3.addWidget(self.autonumber_series) self.series_numbering_restarts = QtWidgets.QCheckBox(self.btab) self.series_numbering_restarts.setEnabled(False) self.series_numbering_restarts.setObjectName("series_numbering_restarts") self.HLayout_3.addWidget(self.series_numbering_restarts) self.series_start_number = QtWidgets.QDoubleSpinBox(self.btab) self.series_start_number.setEnabled(False) self.series_start_number.setMinimum(0.0) self.series_start_number.setMaximum(99000000.0) self.series_start_number.setProperty("value", 1.0) self.series_start_number.setObjectName("series_start_number") self.HLayout_3.addWidget(self.series_start_number) self.series_increment = QtWidgets.QDoubleSpinBox(self.btab) self.series_increment.setEnabled(False) self.series_increment.setMinimum(0.0) self.series_increment.setMaximum(99999.0) self.series_increment.setProperty("value", 1.0) self.series_increment.setObjectName("series_increment") self.HLayout_3.addWidget(self.series_increment) self.gridLayout.addLayout(self.HLayout_3, 8, 1, 1, 1) self.label_10 = QtWidgets.QLabel(self.btab) self.label_10.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_10.setObjectName("label_10") self.gridLayout.addWidget(self.label_10, 9, 0, 1, 1) self.horizontalLayout_5 = QtWidgets.QHBoxLayout() self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.adddate = DateTimeEdit(self.btab) self.adddate.setCalendarPopup(True) self.adddate.setObjectName("adddate") self.horizontalLayout_5.addWidget(self.adddate) self.clear_adddate_button = QtWidgets.QToolButton(self.btab) icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap(I("trash.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.clear_adddate_button.setIcon(icon2) self.clear_adddate_button.setObjectName("clear_adddate_button") self.horizontalLayout_5.addWidget(self.clear_adddate_button) self.gridLayout.addLayout(self.horizontalLayout_5, 9, 1, 1, 1) self.apply_adddate = QtWidgets.QCheckBox(self.btab) self.apply_adddate.setObjectName("apply_adddate") self.gridLayout.addWidget(self.apply_adddate, 9, 2, 1, 1) self.label_9 = QtWidgets.QLabel(self.btab) self.label_9.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_9.setObjectName("label_9") self.gridLayout.addWidget(self.label_9, 10, 0, 1, 1) self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.pubdate = DateTimeEdit(self.btab) self.pubdate.setCalendarPopup(True) self.pubdate.setObjectName("pubdate") self.horizontalLayout_4.addWidget(self.pubdate) self.clear_pubdate_button = QtWidgets.QToolButton(self.btab) self.clear_pubdate_button.setIcon(icon2) self.clear_pubdate_button.setObjectName("clear_pubdate_button") self.horizontalLayout_4.addWidget(self.clear_pubdate_button) self.gridLayout.addLayout(self.horizontalLayout_4, 10, 1, 1, 1) self.apply_pubdate = QtWidgets.QCheckBox(self.btab) self.apply_pubdate.setObjectName("apply_pubdate") self.gridLayout.addWidget(self.apply_pubdate, 10, 2, 1, 1) self.label_11 = QtWidgets.QLabel(self.btab) self.label_11.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_11.setObjectName("label_11") self.gridLayout.addWidget(self.label_11, 11, 0, 1, 1) self.languages = LanguagesEdit(self.btab) self.languages.setObjectName("languages") self.gridLayout.addWidget(self.languages, 11, 1, 1, 1) self.clear_languages = QtWidgets.QCheckBox(self.btab) self.clear_languages.setObjectName("clear_languages") self.gridLayout.addWidget(self.clear_languages, 11, 2, 1, 1) self.verticalLayout_4.addLayout(self.gridLayout) spacerItem = QtWidgets.QSpacerItem(17, 13, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) self.verticalLayout_4.addItem(spacerItem) self.gridLayout_2 = QtWidgets.QGridLayout() self.gridLayout_2.setObjectName("gridLayout_2") self.remove_conversion_settings = QtWidgets.QCheckBox(self.btab) self.remove_conversion_settings.setObjectName("remove_conversion_settings") self.gridLayout_2.addWidget(self.remove_conversion_settings, 0, 0, 1, 2) self.restore_original = QtWidgets.QCheckBox(self.btab) self.restore_original.setObjectName("restore_original") self.gridLayout_2.addWidget(self.restore_original, 0, 2, 1, 1) self.change_title_to_title_case = QtWidgets.QCheckBox(self.btab) self.change_title_to_title_case.setObjectName("change_title_to_title_case") self.gridLayout_2.addWidget(self.change_title_to_title_case, 1, 0, 1, 1) self.casing_algorithm = QtWidgets.QComboBox(self.btab) self.casing_algorithm.setMinimumSize(QtCore.QSize(150, 0)) self.casing_algorithm.setObjectName("casing_algorithm") self.gridLayout_2.addWidget(self.casing_algorithm, 1, 1, 1, 1) self.update_title_sort = QtWidgets.QCheckBox(self.btab) self.update_title_sort.setObjectName("update_title_sort") self.gridLayout_2.addWidget(self.update_title_sort, 1, 2, 1, 1) self.verticalLayout_4.addLayout(self.gridLayout_2) self.read_file_metadata = QtWidgets.QCheckBox(self.btab) self.read_file_metadata.setObjectName("read_file_metadata") self.verticalLayout_4.addWidget(self.read_file_metadata) self.groupBox = QtWidgets.QGroupBox(self.btab) self.groupBox.setObjectName("groupBox") self.horizontalLayout_9 = QtWidgets.QHBoxLayout(self.groupBox) self.horizontalLayout_9.setObjectName("horizontalLayout_9") self.cover_generate = QtWidgets.QRadioButton(self.groupBox) self.cover_generate.setObjectName("cover_generate") self.horizontalLayout_9.addWidget(self.cover_generate) self.cover_remove = QtWidgets.QRadioButton(self.groupBox) self.cover_remove.setObjectName("cover_remove") self.horizontalLayout_9.addWidget(self.cover_remove) self.cover_trim = QtWidgets.QRadioButton(self.groupBox) self.cover_trim.setObjectName("cover_trim") self.horizontalLayout_9.addWidget(self.cover_trim) self.cover_from_fmt = QtWidgets.QRadioButton(self.groupBox) self.cover_from_fmt.setObjectName("cover_from_fmt") self.horizontalLayout_9.addWidget(self.cover_from_fmt) self.cover_clone = QtWidgets.QRadioButton(self.groupBox) self.cover_clone.setObjectName("cover_clone") self.horizontalLayout_9.addWidget(self.cover_clone) self.verticalLayout_4.addWidget(self.groupBox) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.compress_cover_images = QtWidgets.QCheckBox(self.btab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.compress_cover_images.sizePolicy().hasHeightForWidth()) self.compress_cover_images.setSizePolicy(sizePolicy) self.compress_cover_images.setObjectName("compress_cover_images") self.horizontalLayout_3.addWidget(self.compress_cover_images) self.compress_quality = QtWidgets.QSpinBox(self.btab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.compress_quality.sizePolicy().hasHeightForWidth()) self.compress_quality.setSizePolicy(sizePolicy) self.compress_quality.setMinimum(10) self.compress_quality.setMaximum(100) self.compress_quality.setProperty("value", 100) self.compress_quality.setObjectName("compress_quality") self.horizontalLayout_3.addWidget(self.compress_quality) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_3.addItem(spacerItem1) self.verticalLayout_4.addLayout(self.horizontalLayout_3) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.button_config_cover_gen = QtWidgets.QPushButton(self.btab) self.button_config_cover_gen.setObjectName("button_config_cover_gen") self.horizontalLayout.addWidget(self.button_config_cover_gen) self.comments_button = QtWidgets.QPushButton(self.btab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.comments_button.sizePolicy().hasHeightForWidth()) self.comments_button.setSizePolicy(sizePolicy) self.comments_button.setObjectName("comments_button") self.horizontalLayout.addWidget(self.comments_button) spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem2) self.verticalLayout_4.addLayout(self.horizontalLayout) spacerItem3 = QtWidgets.QSpacerItem(17, 17, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout_4.addItem(spacerItem3) self.scrollArea1.setWidget(self.btab) self.central_widget.addTab(self.scrollArea1, "") self.scrollArea2 = QtWidgets.QScrollArea() self.scrollArea2.setFrameShape(QtWidgets.QFrame.NoFrame) self.scrollArea2.setWidgetResizable(True) self.scrollArea2.setObjectName("scrollArea2") self.tab = QtWidgets.QWidget() self.tab.setGeometry(QtCore.QRect(0, 0, 100, 30)) self.tab.setObjectName("tab") self.scrollArea2.setWidget(self.tab) self.central_widget.addTab(self.scrollArea2, "") self.scrollArea3 = QtWidgets.QScrollArea() self.scrollArea3.setFrameShape(QtWidgets.QFrame.NoFrame) self.scrollArea3.setWidgetResizable(True) self.scrollArea3.setObjectName("scrollArea3") self.tabWidgetPage3 = QtWidgets.QWidget() self.tabWidgetPage3.setGeometry(QtCore.QRect(0, 0, 777, 388)) self.tabWidgetPage3.setObjectName("tabWidgetPage3") self.vargrid = QtWidgets.QGridLayout(self.tabWidgetPage3) self.vargrid.setSizeConstraint(QtWidgets.QLayout.SetMinimumSize) self.vargrid.setObjectName("vargrid") self.s_r_heading = QtWidgets.QLabel(self.tabWidgetPage3) self.s_r_heading.setWordWrap(True) self.s_r_heading.setOpenExternalLinks(True) self.s_r_heading.setObjectName("s_r_heading") self.vargrid.addWidget(self.s_r_heading, 0, 0, 1, 4) self.filler = QtWidgets.QLabel(self.tabWidgetPage3) self.filler.setText("") self.filler.setObjectName("filler") self.vargrid.addWidget(self.filler, 1, 0, 1, 1) self.line = QtWidgets.QFrame(self.tabWidgetPage3) self.line.setFrameShape(QtWidgets.QFrame.HLine) self.line.setFrameShadow(QtWidgets.QFrame.Sunken) self.line.setObjectName("line") self.vargrid.addWidget(self.line, 2, 0, 1, 3) self.xlabel_22 = QtWidgets.QLabel(self.tabWidgetPage3) self.xlabel_22.setObjectName("xlabel_22") self.vargrid.addWidget(self.xlabel_22, 3, 0, 1, 1) self.query_field = QtWidgets.QComboBox(self.tabWidgetPage3) self.query_field.setObjectName("query_field") self.vargrid.addWidget(self.query_field, 3, 1, 1, 1) self.horizontalLayout_6 = QtWidgets.QHBoxLayout() self.horizontalLayout_6.setObjectName("horizontalLayout_6") spacerItem4 = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_6.addItem(spacerItem4) self.save_button = QtWidgets.QPushButton(self.tabWidgetPage3) self.save_button.setObjectName("save_button") self.horizontalLayout_6.addWidget(self.save_button) self.remove_button = QtWidgets.QPushButton(self.tabWidgetPage3) self.remove_button.setObjectName("remove_button") self.horizontalLayout_6.addWidget(self.remove_button) spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_6.addItem(spacerItem5) self.vargrid.addLayout(self.horizontalLayout_6, 3, 2, 1, 1) self.xlabel_21 = QtWidgets.QLabel(self.tabWidgetPage3) self.xlabel_21.setObjectName("xlabel_21") self.vargrid.addWidget(self.xlabel_21, 4, 0, 1, 1) self.search_field = QtWidgets.QComboBox(self.tabWidgetPage3) self.search_field.setObjectName("search_field") self.vargrid.addWidget(self.search_field, 4, 1, 1, 1) self.HLayout_4 = QtWidgets.QHBoxLayout() self.HLayout_4.setObjectName("HLayout_4") self.xlabel_24 = QtWidgets.QLabel(self.tabWidgetPage3) self.xlabel_24.setObjectName("xlabel_24") self.HLayout_4.addWidget(self.xlabel_24) self.search_mode = QtWidgets.QComboBox(self.tabWidgetPage3) self.search_mode.setObjectName("search_mode") self.HLayout_4.addWidget(self.search_mode) spacerItem6 = QtWidgets.QSpacerItem(20, 10, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.HLayout_4.addItem(spacerItem6) self.vargrid.addLayout(self.HLayout_4, 4, 2, 1, 1) self.s_r_src_ident_label = QtWidgets.QLabel(self.tabWidgetPage3) self.s_r_src_ident_label.setObjectName("s_r_src_ident_label") self.vargrid.addWidget(self.s_r_src_ident_label, 5, 0, 1, 1) self.s_r_src_ident = QtWidgets.QComboBox(self.tabWidgetPage3) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(100) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.s_r_src_ident.sizePolicy().hasHeightForWidth()) self.s_r_src_ident.setSizePolicy(sizePolicy) self.s_r_src_ident.setObjectName("s_r_src_ident") self.vargrid.addWidget(self.s_r_src_ident, 5, 1, 1, 1) self.template_label = QtWidgets.QLabel(self.tabWidgetPage3) self.template_label.setObjectName("template_label") self.vargrid.addWidget(self.template_label, 5, 0, 1, 1) self.s_r_template = HistoryLineEdit(self.tabWidgetPage3) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(100) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.s_r_template.sizePolicy().hasHeightForWidth()) self.s_r_template.setSizePolicy(sizePolicy) self.s_r_template.setObjectName("s_r_template") self.vargrid.addWidget(self.s_r_template, 5, 1, 1, 1) self.xlabel_2 = QtWidgets.QLabel(self.tabWidgetPage3) self.xlabel_2.setObjectName("xlabel_2") self.vargrid.addWidget(self.xlabel_2, 6, 0, 1, 1) self.search_for = HistoryLineEdit(self.tabWidgetPage3) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(100) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.search_for.sizePolicy().hasHeightForWidth()) self.search_for.setSizePolicy(sizePolicy) self.search_for.setObjectName("search_for") self.vargrid.addWidget(self.search_for, 6, 1, 1, 1) self.case_sensitive = QtWidgets.QCheckBox(self.tabWidgetPage3) self.case_sensitive.setChecked(True) self.case_sensitive.setObjectName("case_sensitive") self.vargrid.addWidget(self.case_sensitive, 6, 2, 1, 1) self.xlabel_4 = QtWidgets.QLabel(self.tabWidgetPage3) self.xlabel_4.setObjectName("xlabel_4") self.vargrid.addWidget(self.xlabel_4, 7, 0, 1, 1) self.replace_with = HistoryLineEdit(self.tabWidgetPage3) self.replace_with.setObjectName("replace_with") self.vargrid.addWidget(self.replace_with, 7, 1, 1, 1) self.verticalLayout = QtWidgets.QHBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.label_41 = QtWidgets.QLabel(self.tabWidgetPage3) self.label_41.setObjectName("label_41") self.verticalLayout.addWidget(self.label_41) self.replace_func = QtWidgets.QComboBox(self.tabWidgetPage3) self.replace_func.setObjectName("replace_func") self.verticalLayout.addWidget(self.replace_func) spacerItem7 = QtWidgets.QSpacerItem(20, 10, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.verticalLayout.addItem(spacerItem7) self.vargrid.addLayout(self.verticalLayout, 7, 2, 1, 1) self.destination_field_label = QtWidgets.QLabel(self.tabWidgetPage3) self.destination_field_label.setObjectName("destination_field_label") self.vargrid.addWidget(self.destination_field_label, 8, 0, 1, 1) self.destination_field = QtWidgets.QComboBox(self.tabWidgetPage3) self.destination_field.setObjectName("destination_field") self.vargrid.addWidget(self.destination_field, 8, 1, 1, 1) self.verticalLayout_2 = QtWidgets.QHBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.replace_mode_label = QtWidgets.QLabel(self.tabWidgetPage3) self.replace_mode_label.setObjectName("replace_mode_label") self.verticalLayout_2.addWidget(self.replace_mode_label) self.replace_mode = QtWidgets.QComboBox(self.tabWidgetPage3) self.replace_mode.setObjectName("replace_mode") self.verticalLayout_2.addWidget(self.replace_mode) self.comma_separated = QtWidgets.QCheckBox(self.tabWidgetPage3) self.comma_separated.setChecked(True) self.comma_separated.setObjectName("comma_separated") self.verticalLayout_2.addWidget(self.comma_separated) spacerItem8 = QtWidgets.QSpacerItem(20, 10, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.verticalLayout_2.addItem(spacerItem8) self.vargrid.addLayout(self.verticalLayout_2, 8, 2, 1, 1) self.s_r_dst_ident_label = QtWidgets.QLabel(self.tabWidgetPage3) self.s_r_dst_ident_label.setObjectName("s_r_dst_ident_label") self.vargrid.addWidget(self.s_r_dst_ident_label, 9, 0, 1, 1) self.s_r_dst_ident = QtWidgets.QLineEdit(self.tabWidgetPage3) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(100) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.s_r_dst_ident.sizePolicy().hasHeightForWidth()) self.s_r_dst_ident.setSizePolicy(sizePolicy) self.s_r_dst_ident.setObjectName("s_r_dst_ident") self.vargrid.addWidget(self.s_r_dst_ident, 9, 1, 1, 1) self.horizontalLayout_21 = QtWidgets.QHBoxLayout() self.horizontalLayout_21.setObjectName("horizontalLayout_21") spacerItem9 = QtWidgets.QSpacerItem(20, 0, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_21.addItem(spacerItem9) self.xlabel_412 = QtWidgets.QLabel(self.tabWidgetPage3) self.xlabel_412.setObjectName("xlabel_412") self.horizontalLayout_21.addWidget(self.xlabel_412) self.results_count = QtWidgets.QSpinBox(self.tabWidgetPage3) self.results_count.setEnabled(True) self.results_count.setMinimum(1) self.results_count.setMaximum(999) self.results_count.setProperty("value", 999) self.results_count.setObjectName("results_count") self.horizontalLayout_21.addWidget(self.results_count) self.xlabel_413 = QtWidgets.QLabel(self.tabWidgetPage3) self.xlabel_413.setObjectName("xlabel_413") self.horizontalLayout_21.addWidget(self.xlabel_413) self.starting_from = QtWidgets.QSpinBox(self.tabWidgetPage3) self.starting_from.setEnabled(True) self.starting_from.setMinimum(1) self.starting_from.setMaximum(999) self.starting_from.setProperty("value", 1) self.starting_from.setObjectName("starting_from") self.horizontalLayout_21.addWidget(self.starting_from) self.xlabel_41 = QtWidgets.QLabel(self.tabWidgetPage3) self.xlabel_41.setObjectName("xlabel_41") self.horizontalLayout_21.addWidget(self.xlabel_41) self.multiple_separator = QtWidgets.QLineEdit(self.tabWidgetPage3) self.multiple_separator.setObjectName("multiple_separator") self.horizontalLayout_21.addWidget(self.multiple_separator) self.vargrid.addLayout(self.horizontalLayout_21, 10, 1, 1, 2) self.scrollArea11 = QtWidgets.QScrollArea(self.tabWidgetPage3) self.scrollArea11.setFrameShape(QtWidgets.QFrame.NoFrame) self.scrollArea11.setWidgetResizable(True) self.scrollArea11.setObjectName("scrollArea11") self.gridLayoutWidget_2 = QtWidgets.QWidget() self.gridLayoutWidget_2.setGeometry(QtCore.QRect(0, 0, 745, 70)) self.gridLayoutWidget_2.setObjectName("gridLayoutWidget_2") self.testgrid = QtWidgets.QGridLayout(self.gridLayoutWidget_2) self.testgrid.setObjectName("testgrid") self.xlabel_3 = QtWidgets.QLabel(self.gridLayoutWidget_2) self.xlabel_3.setObjectName("xlabel_3") self.testgrid.addWidget(self.xlabel_3, 7, 1, 1, 1) self.xlabel_5 = QtWidgets.QLabel(self.gridLayoutWidget_2) self.xlabel_5.setObjectName("xlabel_5") self.testgrid.addWidget(self.xlabel_5, 7, 2, 1, 1) self.label_31 = QtWidgets.QLabel(self.gridLayoutWidget_2) self.label_31.setObjectName("label_31") self.testgrid.addWidget(self.label_31, 8, 0, 1, 1) self.test_text = HistoryLineEdit(self.gridLayoutWidget_2) self.test_text.setObjectName("test_text") self.testgrid.addWidget(self.test_text, 8, 1, 1, 1) self.test_result = QtWidgets.QLineEdit(self.gridLayoutWidget_2) self.test_result.setObjectName("test_result") self.testgrid.addWidget(self.test_result, 8, 2, 1, 1) spacerItem10 = QtWidgets.QSpacerItem(20, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.testgrid.addItem(spacerItem10, 25, 0, 1, 2) self.scrollArea11.setWidget(self.gridLayoutWidget_2) self.vargrid.addWidget(self.scrollArea11, 11, 0, 1, 4) self.scrollArea3.setWidget(self.tabWidgetPage3) self.central_widget.addTab(self.scrollArea3, "") self.verticalLayout_3.addWidget(self.central_widget) self.horizontalLayout_10 = QtWidgets.QHBoxLayout() self.horizontalLayout_10.setObjectName("horizontalLayout_10") self.refresh_book_list = QtWidgets.QCheckBox(MetadataBulkDialog) self.refresh_book_list.setObjectName("refresh_book_list") self.horizontalLayout_10.addWidget(self.refresh_book_list) spacerItem11 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_10.addItem(spacerItem11) self.button_box = QtWidgets.QDialogButtonBox(MetadataBulkDialog) self.button_box.setOrientation(QtCore.Qt.Horizontal) self.button_box.setStandardButtons(QtWidgets.QDialogButtonBox.Apply|QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok) self.button_box.setObjectName("button_box") self.horizontalLayout_10.addWidget(self.button_box) self.verticalLayout_3.addLayout(self.horizontalLayout_10) self.label_2.setBuddy(self.authors) self.label_8.setBuddy(self.author_sort) self.label_6.setBuddy(self.rating) self.label_3.setBuddy(self.publisher) self.label_4.setBuddy(self.tags) self.label.setBuddy(self.remove_tags) self.label_7.setBuddy(self.series) self.label_10.setBuddy(self.adddate) self.label_9.setBuddy(self.pubdate) self.label_11.setBuddy(self.languages) self.xlabel_22.setBuddy(self.query_field) self.xlabel_21.setBuddy(self.search_field) self.xlabel_24.setBuddy(self.search_mode) self.s_r_src_ident_label.setBuddy(self.s_r_src_ident) self.template_label.setBuddy(self.s_r_template) self.xlabel_2.setBuddy(self.search_for) self.xlabel_4.setBuddy(self.replace_with) self.label_41.setBuddy(self.replace_func) self.destination_field_label.setBuddy(self.destination_field) self.replace_mode_label.setBuddy(self.replace_mode) self.s_r_dst_ident_label.setBuddy(self.s_r_dst_ident) self.xlabel_412.setBuddy(self.results_count) self.xlabel_413.setBuddy(self.starting_from) self.xlabel_41.setBuddy(self.multiple_separator) self.label_31.setBuddy(self.test_text) self.retranslateUi(MetadataBulkDialog) self.central_widget.setCurrentIndex(0) self.button_box.accepted.connect(MetadataBulkDialog.accept) self.button_box.rejected.connect(MetadataBulkDialog.reject) QtCore.QMetaObject.connectSlotsByName(MetadataBulkDialog) MetadataBulkDialog.setTabOrder(self.central_widget, self.authors) MetadataBulkDialog.setTabOrder(self.authors, self.auto_author_sort) MetadataBulkDialog.setTabOrder(self.auto_author_sort, self.swap_title_and_author) MetadataBulkDialog.setTabOrder(self.swap_title_and_author, self.author_sort) MetadataBulkDialog.setTabOrder(self.author_sort, self.rating) MetadataBulkDialog.setTabOrder(self.rating, self.apply_rating) MetadataBulkDialog.setTabOrder(self.apply_rating, self.publisher) MetadataBulkDialog.setTabOrder(self.publisher, self.clear_pub) MetadataBulkDialog.setTabOrder(self.clear_pub, self.tags) MetadataBulkDialog.setTabOrder(self.tags, self.tag_editor_button) MetadataBulkDialog.setTabOrder(self.tag_editor_button, self.remove_tags) MetadataBulkDialog.setTabOrder(self.remove_tags, self.remove_all_tags) MetadataBulkDialog.setTabOrder(self.remove_all_tags, self.series) MetadataBulkDialog.setTabOrder(self.series, self.clear_series) MetadataBulkDialog.setTabOrder(self.clear_series, self.autonumber_series) MetadataBulkDialog.setTabOrder(self.autonumber_series, self.series_numbering_restarts) MetadataBulkDialog.setTabOrder(self.series_numbering_restarts, self.series_start_number) MetadataBulkDialog.setTabOrder(self.series_start_number, self.series_increment) MetadataBulkDialog.setTabOrder(self.series_increment, self.adddate) MetadataBulkDialog.setTabOrder(self.adddate, self.clear_adddate_button) MetadataBulkDialog.setTabOrder(self.clear_adddate_button, self.apply_adddate) MetadataBulkDialog.setTabOrder(self.apply_adddate, self.pubdate) MetadataBulkDialog.setTabOrder(self.pubdate, self.clear_pubdate_button) MetadataBulkDialog.setTabOrder(self.clear_pubdate_button, self.apply_pubdate) MetadataBulkDialog.setTabOrder(self.apply_pubdate, self.languages) MetadataBulkDialog.setTabOrder(self.languages, self.clear_languages) MetadataBulkDialog.setTabOrder(self.clear_languages, self.remove_conversion_settings) MetadataBulkDialog.setTabOrder(self.remove_conversion_settings, self.restore_original) MetadataBulkDialog.setTabOrder(self.restore_original, self.change_title_to_title_case) MetadataBulkDialog.setTabOrder(self.change_title_to_title_case, self.casing_algorithm) MetadataBulkDialog.setTabOrder(self.casing_algorithm, self.cover_generate) MetadataBulkDialog.setTabOrder(self.cover_generate, self.cover_remove) MetadataBulkDialog.setTabOrder(self.cover_remove, self.cover_trim) MetadataBulkDialog.setTabOrder(self.cover_trim, self.cover_from_fmt) MetadataBulkDialog.setTabOrder(self.cover_from_fmt, self.cover_clone) MetadataBulkDialog.setTabOrder(self.cover_clone, self.button_config_cover_gen) MetadataBulkDialog.setTabOrder(self.button_config_cover_gen, self.comments_button) MetadataBulkDialog.setTabOrder(self.comments_button, self.query_field) MetadataBulkDialog.setTabOrder(self.query_field, self.save_button) MetadataBulkDialog.setTabOrder(self.save_button, self.remove_button) MetadataBulkDialog.setTabOrder(self.remove_button, self.search_field) MetadataBulkDialog.setTabOrder(self.search_field, self.search_mode) MetadataBulkDialog.setTabOrder(self.search_mode, self.s_r_src_ident) MetadataBulkDialog.setTabOrder(self.s_r_src_ident, self.s_r_template) MetadataBulkDialog.setTabOrder(self.s_r_template, self.search_for) MetadataBulkDialog.setTabOrder(self.search_for, self.case_sensitive) MetadataBulkDialog.setTabOrder(self.case_sensitive, self.replace_with) MetadataBulkDialog.setTabOrder(self.replace_with, self.replace_func) MetadataBulkDialog.setTabOrder(self.replace_func, self.destination_field) MetadataBulkDialog.setTabOrder(self.destination_field, self.replace_mode) MetadataBulkDialog.setTabOrder(self.replace_mode, self.comma_separated) MetadataBulkDialog.setTabOrder(self.comma_separated, self.s_r_dst_ident) MetadataBulkDialog.setTabOrder(self.s_r_dst_ident, self.results_count) MetadataBulkDialog.setTabOrder(self.results_count, self.starting_from) MetadataBulkDialog.setTabOrder(self.starting_from, self.multiple_separator) MetadataBulkDialog.setTabOrder(self.multiple_separator, self.scrollArea11) MetadataBulkDialog.setTabOrder(self.scrollArea11, self.test_text) MetadataBulkDialog.setTabOrder(self.test_text, self.test_result) MetadataBulkDialog.setTabOrder(self.test_result, self.refresh_book_list) def retranslateUi(self, MetadataBulkDialog): MetadataBulkDialog.setWindowTitle(_("Edit meta information")) self.label_2.setText(_("&Author(s): ")) self.auto_author_sort.setToolTip(_("This will cause the author sort field to be automatically updated\n" " based on the authors field for each selected book. Note that if\n" " you use the control above to set authors in bulk, the author sort\n" " field is updated anyway, regardless of the value of this checkbox.")) self.auto_author_sort.setText(_("A&utomatically set author sort")) self.swap_title_and_author.setText(_("S&wap title and author")) self.label_8.setText(_("Author s&ort: ")) self.author_sort.setToolTip(_("Specify how the author(s) of this book should be sorted. For example Charles Dickens should be sorted as Dickens, Charles.")) self.label_6.setText(_("&Rating:")) self.apply_rating.setText(_("&Apply rating")) self.label_3.setText(_("&Publisher: ")) self.clear_pub.setToolTip(_("If checked, the publisher will be cleared")) self.clear_pub.setText(_("&Clear pub")) self.label_4.setText(_("Add ta&gs: ")) self.tags.setToolTip(_("Tags categorize the book. This is particularly useful while searching. <br><br>They can be any words or phrases, separated by commas.")) self.tag_editor_button.setToolTip(_("Open Tag editor")) self.tag_editor_button.setText(_("Open Tag editor")) self.label.setText(_("&Remove tags:")) self.remove_tags.setToolTip(_("Comma separated list of tags to remove from the books. ")) self.remove_all_tags.setToolTip(_("Check this box to remove all tags from the books.")) self.remove_all_tags.setText(_("Remove &all")) self.label_7.setText(_("Ser&ies:")) self.series.setToolTip(_("List of known series. You can add new series.")) self.series.setWhatsThis(_("List of known series. You can add new series.")) self.clear_series.setToolTip(_("If checked, the series will be cleared")) self.clear_series.setText(_("&Clear series")) self.autonumber_series.setToolTip(_("If not checked, the series number for the books will be set to 1.\n" "If checked, selected books will be automatically numbered, in the order\n" "you selected them. So if you selected Book A and then Book B,\n" "Book A will have series number 1 and Book B series number 2.")) self.autonumber_series.setText(_("&Automatically number books in this series")) self.series_numbering_restarts.setToolTip(_("Series will normally be renumbered from the highest number in the database\n" "for that series. Checking this box will tell calibre to start numbering\n" "from the value in the box")) self.series_numbering_restarts.setText(_("&Force numbers to start with:")) self.series_increment.setToolTip(_("The amount by which to increment the series number for successive books. Only applicable when using force series numbers.")) self.series_increment.setPrefix(_("+ ")) self.label_10.setText(_("&Date:")) self.adddate.setDisplayFormat("d MMM yyyy") self.clear_adddate_button.setText(_("...")) self.apply_adddate.setText(_("A&pply date")) self.label_9.setText(_("P&ublished:")) self.pubdate.setDisplayFormat("MMM yyyy") self.clear_pubdate_button.setToolTip(_("Clear published date")) self.clear_pubdate_button.setText(_("...")) self.apply_pubdate.setText(_("A&pply date")) self.label_11.setText(_("&Languages:")) self.clear_languages.setText(_("Remove &all")) self.remove_conversion_settings.setToolTip(_("Remove stored conversion settings for the selected books.\n" "\n" "Future conversion of these books will use the default settings.")) self.remove_conversion_settings.setText(_("Remove &stored conversion settings for the selected books")) self.restore_original.setToolTip(_("When doing a same format to same format conversion,\n" "for e.g., EPUB to EPUB, calibre saves the original EPUB\n" " as ORIGINAL_EPUB. This option tells calibre to restore\n" " the EPUB from ORIGINAL_EPUB. Useful if you did a bulk\n" " conversion of a large number of books and something went wrong.")) self.restore_original.setText(_("Restore pre conversion &originals, if available")) self.change_title_to_title_case.setToolTip(_("Force the title to be in title case. If both this and swap authors are checked,\n" "title and author are swapped before the title case is set")) self.change_title_to_title_case.setText(_("Change title &case to:")) self.update_title_sort.setToolTip(_("Update title sort based on the current title. This will be applied only after other changes to title.")) self.update_title_sort.setText(_("Update &title sort")) self.read_file_metadata.setToolTip(_("Set the metadata in calibre from the metadata in the e-book files associated with each book. Note that this does not change the cover, for that, use the separate option below.")) self.read_file_metadata.setText(_("Set &metadata (except cover) from the e-book files")) self.groupBox.setTitle(_("Change &cover")) self.cover_generate.setText(_("&Generate default cover")) self.cover_remove.setText(_("&Remove cover")) self.cover_trim.setToolTip(_("Try to automatically detect and remove borders and extra space\n" " from the edges of cover images. This can sometimes remove too\n" " much, so use with care.")) self.cover_trim.setText(_("&Trim cover (DANGEROUS)")) self.cover_from_fmt.setText(_("Set from &e-book files")) self.cover_clone.setToolTip(_("Set the covers of all selected books to be the same\n" "as that of the first selected book.")) self.cover_clone.setText(_("&Clone covers")) self.compress_cover_images.setToolTip(_("<p>Compress cover images, if the quality is set to 100 compression is lossless, otherwise it is lossy")) self.compress_cover_images.setText(_("Co&mpress cover images:")) self.compress_quality.setToolTip(_("<p>Cover image compression quality. If the quality is set to 100 compression is lossless, otherwise it is lossy")) self.button_config_cover_gen.setToolTip(_("Control how the default generated covers are created")) self.button_config_cover_gen.setText(_("Configure co&ver generation")) self.comments_button.setText(_("Set the co&mments for all selected books")) self.central_widget.setTabText(self.central_widget.indexOf(self.scrollArea1), _("&Basic metadata")) self.central_widget.setTabText(self.central_widget.indexOf(self.scrollArea2), _("&Custom metadata")) self.xlabel_22.setText(_("&Load search/replace:")) self.query_field.setToolTip(_("Select saved search/replace to load.")) self.save_button.setToolTip(_("Save current search/replace")) self.save_button.setText(_("Sa&ve")) self.remove_button.setToolTip(_("Delete saved search/replace")) self.remove_button.setText(_("Delete")) self.xlabel_21.setText(_("Search &field:")) self.search_field.setToolTip(_("The name of the field that you want to search")) self.xlabel_24.setText(_("Search &mode:")) self.search_mode.setToolTip(_("Choose whether to use basic text matching or advanced regular expression matching")) self.s_r_src_ident_label.setText(_("&Identifier type:")) self.s_r_src_ident.setToolTip(_("Choose which identifier type to operate upon")) self.template_label.setText(_("&Template:")) self.s_r_template.setToolTip(_("Enter a template to be used as the source for the search/replace")) self.xlabel_2.setText(_("&Search for:")) self.search_for.setToolTip(_("Enter what you are looking for, either plain text or a regular expression, depending on the mode")) self.case_sensitive.setToolTip(_("Check this box if the search string must match exactly upper and lower case. Uncheck it if case is to be ignored")) self.case_sensitive.setText(_("Cas&e sensitive")) self.xlabel_4.setText(_("&Replace with:")) self.replace_with.setToolTip(_("The replacement text. The matched search text will be replaced with this string")) self.label_41.setText(_("&Apply function after replace:")) self.replace_func.setToolTip(_("Specify how the text is to be processed after matching and replacement. In character mode, the entire\n" "field is processed. In regular expression mode, only the matched text is processed")) self.destination_field_label.setText(_("&Destination field:")) self.destination_field.setToolTip(_("The field that the text will be put into after all replacements.\n" "If blank, the source field is used if the field is modifiable")) self.replace_mode_label.setText(_("M&ode:")) self.replace_mode.setToolTip(_("Specify how the text should be copied into the destination.")) self.comma_separated.setToolTip(_("Specifies whether result items should be split into multiple values or\n" "left as single values. This option has the most effect when the source field is\n" "not multiple and the destination field is multiple")) self.comma_separated.setText(_("Split &result")) self.s_r_dst_ident_label.setText(_("Identifier type:")) self.s_r_dst_ident.setToolTip(_("<p>Choose which identifier type to operate upon. When the\n" " source field is something other than \'identifiers\' you can enter\n" " a * if you want to replace the entire set of identifiers with\n" " the result of the search/replace.</p>")) self.xlabel_412.setText(_("For multiple-valued fields, sho&w")) self.xlabel_413.setText(_("val&ues starting at")) self.xlabel_41.setText(_("with values separated b&y")) self.multiple_separator.setToolTip(_("Used when displaying test results to separate values in multiple-valued fields")) self.xlabel_3.setText(_("Test text")) self.xlabel_5.setText(_("Test result")) self.label_31.setText(_("Your &test:")) self.central_widget.setTabText(self.central_widget.indexOf(self.scrollArea3), _("&Search and replace")) self.refresh_book_list.setToolTip(_("If enabled, the book list will be re-sorted and any existing\n" "search or Virtual library will be refreshed after the edit\n" "is completed. This can be slow on large libraries.")) self.refresh_book_list.setText(_("&Refresh book list after edit"))
def setupUi(self, Form): Form.setObjectName(_fromUtf8("Form")) Form.resize(600, 500) Form.setWindowTitle(_("Form")) self.horizontalLayout = QtGui.QHBoxLayout(Form) self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.groupBox_4 = QtGui.QGroupBox(Form) self.groupBox_4.setTitle(_("Book Cover")) self.groupBox_4.setObjectName(_fromUtf8("groupBox_4")) self._2 = QtGui.QGridLayout(self.groupBox_4) self._2.setObjectName(_fromUtf8("_2")) self._4 = QtGui.QVBoxLayout() self._4.setSpacing(6) self._4.setMargin(0) self._4.setObjectName(_fromUtf8("_4")) self.label_5 = QtGui.QLabel(self.groupBox_4) self.label_5.setText(_("Change &cover image:")) self.label_5.setObjectName(_fromUtf8("label_5")) self._4.addWidget(self.label_5) self._5 = QtGui.QHBoxLayout() self._5.setSpacing(6) self._5.setMargin(0) self._5.setObjectName(_fromUtf8("_5")) self.cover_path = QtGui.QLineEdit(self.groupBox_4) self.cover_path.setReadOnly(True) self.cover_path.setObjectName(_fromUtf8("cover_path")) self._5.addWidget(self.cover_path) self.cover_button = QtGui.QToolButton(self.groupBox_4) self.cover_button.setToolTip(_("Browse for an image to use as the cover of this book.")) self.cover_button.setText(_("...")) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(_fromUtf8(I("document_open.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.cover_button.setIcon(icon) self.cover_button.setObjectName(_fromUtf8("cover_button")) self._5.addWidget(self.cover_button) self._4.addLayout(self._5) self._2.addLayout(self._4, 1, 0, 1, 1) self.opt_prefer_metadata_cover = QtGui.QCheckBox(self.groupBox_4) self.opt_prefer_metadata_cover.setText(_("Use cover from &source file")) self.opt_prefer_metadata_cover.setChecked(True) self.opt_prefer_metadata_cover.setObjectName(_fromUtf8("opt_prefer_metadata_cover")) self._2.addWidget(self.opt_prefer_metadata_cover, 2, 0, 1, 1) self._3 = QtGui.QHBoxLayout() self._3.setObjectName(_fromUtf8("_3")) self.cover = ImageView(self.groupBox_4) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cover.sizePolicy().hasHeightForWidth()) self.cover.setSizePolicy(sizePolicy) self.cover.setObjectName(_fromUtf8("cover")) self._3.addWidget(self.cover) self._2.addLayout(self._3, 0, 0, 1, 1) self.horizontalLayout.addWidget(self.groupBox_4) self.verticalLayout_2 = QtGui.QVBoxLayout() self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self._7 = QtGui.QGridLayout() self._7.setObjectName(_fromUtf8("_7")) self.label = QtGui.QLabel(Form) self.label.setText(_("&Title: ")) self.label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label.setObjectName(_fromUtf8("label")) self._7.addWidget(self.label, 0, 0, 1, 1) self.title = EnLineEdit(Form) self.title.setToolTip(_("Change the title of this book")) self.title.setObjectName(_fromUtf8("title")) self._7.addWidget(self.title, 0, 1, 1, 1) self.label_2 = QtGui.QLabel(Form) self.label_2.setText(_("&Author(s): ")) self.label_2.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_2.setObjectName(_fromUtf8("label_2")) self._7.addWidget(self.label_2, 1, 0, 1, 1) self.label_6 = QtGui.QLabel(Form) self.label_6.setText(_("Author So&rt:")) self.label_6.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_6.setObjectName(_fromUtf8("label_6")) self._7.addWidget(self.label_6, 2, 0, 1, 1) self.author_sort = EnLineEdit(Form) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.author_sort.sizePolicy().hasHeightForWidth()) self.author_sort.setSizePolicy(sizePolicy) self.author_sort.setToolTip( _("Change the author(s) of this book. Multiple authors should be separated by a comma") ) self.author_sort.setObjectName(_fromUtf8("author_sort")) self._7.addWidget(self.author_sort, 2, 1, 1, 1) self.label_3 = QtGui.QLabel(Form) self.label_3.setText(_("&Publisher: ")) self.label_3.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_3.setObjectName(_fromUtf8("label_3")) self._7.addWidget(self.label_3, 3, 0, 1, 1) self.label_4 = QtGui.QLabel(Form) self.label_4.setText(_("Ta&gs: ")) self.label_4.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_4.setObjectName(_fromUtf8("label_4")) self._7.addWidget(self.label_4, 4, 0, 1, 1) self.tags = EditWithComplete(Form) self.tags.setToolTip( _( "Tags categorize the book. This is particularly useful while searching. <br><br>They can be any words or phrases, separated by commas." ) ) self.tags.setObjectName(_fromUtf8("tags")) self._7.addWidget(self.tags, 4, 1, 1, 1) self.label_7 = QtGui.QLabel(Form) self.label_7.setText(_("&Series:")) self.label_7.setTextFormat(QtCore.Qt.PlainText) self.label_7.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_7.setObjectName(_fromUtf8("label_7")) self._7.addWidget(self.label_7, 5, 0, 1, 1) self.series = EditWithComplete(Form) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(10) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.series.sizePolicy().hasHeightForWidth()) self.series.setSizePolicy(sizePolicy) self.series.setToolTip(_("List of known series. You can add new series.")) self.series.setWhatsThis(_("List of known series. You can add new series.")) self.series.setEditable(True) self.series.setInsertPolicy(QtGui.QComboBox.InsertAlphabetically) self.series.setObjectName(_fromUtf8("series")) self._7.addWidget(self.series, 5, 1, 1, 1) self.series_index = QtGui.QDoubleSpinBox(Form) self.series_index.setPrefix(_("Book ")) self.series_index.setMaximum(9999999999.99) self.series_index.setProperty("value", 1.0) self.series_index.setObjectName(_fromUtf8("series_index")) self._7.addWidget(self.series_index, 6, 1, 1, 1) self.publisher = EditWithComplete(Form) self.publisher.setEditable(True) self.publisher.setObjectName(_fromUtf8("publisher")) self._7.addWidget(self.publisher, 3, 1, 1, 1) self.author = EditWithComplete(Form) self.author.setEditable(True) self.author.setObjectName(_fromUtf8("author")) self._7.addWidget(self.author, 1, 1, 1, 1) self.verticalLayout_2.addLayout(self._7) self.comment = Editor(Form) self.comment.setObjectName(_fromUtf8("comment")) self.verticalLayout_2.addWidget(self.comment) self.horizontalLayout.addLayout(self.verticalLayout_2) self.label_5.setBuddy(self.cover_path) self.label.setBuddy(self.title) self.label_2.setBuddy(self.author) self.label_6.setBuddy(self.author_sort) self.label_3.setBuddy(self.publisher) self.label_4.setBuddy(self.tags) self.label_7.setBuddy(self.series) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) Form.setTabOrder(self.title, self.author) Form.setTabOrder(self.author, self.author_sort) Form.setTabOrder(self.author_sort, self.publisher) Form.setTabOrder(self.publisher, self.tags) Form.setTabOrder(self.tags, self.series) Form.setTabOrder(self.series, self.series_index) Form.setTabOrder(self.series_index, self.cover_path) Form.setTabOrder(self.cover_path, self.cover_button) Form.setTabOrder(self.cover_button, self.opt_prefer_metadata_cover)
class Ui_MetadataBulkDialog(object): def setupUi(self, MetadataBulkDialog): MetadataBulkDialog.setObjectName(_fromUtf8("MetadataBulkDialog")) MetadataBulkDialog.resize(962, 645) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(_fromUtf8(I("edit_input.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) MetadataBulkDialog.setWindowIcon(icon) self.gridLayout_2 = QtGui.QGridLayout(MetadataBulkDialog) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.box_title = QtGui.QLabel(MetadataBulkDialog) self.box_title.setText(_fromUtf8("")) self.box_title.setAlignment(QtCore.Qt.AlignCenter) self.box_title.setObjectName(_fromUtf8("box_title")) self.gridLayout_2.addWidget(self.box_title, 0, 0, 1, 1) self.scrollArea = QtGui.QScrollArea(MetadataBulkDialog) self.scrollArea.setFrameShape(QtGui.QFrame.NoFrame) self.scrollArea.setLineWidth(0) self.scrollArea.setWidgetResizable(True) self.scrollArea.setObjectName(_fromUtf8("scrollArea")) self.scrollAreaWidgetContents = QtGui.QWidget() self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 950, 576)) self.scrollAreaWidgetContents.setObjectName(_fromUtf8("scrollAreaWidgetContents")) self.verticalLayout_2 = QtGui.QVBoxLayout(self.scrollAreaWidgetContents) self.verticalLayout_2.setMargin(0) self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.central_widget = QtGui.QTabWidget(self.scrollAreaWidgetContents) self.central_widget.setObjectName(_fromUtf8("central_widget")) self.tabWidgetPage1 = QtGui.QWidget() self.tabWidgetPage1.setObjectName(_fromUtf8("tabWidgetPage1")) self.gridLayout = QtGui.QGridLayout(self.tabWidgetPage1) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.label_2 = QtGui.QLabel(self.tabWidgetPage1) self.label_2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout.addWidget(self.label_2, 0, 0, 1, 1) self.authors = EditWithComplete(self.tabWidgetPage1) self.authors.setEditable(True) self.authors.setObjectName(_fromUtf8("authors")) self.gridLayout.addWidget(self.authors, 0, 1, 1, 1) self.horizontalLayout_2 = QtGui.QHBoxLayout() self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.auto_author_sort = QtGui.QCheckBox(self.tabWidgetPage1) self.auto_author_sort.setObjectName(_fromUtf8("auto_author_sort")) self.horizontalLayout_2.addWidget(self.auto_author_sort) self.swap_title_and_author = QtGui.QCheckBox(self.tabWidgetPage1) self.swap_title_and_author.setObjectName(_fromUtf8("swap_title_and_author")) self.horizontalLayout_2.addWidget(self.swap_title_and_author) self.gridLayout.addLayout(self.horizontalLayout_2, 1, 1, 1, 1) self.label_8 = QtGui.QLabel(self.tabWidgetPage1) self.label_8.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_8.setObjectName(_fromUtf8("label_8")) self.gridLayout.addWidget(self.label_8, 2, 0, 1, 1) self.author_sort = EnLineEdit(self.tabWidgetPage1) self.author_sort.setObjectName(_fromUtf8("author_sort")) self.gridLayout.addWidget(self.author_sort, 2, 1, 1, 1) self.label_6 = QtGui.QLabel(self.tabWidgetPage1) self.label_6.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_6.setObjectName(_fromUtf8("label_6")) self.gridLayout.addWidget(self.label_6, 3, 0, 1, 1) self.rating = QtGui.QSpinBox(self.tabWidgetPage1) self.rating.setButtonSymbols(QtGui.QAbstractSpinBox.PlusMinus) self.rating.setMinimum(-1) self.rating.setMaximum(5) self.rating.setProperty("value", -1) self.rating.setObjectName(_fromUtf8("rating")) self.gridLayout.addWidget(self.rating, 3, 1, 1, 1) self.label_3 = QtGui.QLabel(self.tabWidgetPage1) self.label_3.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_3.setObjectName(_fromUtf8("label_3")) self.gridLayout.addWidget(self.label_3, 4, 0, 1, 1) self.publisher = EditWithComplete(self.tabWidgetPage1) self.publisher.setEditable(True) self.publisher.setObjectName(_fromUtf8("publisher")) self.gridLayout.addWidget(self.publisher, 4, 1, 1, 1) self.label_4 = QtGui.QLabel(self.tabWidgetPage1) self.label_4.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_4.setObjectName(_fromUtf8("label_4")) self.gridLayout.addWidget(self.label_4, 5, 0, 1, 1) self.tags = EditWithComplete(self.tabWidgetPage1) self.tags.setObjectName(_fromUtf8("tags")) self.gridLayout.addWidget(self.tags, 5, 1, 1, 1) self.tag_editor_button = QtGui.QToolButton(self.tabWidgetPage1) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(_fromUtf8(I("chapters.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.tag_editor_button.setIcon(icon1) self.tag_editor_button.setObjectName(_fromUtf8("tag_editor_button")) self.gridLayout.addWidget(self.tag_editor_button, 5, 2, 1, 1) self.label = QtGui.QLabel(self.tabWidgetPage1) self.label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label.setObjectName(_fromUtf8("label")) self.gridLayout.addWidget(self.label, 6, 0, 1, 1) self.remove_tags = EditWithComplete(self.tabWidgetPage1) self.remove_tags.setObjectName(_fromUtf8("remove_tags")) self.gridLayout.addWidget(self.remove_tags, 6, 1, 1, 1) self.remove_all_tags = QtGui.QCheckBox(self.tabWidgetPage1) self.remove_all_tags.setObjectName(_fromUtf8("remove_all_tags")) self.gridLayout.addWidget(self.remove_all_tags, 6, 2, 1, 1) self.label_7 = QtGui.QLabel(self.tabWidgetPage1) self.label_7.setTextFormat(QtCore.Qt.PlainText) self.label_7.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_7.setObjectName(_fromUtf8("label_7")) self.gridLayout.addWidget(self.label_7, 7, 0, 1, 1) self.series = EditWithComplete(self.tabWidgetPage1) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.series.sizePolicy().hasHeightForWidth()) self.series.setSizePolicy(sizePolicy) self.series.setEditable(True) self.series.setInsertPolicy(QtGui.QComboBox.InsertAlphabetically) self.series.setSizeAdjustPolicy(QtGui.QComboBox.AdjustToMinimumContentsLengthWithIcon) self.series.setMinimumContentsLength(40) self.series.setObjectName(_fromUtf8("series")) self.gridLayout.addWidget(self.series, 7, 1, 1, 1) self.clear_series = QtGui.QCheckBox(self.tabWidgetPage1) self.clear_series.setObjectName(_fromUtf8("clear_series")) self.gridLayout.addWidget(self.clear_series, 7, 2, 1, 1) self.HLayout_3 = QtGui.QHBoxLayout() self.HLayout_3.setObjectName(_fromUtf8("HLayout_3")) self.autonumber_series = QtGui.QCheckBox(self.tabWidgetPage1) self.autonumber_series.setEnabled(False) self.autonumber_series.setObjectName(_fromUtf8("autonumber_series")) self.HLayout_3.addWidget(self.autonumber_series) self.series_numbering_restarts = QtGui.QCheckBox(self.tabWidgetPage1) self.series_numbering_restarts.setEnabled(False) self.series_numbering_restarts.setObjectName(_fromUtf8("series_numbering_restarts")) self.HLayout_3.addWidget(self.series_numbering_restarts) self.series_start_number = QtGui.QSpinBox(self.tabWidgetPage1) self.series_start_number.setEnabled(False) self.series_start_number.setMinimum(1) self.series_start_number.setMaximum(99000000) self.series_start_number.setProperty("value", 1) self.series_start_number.setObjectName(_fromUtf8("series_start_number")) self.HLayout_3.addWidget(self.series_start_number) self.gridLayout.addLayout(self.HLayout_3, 8, 1, 1, 1) self.label_10 = QtGui.QLabel(self.tabWidgetPage1) self.label_10.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_10.setObjectName(_fromUtf8("label_10")) self.gridLayout.addWidget(self.label_10, 9, 0, 1, 1) self.horizontalLayout_5 = QtGui.QHBoxLayout() self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5")) self.adddate = QtGui.QDateTimeEdit(self.tabWidgetPage1) self.adddate.setCalendarPopup(True) self.adddate.setObjectName(_fromUtf8("adddate")) self.horizontalLayout_5.addWidget(self.adddate) self.clear_adddate_button = QtGui.QToolButton(self.tabWidgetPage1) icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap(_fromUtf8(I("trash.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.clear_adddate_button.setIcon(icon2) self.clear_adddate_button.setObjectName(_fromUtf8("clear_adddate_button")) self.horizontalLayout_5.addWidget(self.clear_adddate_button) self.gridLayout.addLayout(self.horizontalLayout_5, 9, 1, 1, 1) self.apply_adddate = QtGui.QCheckBox(self.tabWidgetPage1) self.apply_adddate.setObjectName(_fromUtf8("apply_adddate")) self.gridLayout.addWidget(self.apply_adddate, 9, 2, 1, 1) self.label_9 = QtGui.QLabel(self.tabWidgetPage1) self.label_9.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_9.setObjectName(_fromUtf8("label_9")) self.gridLayout.addWidget(self.label_9, 10, 0, 1, 1) self.horizontalLayout_4 = QtGui.QHBoxLayout() self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4")) self.pubdate = QtGui.QDateTimeEdit(self.tabWidgetPage1) self.pubdate.setCalendarPopup(True) self.pubdate.setObjectName(_fromUtf8("pubdate")) self.horizontalLayout_4.addWidget(self.pubdate) self.clear_pubdate_button = QtGui.QToolButton(self.tabWidgetPage1) self.clear_pubdate_button.setIcon(icon2) self.clear_pubdate_button.setObjectName(_fromUtf8("clear_pubdate_button")) self.horizontalLayout_4.addWidget(self.clear_pubdate_button) self.gridLayout.addLayout(self.horizontalLayout_4, 10, 1, 1, 1) self.apply_pubdate = QtGui.QCheckBox(self.tabWidgetPage1) self.apply_pubdate.setObjectName(_fromUtf8("apply_pubdate")) self.gridLayout.addWidget(self.apply_pubdate, 10, 2, 1, 1) self.label_11 = QtGui.QLabel(self.tabWidgetPage1) self.label_11.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_11.setObjectName(_fromUtf8("label_11")) self.gridLayout.addWidget(self.label_11, 11, 0, 1, 1) self.languages = LanguagesEdit(self.tabWidgetPage1) self.languages.setObjectName(_fromUtf8("languages")) self.gridLayout.addWidget(self.languages, 11, 1, 1, 1) self.clear_languages = QtGui.QCheckBox(self.tabWidgetPage1) self.clear_languages.setObjectName(_fromUtf8("clear_languages")) self.gridLayout.addWidget(self.clear_languages, 11, 2, 1, 1) self.label_5 = QtGui.QLabel(self.tabWidgetPage1) self.label_5.setObjectName(_fromUtf8("label_5")) self.gridLayout.addWidget(self.label_5, 12, 0, 1, 1) self.horizontalLayout_7 = QtGui.QHBoxLayout() self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7")) self.remove_format = QtGui.QComboBox(self.tabWidgetPage1) self.remove_format.setMaximumSize(QtCore.QSize(120, 16777215)) self.remove_format.setObjectName(_fromUtf8("remove_format")) self.horizontalLayout_7.addWidget(self.remove_format) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_7.addItem(spacerItem) self.restore_original = QtGui.QCheckBox(self.tabWidgetPage1) self.restore_original.setObjectName(_fromUtf8("restore_original")) self.horizontalLayout_7.addWidget(self.restore_original) self.gridLayout.addLayout(self.horizontalLayout_7, 12, 1, 1, 1) spacerItem1 = QtGui.QSpacerItem(20, 15, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed) self.gridLayout.addItem(spacerItem1, 13, 0, 1, 1) self.horizontalLayout_3 = QtGui.QHBoxLayout() self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3")) self.change_title_to_title_case = QtGui.QCheckBox(self.tabWidgetPage1) self.change_title_to_title_case.setObjectName(_fromUtf8("change_title_to_title_case")) self.horizontalLayout_3.addWidget(self.change_title_to_title_case) self.update_title_sort = QtGui.QCheckBox(self.tabWidgetPage1) self.update_title_sort.setObjectName(_fromUtf8("update_title_sort")) self.horizontalLayout_3.addWidget(self.update_title_sort) spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_3.addItem(spacerItem2) self.remove_conversion_settings = QtGui.QCheckBox(self.tabWidgetPage1) self.remove_conversion_settings.setObjectName(_fromUtf8("remove_conversion_settings")) self.horizontalLayout_3.addWidget(self.remove_conversion_settings) self.gridLayout.addLayout(self.horizontalLayout_3, 14, 0, 1, 2) self.groupBox = QtGui.QGroupBox(self.tabWidgetPage1) self.groupBox.setObjectName(_fromUtf8("groupBox")) self.horizontalLayout = QtGui.QHBoxLayout(self.groupBox) self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.cover_generate = QtGui.QRadioButton(self.groupBox) self.cover_generate.setObjectName(_fromUtf8("cover_generate")) self.horizontalLayout.addWidget(self.cover_generate) self.cover_remove = QtGui.QRadioButton(self.groupBox) self.cover_remove.setObjectName(_fromUtf8("cover_remove")) self.horizontalLayout.addWidget(self.cover_remove) self.cover_from_fmt = QtGui.QRadioButton(self.groupBox) self.cover_from_fmt.setObjectName(_fromUtf8("cover_from_fmt")) self.horizontalLayout.addWidget(self.cover_from_fmt) self.gridLayout.addWidget(self.groupBox, 15, 0, 1, 2) spacerItem3 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem3, 16, 0, 1, 1) self.central_widget.addTab(self.tabWidgetPage1, _fromUtf8("")) self.tab = QtGui.QWidget() self.tab.setObjectName(_fromUtf8("tab")) self.central_widget.addTab(self.tab, _fromUtf8("")) self.tabWidgetPage3 = QtGui.QWidget() self.tabWidgetPage3.setObjectName(_fromUtf8("tabWidgetPage3")) self.vargrid = QtGui.QGridLayout(self.tabWidgetPage3) self.vargrid.setSizeConstraint(QtGui.QLayout.SetMinimumSize) self.vargrid.setObjectName(_fromUtf8("vargrid")) self.s_r_heading = QtGui.QLabel(self.tabWidgetPage3) self.s_r_heading.setWordWrap(True) self.s_r_heading.setOpenExternalLinks(True) self.s_r_heading.setObjectName(_fromUtf8("s_r_heading")) self.vargrid.addWidget(self.s_r_heading, 0, 0, 1, 4) self.filler = QtGui.QLabel(self.tabWidgetPage3) self.filler.setText(_fromUtf8("")) self.filler.setObjectName(_fromUtf8("filler")) self.vargrid.addWidget(self.filler, 1, 0, 1, 1) self.line = QtGui.QFrame(self.tabWidgetPage3) self.line.setFrameShape(QtGui.QFrame.HLine) self.line.setFrameShadow(QtGui.QFrame.Sunken) self.line.setObjectName(_fromUtf8("line")) self.vargrid.addWidget(self.line, 2, 0, 1, 3) self.xlabel_22 = QtGui.QLabel(self.tabWidgetPage3) self.xlabel_22.setObjectName(_fromUtf8("xlabel_22")) self.vargrid.addWidget(self.xlabel_22, 3, 0, 1, 1) self.query_field = QtGui.QComboBox(self.tabWidgetPage3) self.query_field.setObjectName(_fromUtf8("query_field")) self.vargrid.addWidget(self.query_field, 3, 1, 1, 1) self.horizontalLayout_6 = QtGui.QHBoxLayout() self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6")) spacerItem4 = QtGui.QSpacerItem(20, 20, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum) self.horizontalLayout_6.addItem(spacerItem4) self.save_button = QtGui.QPushButton(self.tabWidgetPage3) self.save_button.setObjectName(_fromUtf8("save_button")) self.horizontalLayout_6.addWidget(self.save_button) self.remove_button = QtGui.QPushButton(self.tabWidgetPage3) self.remove_button.setObjectName(_fromUtf8("remove_button")) self.horizontalLayout_6.addWidget(self.remove_button) spacerItem5 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_6.addItem(spacerItem5) self.vargrid.addLayout(self.horizontalLayout_6, 3, 2, 1, 1) self.xlabel_21 = QtGui.QLabel(self.tabWidgetPage3) self.xlabel_21.setObjectName(_fromUtf8("xlabel_21")) self.vargrid.addWidget(self.xlabel_21, 4, 0, 1, 1) self.search_field = QtGui.QComboBox(self.tabWidgetPage3) self.search_field.setObjectName(_fromUtf8("search_field")) self.vargrid.addWidget(self.search_field, 4, 1, 1, 1) self.HLayout_31 = QtGui.QHBoxLayout() self.HLayout_31.setObjectName(_fromUtf8("HLayout_31")) self.xlabel_24 = QtGui.QLabel(self.tabWidgetPage3) self.xlabel_24.setObjectName(_fromUtf8("xlabel_24")) self.HLayout_31.addWidget(self.xlabel_24) self.search_mode = QtGui.QComboBox(self.tabWidgetPage3) self.search_mode.setObjectName(_fromUtf8("search_mode")) self.HLayout_31.addWidget(self.search_mode) spacerItem6 = QtGui.QSpacerItem(20, 10, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.HLayout_31.addItem(spacerItem6) self.vargrid.addLayout(self.HLayout_31, 4, 2, 1, 1) self.s_r_src_ident_label = QtGui.QLabel(self.tabWidgetPage3) self.s_r_src_ident_label.setObjectName(_fromUtf8("s_r_src_ident_label")) self.vargrid.addWidget(self.s_r_src_ident_label, 5, 0, 1, 1) self.s_r_src_ident = QtGui.QComboBox(self.tabWidgetPage3) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(100) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.s_r_src_ident.sizePolicy().hasHeightForWidth()) self.s_r_src_ident.setSizePolicy(sizePolicy) self.s_r_src_ident.setObjectName(_fromUtf8("s_r_src_ident")) self.vargrid.addWidget(self.s_r_src_ident, 5, 1, 1, 1) self.template_label = QtGui.QLabel(self.tabWidgetPage3) self.template_label.setObjectName(_fromUtf8("template_label")) self.vargrid.addWidget(self.template_label, 5, 0, 1, 1) self.s_r_template = HistoryLineEdit(self.tabWidgetPage3) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(100) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.s_r_template.sizePolicy().hasHeightForWidth()) self.s_r_template.setSizePolicy(sizePolicy) self.s_r_template.setObjectName(_fromUtf8("s_r_template")) self.vargrid.addWidget(self.s_r_template, 5, 1, 1, 1) self.xlabel_2 = QtGui.QLabel(self.tabWidgetPage3) self.xlabel_2.setObjectName(_fromUtf8("xlabel_2")) self.vargrid.addWidget(self.xlabel_2, 6, 0, 1, 1) self.search_for = HistoryLineEdit(self.tabWidgetPage3) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(100) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.search_for.sizePolicy().hasHeightForWidth()) self.search_for.setSizePolicy(sizePolicy) self.search_for.setObjectName(_fromUtf8("search_for")) self.vargrid.addWidget(self.search_for, 6, 1, 1, 1) self.case_sensitive = QtGui.QCheckBox(self.tabWidgetPage3) self.case_sensitive.setChecked(True) self.case_sensitive.setObjectName(_fromUtf8("case_sensitive")) self.vargrid.addWidget(self.case_sensitive, 6, 2, 1, 1) self.xlabel_4 = QtGui.QLabel(self.tabWidgetPage3) self.xlabel_4.setObjectName(_fromUtf8("xlabel_4")) self.vargrid.addWidget(self.xlabel_4, 7, 0, 1, 1) self.replace_with = HistoryLineEdit(self.tabWidgetPage3) self.replace_with.setObjectName(_fromUtf8("replace_with")) self.vargrid.addWidget(self.replace_with, 7, 1, 1, 1) self.verticalLayout = QtGui.QHBoxLayout() self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.label_41 = QtGui.QLabel(self.tabWidgetPage3) self.label_41.setObjectName(_fromUtf8("label_41")) self.verticalLayout.addWidget(self.label_41) self.replace_func = QtGui.QComboBox(self.tabWidgetPage3) self.replace_func.setObjectName(_fromUtf8("replace_func")) self.verticalLayout.addWidget(self.replace_func) spacerItem7 = QtGui.QSpacerItem(20, 10, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.verticalLayout.addItem(spacerItem7) self.vargrid.addLayout(self.verticalLayout, 7, 2, 1, 1) self.destination_field_label = QtGui.QLabel(self.tabWidgetPage3) self.destination_field_label.setObjectName(_fromUtf8("destination_field_label")) self.vargrid.addWidget(self.destination_field_label, 8, 0, 1, 1) self.destination_field = QtGui.QComboBox(self.tabWidgetPage3) self.destination_field.setObjectName(_fromUtf8("destination_field")) self.vargrid.addWidget(self.destination_field, 8, 1, 1, 1) self.verticalLayout1 = QtGui.QHBoxLayout() self.verticalLayout1.setObjectName(_fromUtf8("verticalLayout1")) self.replace_mode_label = QtGui.QLabel(self.tabWidgetPage3) self.replace_mode_label.setObjectName(_fromUtf8("replace_mode_label")) self.verticalLayout1.addWidget(self.replace_mode_label) self.replace_mode = QtGui.QComboBox(self.tabWidgetPage3) self.replace_mode.setObjectName(_fromUtf8("replace_mode")) self.verticalLayout1.addWidget(self.replace_mode) self.comma_separated = QtGui.QCheckBox(self.tabWidgetPage3) self.comma_separated.setChecked(True) self.comma_separated.setObjectName(_fromUtf8("comma_separated")) self.verticalLayout1.addWidget(self.comma_separated) spacerItem8 = QtGui.QSpacerItem(20, 10, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.verticalLayout1.addItem(spacerItem8) self.vargrid.addLayout(self.verticalLayout1, 8, 2, 1, 1) self.s_r_dst_ident_label = QtGui.QLabel(self.tabWidgetPage3) self.s_r_dst_ident_label.setObjectName(_fromUtf8("s_r_dst_ident_label")) self.vargrid.addWidget(self.s_r_dst_ident_label, 9, 0, 1, 1) self.s_r_dst_ident = QtGui.QLineEdit(self.tabWidgetPage3) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(100) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.s_r_dst_ident.sizePolicy().hasHeightForWidth()) self.s_r_dst_ident.setSizePolicy(sizePolicy) self.s_r_dst_ident.setObjectName(_fromUtf8("s_r_dst_ident")) self.vargrid.addWidget(self.s_r_dst_ident, 9, 1, 1, 1) self.horizontalLayout_21 = QtGui.QHBoxLayout() self.horizontalLayout_21.setObjectName(_fromUtf8("horizontalLayout_21")) spacerItem9 = QtGui.QSpacerItem(20, 0, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_21.addItem(spacerItem9) self.xlabel_412 = QtGui.QLabel(self.tabWidgetPage3) self.xlabel_412.setObjectName(_fromUtf8("xlabel_412")) self.horizontalLayout_21.addWidget(self.xlabel_412) self.results_count = QtGui.QSpinBox(self.tabWidgetPage3) self.results_count.setEnabled(True) self.results_count.setMinimum(1) self.results_count.setMaximum(999) self.results_count.setProperty("value", 999) self.results_count.setObjectName(_fromUtf8("results_count")) self.horizontalLayout_21.addWidget(self.results_count) self.xlabel_4121 = QtGui.QLabel(self.tabWidgetPage3) self.xlabel_4121.setObjectName(_fromUtf8("xlabel_4121")) self.horizontalLayout_21.addWidget(self.xlabel_4121) self.starting_from = QtGui.QSpinBox(self.tabWidgetPage3) self.starting_from.setEnabled(True) self.starting_from.setMinimum(1) self.starting_from.setMaximum(999) self.starting_from.setProperty("value", 1) self.starting_from.setObjectName(_fromUtf8("starting_from")) self.horizontalLayout_21.addWidget(self.starting_from) self.xlabel_41 = QtGui.QLabel(self.tabWidgetPage3) self.xlabel_41.setObjectName(_fromUtf8("xlabel_41")) self.horizontalLayout_21.addWidget(self.xlabel_41) self.multiple_separator = QtGui.QLineEdit(self.tabWidgetPage3) self.multiple_separator.setObjectName(_fromUtf8("multiple_separator")) self.horizontalLayout_21.addWidget(self.multiple_separator) self.vargrid.addLayout(self.horizontalLayout_21, 10, 1, 1, 2) self.scrollArea11 = QtGui.QScrollArea(self.tabWidgetPage3) self.scrollArea11.setFrameShape(QtGui.QFrame.NoFrame) self.scrollArea11.setWidgetResizable(True) self.scrollArea11.setObjectName(_fromUtf8("scrollArea11")) self.gridLayoutWidget_2 = QtGui.QWidget() self.gridLayoutWidget_2.setGeometry(QtCore.QRect(0, 0, 205, 66)) self.gridLayoutWidget_2.setObjectName(_fromUtf8("gridLayoutWidget_2")) self.testgrid = QtGui.QGridLayout(self.gridLayoutWidget_2) self.testgrid.setObjectName(_fromUtf8("testgrid")) self.xlabel_3 = QtGui.QLabel(self.gridLayoutWidget_2) self.xlabel_3.setObjectName(_fromUtf8("xlabel_3")) self.testgrid.addWidget(self.xlabel_3, 7, 1, 1, 1) self.xlabel_31 = QtGui.QLabel(self.gridLayoutWidget_2) self.xlabel_31.setObjectName(_fromUtf8("xlabel_31")) self.testgrid.addWidget(self.xlabel_31, 7, 2, 1, 1) self.label_31 = QtGui.QLabel(self.gridLayoutWidget_2) self.label_31.setObjectName(_fromUtf8("label_31")) self.testgrid.addWidget(self.label_31, 8, 0, 1, 1) self.test_text = HistoryLineEdit(self.gridLayoutWidget_2) self.test_text.setObjectName(_fromUtf8("test_text")) self.testgrid.addWidget(self.test_text, 8, 1, 1, 1) self.test_result = QtGui.QLineEdit(self.gridLayoutWidget_2) self.test_result.setObjectName(_fromUtf8("test_result")) self.testgrid.addWidget(self.test_result, 8, 2, 1, 1) spacerItem10 = QtGui.QSpacerItem(20, 5, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.testgrid.addItem(spacerItem10, 25, 0, 1, 2) self.scrollArea11.setWidget(self.gridLayoutWidget_2) self.vargrid.addWidget(self.scrollArea11, 11, 0, 1, 4) self.central_widget.addTab(self.tabWidgetPage3, _fromUtf8("")) self.verticalLayout_2.addWidget(self.central_widget) self.scrollArea.setWidget(self.scrollAreaWidgetContents) self.gridLayout_2.addWidget(self.scrollArea, 1, 0, 1, 1) self.button_box = QtGui.QDialogButtonBox(MetadataBulkDialog) self.button_box.setOrientation(QtCore.Qt.Horizontal) self.button_box.setStandardButtons(QtGui.QDialogButtonBox.Apply|QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok) self.button_box.setObjectName(_fromUtf8("button_box")) self.gridLayout_2.addWidget(self.button_box, 2, 0, 1, 1) self.label_2.setBuddy(self.authors) self.label_8.setBuddy(self.author_sort) self.label_6.setBuddy(self.rating) self.label_3.setBuddy(self.publisher) self.label_4.setBuddy(self.tags) self.label.setBuddy(self.remove_tags) self.label_7.setBuddy(self.series) self.label_10.setBuddy(self.adddate) self.label_9.setBuddy(self.pubdate) self.label_11.setBuddy(self.languages) self.label_5.setBuddy(self.remove_format) self.xlabel_22.setBuddy(self.search_field) self.xlabel_21.setBuddy(self.search_field) self.xlabel_24.setBuddy(self.search_mode) self.s_r_src_ident_label.setBuddy(self.s_r_src_ident) self.template_label.setBuddy(self.s_r_template) self.xlabel_2.setBuddy(self.search_for) self.xlabel_4.setBuddy(self.replace_with) self.label_41.setBuddy(self.replace_func) self.destination_field_label.setBuddy(self.destination_field) self.replace_mode_label.setBuddy(self.replace_mode) self.s_r_dst_ident_label.setBuddy(self.s_r_dst_ident) self.xlabel_412.setBuddy(self.results_count) self.xlabel_4121.setBuddy(self.starting_from) self.xlabel_41.setBuddy(self.multiple_separator) self.retranslateUi(MetadataBulkDialog) self.central_widget.setCurrentIndex(0) QtCore.QObject.connect(self.button_box, QtCore.SIGNAL(_fromUtf8("accepted()")), MetadataBulkDialog.accept) QtCore.QObject.connect(self.button_box, QtCore.SIGNAL(_fromUtf8("rejected()")), MetadataBulkDialog.reject) QtCore.QMetaObject.connectSlotsByName(MetadataBulkDialog) MetadataBulkDialog.setTabOrder(self.authors, self.auto_author_sort) MetadataBulkDialog.setTabOrder(self.auto_author_sort, self.swap_title_and_author) MetadataBulkDialog.setTabOrder(self.swap_title_and_author, self.author_sort) MetadataBulkDialog.setTabOrder(self.author_sort, self.rating) MetadataBulkDialog.setTabOrder(self.rating, self.publisher) MetadataBulkDialog.setTabOrder(self.publisher, self.tags) MetadataBulkDialog.setTabOrder(self.tags, self.tag_editor_button) MetadataBulkDialog.setTabOrder(self.tag_editor_button, self.remove_tags) MetadataBulkDialog.setTabOrder(self.remove_tags, self.remove_all_tags) MetadataBulkDialog.setTabOrder(self.remove_all_tags, self.series) MetadataBulkDialog.setTabOrder(self.series, self.clear_series) MetadataBulkDialog.setTabOrder(self.clear_series, self.autonumber_series) MetadataBulkDialog.setTabOrder(self.autonumber_series, self.series_numbering_restarts) MetadataBulkDialog.setTabOrder(self.series_numbering_restarts, self.series_start_number) MetadataBulkDialog.setTabOrder(self.series_start_number, self.adddate) MetadataBulkDialog.setTabOrder(self.adddate, self.clear_adddate_button) MetadataBulkDialog.setTabOrder(self.clear_adddate_button, self.apply_adddate) MetadataBulkDialog.setTabOrder(self.apply_adddate, self.pubdate) MetadataBulkDialog.setTabOrder(self.pubdate, self.clear_pubdate_button) MetadataBulkDialog.setTabOrder(self.clear_pubdate_button, self.apply_pubdate) MetadataBulkDialog.setTabOrder(self.apply_pubdate, self.languages) MetadataBulkDialog.setTabOrder(self.languages, self.clear_languages) MetadataBulkDialog.setTabOrder(self.clear_languages, self.remove_format) MetadataBulkDialog.setTabOrder(self.remove_format, self.restore_original) MetadataBulkDialog.setTabOrder(self.restore_original, self.change_title_to_title_case) MetadataBulkDialog.setTabOrder(self.change_title_to_title_case, self.update_title_sort) MetadataBulkDialog.setTabOrder(self.update_title_sort, self.remove_conversion_settings) MetadataBulkDialog.setTabOrder(self.remove_conversion_settings, self.cover_generate) MetadataBulkDialog.setTabOrder(self.cover_generate, self.cover_remove) MetadataBulkDialog.setTabOrder(self.cover_remove, self.cover_from_fmt) MetadataBulkDialog.setTabOrder(self.cover_from_fmt, self.multiple_separator) MetadataBulkDialog.setTabOrder(self.multiple_separator, self.test_text) MetadataBulkDialog.setTabOrder(self.test_text, self.test_result) MetadataBulkDialog.setTabOrder(self.test_result, self.scrollArea) MetadataBulkDialog.setTabOrder(self.scrollArea, self.central_widget) MetadataBulkDialog.setTabOrder(self.central_widget, self.query_field) MetadataBulkDialog.setTabOrder(self.query_field, self.button_box) MetadataBulkDialog.setTabOrder(self.button_box, self.save_button) MetadataBulkDialog.setTabOrder(self.save_button, self.remove_button) MetadataBulkDialog.setTabOrder(self.remove_button, self.search_field) MetadataBulkDialog.setTabOrder(self.search_field, self.search_mode) MetadataBulkDialog.setTabOrder(self.search_mode, self.s_r_src_ident) MetadataBulkDialog.setTabOrder(self.s_r_src_ident, self.s_r_template) MetadataBulkDialog.setTabOrder(self.s_r_template, self.replace_with) MetadataBulkDialog.setTabOrder(self.replace_with, self.replace_func) MetadataBulkDialog.setTabOrder(self.replace_func, self.replace_mode) MetadataBulkDialog.setTabOrder(self.replace_mode, self.comma_separated) MetadataBulkDialog.setTabOrder(self.comma_separated, self.s_r_dst_ident) MetadataBulkDialog.setTabOrder(self.s_r_dst_ident, self.results_count) MetadataBulkDialog.setTabOrder(self.results_count, self.scrollArea11) MetadataBulkDialog.setTabOrder(self.scrollArea11, self.destination_field) MetadataBulkDialog.setTabOrder(self.destination_field, self.search_for) MetadataBulkDialog.setTabOrder(self.search_for, self.case_sensitive) MetadataBulkDialog.setTabOrder(self.case_sensitive, self.starting_from) def retranslateUi(self, MetadataBulkDialog): MetadataBulkDialog.setWindowTitle(_("Edit Meta information")) self.label_2.setText(_("&Author(s): ")) self.auto_author_sort.setText(_("A&utomatically set author sort")) self.swap_title_and_author.setText(_("&Swap title and author")) self.label_8.setText(_("Author s&ort: ")) self.author_sort.setToolTip(_("Specify how the author(s) of this book should be sorted. For example Charles Dickens should be sorted as Dickens, Charles.")) self.label_6.setText(_("&Rating:")) self.rating.setToolTip(_("Rating of this book. 0-5 stars")) self.rating.setWhatsThis(_("Rating of this book. 0-5 stars")) self.rating.setSpecialValueText(_("No change")) self.rating.setSuffix(_(" stars")) self.label_3.setText(_("&Publisher: ")) self.label_4.setText(_("Add ta&gs: ")) self.tags.setToolTip(_("Tags categorize the book. This is particularly useful while searching. <br><br>They can be any words or phrases, separated by commas.")) self.tag_editor_button.setToolTip(_("Open Tag Editor")) self.tag_editor_button.setText(_("Open Tag Editor")) self.label.setText(_("&Remove tags:")) self.remove_tags.setToolTip(_("Comma separated list of tags to remove from the books. ")) self.remove_all_tags.setToolTip(_("Check this box to remove all tags from the books.")) self.remove_all_tags.setText(_("Remove &all")) self.label_7.setText(_("&Series:")) self.series.setToolTip(_("List of known series. You can add new series.")) self.series.setWhatsThis(_("List of known series. You can add new series.")) self.clear_series.setToolTip(_("If checked, the series will be cleared")) self.clear_series.setText(_("&Clear series")) self.autonumber_series.setToolTip(_("If not checked, the series number for the books will be set to 1.\n" "If checked, selected books will be automatically numbered, in the order\n" "you selected them. So if you selected Book A and then Book B,\n" "Book A will have series number 1 and Book B series number 2.")) self.autonumber_series.setText(_("&Automatically number books in this series")) self.series_numbering_restarts.setToolTip(_("Series will normally be renumbered from the highest number in the database\n" "for that series. Checking this box will tell calibre to start numbering\n" "from the value in the box")) self.series_numbering_restarts.setText(_("&Force numbers to start with:")) self.label_10.setText(_("&Date:")) self.adddate.setDisplayFormat(_("d MMM yyyy")) self.clear_adddate_button.setText(_("...")) self.apply_adddate.setText(_("&Apply date")) self.label_9.setText(_("&Published:")) self.pubdate.setDisplayFormat("MMM yyyy") self.clear_pubdate_button.setToolTip(_("Clear published date")) self.clear_pubdate_button.setText(_("...")) self.apply_pubdate.setText(_("&Apply date")) self.label_11.setText(_("&Languages:")) self.clear_languages.setText(_("Remove &all")) self.label_5.setText(_("Remove &format:")) self.restore_original.setToolTip(_("When doing a same format to same format conversion, for e.g., EPUB to EPUB, calibre saves the original EPUB as ORIGINAL_EPUB. This option tells calibre to restore the EPUB from ORIGINAL_EPUB. Useful if you did a bulk conversion of a large number of books and something went wrong.")) self.restore_original.setText(_("Restore pre conversion &originals, if available")) self.change_title_to_title_case.setToolTip(_("Force the title to be in title case. If both this and swap authors are checked,\n" "title and author are swapped before the title case is set")) self.change_title_to_title_case.setText(_("Change title to title &case")) self.update_title_sort.setToolTip(_("Update title sort based on the current title. This will be applied only after other changes to title.")) self.update_title_sort.setText(_("Update &title sort")) self.remove_conversion_settings.setToolTip(_("Remove stored conversion settings for the selected books.\n" "\n" "Future conversion of these books will use the default settings.")) self.remove_conversion_settings.setText(_("Remove &stored conversion settings for the selected books")) self.groupBox.setTitle(_("Change &cover")) self.cover_generate.setText(_("&Generate default cover")) self.cover_remove.setText(_("&Remove cover")) self.cover_from_fmt.setText(_("Set from &ebook file(s)")) self.central_widget.setTabText(self.central_widget.indexOf(self.tabWidgetPage1), _("&Basic metadata")) self.central_widget.setTabText(self.central_widget.indexOf(self.tab), _("&Custom metadata")) self.xlabel_22.setText(_("Load searc&h/replace:")) self.query_field.setToolTip(_("Select saved search/replace to load.")) self.save_button.setToolTip(_("Save current search/replace")) self.save_button.setText(_("Sa&ve")) self.remove_button.setToolTip(_("Delete saved search/replace")) self.remove_button.setText(_("Delete")) self.xlabel_21.setText(_("Search &field:")) self.search_field.setToolTip(_("The name of the field that you want to search")) self.xlabel_24.setText(_("Search &mode:")) self.search_mode.setToolTip(_("Choose whether to use basic text matching or advanced regular expression matching")) self.s_r_src_ident_label.setText(_("Identifier type:")) self.s_r_src_ident.setToolTip(_("Choose which identifier type to operate upon")) self.template_label.setText(_("Te&mplate:")) self.s_r_template.setToolTip(_("Enter a template to be used as the source for the search/replace")) self.xlabel_2.setText(_("&Search for:")) self.search_for.setToolTip(_("Enter what you are looking for, either plain text or a regular expression, depending on the mode")) self.case_sensitive.setToolTip(_("Check this box if the search string must match exactly upper and lower case. Uncheck it if case is to be ignored")) self.case_sensitive.setText(_("Cas&e sensitive")) self.xlabel_4.setText(_("&Replace with:")) self.replace_with.setToolTip(_("The replacement text. The matched search text will be replaced with this string")) self.label_41.setText(_("&Apply function after replace:")) self.replace_func.setToolTip(_("Specify how the text is to be processed after matching and replacement. In character mode, the entire\n" "field is processed. In regular expression mode, only the matched text is processed")) self.destination_field_label.setText(_("&Destination field:")) self.destination_field.setToolTip(_("The field that the text will be put into after all replacements.\n" "If blank, the source field is used if the field is modifiable")) self.replace_mode_label.setText(_("M&ode:")) self.replace_mode.setToolTip(_("Specify how the text should be copied into the destination.")) self.comma_separated.setToolTip(_("Specifies whether result items should be split into multiple values or\n" "left as single values. This option has the most effect when the source field is\n" "not multiple and the destination field is multiple")) self.comma_separated.setText(_("Split &result")) self.s_r_dst_ident_label.setText(_("Identifier type:")) self.s_r_dst_ident.setToolTip(_("Choose which identifier type to operate upon")) self.xlabel_412.setText(_("For multiple-valued fields, sho&w")) self.xlabel_4121.setText(_("values starting a&t")) self.xlabel_41.setText(_("with values separated b&y")) self.multiple_separator.setToolTip(_("Used when displaying test results to separate values in multiple-valued fields")) self.xlabel_3.setText(_("Test text")) self.xlabel_31.setText(_("Test result")) self.label_31.setText(_("Your test:")) self.central_widget.setTabText(self.central_widget.indexOf(self.tabWidgetPage3), _("&Search and replace"))
def setupUi(self, Dialog): Dialog.setObjectName(_fromUtf8("Dialog")) Dialog.resize(738, 640) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(_fromUtf8(I("user_profile.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) Dialog.setWindowIcon(icon) self.verticalLayout_4 = QtGui.QVBoxLayout(Dialog) self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4")) self.scrollArea = QtGui.QScrollArea(Dialog) self.scrollArea.setFrameShape(QtGui.QFrame.NoFrame) self.scrollArea.setLineWidth(0) self.scrollArea.setWidgetResizable(True) self.scrollArea.setObjectName(_fromUtf8("scrollArea")) self.scrollAreaWidgetContents = QtGui.QWidget() self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 730, 601)) self.scrollAreaWidgetContents.setObjectName(_fromUtf8("scrollAreaWidgetContents")) self.verticalLayout_3 = QtGui.QVBoxLayout(self.scrollAreaWidgetContents) self.verticalLayout_3.setMargin(0) self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3")) self.central_widget = QtGui.QWidget(self.scrollAreaWidgetContents) self.central_widget.setMinimumSize(QtCore.QSize(580, 550)) self.central_widget.setObjectName(_fromUtf8("central_widget")) self.horizontalLayout = QtGui.QHBoxLayout(self.central_widget) self.horizontalLayout.setMargin(0) self.horizontalLayout.setMargin(0) self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.groupBox = QtGui.QGroupBox(self.central_widget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(1) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.groupBox.sizePolicy().hasHeightForWidth()) self.groupBox.setSizePolicy(sizePolicy) self.groupBox.setObjectName(_fromUtf8("groupBox")) self.verticalLayout_2 = QtGui.QVBoxLayout(self.groupBox) self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.available_profiles = QtGui.QListView(self.groupBox) self.available_profiles.setObjectName(_fromUtf8("available_profiles")) self.verticalLayout_2.addWidget(self.available_profiles) self.add_profile_button = QtGui.QPushButton(self.groupBox) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(_fromUtf8(I("plus.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.add_profile_button.setIcon(icon1) self.add_profile_button.setObjectName(_fromUtf8("add_profile_button")) self.verticalLayout_2.addWidget(self.add_profile_button) self.remove_profile_button = QtGui.QPushButton(self.groupBox) icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap(_fromUtf8(I("list_remove.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.remove_profile_button.setIcon(icon2) self.remove_profile_button.setObjectName(_fromUtf8("remove_profile_button")) self.verticalLayout_2.addWidget(self.remove_profile_button) self.share_button = QtGui.QPushButton(self.groupBox) icon3 = QtGui.QIcon() icon3.addPixmap(QtGui.QPixmap(_fromUtf8(I("forward.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.share_button.setIcon(icon3) self.share_button.setObjectName(_fromUtf8("share_button")) self.verticalLayout_2.addWidget(self.share_button) self.show_recipe_files_button = QtGui.QPushButton(self.groupBox) icon4 = QtGui.QIcon() icon4.addPixmap(QtGui.QPixmap(_fromUtf8(I("document_open.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.show_recipe_files_button.setIcon(icon4) self.show_recipe_files_button.setObjectName(_fromUtf8("show_recipe_files_button")) self.verticalLayout_2.addWidget(self.show_recipe_files_button) self.builtin_recipe_button = QtGui.QPushButton(self.groupBox) icon5 = QtGui.QIcon() icon5.addPixmap(QtGui.QPixmap(_fromUtf8(I("news.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.builtin_recipe_button.setIcon(icon5) self.builtin_recipe_button.setObjectName(_fromUtf8("builtin_recipe_button")) self.verticalLayout_2.addWidget(self.builtin_recipe_button) self.load_button = QtGui.QPushButton(self.groupBox) icon6 = QtGui.QIcon() icon6.addPixmap(QtGui.QPixmap(_fromUtf8(I("chapters.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.load_button.setIcon(icon6) self.load_button.setObjectName(_fromUtf8("load_button")) self.verticalLayout_2.addWidget(self.load_button) self.horizontalLayout.addWidget(self.groupBox) self.frame = QtGui.QFrame(self.central_widget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(10) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.frame.sizePolicy().hasHeightForWidth()) self.frame.setSizePolicy(sizePolicy) self.frame.setFrameShape(QtGui.QFrame.StyledPanel) self.frame.setFrameShadow(QtGui.QFrame.Raised) self.frame.setObjectName(_fromUtf8("frame")) self.verticalLayout = QtGui.QVBoxLayout(self.frame) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.toggle_mode_button = QtGui.QPushButton(self.frame) self.toggle_mode_button.setObjectName(_fromUtf8("toggle_mode_button")) self.verticalLayout.addWidget(self.toggle_mode_button) self.stacks = QtGui.QStackedWidget(self.frame) self.stacks.setObjectName(_fromUtf8("stacks")) self.page = QtGui.QWidget() self.page.setObjectName(_fromUtf8("page")) self.verticalLayout_5 = QtGui.QVBoxLayout(self.page) self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5")) self.label = QtGui.QLabel(self.page) self.label.setTextFormat(QtCore.Qt.RichText) self.label.setWordWrap(True) self.label.setObjectName(_fromUtf8("label")) self.verticalLayout_5.addWidget(self.label) self.gridlayout = QtGui.QGridLayout() self.gridlayout.setObjectName(_fromUtf8("gridlayout")) self.label_2 = QtGui.QLabel(self.page) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridlayout.addWidget(self.label_2, 0, 0, 1, 1) self.profile_title = EnLineEdit(self.page) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.profile_title.setFont(font) self.profile_title.setObjectName(_fromUtf8("profile_title")) self.gridlayout.addWidget(self.profile_title, 0, 1, 1, 2) self.label_6 = QtGui.QLabel(self.page) self.label_6.setObjectName(_fromUtf8("label_6")) self.gridlayout.addWidget(self.label_6, 2, 0, 1, 1) self.oldest_article = QtGui.QSpinBox(self.page) self.oldest_article.setMinimum(1) self.oldest_article.setMaximum(365) self.oldest_article.setProperty("value", 7) self.oldest_article.setObjectName(_fromUtf8("oldest_article")) self.gridlayout.addWidget(self.oldest_article, 2, 2, 1, 1) self.label_7 = QtGui.QLabel(self.page) self.label_7.setObjectName(_fromUtf8("label_7")) self.gridlayout.addWidget(self.label_7, 3, 0, 1, 1) self.max_articles = QtGui.QSpinBox(self.page) self.max_articles.setMinimum(5) self.max_articles.setMaximum(100) self.max_articles.setProperty("value", 10) self.max_articles.setObjectName(_fromUtf8("max_articles")) self.gridlayout.addWidget(self.max_articles, 3, 2, 1, 1) self.verticalLayout_5.addLayout(self.gridlayout) self.groupBox_2 = QtGui.QGroupBox(self.page) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(100) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.groupBox_2.sizePolicy().hasHeightForWidth()) self.groupBox_2.setSizePolicy(sizePolicy) self.groupBox_2.setObjectName(_fromUtf8("groupBox_2")) self.hboxlayout = QtGui.QHBoxLayout(self.groupBox_2) self.hboxlayout.setObjectName(_fromUtf8("hboxlayout")) self.added_feeds = BasicList(self.groupBox_2) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(100) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.added_feeds.sizePolicy().hasHeightForWidth()) self.added_feeds.setSizePolicy(sizePolicy) self.added_feeds.setSelectionMode(QtGui.QAbstractItemView.MultiSelection) self.added_feeds.setObjectName(_fromUtf8("added_feeds")) self.hboxlayout.addWidget(self.added_feeds) self.vboxlayout = QtGui.QVBoxLayout() self.vboxlayout.setObjectName(_fromUtf8("vboxlayout")) self.up_button = QtGui.QToolButton(self.groupBox_2) icon7 = QtGui.QIcon() icon7.addPixmap(QtGui.QPixmap(_fromUtf8(I("arrow-up.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.up_button.setIcon(icon7) self.up_button.setObjectName(_fromUtf8("up_button")) self.vboxlayout.addWidget(self.up_button) self.remove_feed_button = QtGui.QToolButton(self.groupBox_2) self.remove_feed_button.setIcon(icon2) self.remove_feed_button.setObjectName(_fromUtf8("remove_feed_button")) self.vboxlayout.addWidget(self.remove_feed_button) self.down_button = QtGui.QToolButton(self.groupBox_2) icon8 = QtGui.QIcon() icon8.addPixmap(QtGui.QPixmap(_fromUtf8(I("arrow-down.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.down_button.setIcon(icon8) self.down_button.setObjectName(_fromUtf8("down_button")) self.vboxlayout.addWidget(self.down_button) self.hboxlayout.addLayout(self.vboxlayout) self.verticalLayout_5.addWidget(self.groupBox_2) self.groupBox_3 = QtGui.QGroupBox(self.page) self.groupBox_3.setObjectName(_fromUtf8("groupBox_3")) self.gridlayout1 = QtGui.QGridLayout(self.groupBox_3) self.gridlayout1.setObjectName(_fromUtf8("gridlayout1")) self.label_4 = QtGui.QLabel(self.groupBox_3) self.label_4.setObjectName(_fromUtf8("label_4")) self.gridlayout1.addWidget(self.label_4, 0, 0, 1, 1) self.feed_title = EnLineEdit(self.groupBox_3) self.feed_title.setObjectName(_fromUtf8("feed_title")) self.gridlayout1.addWidget(self.feed_title, 0, 1, 1, 1) self.label_5 = QtGui.QLabel(self.groupBox_3) self.label_5.setObjectName(_fromUtf8("label_5")) self.gridlayout1.addWidget(self.label_5, 1, 0, 1, 1) self.feed_url = QtGui.QLineEdit(self.groupBox_3) self.feed_url.setObjectName(_fromUtf8("feed_url")) self.gridlayout1.addWidget(self.feed_url, 1, 1, 1, 1) self.add_feed_button = QtGui.QPushButton(self.groupBox_3) self.add_feed_button.setIcon(icon1) self.add_feed_button.setObjectName(_fromUtf8("add_feed_button")) self.gridlayout1.addWidget(self.add_feed_button, 2, 0, 1, 2) self.verticalLayout_5.addWidget(self.groupBox_3) self.stacks.addWidget(self.page) self.page_2 = QtGui.QWidget() self.page_2.setObjectName(_fromUtf8("page_2")) self.vboxlayout1 = QtGui.QVBoxLayout(self.page_2) self.vboxlayout1.setObjectName(_fromUtf8("vboxlayout1")) self.label_8 = QtGui.QLabel(self.page_2) self.label_8.setWordWrap(True) self.label_8.setOpenExternalLinks(True) self.label_8.setObjectName(_fromUtf8("label_8")) self.vboxlayout1.addWidget(self.label_8) self.groupBox_4 = QtGui.QGroupBox(self.page_2) self.groupBox_4.setObjectName(_fromUtf8("groupBox_4")) self.vboxlayout2 = QtGui.QVBoxLayout(self.groupBox_4) self.vboxlayout2.setObjectName(_fromUtf8("vboxlayout2")) self.source_code = QtGui.QTextEdit(self.groupBox_4) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(100) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.source_code.sizePolicy().hasHeightForWidth()) self.source_code.setSizePolicy(sizePolicy) self.source_code.setLineWrapMode(QtGui.QTextEdit.NoWrap) self.source_code.setAcceptRichText(False) self.source_code.setObjectName(_fromUtf8("source_code")) self.vboxlayout2.addWidget(self.source_code) self.vboxlayout1.addWidget(self.groupBox_4) self.stacks.addWidget(self.page_2) self.verticalLayout.addWidget(self.stacks) self.horizontalLayout.addWidget(self.frame) self.verticalLayout_3.addWidget(self.central_widget) self.scrollArea.setWidget(self.scrollAreaWidgetContents) self.verticalLayout_4.addWidget(self.scrollArea) self.buttonBox = QtGui.QDialogButtonBox(Dialog) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Close) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.verticalLayout_4.addWidget(self.buttonBox) self.label_2.setBuddy(self.profile_title) self.label_6.setBuddy(self.oldest_article) self.label_7.setBuddy(self.max_articles) self.label_4.setBuddy(self.feed_title) self.label_5.setBuddy(self.feed_url) self.retranslateUi(Dialog) self.stacks.setCurrentIndex(0) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), Dialog.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), Dialog.reject) QtCore.QMetaObject.connectSlotsByName(Dialog)
def setupUi(self, Form): Form.setObjectName("Form") Form.resize(600, 500) self.horizontalLayout = QtWidgets.QHBoxLayout(Form) self.horizontalLayout.setObjectName("horizontalLayout") self.groupBox_4 = QtWidgets.QGroupBox(Form) self.groupBox_4.setObjectName("groupBox_4") self._2 = QtWidgets.QGridLayout(self.groupBox_4) self._2.setObjectName("_2") self._4 = QtWidgets.QVBoxLayout() self._4.setContentsMargins(0, 0, 0, 0) self._4.setSpacing(6) self._4.setObjectName("_4") self.label_5 = QtWidgets.QLabel(self.groupBox_4) self.label_5.setObjectName("label_5") self._4.addWidget(self.label_5) self._5 = QtWidgets.QHBoxLayout() self._5.setContentsMargins(0, 0, 0, 0) self._5.setSpacing(6) self._5.setObjectName("_5") self.cover_path = QtWidgets.QLineEdit(self.groupBox_4) self.cover_path.setClearButtonEnabled(True) self.cover_path.setObjectName("cover_path") self._5.addWidget(self.cover_path) self.cover_button = QtWidgets.QToolButton(self.groupBox_4) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(I("document_open.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.cover_button.setIcon(icon) self.cover_button.setObjectName("cover_button") self._5.addWidget(self.cover_button) self._4.addLayout(self._5) self._2.addLayout(self._4, 1, 0, 1, 1) self.opt_prefer_metadata_cover = QtWidgets.QCheckBox(self.groupBox_4) self.opt_prefer_metadata_cover.setChecked(True) self.opt_prefer_metadata_cover.setObjectName( "opt_prefer_metadata_cover") self._2.addWidget(self.opt_prefer_metadata_cover, 2, 0, 1, 1) self._3 = QtWidgets.QHBoxLayout() self._3.setObjectName("_3") self.cover = ImageView(self.groupBox_4) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.cover.sizePolicy().hasHeightForWidth()) self.cover.setSizePolicy(sizePolicy) self.cover.setObjectName("cover") self._3.addWidget(self.cover) self._2.addLayout(self._3, 0, 0, 1, 1) self.horizontalLayout.addWidget(self.groupBox_4) self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self._7 = QtWidgets.QGridLayout() self._7.setObjectName("_7") self.label = QtWidgets.QLabel(Form) self.label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label.setObjectName("label") self._7.addWidget(self.label, 0, 0, 1, 1) self.title = EnLineEdit(Form) self.title.setObjectName("title") self._7.addWidget(self.title, 0, 1, 1, 1) self.label_2 = QtWidgets.QLabel(Form) self.label_2.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_2.setObjectName("label_2") self._7.addWidget(self.label_2, 1, 0, 1, 1) self.label_6 = QtWidgets.QLabel(Form) self.label_6.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_6.setObjectName("label_6") self._7.addWidget(self.label_6, 2, 0, 1, 1) self.author_sort = EnLineEdit(Form) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.author_sort.sizePolicy().hasHeightForWidth()) self.author_sort.setSizePolicy(sizePolicy) self.author_sort.setObjectName("author_sort") self._7.addWidget(self.author_sort, 2, 1, 1, 1) self.label_3 = QtWidgets.QLabel(Form) self.label_3.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_3.setObjectName("label_3") self._7.addWidget(self.label_3, 3, 0, 1, 1) self.label_4 = QtWidgets.QLabel(Form) self.label_4.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_4.setObjectName("label_4") self._7.addWidget(self.label_4, 4, 0, 1, 1) self.tags = EditWithComplete(Form) self.tags.setObjectName("tags") self._7.addWidget(self.tags, 4, 1, 1, 1) self.label_7 = QtWidgets.QLabel(Form) self.label_7.setTextFormat(QtCore.Qt.PlainText) self.label_7.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_7.setObjectName("label_7") self._7.addWidget(self.label_7, 5, 0, 1, 1) self.series = EditWithComplete(Form) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(10) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.series.sizePolicy().hasHeightForWidth()) self.series.setSizePolicy(sizePolicy) self.series.setEditable(True) self.series.setInsertPolicy(QtWidgets.QComboBox.InsertAlphabetically) self.series.setObjectName("series") self._7.addWidget(self.series, 5, 1, 1, 1) self.series_index = QtWidgets.QDoubleSpinBox(Form) self.series_index.setMaximum(9999999999.99) self.series_index.setProperty("value", 1.0) self.series_index.setObjectName("series_index") self._7.addWidget(self.series_index, 6, 1, 1, 1) self.publisher = EditWithComplete(Form) self.publisher.setEditable(True) self.publisher.setObjectName("publisher") self._7.addWidget(self.publisher, 3, 1, 1, 1) self.author = EditWithComplete(Form) self.author.setEditable(True) self.author.setObjectName("author") self._7.addWidget(self.author, 1, 1, 1, 1) self.verticalLayout_2.addLayout(self._7) self.comment = Editor(Form) self.comment.setObjectName("comment") self.verticalLayout_2.addWidget(self.comment) self.horizontalLayout.addLayout(self.verticalLayout_2) self.label_5.setBuddy(self.cover_path) self.label.setBuddy(self.title) self.label_2.setBuddy(self.author) self.label_6.setBuddy(self.author_sort) self.label_3.setBuddy(self.publisher) self.label_4.setBuddy(self.tags) self.label_7.setBuddy(self.series) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) Form.setTabOrder(self.title, self.author) Form.setTabOrder(self.author, self.author_sort) Form.setTabOrder(self.author_sort, self.publisher) Form.setTabOrder(self.publisher, self.tags) Form.setTabOrder(self.tags, self.series) Form.setTabOrder(self.series, self.series_index) Form.setTabOrder(self.series_index, self.cover_path) Form.setTabOrder(self.cover_path, self.cover_button) Form.setTabOrder(self.cover_button, self.opt_prefer_metadata_cover)
def setupUi(self, Dialog): Dialog.setObjectName("Dialog") Dialog.resize(752, 472) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(I("search.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) Dialog.setWindowIcon(icon) self.gridLayout_2 = QtWidgets.QGridLayout(Dialog) self.gridLayout_2.setObjectName("gridLayout_2") self.label_5 = QtWidgets.QLabel(Dialog) self.label_5.setObjectName("label_5") self.gridLayout_2.addWidget(self.label_5, 0, 0, 1, 1) self.matchkind = QtWidgets.QComboBox(Dialog) self.matchkind.setObjectName("matchkind") self.matchkind.addItem("") self.matchkind.addItem("") self.matchkind.addItem("") self.gridLayout_2.addWidget(self.matchkind, 0, 1, 1, 1) self.tabWidget = QtWidgets.QTabWidget(Dialog) self.tabWidget.setObjectName("tabWidget") self.tab = QtWidgets.QWidget() self.tab.setObjectName("tab") self.gridLayout_3 = QtWidgets.QGridLayout(self.tab) self.gridLayout_3.setObjectName("gridLayout_3") self.groupBox = QtWidgets.QGroupBox(self.tab) self.groupBox.setObjectName("groupBox") self.verticalLayout = QtWidgets.QVBoxLayout(self.groupBox) self.verticalLayout.setObjectName("verticalLayout") self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.label = QtWidgets.QLabel(self.groupBox) self.label.setObjectName("label") self.horizontalLayout.addWidget(self.label) self.all = QtWidgets.QLineEdit(self.groupBox) self.all.setObjectName("all") self.horizontalLayout.addWidget(self.all) self.verticalLayout.addLayout(self.horizontalLayout) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.label_2 = QtWidgets.QLabel(self.groupBox) self.label_2.setObjectName("label_2") self.horizontalLayout_2.addWidget(self.label_2) self.phrase = QtWidgets.QLineEdit(self.groupBox) self.phrase.setObjectName("phrase") self.horizontalLayout_2.addWidget(self.phrase) self.verticalLayout.addLayout(self.horizontalLayout_2) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.label_3 = QtWidgets.QLabel(self.groupBox) self.label_3.setObjectName("label_3") self.horizontalLayout_3.addWidget(self.label_3) self.any = QtWidgets.QLineEdit(self.groupBox) self.any.setObjectName("any") self.horizontalLayout_3.addWidget(self.any) self.verticalLayout.addLayout(self.horizontalLayout_3) self.gridLayout_3.addWidget(self.groupBox, 0, 0, 1, 1) self.groupBox_2 = QtWidgets.QGroupBox(self.tab) self.groupBox_2.setObjectName("groupBox_2") self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.groupBox_2) self.verticalLayout_2.setObjectName("verticalLayout_2") self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.label_4 = QtWidgets.QLabel(self.groupBox_2) self.label_4.setObjectName("label_4") self.horizontalLayout_4.addWidget(self.label_4) self.none = QtWidgets.QLineEdit(self.groupBox_2) self.none.setObjectName("none") self.horizontalLayout_4.addWidget(self.none) self.verticalLayout_2.addLayout(self.horizontalLayout_4) self.sh_label = QtWidgets.QLabel(self.groupBox_2) self.sh_label.setMaximumSize(QtCore.QSize(16777215, 30)) self.sh_label.setOpenExternalLinks(True) self.sh_label.setObjectName("sh_label") self.verticalLayout_2.addWidget(self.sh_label) self.gridLayout_3.addWidget(self.groupBox_2, 1, 0, 1, 1) spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout_3.addItem(spacerItem, 2, 0, 1, 1) self.buttonBox = QtWidgets.QDialogButtonBox(self.tab) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel | QtWidgets.QDialogButtonBox.Ok) self.buttonBox.setObjectName("buttonBox") self.gridLayout_3.addWidget(self.buttonBox, 3, 0, 1, 1) self.tabWidget.addTab(self.tab, "") self.tab_2 = QtWidgets.QWidget() self.tab_2.setObjectName("tab_2") self.gridLayout = QtWidgets.QGridLayout(self.tab_2) self.gridLayout.setObjectName("gridLayout") self.label_7 = QtWidgets.QLabel(self.tab_2) self.label_7.setObjectName("label_7") self.gridLayout.addWidget(self.label_7, 1, 0, 1, 1) self.name_box = EnLineEdit(self.tab_2) self.name_box.setObjectName("name_box") self.gridLayout.addWidget(self.name_box, 1, 1, 1, 1) self.label_8 = QtWidgets.QLabel(self.tab_2) self.label_8.setObjectName("label_8") self.gridLayout.addWidget(self.label_8, 2, 0, 1, 1) self.price_label = QtWidgets.QLabel(self.tab_2) self.price_label.setObjectName("price_label") self.gridLayout.addWidget(self.price_label, 3, 0, 1, 1) self.horizontalLayout_6 = QtWidgets.QHBoxLayout() self.horizontalLayout_6.setObjectName("horizontalLayout_6") self.clear_button = QtWidgets.QPushButton(self.tab_2) self.clear_button.setObjectName("clear_button") self.horizontalLayout_6.addWidget(self.clear_button) self.tab_2_button_box = QtWidgets.QDialogButtonBox(self.tab_2) self.tab_2_button_box.setStandardButtons( QtWidgets.QDialogButtonBox.Cancel | QtWidgets.QDialogButtonBox.Ok) self.tab_2_button_box.setObjectName("tab_2_button_box") self.horizontalLayout_6.addWidget(self.tab_2_button_box) self.gridLayout.addLayout(self.horizontalLayout_6, 9, 0, 1, 2) spacerItem1 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem1, 8, 1, 1, 1) self.label_11 = QtWidgets.QLabel(self.tab_2) self.label_11.setObjectName("label_11") self.gridLayout.addWidget(self.label_11, 0, 0, 1, 2) self.description_box = EnLineEdit(self.tab_2) self.description_box.setObjectName("description_box") self.gridLayout.addWidget(self.description_box, 2, 1, 1, 1) self.format_box = QtWidgets.QLineEdit(self.tab_2) self.format_box.setObjectName("format_box") self.gridLayout.addWidget(self.format_box, 4, 1, 1, 1) self.label_10 = QtWidgets.QLabel(self.tab_2) self.label_10.setObjectName("label_10") self.gridLayout.addWidget(self.label_10, 4, 0, 1, 1) self.headquarters_box = EnLineEdit(self.tab_2) self.headquarters_box.setObjectName("headquarters_box") self.gridLayout.addWidget(self.headquarters_box, 3, 1, 1, 1) self.label_9 = QtWidgets.QLabel(self.tab_2) self.label_9.setObjectName("label_9") self.gridLayout.addWidget(self.label_9, 5, 0, 1, 1) self.label_12 = QtWidgets.QLabel(self.tab_2) self.label_12.setObjectName("label_12") self.gridLayout.addWidget(self.label_12, 6, 0, 1, 1) self.enabled_combo = QtWidgets.QComboBox(self.tab_2) self.enabled_combo.setObjectName("enabled_combo") self.enabled_combo.addItem("") self.enabled_combo.setItemText(0, "") self.enabled_combo.addItem("") self.enabled_combo.addItem("") self.gridLayout.addWidget(self.enabled_combo, 5, 1, 1, 1) self.drm_combo = QtWidgets.QComboBox(self.tab_2) self.drm_combo.setObjectName("drm_combo") self.drm_combo.addItem("") self.drm_combo.setItemText(0, "") self.drm_combo.addItem("") self.drm_combo.addItem("") self.gridLayout.addWidget(self.drm_combo, 6, 1, 1, 1) self.label_13 = QtWidgets.QLabel(self.tab_2) self.label_13.setObjectName("label_13") self.gridLayout.addWidget(self.label_13, 7, 0, 1, 1) self.affiliate_combo = QtWidgets.QComboBox(self.tab_2) self.affiliate_combo.setObjectName("affiliate_combo") self.affiliate_combo.addItem("") self.affiliate_combo.setItemText(0, "") self.affiliate_combo.addItem("") self.affiliate_combo.addItem("") self.gridLayout.addWidget(self.affiliate_combo, 7, 1, 1, 1) self.tabWidget.addTab(self.tab_2, "") self.gridLayout_2.addWidget(self.tabWidget, 2, 0, 1, 2) spacerItem2 = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.gridLayout_2.addItem(spacerItem2, 1, 1, 1, 1) self.label_5.setBuddy(self.matchkind) self.label.setBuddy(self.all) self.label_2.setBuddy(self.all) self.label_3.setBuddy(self.all) self.label_4.setBuddy(self.all) self.label_7.setBuddy(self.name_box) self.label_8.setBuddy(self.description_box) self.price_label.setBuddy(self.headquarters_box) self.label_10.setBuddy(self.format_box) self.retranslateUi(Dialog) self.tabWidget.setCurrentIndex(0) self.buttonBox.accepted.connect(Dialog.accept) self.buttonBox.rejected.connect(Dialog.reject) QtCore.QMetaObject.connectSlotsByName(Dialog) Dialog.setTabOrder(self.all, self.phrase) Dialog.setTabOrder(self.phrase, self.any) Dialog.setTabOrder(self.any, self.none) Dialog.setTabOrder(self.none, self.buttonBox) Dialog.setTabOrder(self.buttonBox, self.name_box) Dialog.setTabOrder(self.name_box, self.description_box) Dialog.setTabOrder(self.description_box, self.headquarters_box) Dialog.setTabOrder(self.headquarters_box, self.format_box) Dialog.setTabOrder(self.format_box, self.clear_button) Dialog.setTabOrder(self.clear_button, self.tab_2_button_box) Dialog.setTabOrder(self.tab_2_button_box, self.tabWidget) Dialog.setTabOrder(self.tabWidget, self.matchkind)
def setupUi(self, Dialog): Dialog.setObjectName(_fromUtf8("Dialog")) Dialog.resize(738, 640) Dialog.setWindowTitle(_("Add custom news source")) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(_fromUtf8(I("user_profile.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) Dialog.setWindowIcon(icon) self.verticalLayout_4 = QtGui.QVBoxLayout(Dialog) self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4")) self.scrollArea = QtGui.QScrollArea(Dialog) self.scrollArea.setFrameShape(QtGui.QFrame.NoFrame) self.scrollArea.setLineWidth(0) self.scrollArea.setWidgetResizable(True) self.scrollArea.setObjectName(_fromUtf8("scrollArea")) self.scrollAreaWidgetContents = QtGui.QWidget() self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 730, 601)) self.scrollAreaWidgetContents.setObjectName(_fromUtf8("scrollAreaWidgetContents")) self.verticalLayout_3 = QtGui.QVBoxLayout(self.scrollAreaWidgetContents) self.verticalLayout_3.setMargin(0) self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3")) self.central_widget = QtGui.QWidget(self.scrollAreaWidgetContents) self.central_widget.setMinimumSize(QtCore.QSize(580, 550)) self.central_widget.setObjectName(_fromUtf8("central_widget")) self.horizontalLayout = QtGui.QHBoxLayout(self.central_widget) self.horizontalLayout.setMargin(0) self.horizontalLayout.setMargin(0) self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.groupBox = QtGui.QGroupBox(self.central_widget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(1) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.groupBox.sizePolicy().hasHeightForWidth()) self.groupBox.setSizePolicy(sizePolicy) self.groupBox.setTitle(_("Available user recipes")) self.groupBox.setObjectName(_fromUtf8("groupBox")) self.verticalLayout_2 = QtGui.QVBoxLayout(self.groupBox) self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.available_profiles = QtGui.QListView(self.groupBox) self.available_profiles.setObjectName(_fromUtf8("available_profiles")) self.verticalLayout_2.addWidget(self.available_profiles) self.add_profile_button = QtGui.QPushButton(self.groupBox) self.add_profile_button.setText(_("Add/Update &recipe")) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(_fromUtf8(I("plus.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.add_profile_button.setIcon(icon1) self.add_profile_button.setObjectName(_fromUtf8("add_profile_button")) self.verticalLayout_2.addWidget(self.add_profile_button) self.remove_profile_button = QtGui.QPushButton(self.groupBox) self.remove_profile_button.setText(_("&Remove recipe")) icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap(_fromUtf8(I("list_remove.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.remove_profile_button.setIcon(icon2) self.remove_profile_button.setObjectName(_fromUtf8("remove_profile_button")) self.verticalLayout_2.addWidget(self.remove_profile_button) self.share_button = QtGui.QPushButton(self.groupBox) self.share_button.setText(_("&Share recipe")) icon3 = QtGui.QIcon() icon3.addPixmap(QtGui.QPixmap(_fromUtf8(I("forward.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.share_button.setIcon(icon3) self.share_button.setObjectName(_fromUtf8("share_button")) self.verticalLayout_2.addWidget(self.share_button) self.show_recipe_files_button = QtGui.QPushButton(self.groupBox) self.show_recipe_files_button.setText(_("S&how recipe files")) icon4 = QtGui.QIcon() icon4.addPixmap(QtGui.QPixmap(_fromUtf8(I("document_open.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.show_recipe_files_button.setIcon(icon4) self.show_recipe_files_button.setObjectName(_fromUtf8("show_recipe_files_button")) self.verticalLayout_2.addWidget(self.show_recipe_files_button) self.builtin_recipe_button = QtGui.QPushButton(self.groupBox) self.builtin_recipe_button.setText(_("Customize &builtin recipe")) icon5 = QtGui.QIcon() icon5.addPixmap(QtGui.QPixmap(_fromUtf8(I("news.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.builtin_recipe_button.setIcon(icon5) self.builtin_recipe_button.setObjectName(_fromUtf8("builtin_recipe_button")) self.verticalLayout_2.addWidget(self.builtin_recipe_button) self.load_button = QtGui.QPushButton(self.groupBox) self.load_button.setText(_("&Load recipe from file")) icon6 = QtGui.QIcon() icon6.addPixmap(QtGui.QPixmap(_fromUtf8(I("chapters.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.load_button.setIcon(icon6) self.load_button.setObjectName(_fromUtf8("load_button")) self.verticalLayout_2.addWidget(self.load_button) self.horizontalLayout.addWidget(self.groupBox) self.frame = QtGui.QFrame(self.central_widget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(10) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.frame.sizePolicy().hasHeightForWidth()) self.frame.setSizePolicy(sizePolicy) self.frame.setFrameShape(QtGui.QFrame.StyledPanel) self.frame.setFrameShadow(QtGui.QFrame.Raised) self.frame.setObjectName(_fromUtf8("frame")) self.verticalLayout = QtGui.QVBoxLayout(self.frame) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.toggle_mode_button = QtGui.QPushButton(self.frame) self.toggle_mode_button.setText(_("Switch to Advanced mode")) self.toggle_mode_button.setObjectName(_fromUtf8("toggle_mode_button")) self.verticalLayout.addWidget(self.toggle_mode_button) self.stacks = QtGui.QStackedWidget(self.frame) self.stacks.setObjectName(_fromUtf8("stacks")) self.page = QtGui.QWidget() self.page.setObjectName(_fromUtf8("page")) self.verticalLayout_5 = QtGui.QVBoxLayout(self.page) self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5")) self.label = QtGui.QLabel(self.page) self.label.setText(_("<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" "p, li { white-space: pre-wrap; }\n" "</style></head><body style=\" font-family:\'DejaVu Sans\'; font-size:10pt; font-weight:400; font-style:normal;\">\n" "<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Create a basic news recipe, by adding RSS feeds to it. <br />For most feeds, you will have to use the \"Advanced mode\" to further customize the fetch process.</p></body></html>")) self.label.setTextFormat(QtCore.Qt.RichText) self.label.setWordWrap(True) self.label.setObjectName(_fromUtf8("label")) self.verticalLayout_5.addWidget(self.label) self.gridlayout = QtGui.QGridLayout() self.gridlayout.setObjectName(_fromUtf8("gridlayout")) self.label_2 = QtGui.QLabel(self.page) self.label_2.setText(_("Recipe &title:")) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridlayout.addWidget(self.label_2, 0, 0, 1, 1) self.profile_title = EnLineEdit(self.page) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.profile_title.setFont(font) self.profile_title.setObjectName(_fromUtf8("profile_title")) self.gridlayout.addWidget(self.profile_title, 0, 1, 1, 2) self.label_6 = QtGui.QLabel(self.page) self.label_6.setText(_("&Oldest article:")) self.label_6.setObjectName(_fromUtf8("label_6")) self.gridlayout.addWidget(self.label_6, 2, 0, 1, 1) self.oldest_article = QtGui.QSpinBox(self.page) self.oldest_article.setToolTip(_("The oldest article to download")) self.oldest_article.setSuffix(_(" days")) self.oldest_article.setMinimum(1) self.oldest_article.setMaximum(365) self.oldest_article.setProperty("value", 7) self.oldest_article.setObjectName(_fromUtf8("oldest_article")) self.gridlayout.addWidget(self.oldest_article, 2, 2, 1, 1) self.label_7 = QtGui.QLabel(self.page) self.label_7.setText(_("&Max. number of articles per feed:")) self.label_7.setObjectName(_fromUtf8("label_7")) self.gridlayout.addWidget(self.label_7, 3, 0, 1, 1) self.max_articles = QtGui.QSpinBox(self.page) self.max_articles.setToolTip(_("Maximum number of articles to download per feed.")) self.max_articles.setMinimum(5) self.max_articles.setMaximum(100) self.max_articles.setProperty("value", 10) self.max_articles.setObjectName(_fromUtf8("max_articles")) self.gridlayout.addWidget(self.max_articles, 3, 2, 1, 1) self.verticalLayout_5.addLayout(self.gridlayout) self.groupBox_2 = QtGui.QGroupBox(self.page) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(100) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.groupBox_2.sizePolicy().hasHeightForWidth()) self.groupBox_2.setSizePolicy(sizePolicy) self.groupBox_2.setTitle(_("Feeds in recipe")) self.groupBox_2.setObjectName(_fromUtf8("groupBox_2")) self.hboxlayout = QtGui.QHBoxLayout(self.groupBox_2) self.hboxlayout.setObjectName(_fromUtf8("hboxlayout")) self.added_feeds = BasicList(self.groupBox_2) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(100) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.added_feeds.sizePolicy().hasHeightForWidth()) self.added_feeds.setSizePolicy(sizePolicy) self.added_feeds.setSelectionMode(QtGui.QAbstractItemView.MultiSelection) self.added_feeds.setObjectName(_fromUtf8("added_feeds")) self.hboxlayout.addWidget(self.added_feeds) self.vboxlayout = QtGui.QVBoxLayout() self.vboxlayout.setObjectName(_fromUtf8("vboxlayout")) self.up_button = QtGui.QToolButton(self.groupBox_2) self.up_button.setText(_("...")) icon7 = QtGui.QIcon() icon7.addPixmap(QtGui.QPixmap(_fromUtf8(I("arrow-up.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.up_button.setIcon(icon7) self.up_button.setObjectName(_fromUtf8("up_button")) self.vboxlayout.addWidget(self.up_button) self.remove_feed_button = QtGui.QToolButton(self.groupBox_2) self.remove_feed_button.setToolTip(_("Remove feed from recipe")) self.remove_feed_button.setText(_("...")) self.remove_feed_button.setIcon(icon2) self.remove_feed_button.setObjectName(_fromUtf8("remove_feed_button")) self.vboxlayout.addWidget(self.remove_feed_button) self.down_button = QtGui.QToolButton(self.groupBox_2) self.down_button.setText(_("...")) icon8 = QtGui.QIcon() icon8.addPixmap(QtGui.QPixmap(_fromUtf8(I("arrow-down.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.down_button.setIcon(icon8) self.down_button.setObjectName(_fromUtf8("down_button")) self.vboxlayout.addWidget(self.down_button) self.hboxlayout.addLayout(self.vboxlayout) self.verticalLayout_5.addWidget(self.groupBox_2) self.groupBox_3 = QtGui.QGroupBox(self.page) self.groupBox_3.setTitle(_("Add feed to recipe")) self.groupBox_3.setObjectName(_fromUtf8("groupBox_3")) self.gridlayout1 = QtGui.QGridLayout(self.groupBox_3) self.gridlayout1.setObjectName(_fromUtf8("gridlayout1")) self.label_4 = QtGui.QLabel(self.groupBox_3) self.label_4.setText(_("&Feed title:")) self.label_4.setObjectName(_fromUtf8("label_4")) self.gridlayout1.addWidget(self.label_4, 0, 0, 1, 1) self.feed_title = EnLineEdit(self.groupBox_3) self.feed_title.setObjectName(_fromUtf8("feed_title")) self.gridlayout1.addWidget(self.feed_title, 0, 1, 1, 1) self.label_5 = QtGui.QLabel(self.groupBox_3) self.label_5.setText(_("Feed &URL:")) self.label_5.setObjectName(_fromUtf8("label_5")) self.gridlayout1.addWidget(self.label_5, 1, 0, 1, 1) self.feed_url = QtGui.QLineEdit(self.groupBox_3) self.feed_url.setObjectName(_fromUtf8("feed_url")) self.gridlayout1.addWidget(self.feed_url, 1, 1, 1, 1) self.add_feed_button = QtGui.QPushButton(self.groupBox_3) self.add_feed_button.setToolTip(_("Add feed to recipe")) self.add_feed_button.setText(_("&Add feed")) self.add_feed_button.setIcon(icon1) self.add_feed_button.setObjectName(_fromUtf8("add_feed_button")) self.gridlayout1.addWidget(self.add_feed_button, 2, 0, 1, 2) self.verticalLayout_5.addWidget(self.groupBox_3) self.stacks.addWidget(self.page) self.page_2 = QtGui.QWidget() self.page_2.setObjectName(_fromUtf8("page_2")) self.vboxlayout1 = QtGui.QVBoxLayout(self.page_2) self.vboxlayout1.setObjectName(_fromUtf8("vboxlayout1")) self.label_8 = QtGui.QLabel(self.page_2) self.label_8.setText(_("For help with writing advanced news recipes, please visit <a href=\"http://manual.calibre-ebook.com/news.html\">User Recipes</a>")) self.label_8.setWordWrap(True) self.label_8.setOpenExternalLinks(True) self.label_8.setObjectName(_fromUtf8("label_8")) self.vboxlayout1.addWidget(self.label_8) self.groupBox_4 = QtGui.QGroupBox(self.page_2) self.groupBox_4.setTitle(_("Recipe source code (python)")) self.groupBox_4.setObjectName(_fromUtf8("groupBox_4")) self.vboxlayout2 = QtGui.QVBoxLayout(self.groupBox_4) self.vboxlayout2.setObjectName(_fromUtf8("vboxlayout2")) self.source_code = QtGui.QTextEdit(self.groupBox_4) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(100) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.source_code.sizePolicy().hasHeightForWidth()) self.source_code.setSizePolicy(sizePolicy) self.source_code.setLineWrapMode(QtGui.QTextEdit.NoWrap) self.source_code.setAcceptRichText(False) self.source_code.setObjectName(_fromUtf8("source_code")) self.vboxlayout2.addWidget(self.source_code) self.vboxlayout1.addWidget(self.groupBox_4) self.stacks.addWidget(self.page_2) self.verticalLayout.addWidget(self.stacks) self.horizontalLayout.addWidget(self.frame) self.verticalLayout_3.addWidget(self.central_widget) self.scrollArea.setWidget(self.scrollAreaWidgetContents) self.verticalLayout_4.addWidget(self.scrollArea) self.buttonBox = QtGui.QDialogButtonBox(Dialog) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Close) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.verticalLayout_4.addWidget(self.buttonBox) self.label_2.setBuddy(self.profile_title) self.label_6.setBuddy(self.oldest_article) self.label_7.setBuddy(self.max_articles) self.label_4.setBuddy(self.feed_title) self.label_5.setBuddy(self.feed_url) self.retranslateUi(Dialog) self.stacks.setCurrentIndex(0) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), Dialog.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), Dialog.reject) QtCore.QMetaObject.connectSlotsByName(Dialog)
def setupUi(self, TagEditor): TagEditor.setObjectName("TagEditor") TagEditor.resize(640, 666) self.verticalLayout = QtWidgets.QVBoxLayout(TagEditor) self.verticalLayout.setContentsMargins(11, 11, 11, 11) self.verticalLayout.setSpacing(6) self.verticalLayout.setObjectName("verticalLayout") self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setContentsMargins(0, -1, 0, -1) self.horizontalLayout_4.setSpacing(6) self.horizontalLayout_4.setObjectName("horizontalLayout_4") spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_4.addItem(spacerItem) self.label_3 = QtWidgets.QLabel(TagEditor) self.label_3.setObjectName("label_3") self.horizontalLayout_4.addWidget(self.label_3) self.add_tag_input = EnLineEdit(TagEditor) self.add_tag_input.setObjectName("add_tag_input") self.horizontalLayout_4.addWidget(self.add_tag_input) self.add_tag_button = QtWidgets.QToolButton(TagEditor) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(I("plus.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.add_tag_button.setIcon(icon) self.add_tag_button.setObjectName("add_tag_button") self.horizontalLayout_4.addWidget(self.add_tag_button) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_4.addItem(spacerItem1) self.verticalLayout.addLayout(self.horizontalLayout_4) self.line_2 = QtWidgets.QFrame(TagEditor) self.line_2.setFrameShape(QtWidgets.QFrame.HLine) self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken) self.line_2.setObjectName("line_2") self.verticalLayout.addWidget(self.line_2) self.middleBoxLayout = QtWidgets.QGridLayout() self.middleBoxLayout.setSpacing(6) self.middleBoxLayout.setObjectName("middleBoxLayout") self.available_filter_input = QtWidgets.QLineEdit(TagEditor) self.available_filter_input.setClearButtonEnabled(True) self.available_filter_input.setObjectName("available_filter_input") self.middleBoxLayout.addWidget(self.available_filter_input, 1, 1, 1, 1) self.available_tags = QtWidgets.QListWidget(TagEditor) self.available_tags.setAlternatingRowColors(True) self.available_tags.setSelectionMode( QtWidgets.QAbstractItemView.MultiSelection) self.available_tags.setSelectionBehavior( QtWidgets.QAbstractItemView.SelectRows) self.available_tags.setObjectName("available_tags") self.middleBoxLayout.addWidget(self.available_tags, 2, 1, 1, 1) self.buttonverticalLayout = QtWidgets.QVBoxLayout() self.buttonverticalLayout.setSpacing(6) self.buttonverticalLayout.setObjectName("buttonverticalLayout") spacerItem2 = QtWidgets.QSpacerItem(10, 20, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.buttonverticalLayout.addItem(spacerItem2) self.delete_button = QtWidgets.QToolButton(TagEditor) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(I("trash.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.delete_button.setIcon(icon1) self.delete_button.setObjectName("delete_button") self.buttonverticalLayout.addWidget(self.delete_button) spacerItem3 = QtWidgets.QSpacerItem(10, 20, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.buttonverticalLayout.addItem(spacerItem3) self.middleBoxLayout.addLayout(self.buttonverticalLayout, 2, 0, 1, 1) self.label = QtWidgets.QLabel(TagEditor) self.label.setObjectName("label") self.middleBoxLayout.addWidget(self.label, 0, 1, 1, 2) self.buttonverticalLayout1 = QtWidgets.QVBoxLayout() self.buttonverticalLayout1.setSpacing(6) self.buttonverticalLayout1.setObjectName("buttonverticalLayout1") spacerItem4 = QtWidgets.QSpacerItem(10, 20, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.buttonverticalLayout1.addItem(spacerItem4) self.apply_button = QtWidgets.QToolButton(TagEditor) icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap(I("forward.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.apply_button.setIcon(icon2) self.apply_button.setObjectName("apply_button") self.buttonverticalLayout1.addWidget(self.apply_button) self.unapply_button = QtWidgets.QToolButton(TagEditor) icon3 = QtGui.QIcon() icon3.addPixmap(QtGui.QPixmap(I("back.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.unapply_button.setIcon(icon3) self.unapply_button.setObjectName("unapply_button") self.buttonverticalLayout1.addWidget(self.unapply_button) spacerItem5 = QtWidgets.QSpacerItem(10, 20, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.buttonverticalLayout1.addItem(spacerItem5) self.middleBoxLayout.addLayout(self.buttonverticalLayout1, 2, 2, 1, 1) self.applied_filter_input = QtWidgets.QLineEdit(TagEditor) self.applied_filter_input.setClearButtonEnabled(True) self.applied_filter_input.setObjectName("applied_filter_input") self.middleBoxLayout.addWidget(self.applied_filter_input, 1, 3, 1, 1) self.applied_tags = QtWidgets.QListWidget(TagEditor) self.applied_tags.setAlternatingRowColors(True) self.applied_tags.setSelectionMode( QtWidgets.QAbstractItemView.MultiSelection) self.applied_tags.setSelectionBehavior( QtWidgets.QAbstractItemView.SelectRows) self.applied_tags.setObjectName("applied_tags") self.middleBoxLayout.addWidget(self.applied_tags, 2, 3, 1, 1) self.label_2 = QtWidgets.QLabel(TagEditor) self.label_2.setObjectName("label_2") self.middleBoxLayout.addWidget(self.label_2, 0, 3, 1, 1) self.verticalLayout.addLayout(self.middleBoxLayout) self.line = QtWidgets.QFrame(TagEditor) self.line.setFrameShape(QtWidgets.QFrame.HLine) self.line.setFrameShadow(QtWidgets.QFrame.Sunken) self.line.setObjectName("line") self.verticalLayout.addWidget(self.line) self.buttonBox = QtWidgets.QDialogButtonBox(TagEditor) self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel | QtWidgets.QDialogButtonBox.Ok) self.buttonBox.setObjectName("buttonBox") self.verticalLayout.addWidget(self.buttonBox) self.label_3.setBuddy(self.add_tag_input) self.label.setBuddy(self.available_tags) self.label_2.setBuddy(self.applied_tags) self.retranslateUi(TagEditor) self.buttonBox.accepted.connect(TagEditor.accept) self.buttonBox.rejected.connect(TagEditor.reject) QtCore.QMetaObject.connectSlotsByName(TagEditor)
def setupUi(self, Dialog): Dialog.setObjectName(_fromUtf8("Dialog")) Dialog.resize(738, 640) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(_fromUtf8(I("user_profile.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) Dialog.setWindowIcon(icon) self.verticalLayout_4 = QtGui.QVBoxLayout(Dialog) self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4")) self.scrollArea = QtGui.QScrollArea(Dialog) self.scrollArea.setFrameShape(QtGui.QFrame.NoFrame) self.scrollArea.setLineWidth(0) self.scrollArea.setWidgetResizable(True) self.scrollArea.setObjectName(_fromUtf8("scrollArea")) self.scrollAreaWidgetContents = QtGui.QWidget() self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 730, 601)) self.scrollAreaWidgetContents.setObjectName( _fromUtf8("scrollAreaWidgetContents")) self.verticalLayout_3 = QtGui.QVBoxLayout( self.scrollAreaWidgetContents) self.verticalLayout_3.setMargin(0) self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3")) self.central_widget = QtGui.QWidget(self.scrollAreaWidgetContents) self.central_widget.setMinimumSize(QtCore.QSize(580, 550)) self.central_widget.setObjectName(_fromUtf8("central_widget")) self.horizontalLayout = QtGui.QHBoxLayout(self.central_widget) self.horizontalLayout.setMargin(0) self.horizontalLayout.setMargin(0) self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.groupBox = QtGui.QGroupBox(self.central_widget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(1) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.groupBox.sizePolicy().hasHeightForWidth()) self.groupBox.setSizePolicy(sizePolicy) self.groupBox.setObjectName(_fromUtf8("groupBox")) self.verticalLayout_2 = QtGui.QVBoxLayout(self.groupBox) self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.available_profiles = QtGui.QListView(self.groupBox) self.available_profiles.setObjectName(_fromUtf8("available_profiles")) self.verticalLayout_2.addWidget(self.available_profiles) self.add_profile_button = QtGui.QPushButton(self.groupBox) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(_fromUtf8(I("plus.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.add_profile_button.setIcon(icon1) self.add_profile_button.setObjectName(_fromUtf8("add_profile_button")) self.verticalLayout_2.addWidget(self.add_profile_button) self.remove_profile_button = QtGui.QPushButton(self.groupBox) icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap(_fromUtf8(I("list_remove.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.remove_profile_button.setIcon(icon2) self.remove_profile_button.setObjectName( _fromUtf8("remove_profile_button")) self.verticalLayout_2.addWidget(self.remove_profile_button) self.share_button = QtGui.QPushButton(self.groupBox) icon3 = QtGui.QIcon() icon3.addPixmap(QtGui.QPixmap(_fromUtf8(I("forward.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.share_button.setIcon(icon3) self.share_button.setObjectName(_fromUtf8("share_button")) self.verticalLayout_2.addWidget(self.share_button) self.show_recipe_files_button = QtGui.QPushButton(self.groupBox) icon4 = QtGui.QIcon() icon4.addPixmap(QtGui.QPixmap(_fromUtf8(I("document_open.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.show_recipe_files_button.setIcon(icon4) self.show_recipe_files_button.setObjectName( _fromUtf8("show_recipe_files_button")) self.verticalLayout_2.addWidget(self.show_recipe_files_button) self.builtin_recipe_button = QtGui.QPushButton(self.groupBox) icon5 = QtGui.QIcon() icon5.addPixmap(QtGui.QPixmap(_fromUtf8(I("news.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.builtin_recipe_button.setIcon(icon5) self.builtin_recipe_button.setObjectName( _fromUtf8("builtin_recipe_button")) self.verticalLayout_2.addWidget(self.builtin_recipe_button) self.load_button = QtGui.QPushButton(self.groupBox) icon6 = QtGui.QIcon() icon6.addPixmap(QtGui.QPixmap(_fromUtf8(I("chapters.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.load_button.setIcon(icon6) self.load_button.setObjectName(_fromUtf8("load_button")) self.verticalLayout_2.addWidget(self.load_button) self.horizontalLayout.addWidget(self.groupBox) self.frame = QtGui.QFrame(self.central_widget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(10) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.frame.sizePolicy().hasHeightForWidth()) self.frame.setSizePolicy(sizePolicy) self.frame.setFrameShape(QtGui.QFrame.StyledPanel) self.frame.setFrameShadow(QtGui.QFrame.Raised) self.frame.setObjectName(_fromUtf8("frame")) self.verticalLayout = QtGui.QVBoxLayout(self.frame) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.toggle_mode_button = QtGui.QPushButton(self.frame) self.toggle_mode_button.setObjectName(_fromUtf8("toggle_mode_button")) self.verticalLayout.addWidget(self.toggle_mode_button) self.stacks = QtGui.QStackedWidget(self.frame) self.stacks.setObjectName(_fromUtf8("stacks")) self.page = QtGui.QWidget() self.page.setObjectName(_fromUtf8("page")) self.verticalLayout_5 = QtGui.QVBoxLayout(self.page) self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5")) self.label = QtGui.QLabel(self.page) self.label.setTextFormat(QtCore.Qt.RichText) self.label.setWordWrap(True) self.label.setObjectName(_fromUtf8("label")) self.verticalLayout_5.addWidget(self.label) self.gridlayout = QtGui.QGridLayout() self.gridlayout.setObjectName(_fromUtf8("gridlayout")) self.label_2 = QtGui.QLabel(self.page) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridlayout.addWidget(self.label_2, 0, 0, 1, 1) self.profile_title = EnLineEdit(self.page) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.profile_title.setFont(font) self.profile_title.setObjectName(_fromUtf8("profile_title")) self.gridlayout.addWidget(self.profile_title, 0, 1, 1, 2) self.label_6 = QtGui.QLabel(self.page) self.label_6.setObjectName(_fromUtf8("label_6")) self.gridlayout.addWidget(self.label_6, 2, 0, 1, 1) self.oldest_article = QtGui.QSpinBox(self.page) self.oldest_article.setMinimum(1) self.oldest_article.setMaximum(365) self.oldest_article.setProperty("value", 7) self.oldest_article.setObjectName(_fromUtf8("oldest_article")) self.gridlayout.addWidget(self.oldest_article, 2, 2, 1, 1) self.label_7 = QtGui.QLabel(self.page) self.label_7.setObjectName(_fromUtf8("label_7")) self.gridlayout.addWidget(self.label_7, 3, 0, 1, 1) self.max_articles = QtGui.QSpinBox(self.page) self.max_articles.setMinimum(5) self.max_articles.setMaximum(100) self.max_articles.setProperty("value", 10) self.max_articles.setObjectName(_fromUtf8("max_articles")) self.gridlayout.addWidget(self.max_articles, 3, 2, 1, 1) self.verticalLayout_5.addLayout(self.gridlayout) self.groupBox_2 = QtGui.QGroupBox(self.page) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(100) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.groupBox_2.sizePolicy().hasHeightForWidth()) self.groupBox_2.setSizePolicy(sizePolicy) self.groupBox_2.setObjectName(_fromUtf8("groupBox_2")) self.hboxlayout = QtGui.QHBoxLayout(self.groupBox_2) self.hboxlayout.setObjectName(_fromUtf8("hboxlayout")) self.added_feeds = BasicList(self.groupBox_2) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(100) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.added_feeds.sizePolicy().hasHeightForWidth()) self.added_feeds.setSizePolicy(sizePolicy) self.added_feeds.setSelectionMode( QtGui.QAbstractItemView.MultiSelection) self.added_feeds.setObjectName(_fromUtf8("added_feeds")) self.hboxlayout.addWidget(self.added_feeds) self.vboxlayout = QtGui.QVBoxLayout() self.vboxlayout.setObjectName(_fromUtf8("vboxlayout")) self.up_button = QtGui.QToolButton(self.groupBox_2) icon7 = QtGui.QIcon() icon7.addPixmap(QtGui.QPixmap(_fromUtf8(I("arrow-up.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.up_button.setIcon(icon7) self.up_button.setObjectName(_fromUtf8("up_button")) self.vboxlayout.addWidget(self.up_button) self.remove_feed_button = QtGui.QToolButton(self.groupBox_2) self.remove_feed_button.setIcon(icon2) self.remove_feed_button.setObjectName(_fromUtf8("remove_feed_button")) self.vboxlayout.addWidget(self.remove_feed_button) self.down_button = QtGui.QToolButton(self.groupBox_2) icon8 = QtGui.QIcon() icon8.addPixmap(QtGui.QPixmap(_fromUtf8(I("arrow-down.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.down_button.setIcon(icon8) self.down_button.setObjectName(_fromUtf8("down_button")) self.vboxlayout.addWidget(self.down_button) self.hboxlayout.addLayout(self.vboxlayout) self.verticalLayout_5.addWidget(self.groupBox_2) self.groupBox_3 = QtGui.QGroupBox(self.page) self.groupBox_3.setObjectName(_fromUtf8("groupBox_3")) self.gridlayout1 = QtGui.QGridLayout(self.groupBox_3) self.gridlayout1.setObjectName(_fromUtf8("gridlayout1")) self.label_4 = QtGui.QLabel(self.groupBox_3) self.label_4.setObjectName(_fromUtf8("label_4")) self.gridlayout1.addWidget(self.label_4, 0, 0, 1, 1) self.feed_title = EnLineEdit(self.groupBox_3) self.feed_title.setObjectName(_fromUtf8("feed_title")) self.gridlayout1.addWidget(self.feed_title, 0, 1, 1, 1) self.label_5 = QtGui.QLabel(self.groupBox_3) self.label_5.setObjectName(_fromUtf8("label_5")) self.gridlayout1.addWidget(self.label_5, 1, 0, 1, 1) self.feed_url = QtGui.QLineEdit(self.groupBox_3) self.feed_url.setObjectName(_fromUtf8("feed_url")) self.gridlayout1.addWidget(self.feed_url, 1, 1, 1, 1) self.add_feed_button = QtGui.QPushButton(self.groupBox_3) self.add_feed_button.setIcon(icon1) self.add_feed_button.setObjectName(_fromUtf8("add_feed_button")) self.gridlayout1.addWidget(self.add_feed_button, 2, 0, 1, 2) self.verticalLayout_5.addWidget(self.groupBox_3) self.stacks.addWidget(self.page) self.page_2 = QtGui.QWidget() self.page_2.setObjectName(_fromUtf8("page_2")) self.vboxlayout1 = QtGui.QVBoxLayout(self.page_2) self.vboxlayout1.setObjectName(_fromUtf8("vboxlayout1")) self.label_8 = QtGui.QLabel(self.page_2) self.label_8.setWordWrap(True) self.label_8.setOpenExternalLinks(True) self.label_8.setObjectName(_fromUtf8("label_8")) self.vboxlayout1.addWidget(self.label_8) self.groupBox_4 = QtGui.QGroupBox(self.page_2) self.groupBox_4.setObjectName(_fromUtf8("groupBox_4")) self.vboxlayout2 = QtGui.QVBoxLayout(self.groupBox_4) self.vboxlayout2.setObjectName(_fromUtf8("vboxlayout2")) self.source_code = QtGui.QTextEdit(self.groupBox_4) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(100) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.source_code.sizePolicy().hasHeightForWidth()) self.source_code.setSizePolicy(sizePolicy) self.source_code.setLineWrapMode(QtGui.QTextEdit.NoWrap) self.source_code.setAcceptRichText(False) self.source_code.setObjectName(_fromUtf8("source_code")) self.vboxlayout2.addWidget(self.source_code) self.vboxlayout1.addWidget(self.groupBox_4) self.stacks.addWidget(self.page_2) self.verticalLayout.addWidget(self.stacks) self.horizontalLayout.addWidget(self.frame) self.verticalLayout_3.addWidget(self.central_widget) self.scrollArea.setWidget(self.scrollAreaWidgetContents) self.verticalLayout_4.addWidget(self.scrollArea) self.buttonBox = QtGui.QDialogButtonBox(Dialog) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Close) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.verticalLayout_4.addWidget(self.buttonBox) self.label_2.setBuddy(self.profile_title) self.label_6.setBuddy(self.oldest_article) self.label_7.setBuddy(self.max_articles) self.label_4.setBuddy(self.feed_title) self.label_5.setBuddy(self.feed_url) self.retranslateUi(Dialog) self.stacks.setCurrentIndex(0) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), Dialog.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), Dialog.reject) QtCore.QMetaObject.connectSlotsByName(Dialog)
class Ui_Dialog(object): def setupUi(self, Dialog): Dialog.setObjectName(_fromUtf8("Dialog")) Dialog.resize(738, 640) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(_fromUtf8(I("user_profile.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) Dialog.setWindowIcon(icon) self.verticalLayout_4 = QtGui.QVBoxLayout(Dialog) self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4")) self.scrollArea = QtGui.QScrollArea(Dialog) self.scrollArea.setFrameShape(QtGui.QFrame.NoFrame) self.scrollArea.setLineWidth(0) self.scrollArea.setWidgetResizable(True) self.scrollArea.setObjectName(_fromUtf8("scrollArea")) self.scrollAreaWidgetContents = QtGui.QWidget() self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 730, 601)) self.scrollAreaWidgetContents.setObjectName( _fromUtf8("scrollAreaWidgetContents")) self.verticalLayout_3 = QtGui.QVBoxLayout( self.scrollAreaWidgetContents) self.verticalLayout_3.setMargin(0) self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3")) self.central_widget = QtGui.QWidget(self.scrollAreaWidgetContents) self.central_widget.setMinimumSize(QtCore.QSize(580, 550)) self.central_widget.setObjectName(_fromUtf8("central_widget")) self.horizontalLayout = QtGui.QHBoxLayout(self.central_widget) self.horizontalLayout.setMargin(0) self.horizontalLayout.setMargin(0) self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.groupBox = QtGui.QGroupBox(self.central_widget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(1) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.groupBox.sizePolicy().hasHeightForWidth()) self.groupBox.setSizePolicy(sizePolicy) self.groupBox.setObjectName(_fromUtf8("groupBox")) self.verticalLayout_2 = QtGui.QVBoxLayout(self.groupBox) self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.available_profiles = QtGui.QListView(self.groupBox) self.available_profiles.setObjectName(_fromUtf8("available_profiles")) self.verticalLayout_2.addWidget(self.available_profiles) self.add_profile_button = QtGui.QPushButton(self.groupBox) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(_fromUtf8(I("plus.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.add_profile_button.setIcon(icon1) self.add_profile_button.setObjectName(_fromUtf8("add_profile_button")) self.verticalLayout_2.addWidget(self.add_profile_button) self.remove_profile_button = QtGui.QPushButton(self.groupBox) icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap(_fromUtf8(I("list_remove.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.remove_profile_button.setIcon(icon2) self.remove_profile_button.setObjectName( _fromUtf8("remove_profile_button")) self.verticalLayout_2.addWidget(self.remove_profile_button) self.share_button = QtGui.QPushButton(self.groupBox) icon3 = QtGui.QIcon() icon3.addPixmap(QtGui.QPixmap(_fromUtf8(I("forward.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.share_button.setIcon(icon3) self.share_button.setObjectName(_fromUtf8("share_button")) self.verticalLayout_2.addWidget(self.share_button) self.show_recipe_files_button = QtGui.QPushButton(self.groupBox) icon4 = QtGui.QIcon() icon4.addPixmap(QtGui.QPixmap(_fromUtf8(I("document_open.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.show_recipe_files_button.setIcon(icon4) self.show_recipe_files_button.setObjectName( _fromUtf8("show_recipe_files_button")) self.verticalLayout_2.addWidget(self.show_recipe_files_button) self.builtin_recipe_button = QtGui.QPushButton(self.groupBox) icon5 = QtGui.QIcon() icon5.addPixmap(QtGui.QPixmap(_fromUtf8(I("news.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.builtin_recipe_button.setIcon(icon5) self.builtin_recipe_button.setObjectName( _fromUtf8("builtin_recipe_button")) self.verticalLayout_2.addWidget(self.builtin_recipe_button) self.load_button = QtGui.QPushButton(self.groupBox) icon6 = QtGui.QIcon() icon6.addPixmap(QtGui.QPixmap(_fromUtf8(I("chapters.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.load_button.setIcon(icon6) self.load_button.setObjectName(_fromUtf8("load_button")) self.verticalLayout_2.addWidget(self.load_button) self.horizontalLayout.addWidget(self.groupBox) self.frame = QtGui.QFrame(self.central_widget) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(10) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.frame.sizePolicy().hasHeightForWidth()) self.frame.setSizePolicy(sizePolicy) self.frame.setFrameShape(QtGui.QFrame.StyledPanel) self.frame.setFrameShadow(QtGui.QFrame.Raised) self.frame.setObjectName(_fromUtf8("frame")) self.verticalLayout = QtGui.QVBoxLayout(self.frame) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.toggle_mode_button = QtGui.QPushButton(self.frame) self.toggle_mode_button.setObjectName(_fromUtf8("toggle_mode_button")) self.verticalLayout.addWidget(self.toggle_mode_button) self.stacks = QtGui.QStackedWidget(self.frame) self.stacks.setObjectName(_fromUtf8("stacks")) self.page = QtGui.QWidget() self.page.setObjectName(_fromUtf8("page")) self.verticalLayout_5 = QtGui.QVBoxLayout(self.page) self.verticalLayout_5.setObjectName(_fromUtf8("verticalLayout_5")) self.label = QtGui.QLabel(self.page) self.label.setTextFormat(QtCore.Qt.RichText) self.label.setWordWrap(True) self.label.setObjectName(_fromUtf8("label")) self.verticalLayout_5.addWidget(self.label) self.gridlayout = QtGui.QGridLayout() self.gridlayout.setObjectName(_fromUtf8("gridlayout")) self.label_2 = QtGui.QLabel(self.page) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridlayout.addWidget(self.label_2, 0, 0, 1, 1) self.profile_title = EnLineEdit(self.page) font = QtGui.QFont() font.setBold(True) font.setWeight(75) self.profile_title.setFont(font) self.profile_title.setObjectName(_fromUtf8("profile_title")) self.gridlayout.addWidget(self.profile_title, 0, 1, 1, 2) self.label_6 = QtGui.QLabel(self.page) self.label_6.setObjectName(_fromUtf8("label_6")) self.gridlayout.addWidget(self.label_6, 2, 0, 1, 1) self.oldest_article = QtGui.QSpinBox(self.page) self.oldest_article.setMinimum(1) self.oldest_article.setMaximum(365) self.oldest_article.setProperty("value", 7) self.oldest_article.setObjectName(_fromUtf8("oldest_article")) self.gridlayout.addWidget(self.oldest_article, 2, 2, 1, 1) self.label_7 = QtGui.QLabel(self.page) self.label_7.setObjectName(_fromUtf8("label_7")) self.gridlayout.addWidget(self.label_7, 3, 0, 1, 1) self.max_articles = QtGui.QSpinBox(self.page) self.max_articles.setMinimum(5) self.max_articles.setMaximum(100) self.max_articles.setProperty("value", 10) self.max_articles.setObjectName(_fromUtf8("max_articles")) self.gridlayout.addWidget(self.max_articles, 3, 2, 1, 1) self.verticalLayout_5.addLayout(self.gridlayout) self.groupBox_2 = QtGui.QGroupBox(self.page) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Preferred) sizePolicy.setHorizontalStretch(100) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.groupBox_2.sizePolicy().hasHeightForWidth()) self.groupBox_2.setSizePolicy(sizePolicy) self.groupBox_2.setObjectName(_fromUtf8("groupBox_2")) self.hboxlayout = QtGui.QHBoxLayout(self.groupBox_2) self.hboxlayout.setObjectName(_fromUtf8("hboxlayout")) self.added_feeds = BasicList(self.groupBox_2) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(100) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.added_feeds.sizePolicy().hasHeightForWidth()) self.added_feeds.setSizePolicy(sizePolicy) self.added_feeds.setSelectionMode( QtGui.QAbstractItemView.MultiSelection) self.added_feeds.setObjectName(_fromUtf8("added_feeds")) self.hboxlayout.addWidget(self.added_feeds) self.vboxlayout = QtGui.QVBoxLayout() self.vboxlayout.setObjectName(_fromUtf8("vboxlayout")) self.up_button = QtGui.QToolButton(self.groupBox_2) icon7 = QtGui.QIcon() icon7.addPixmap(QtGui.QPixmap(_fromUtf8(I("arrow-up.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.up_button.setIcon(icon7) self.up_button.setObjectName(_fromUtf8("up_button")) self.vboxlayout.addWidget(self.up_button) self.remove_feed_button = QtGui.QToolButton(self.groupBox_2) self.remove_feed_button.setIcon(icon2) self.remove_feed_button.setObjectName(_fromUtf8("remove_feed_button")) self.vboxlayout.addWidget(self.remove_feed_button) self.down_button = QtGui.QToolButton(self.groupBox_2) icon8 = QtGui.QIcon() icon8.addPixmap(QtGui.QPixmap(_fromUtf8(I("arrow-down.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.down_button.setIcon(icon8) self.down_button.setObjectName(_fromUtf8("down_button")) self.vboxlayout.addWidget(self.down_button) self.hboxlayout.addLayout(self.vboxlayout) self.verticalLayout_5.addWidget(self.groupBox_2) self.groupBox_3 = QtGui.QGroupBox(self.page) self.groupBox_3.setObjectName(_fromUtf8("groupBox_3")) self.gridlayout1 = QtGui.QGridLayout(self.groupBox_3) self.gridlayout1.setObjectName(_fromUtf8("gridlayout1")) self.label_4 = QtGui.QLabel(self.groupBox_3) self.label_4.setObjectName(_fromUtf8("label_4")) self.gridlayout1.addWidget(self.label_4, 0, 0, 1, 1) self.feed_title = EnLineEdit(self.groupBox_3) self.feed_title.setObjectName(_fromUtf8("feed_title")) self.gridlayout1.addWidget(self.feed_title, 0, 1, 1, 1) self.label_5 = QtGui.QLabel(self.groupBox_3) self.label_5.setObjectName(_fromUtf8("label_5")) self.gridlayout1.addWidget(self.label_5, 1, 0, 1, 1) self.feed_url = QtGui.QLineEdit(self.groupBox_3) self.feed_url.setObjectName(_fromUtf8("feed_url")) self.gridlayout1.addWidget(self.feed_url, 1, 1, 1, 1) self.add_feed_button = QtGui.QPushButton(self.groupBox_3) self.add_feed_button.setIcon(icon1) self.add_feed_button.setObjectName(_fromUtf8("add_feed_button")) self.gridlayout1.addWidget(self.add_feed_button, 2, 0, 1, 2) self.verticalLayout_5.addWidget(self.groupBox_3) self.stacks.addWidget(self.page) self.page_2 = QtGui.QWidget() self.page_2.setObjectName(_fromUtf8("page_2")) self.vboxlayout1 = QtGui.QVBoxLayout(self.page_2) self.vboxlayout1.setObjectName(_fromUtf8("vboxlayout1")) self.label_8 = QtGui.QLabel(self.page_2) self.label_8.setWordWrap(True) self.label_8.setOpenExternalLinks(True) self.label_8.setObjectName(_fromUtf8("label_8")) self.vboxlayout1.addWidget(self.label_8) self.groupBox_4 = QtGui.QGroupBox(self.page_2) self.groupBox_4.setObjectName(_fromUtf8("groupBox_4")) self.vboxlayout2 = QtGui.QVBoxLayout(self.groupBox_4) self.vboxlayout2.setObjectName(_fromUtf8("vboxlayout2")) self.source_code = QtGui.QTextEdit(self.groupBox_4) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(100) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.source_code.sizePolicy().hasHeightForWidth()) self.source_code.setSizePolicy(sizePolicy) self.source_code.setLineWrapMode(QtGui.QTextEdit.NoWrap) self.source_code.setAcceptRichText(False) self.source_code.setObjectName(_fromUtf8("source_code")) self.vboxlayout2.addWidget(self.source_code) self.vboxlayout1.addWidget(self.groupBox_4) self.stacks.addWidget(self.page_2) self.verticalLayout.addWidget(self.stacks) self.horizontalLayout.addWidget(self.frame) self.verticalLayout_3.addWidget(self.central_widget) self.scrollArea.setWidget(self.scrollAreaWidgetContents) self.verticalLayout_4.addWidget(self.scrollArea) self.buttonBox = QtGui.QDialogButtonBox(Dialog) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Close) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.verticalLayout_4.addWidget(self.buttonBox) self.label_2.setBuddy(self.profile_title) self.label_6.setBuddy(self.oldest_article) self.label_7.setBuddy(self.max_articles) self.label_4.setBuddy(self.feed_title) self.label_5.setBuddy(self.feed_url) self.retranslateUi(Dialog) self.stacks.setCurrentIndex(0) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), Dialog.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), Dialog.reject) QtCore.QMetaObject.connectSlotsByName(Dialog) def retranslateUi(self, Dialog): Dialog.setWindowTitle(_("Add custom news source")) self.groupBox.setTitle(_("Available user recipes")) self.add_profile_button.setText(_("Add/Update &recipe")) self.remove_profile_button.setText(_("&Remove recipe")) self.share_button.setText(_("&Share recipe")) self.show_recipe_files_button.setText(_("S&how recipe files")) self.builtin_recipe_button.setText(_("Customize &builtin recipe")) self.load_button.setText(_("&Load recipe from file")) self.toggle_mode_button.setText(_("Switch to Advanced mode")) self.label.setText( _("<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n" "p, li { white-space: pre-wrap; }\n" "</style></head><body style=\" font-family:\'DejaVu Sans\'; font-size:10pt; font-weight:400; font-style:normal;\">\n" "<p style=\" margin-top:12px; margin-bottom:12px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Create a basic news recipe, by adding RSS feeds to it. <br />For most feeds, you will have to use the \"Advanced mode\" to further customize the fetch process.</p></body></html>" )) self.label_2.setText(_("Recipe &title:")) self.label_6.setText(_("&Oldest article:")) self.oldest_article.setToolTip(_("The oldest article to download")) self.oldest_article.setSuffix(_(" days")) self.label_7.setText(_("&Max. number of articles per feed:")) self.max_articles.setToolTip( _("Maximum number of articles to download per feed.")) self.groupBox_2.setTitle(_("Feeds in recipe")) self.up_button.setText(_("...")) self.remove_feed_button.setToolTip(_("Remove feed from recipe")) self.remove_feed_button.setText(_("...")) self.down_button.setText(_("...")) self.groupBox_3.setTitle(_("Add feed to recipe")) self.label_4.setText(_("&Feed title:")) self.label_5.setText(_("Feed &URL:")) self.add_feed_button.setToolTip(_("Add feed to recipe")) self.add_feed_button.setText(_("&Add feed")) self.label_8.setText( _("For help with writing advanced news recipes, please visit <a href=\"http://manual.calibre-ebook.com/news.html\">User Recipes</a>" )) self.groupBox_4.setTitle(_("Recipe source code (python)"))
class Ui_TagEditor(object): def setupUi(self, TagEditor): TagEditor.setObjectName(_fromUtf8("TagEditor")) TagEditor.resize(588, 335) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(_fromUtf8(I("chapters.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) TagEditor.setWindowIcon(icon) self.gridlayout = QtGui.QGridLayout(TagEditor) self.gridlayout.setObjectName(_fromUtf8("gridlayout")) self.vboxlayout = QtGui.QVBoxLayout() self.vboxlayout.setObjectName(_fromUtf8("vboxlayout")) self.hboxlayout = QtGui.QHBoxLayout() self.hboxlayout.setObjectName(_fromUtf8("hboxlayout")) self.label = QtGui.QLabel(TagEditor) self.label.setObjectName(_fromUtf8("label")) self.hboxlayout.addWidget(self.label) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.hboxlayout.addItem(spacerItem) self.vboxlayout.addLayout(self.hboxlayout) self.hboxlayout1 = QtGui.QHBoxLayout() self.hboxlayout1.setObjectName(_fromUtf8("hboxlayout1")) self.delete_button = QtGui.QToolButton(TagEditor) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(_fromUtf8(I("trash.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.delete_button.setIcon(icon1) self.delete_button.setObjectName(_fromUtf8("delete_button")) self.hboxlayout1.addWidget(self.delete_button) self.available_tags = QtGui.QListWidget(TagEditor) self.available_tags.setAlternatingRowColors(True) self.available_tags.setSelectionMode(QtGui.QAbstractItemView.MultiSelection) self.available_tags.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows) self.available_tags.setObjectName(_fromUtf8("available_tags")) self.hboxlayout1.addWidget(self.available_tags) self.vboxlayout.addLayout(self.hboxlayout1) self.gridlayout.addLayout(self.vboxlayout, 0, 0, 1, 1) self.vboxlayout1 = QtGui.QVBoxLayout() self.vboxlayout1.setObjectName(_fromUtf8("vboxlayout1")) spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.vboxlayout1.addItem(spacerItem1) self.apply_button = QtGui.QToolButton(TagEditor) icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap(_fromUtf8(I("forward.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.apply_button.setIcon(icon2) self.apply_button.setObjectName(_fromUtf8("apply_button")) self.vboxlayout1.addWidget(self.apply_button) spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.vboxlayout1.addItem(spacerItem2) self.gridlayout.addLayout(self.vboxlayout1, 0, 1, 1, 1) self.vboxlayout2 = QtGui.QVBoxLayout() self.vboxlayout2.setObjectName(_fromUtf8("vboxlayout2")) self.hboxlayout2 = QtGui.QHBoxLayout() self.hboxlayout2.setObjectName(_fromUtf8("hboxlayout2")) self.label_2 = QtGui.QLabel(TagEditor) self.label_2.setObjectName(_fromUtf8("label_2")) self.hboxlayout2.addWidget(self.label_2) spacerItem3 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.hboxlayout2.addItem(spacerItem3) self.vboxlayout2.addLayout(self.hboxlayout2) self.applied_tags = QtGui.QListWidget(TagEditor) self.applied_tags.setAlternatingRowColors(True) self.applied_tags.setSelectionMode(QtGui.QAbstractItemView.MultiSelection) self.applied_tags.setObjectName(_fromUtf8("applied_tags")) self.vboxlayout2.addWidget(self.applied_tags) self.gridlayout.addLayout(self.vboxlayout2, 0, 2, 1, 1) self.vboxlayout3 = QtGui.QVBoxLayout() self.vboxlayout3.setObjectName(_fromUtf8("vboxlayout3")) spacerItem4 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.vboxlayout3.addItem(spacerItem4) self.unapply_button = QtGui.QToolButton(TagEditor) icon3 = QtGui.QIcon() icon3.addPixmap(QtGui.QPixmap(_fromUtf8(I("list_remove.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.unapply_button.setIcon(icon3) self.unapply_button.setObjectName(_fromUtf8("unapply_button")) self.vboxlayout3.addWidget(self.unapply_button) spacerItem5 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.vboxlayout3.addItem(spacerItem5) self.gridlayout.addLayout(self.vboxlayout3, 0, 3, 1, 1) self.hboxlayout3 = QtGui.QHBoxLayout() self.hboxlayout3.setObjectName(_fromUtf8("hboxlayout3")) spacerItem6 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.hboxlayout3.addItem(spacerItem6) self.label_3 = QtGui.QLabel(TagEditor) self.label_3.setObjectName(_fromUtf8("label_3")) self.hboxlayout3.addWidget(self.label_3) self.add_tag_input = EnLineEdit(TagEditor) self.add_tag_input.setObjectName(_fromUtf8("add_tag_input")) self.hboxlayout3.addWidget(self.add_tag_input) self.add_tag_button = QtGui.QToolButton(TagEditor) icon4 = QtGui.QIcon() icon4.addPixmap(QtGui.QPixmap(_fromUtf8(I("plus.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.add_tag_button.setIcon(icon4) self.add_tag_button.setObjectName(_fromUtf8("add_tag_button")) self.hboxlayout3.addWidget(self.add_tag_button) spacerItem7 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.hboxlayout3.addItem(spacerItem7) self.gridlayout.addLayout(self.hboxlayout3, 1, 0, 1, 4) self.buttonBox = QtGui.QDialogButtonBox(TagEditor) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.gridlayout.addWidget(self.buttonBox, 2, 0, 1, 4) self.label.setBuddy(self.available_tags) self.label_2.setBuddy(self.applied_tags) self.label_3.setBuddy(self.add_tag_input) self.retranslateUi(TagEditor) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), TagEditor.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), TagEditor.reject) QtCore.QMetaObject.connectSlotsByName(TagEditor) def retranslateUi(self, TagEditor): TagEditor.setWindowTitle(_("Tag Editor")) self.label.setText(_("A&vailable tags")) self.delete_button.setToolTip(_("Delete tag from database. This will unapply the tag from all books and then remove it from the database.")) self.delete_button.setText(_("...")) self.apply_button.setToolTip(_("Apply tag to current book")) self.apply_button.setText(_("...")) self.label_2.setText(_("A&pplied tags")) self.unapply_button.setToolTip(_("Unapply (remove) tag from current book")) self.unapply_button.setText(_("...")) self.label_3.setText(_("&Add tag:")) self.add_tag_input.setToolTip(_("If the tag you want is not in the available list, you can add it here. Accepts a comma separated list of tags.")) self.add_tag_button.setToolTip(_("Add tag to available tags and apply it to current book")) self.add_tag_button.setText(_("..."))
def setupUi(self, TagEditor): TagEditor.setObjectName(_fromUtf8("TagEditor")) TagEditor.resize(588, 335) TagEditor.setWindowTitle(_("Tag Editor")) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(_fromUtf8(I("chapters.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) TagEditor.setWindowIcon(icon) self.gridlayout = QtGui.QGridLayout(TagEditor) self.gridlayout.setObjectName(_fromUtf8("gridlayout")) self.vboxlayout = QtGui.QVBoxLayout() self.vboxlayout.setObjectName(_fromUtf8("vboxlayout")) self.hboxlayout = QtGui.QHBoxLayout() self.hboxlayout.setObjectName(_fromUtf8("hboxlayout")) self.label = QtGui.QLabel(TagEditor) self.label.setText(_("A&vailable tags")) self.label.setObjectName(_fromUtf8("label")) self.hboxlayout.addWidget(self.label) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.hboxlayout.addItem(spacerItem) self.vboxlayout.addLayout(self.hboxlayout) self.hboxlayout1 = QtGui.QHBoxLayout() self.hboxlayout1.setObjectName(_fromUtf8("hboxlayout1")) self.delete_button = QtGui.QToolButton(TagEditor) self.delete_button.setToolTip(_("Delete tag from database. This will unapply the tag from all books and then remove it from the database.")) self.delete_button.setText(_("...")) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(_fromUtf8(I("trash.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.delete_button.setIcon(icon1) self.delete_button.setObjectName(_fromUtf8("delete_button")) self.hboxlayout1.addWidget(self.delete_button) self.available_tags = QtGui.QListWidget(TagEditor) self.available_tags.setAlternatingRowColors(True) self.available_tags.setSelectionMode(QtGui.QAbstractItemView.MultiSelection) self.available_tags.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows) self.available_tags.setObjectName(_fromUtf8("available_tags")) self.hboxlayout1.addWidget(self.available_tags) self.vboxlayout.addLayout(self.hboxlayout1) self.gridlayout.addLayout(self.vboxlayout, 0, 0, 1, 1) self.vboxlayout1 = QtGui.QVBoxLayout() self.vboxlayout1.setObjectName(_fromUtf8("vboxlayout1")) spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.vboxlayout1.addItem(spacerItem1) self.apply_button = QtGui.QToolButton(TagEditor) self.apply_button.setToolTip(_("Apply tag to current book")) self.apply_button.setText(_("...")) icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap(_fromUtf8(I("forward.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.apply_button.setIcon(icon2) self.apply_button.setObjectName(_fromUtf8("apply_button")) self.vboxlayout1.addWidget(self.apply_button) spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.vboxlayout1.addItem(spacerItem2) self.gridlayout.addLayout(self.vboxlayout1, 0, 1, 1, 1) self.vboxlayout2 = QtGui.QVBoxLayout() self.vboxlayout2.setObjectName(_fromUtf8("vboxlayout2")) self.hboxlayout2 = QtGui.QHBoxLayout() self.hboxlayout2.setObjectName(_fromUtf8("hboxlayout2")) self.label_2 = QtGui.QLabel(TagEditor) self.label_2.setText(_("A&pplied tags")) self.label_2.setObjectName(_fromUtf8("label_2")) self.hboxlayout2.addWidget(self.label_2) spacerItem3 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.hboxlayout2.addItem(spacerItem3) self.vboxlayout2.addLayout(self.hboxlayout2) self.applied_tags = QtGui.QListWidget(TagEditor) self.applied_tags.setAlternatingRowColors(True) self.applied_tags.setSelectionMode(QtGui.QAbstractItemView.MultiSelection) self.applied_tags.setObjectName(_fromUtf8("applied_tags")) self.vboxlayout2.addWidget(self.applied_tags) self.gridlayout.addLayout(self.vboxlayout2, 0, 2, 1, 1) self.vboxlayout3 = QtGui.QVBoxLayout() self.vboxlayout3.setObjectName(_fromUtf8("vboxlayout3")) spacerItem4 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.vboxlayout3.addItem(spacerItem4) self.unapply_button = QtGui.QToolButton(TagEditor) self.unapply_button.setToolTip(_("Unapply (remove) tag from current book")) self.unapply_button.setText(_("...")) icon3 = QtGui.QIcon() icon3.addPixmap(QtGui.QPixmap(_fromUtf8(I("list_remove.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.unapply_button.setIcon(icon3) self.unapply_button.setObjectName(_fromUtf8("unapply_button")) self.vboxlayout3.addWidget(self.unapply_button) spacerItem5 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.vboxlayout3.addItem(spacerItem5) self.gridlayout.addLayout(self.vboxlayout3, 0, 3, 1, 1) self.hboxlayout3 = QtGui.QHBoxLayout() self.hboxlayout3.setObjectName(_fromUtf8("hboxlayout3")) spacerItem6 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.hboxlayout3.addItem(spacerItem6) self.label_3 = QtGui.QLabel(TagEditor) self.label_3.setText(_("&Add tag:")) self.label_3.setObjectName(_fromUtf8("label_3")) self.hboxlayout3.addWidget(self.label_3) self.add_tag_input = EnLineEdit(TagEditor) self.add_tag_input.setToolTip(_("If the tag you want is not in the available list, you can add it here. Accepts a comma separated list of tags.")) self.add_tag_input.setObjectName(_fromUtf8("add_tag_input")) self.hboxlayout3.addWidget(self.add_tag_input) self.add_tag_button = QtGui.QToolButton(TagEditor) self.add_tag_button.setToolTip(_("Add tag to available tags and apply it to current book")) self.add_tag_button.setText(_("...")) icon4 = QtGui.QIcon() icon4.addPixmap(QtGui.QPixmap(_fromUtf8(I("plus.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.add_tag_button.setIcon(icon4) self.add_tag_button.setObjectName(_fromUtf8("add_tag_button")) self.hboxlayout3.addWidget(self.add_tag_button) spacerItem7 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.hboxlayout3.addItem(spacerItem7) self.gridlayout.addLayout(self.hboxlayout3, 1, 0, 1, 4) self.buttonBox = QtGui.QDialogButtonBox(TagEditor) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.gridlayout.addWidget(self.buttonBox, 2, 0, 1, 4) self.label.setBuddy(self.available_tags) self.label_2.setBuddy(self.applied_tags) self.label_3.setBuddy(self.add_tag_input) self.retranslateUi(TagEditor) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), TagEditor.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), TagEditor.reject) QtCore.QMetaObject.connectSlotsByName(TagEditor)
def setupUi(self, MetadataBulkDialog): MetadataBulkDialog.setObjectName("MetadataBulkDialog") MetadataBulkDialog.resize(955, 740) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(I("edit_input.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) MetadataBulkDialog.setWindowIcon(icon) self.verticalLayout_3 = QtWidgets.QVBoxLayout(MetadataBulkDialog) self.verticalLayout_3.setObjectName("verticalLayout_3") self.central_widget = QtWidgets.QTabWidget(MetadataBulkDialog) self.central_widget.setObjectName("central_widget") self.scrollArea1 = QtWidgets.QScrollArea() self.scrollArea1.setFrameShape(QtWidgets.QFrame.NoFrame) self.scrollArea1.setWidgetResizable(True) self.scrollArea1.setObjectName("scrollArea1") self.btab = QtWidgets.QWidget() self.btab.setGeometry(QtCore.QRect(0, 0, 933, 660)) self.btab.setObjectName("btab") self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.btab) self.verticalLayout_4.setObjectName("verticalLayout_4") self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setObjectName("gridLayout") self.label_2 = QtWidgets.QLabel(self.btab) self.label_2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_2.setObjectName("label_2") self.gridLayout.addWidget(self.label_2, 0, 0, 1, 1) self.authors = EditWithComplete(self.btab) self.authors.setEditable(True) self.authors.setObjectName("authors") self.gridLayout.addWidget(self.authors, 0, 1, 1, 1) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.auto_author_sort = QtWidgets.QCheckBox(self.btab) self.auto_author_sort.setObjectName("auto_author_sort") self.horizontalLayout_2.addWidget(self.auto_author_sort) self.swap_title_and_author = QtWidgets.QCheckBox(self.btab) self.swap_title_and_author.setObjectName("swap_title_and_author") self.horizontalLayout_2.addWidget(self.swap_title_and_author) self.gridLayout.addLayout(self.horizontalLayout_2, 1, 1, 1, 1) self.label_8 = QtWidgets.QLabel(self.btab) self.label_8.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_8.setObjectName("label_8") self.gridLayout.addWidget(self.label_8, 2, 0, 1, 1) self.author_sort = EnLineEdit(self.btab) self.author_sort.setObjectName("author_sort") self.gridLayout.addWidget(self.author_sort, 2, 1, 1, 1) self.label_6 = QtWidgets.QLabel(self.btab) self.label_6.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_6.setObjectName("label_6") self.gridLayout.addWidget(self.label_6, 3, 0, 1, 1) self.rating = RatingEditor(self.btab) self.rating.setObjectName("rating") self.gridLayout.addWidget(self.rating, 3, 1, 1, 1) self.apply_rating = QtWidgets.QCheckBox(self.btab) self.apply_rating.setObjectName("apply_rating") self.gridLayout.addWidget(self.apply_rating, 3, 2, 1, 1) self.label_3 = QtWidgets.QLabel(self.btab) self.label_3.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_3.setObjectName("label_3") self.gridLayout.addWidget(self.label_3, 4, 0, 1, 1) self.publisher = EditWithComplete(self.btab) self.publisher.setEditable(True) self.publisher.setObjectName("publisher") self.gridLayout.addWidget(self.publisher, 4, 1, 1, 1) self.clear_pub = QtWidgets.QCheckBox(self.btab) self.clear_pub.setObjectName("clear_pub") self.gridLayout.addWidget(self.clear_pub, 4, 2, 1, 1) self.label_4 = QtWidgets.QLabel(self.btab) self.label_4.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_4.setObjectName("label_4") self.gridLayout.addWidget(self.label_4, 5, 0, 1, 1) self.tags = EditWithComplete(self.btab) self.tags.setObjectName("tags") self.gridLayout.addWidget(self.tags, 5, 1, 1, 1) self.tag_editor_button = QtWidgets.QToolButton(self.btab) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(I("chapters.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.tag_editor_button.setIcon(icon1) self.tag_editor_button.setObjectName("tag_editor_button") self.gridLayout.addWidget(self.tag_editor_button, 5, 2, 1, 1) self.label = QtWidgets.QLabel(self.btab) self.label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label.setObjectName("label") self.gridLayout.addWidget(self.label, 6, 0, 1, 1) self.remove_tags = EditWithComplete(self.btab) self.remove_tags.setObjectName("remove_tags") self.gridLayout.addWidget(self.remove_tags, 6, 1, 1, 1) self.remove_all_tags = QtWidgets.QCheckBox(self.btab) self.remove_all_tags.setObjectName("remove_all_tags") self.gridLayout.addWidget(self.remove_all_tags, 6, 2, 1, 1) self.label_7 = QtWidgets.QLabel(self.btab) self.label_7.setTextFormat(QtCore.Qt.PlainText) self.label_7.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_7.setObjectName("label_7") self.gridLayout.addWidget(self.label_7, 7, 0, 1, 1) self.series = EditWithComplete(self.btab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.series.sizePolicy().hasHeightForWidth()) self.series.setSizePolicy(sizePolicy) self.series.setEditable(True) self.series.setInsertPolicy(QtWidgets.QComboBox.InsertAlphabetically) self.series.setSizeAdjustPolicy(QtWidgets.QComboBox.AdjustToMinimumContentsLengthWithIcon) self.series.setMinimumContentsLength(40) self.series.setObjectName("series") self.gridLayout.addWidget(self.series, 7, 1, 1, 1) self.clear_series = QtWidgets.QCheckBox(self.btab) self.clear_series.setObjectName("clear_series") self.gridLayout.addWidget(self.clear_series, 7, 2, 1, 1) self.HLayout_3 = QtWidgets.QHBoxLayout() self.HLayout_3.setObjectName("HLayout_3") self.autonumber_series = QtWidgets.QCheckBox(self.btab) self.autonumber_series.setEnabled(False) self.autonumber_series.setObjectName("autonumber_series") self.HLayout_3.addWidget(self.autonumber_series) self.series_numbering_restarts = QtWidgets.QCheckBox(self.btab) self.series_numbering_restarts.setEnabled(False) self.series_numbering_restarts.setObjectName("series_numbering_restarts") self.HLayout_3.addWidget(self.series_numbering_restarts) self.series_start_number = QtWidgets.QDoubleSpinBox(self.btab) self.series_start_number.setEnabled(False) self.series_start_number.setMinimum(0.0) self.series_start_number.setMaximum(99000000.0) self.series_start_number.setProperty("value", 1.0) self.series_start_number.setObjectName("series_start_number") self.HLayout_3.addWidget(self.series_start_number) self.series_increment = QtWidgets.QDoubleSpinBox(self.btab) self.series_increment.setEnabled(False) self.series_increment.setMinimum(0.0) self.series_increment.setMaximum(99999.0) self.series_increment.setProperty("value", 1.0) self.series_increment.setObjectName("series_increment") self.HLayout_3.addWidget(self.series_increment) self.gridLayout.addLayout(self.HLayout_3, 8, 1, 1, 1) self.label_10 = QtWidgets.QLabel(self.btab) self.label_10.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_10.setObjectName("label_10") self.gridLayout.addWidget(self.label_10, 9, 0, 1, 1) self.horizontalLayout_5 = QtWidgets.QHBoxLayout() self.horizontalLayout_5.setObjectName("horizontalLayout_5") self.adddate = DateTimeEdit(self.btab) self.adddate.setCalendarPopup(True) self.adddate.setObjectName("adddate") self.horizontalLayout_5.addWidget(self.adddate) self.clear_adddate_button = QtWidgets.QToolButton(self.btab) icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap(I("trash.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.clear_adddate_button.setIcon(icon2) self.clear_adddate_button.setObjectName("clear_adddate_button") self.horizontalLayout_5.addWidget(self.clear_adddate_button) self.gridLayout.addLayout(self.horizontalLayout_5, 9, 1, 1, 1) self.apply_adddate = QtWidgets.QCheckBox(self.btab) self.apply_adddate.setObjectName("apply_adddate") self.gridLayout.addWidget(self.apply_adddate, 9, 2, 1, 1) self.label_9 = QtWidgets.QLabel(self.btab) self.label_9.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_9.setObjectName("label_9") self.gridLayout.addWidget(self.label_9, 10, 0, 1, 1) self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.pubdate = DateTimeEdit(self.btab) self.pubdate.setCalendarPopup(True) self.pubdate.setObjectName("pubdate") self.horizontalLayout_4.addWidget(self.pubdate) self.clear_pubdate_button = QtWidgets.QToolButton(self.btab) self.clear_pubdate_button.setIcon(icon2) self.clear_pubdate_button.setObjectName("clear_pubdate_button") self.horizontalLayout_4.addWidget(self.clear_pubdate_button) self.gridLayout.addLayout(self.horizontalLayout_4, 10, 1, 1, 1) self.apply_pubdate = QtWidgets.QCheckBox(self.btab) self.apply_pubdate.setObjectName("apply_pubdate") self.gridLayout.addWidget(self.apply_pubdate, 10, 2, 1, 1) self.label_11 = QtWidgets.QLabel(self.btab) self.label_11.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_11.setObjectName("label_11") self.gridLayout.addWidget(self.label_11, 11, 0, 1, 1) self.languages = LanguagesEdit(self.btab) self.languages.setObjectName("languages") self.gridLayout.addWidget(self.languages, 11, 1, 1, 1) self.clear_languages = QtWidgets.QCheckBox(self.btab) self.clear_languages.setObjectName("clear_languages") self.gridLayout.addWidget(self.clear_languages, 11, 2, 1, 1) self.verticalLayout_4.addLayout(self.gridLayout) spacerItem = QtWidgets.QSpacerItem(17, 13, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed) self.verticalLayout_4.addItem(spacerItem) self.gridLayout_2 = QtWidgets.QGridLayout() self.gridLayout_2.setObjectName("gridLayout_2") self.remove_conversion_settings = QtWidgets.QCheckBox(self.btab) self.remove_conversion_settings.setObjectName("remove_conversion_settings") self.gridLayout_2.addWidget(self.remove_conversion_settings, 0, 0, 1, 2) self.restore_original = QtWidgets.QCheckBox(self.btab) self.restore_original.setObjectName("restore_original") self.gridLayout_2.addWidget(self.restore_original, 0, 2, 1, 1) self.change_title_to_title_case = QtWidgets.QCheckBox(self.btab) self.change_title_to_title_case.setObjectName("change_title_to_title_case") self.gridLayout_2.addWidget(self.change_title_to_title_case, 1, 0, 1, 1) self.casing_algorithm = QtWidgets.QComboBox(self.btab) self.casing_algorithm.setMinimumSize(QtCore.QSize(150, 0)) self.casing_algorithm.setObjectName("casing_algorithm") self.gridLayout_2.addWidget(self.casing_algorithm, 1, 1, 1, 1) self.update_title_sort = QtWidgets.QCheckBox(self.btab) self.update_title_sort.setObjectName("update_title_sort") self.gridLayout_2.addWidget(self.update_title_sort, 1, 2, 1, 1) self.verticalLayout_4.addLayout(self.gridLayout_2) self.read_file_metadata = QtWidgets.QCheckBox(self.btab) self.read_file_metadata.setObjectName("read_file_metadata") self.verticalLayout_4.addWidget(self.read_file_metadata) self.groupBox = QtWidgets.QGroupBox(self.btab) self.groupBox.setObjectName("groupBox") self.horizontalLayout_9 = QtWidgets.QHBoxLayout(self.groupBox) self.horizontalLayout_9.setObjectName("horizontalLayout_9") self.cover_generate = QtWidgets.QRadioButton(self.groupBox) self.cover_generate.setObjectName("cover_generate") self.horizontalLayout_9.addWidget(self.cover_generate) self.cover_remove = QtWidgets.QRadioButton(self.groupBox) self.cover_remove.setObjectName("cover_remove") self.horizontalLayout_9.addWidget(self.cover_remove) self.cover_trim = QtWidgets.QRadioButton(self.groupBox) self.cover_trim.setObjectName("cover_trim") self.horizontalLayout_9.addWidget(self.cover_trim) self.cover_from_fmt = QtWidgets.QRadioButton(self.groupBox) self.cover_from_fmt.setObjectName("cover_from_fmt") self.horizontalLayout_9.addWidget(self.cover_from_fmt) self.cover_clone = QtWidgets.QRadioButton(self.groupBox) self.cover_clone.setObjectName("cover_clone") self.horizontalLayout_9.addWidget(self.cover_clone) self.verticalLayout_4.addWidget(self.groupBox) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.compress_cover_images = QtWidgets.QCheckBox(self.btab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.compress_cover_images.sizePolicy().hasHeightForWidth()) self.compress_cover_images.setSizePolicy(sizePolicy) self.compress_cover_images.setObjectName("compress_cover_images") self.horizontalLayout_3.addWidget(self.compress_cover_images) self.compress_quality = QtWidgets.QSpinBox(self.btab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.compress_quality.sizePolicy().hasHeightForWidth()) self.compress_quality.setSizePolicy(sizePolicy) self.compress_quality.setMinimum(10) self.compress_quality.setMaximum(100) self.compress_quality.setProperty("value", 100) self.compress_quality.setObjectName("compress_quality") self.horizontalLayout_3.addWidget(self.compress_quality) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_3.addItem(spacerItem1) self.verticalLayout_4.addLayout(self.horizontalLayout_3) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.button_config_cover_gen = QtWidgets.QPushButton(self.btab) self.button_config_cover_gen.setObjectName("button_config_cover_gen") self.horizontalLayout.addWidget(self.button_config_cover_gen) self.comments_button = QtWidgets.QPushButton(self.btab) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Maximum, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.comments_button.sizePolicy().hasHeightForWidth()) self.comments_button.setSizePolicy(sizePolicy) self.comments_button.setObjectName("comments_button") self.horizontalLayout.addWidget(self.comments_button) spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout.addItem(spacerItem2) self.verticalLayout_4.addLayout(self.horizontalLayout) spacerItem3 = QtWidgets.QSpacerItem(17, 17, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.verticalLayout_4.addItem(spacerItem3) self.scrollArea1.setWidget(self.btab) self.central_widget.addTab(self.scrollArea1, "") self.scrollArea2 = QtWidgets.QScrollArea() self.scrollArea2.setFrameShape(QtWidgets.QFrame.NoFrame) self.scrollArea2.setWidgetResizable(True) self.scrollArea2.setObjectName("scrollArea2") self.tab = QtWidgets.QWidget() self.tab.setGeometry(QtCore.QRect(0, 0, 100, 30)) self.tab.setObjectName("tab") self.scrollArea2.setWidget(self.tab) self.central_widget.addTab(self.scrollArea2, "") self.scrollArea3 = QtWidgets.QScrollArea() self.scrollArea3.setFrameShape(QtWidgets.QFrame.NoFrame) self.scrollArea3.setWidgetResizable(True) self.scrollArea3.setObjectName("scrollArea3") self.tabWidgetPage3 = QtWidgets.QWidget() self.tabWidgetPage3.setGeometry(QtCore.QRect(0, 0, 777, 388)) self.tabWidgetPage3.setObjectName("tabWidgetPage3") self.vargrid = QtWidgets.QGridLayout(self.tabWidgetPage3) self.vargrid.setSizeConstraint(QtWidgets.QLayout.SetMinimumSize) self.vargrid.setObjectName("vargrid") self.s_r_heading = QtWidgets.QLabel(self.tabWidgetPage3) self.s_r_heading.setWordWrap(True) self.s_r_heading.setOpenExternalLinks(True) self.s_r_heading.setObjectName("s_r_heading") self.vargrid.addWidget(self.s_r_heading, 0, 0, 1, 4) self.filler = QtWidgets.QLabel(self.tabWidgetPage3) self.filler.setText("") self.filler.setObjectName("filler") self.vargrid.addWidget(self.filler, 1, 0, 1, 1) self.line = QtWidgets.QFrame(self.tabWidgetPage3) self.line.setFrameShape(QtWidgets.QFrame.HLine) self.line.setFrameShadow(QtWidgets.QFrame.Sunken) self.line.setObjectName("line") self.vargrid.addWidget(self.line, 2, 0, 1, 3) self.xlabel_22 = QtWidgets.QLabel(self.tabWidgetPage3) self.xlabel_22.setObjectName("xlabel_22") self.vargrid.addWidget(self.xlabel_22, 3, 0, 1, 1) self.query_field = QtWidgets.QComboBox(self.tabWidgetPage3) self.query_field.setObjectName("query_field") self.vargrid.addWidget(self.query_field, 3, 1, 1, 1) self.horizontalLayout_6 = QtWidgets.QHBoxLayout() self.horizontalLayout_6.setObjectName("horizontalLayout_6") spacerItem4 = QtWidgets.QSpacerItem(20, 20, QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_6.addItem(spacerItem4) self.save_button = QtWidgets.QPushButton(self.tabWidgetPage3) self.save_button.setObjectName("save_button") self.horizontalLayout_6.addWidget(self.save_button) self.remove_button = QtWidgets.QPushButton(self.tabWidgetPage3) self.remove_button.setObjectName("remove_button") self.horizontalLayout_6.addWidget(self.remove_button) spacerItem5 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_6.addItem(spacerItem5) self.vargrid.addLayout(self.horizontalLayout_6, 3, 2, 1, 1) self.xlabel_21 = QtWidgets.QLabel(self.tabWidgetPage3) self.xlabel_21.setObjectName("xlabel_21") self.vargrid.addWidget(self.xlabel_21, 4, 0, 1, 1) self.search_field = QtWidgets.QComboBox(self.tabWidgetPage3) self.search_field.setObjectName("search_field") self.vargrid.addWidget(self.search_field, 4, 1, 1, 1) self.HLayout_4 = QtWidgets.QHBoxLayout() self.HLayout_4.setObjectName("HLayout_4") self.xlabel_24 = QtWidgets.QLabel(self.tabWidgetPage3) self.xlabel_24.setObjectName("xlabel_24") self.HLayout_4.addWidget(self.xlabel_24) self.search_mode = QtWidgets.QComboBox(self.tabWidgetPage3) self.search_mode.setObjectName("search_mode") self.HLayout_4.addWidget(self.search_mode) spacerItem6 = QtWidgets.QSpacerItem(20, 10, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.HLayout_4.addItem(spacerItem6) self.vargrid.addLayout(self.HLayout_4, 4, 2, 1, 1) self.s_r_src_ident_label = QtWidgets.QLabel(self.tabWidgetPage3) self.s_r_src_ident_label.setObjectName("s_r_src_ident_label") self.vargrid.addWidget(self.s_r_src_ident_label, 5, 0, 1, 1) self.s_r_src_ident = QtWidgets.QComboBox(self.tabWidgetPage3) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(100) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.s_r_src_ident.sizePolicy().hasHeightForWidth()) self.s_r_src_ident.setSizePolicy(sizePolicy) self.s_r_src_ident.setObjectName("s_r_src_ident") self.vargrid.addWidget(self.s_r_src_ident, 5, 1, 1, 1) self.template_label = QtWidgets.QLabel(self.tabWidgetPage3) self.template_label.setObjectName("template_label") self.vargrid.addWidget(self.template_label, 5, 0, 1, 1) self.s_r_template = HistoryLineEdit(self.tabWidgetPage3) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(100) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.s_r_template.sizePolicy().hasHeightForWidth()) self.s_r_template.setSizePolicy(sizePolicy) self.s_r_template.setObjectName("s_r_template") self.vargrid.addWidget(self.s_r_template, 5, 1, 1, 1) self.xlabel_2 = QtWidgets.QLabel(self.tabWidgetPage3) self.xlabel_2.setObjectName("xlabel_2") self.vargrid.addWidget(self.xlabel_2, 6, 0, 1, 1) self.search_for = HistoryLineEdit(self.tabWidgetPage3) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(100) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.search_for.sizePolicy().hasHeightForWidth()) self.search_for.setSizePolicy(sizePolicy) self.search_for.setObjectName("search_for") self.vargrid.addWidget(self.search_for, 6, 1, 1, 1) self.case_sensitive = QtWidgets.QCheckBox(self.tabWidgetPage3) self.case_sensitive.setChecked(True) self.case_sensitive.setObjectName("case_sensitive") self.vargrid.addWidget(self.case_sensitive, 6, 2, 1, 1) self.xlabel_4 = QtWidgets.QLabel(self.tabWidgetPage3) self.xlabel_4.setObjectName("xlabel_4") self.vargrid.addWidget(self.xlabel_4, 7, 0, 1, 1) self.replace_with = HistoryLineEdit(self.tabWidgetPage3) self.replace_with.setObjectName("replace_with") self.vargrid.addWidget(self.replace_with, 7, 1, 1, 1) self.verticalLayout = QtWidgets.QHBoxLayout() self.verticalLayout.setObjectName("verticalLayout") self.label_41 = QtWidgets.QLabel(self.tabWidgetPage3) self.label_41.setObjectName("label_41") self.verticalLayout.addWidget(self.label_41) self.replace_func = QtWidgets.QComboBox(self.tabWidgetPage3) self.replace_func.setObjectName("replace_func") self.verticalLayout.addWidget(self.replace_func) spacerItem7 = QtWidgets.QSpacerItem(20, 10, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.verticalLayout.addItem(spacerItem7) self.vargrid.addLayout(self.verticalLayout, 7, 2, 1, 1) self.destination_field_label = QtWidgets.QLabel(self.tabWidgetPage3) self.destination_field_label.setObjectName("destination_field_label") self.vargrid.addWidget(self.destination_field_label, 8, 0, 1, 1) self.destination_field = QtWidgets.QComboBox(self.tabWidgetPage3) self.destination_field.setObjectName("destination_field") self.vargrid.addWidget(self.destination_field, 8, 1, 1, 1) self.verticalLayout_2 = QtWidgets.QHBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self.replace_mode_label = QtWidgets.QLabel(self.tabWidgetPage3) self.replace_mode_label.setObjectName("replace_mode_label") self.verticalLayout_2.addWidget(self.replace_mode_label) self.replace_mode = QtWidgets.QComboBox(self.tabWidgetPage3) self.replace_mode.setObjectName("replace_mode") self.verticalLayout_2.addWidget(self.replace_mode) self.comma_separated = QtWidgets.QCheckBox(self.tabWidgetPage3) self.comma_separated.setChecked(True) self.comma_separated.setObjectName("comma_separated") self.verticalLayout_2.addWidget(self.comma_separated) spacerItem8 = QtWidgets.QSpacerItem(20, 10, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.verticalLayout_2.addItem(spacerItem8) self.vargrid.addLayout(self.verticalLayout_2, 8, 2, 1, 1) self.s_r_dst_ident_label = QtWidgets.QLabel(self.tabWidgetPage3) self.s_r_dst_ident_label.setObjectName("s_r_dst_ident_label") self.vargrid.addWidget(self.s_r_dst_ident_label, 9, 0, 1, 1) self.s_r_dst_ident = QtWidgets.QLineEdit(self.tabWidgetPage3) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(100) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.s_r_dst_ident.sizePolicy().hasHeightForWidth()) self.s_r_dst_ident.setSizePolicy(sizePolicy) self.s_r_dst_ident.setObjectName("s_r_dst_ident") self.vargrid.addWidget(self.s_r_dst_ident, 9, 1, 1, 1) self.horizontalLayout_21 = QtWidgets.QHBoxLayout() self.horizontalLayout_21.setObjectName("horizontalLayout_21") spacerItem9 = QtWidgets.QSpacerItem(20, 0, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_21.addItem(spacerItem9) self.xlabel_412 = QtWidgets.QLabel(self.tabWidgetPage3) self.xlabel_412.setObjectName("xlabel_412") self.horizontalLayout_21.addWidget(self.xlabel_412) self.results_count = QtWidgets.QSpinBox(self.tabWidgetPage3) self.results_count.setEnabled(True) self.results_count.setMinimum(1) self.results_count.setMaximum(999) self.results_count.setProperty("value", 999) self.results_count.setObjectName("results_count") self.horizontalLayout_21.addWidget(self.results_count) self.xlabel_413 = QtWidgets.QLabel(self.tabWidgetPage3) self.xlabel_413.setObjectName("xlabel_413") self.horizontalLayout_21.addWidget(self.xlabel_413) self.starting_from = QtWidgets.QSpinBox(self.tabWidgetPage3) self.starting_from.setEnabled(True) self.starting_from.setMinimum(1) self.starting_from.setMaximum(999) self.starting_from.setProperty("value", 1) self.starting_from.setObjectName("starting_from") self.horizontalLayout_21.addWidget(self.starting_from) self.xlabel_41 = QtWidgets.QLabel(self.tabWidgetPage3) self.xlabel_41.setObjectName("xlabel_41") self.horizontalLayout_21.addWidget(self.xlabel_41) self.multiple_separator = QtWidgets.QLineEdit(self.tabWidgetPage3) self.multiple_separator.setObjectName("multiple_separator") self.horizontalLayout_21.addWidget(self.multiple_separator) self.vargrid.addLayout(self.horizontalLayout_21, 10, 1, 1, 2) self.scrollArea11 = QtWidgets.QScrollArea(self.tabWidgetPage3) self.scrollArea11.setFrameShape(QtWidgets.QFrame.NoFrame) self.scrollArea11.setWidgetResizable(True) self.scrollArea11.setObjectName("scrollArea11") self.gridLayoutWidget_2 = QtWidgets.QWidget() self.gridLayoutWidget_2.setGeometry(QtCore.QRect(0, 0, 745, 70)) self.gridLayoutWidget_2.setObjectName("gridLayoutWidget_2") self.testgrid = QtWidgets.QGridLayout(self.gridLayoutWidget_2) self.testgrid.setObjectName("testgrid") self.xlabel_3 = QtWidgets.QLabel(self.gridLayoutWidget_2) self.xlabel_3.setObjectName("xlabel_3") self.testgrid.addWidget(self.xlabel_3, 7, 1, 1, 1) self.xlabel_5 = QtWidgets.QLabel(self.gridLayoutWidget_2) self.xlabel_5.setObjectName("xlabel_5") self.testgrid.addWidget(self.xlabel_5, 7, 2, 1, 1) self.label_31 = QtWidgets.QLabel(self.gridLayoutWidget_2) self.label_31.setObjectName("label_31") self.testgrid.addWidget(self.label_31, 8, 0, 1, 1) self.test_text = HistoryLineEdit(self.gridLayoutWidget_2) self.test_text.setObjectName("test_text") self.testgrid.addWidget(self.test_text, 8, 1, 1, 1) self.test_result = QtWidgets.QLineEdit(self.gridLayoutWidget_2) self.test_result.setObjectName("test_result") self.testgrid.addWidget(self.test_result, 8, 2, 1, 1) spacerItem10 = QtWidgets.QSpacerItem(20, 5, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding) self.testgrid.addItem(spacerItem10, 25, 0, 1, 2) self.scrollArea11.setWidget(self.gridLayoutWidget_2) self.vargrid.addWidget(self.scrollArea11, 11, 0, 1, 4) self.scrollArea3.setWidget(self.tabWidgetPage3) self.central_widget.addTab(self.scrollArea3, "") self.verticalLayout_3.addWidget(self.central_widget) self.horizontalLayout_10 = QtWidgets.QHBoxLayout() self.horizontalLayout_10.setObjectName("horizontalLayout_10") self.refresh_book_list = QtWidgets.QCheckBox(MetadataBulkDialog) self.refresh_book_list.setObjectName("refresh_book_list") self.horizontalLayout_10.addWidget(self.refresh_book_list) spacerItem11 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_10.addItem(spacerItem11) self.button_box = QtWidgets.QDialogButtonBox(MetadataBulkDialog) self.button_box.setOrientation(QtCore.Qt.Horizontal) self.button_box.setStandardButtons(QtWidgets.QDialogButtonBox.Apply|QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok) self.button_box.setObjectName("button_box") self.horizontalLayout_10.addWidget(self.button_box) self.verticalLayout_3.addLayout(self.horizontalLayout_10) self.label_2.setBuddy(self.authors) self.label_8.setBuddy(self.author_sort) self.label_6.setBuddy(self.rating) self.label_3.setBuddy(self.publisher) self.label_4.setBuddy(self.tags) self.label.setBuddy(self.remove_tags) self.label_7.setBuddy(self.series) self.label_10.setBuddy(self.adddate) self.label_9.setBuddy(self.pubdate) self.label_11.setBuddy(self.languages) self.xlabel_22.setBuddy(self.query_field) self.xlabel_21.setBuddy(self.search_field) self.xlabel_24.setBuddy(self.search_mode) self.s_r_src_ident_label.setBuddy(self.s_r_src_ident) self.template_label.setBuddy(self.s_r_template) self.xlabel_2.setBuddy(self.search_for) self.xlabel_4.setBuddy(self.replace_with) self.label_41.setBuddy(self.replace_func) self.destination_field_label.setBuddy(self.destination_field) self.replace_mode_label.setBuddy(self.replace_mode) self.s_r_dst_ident_label.setBuddy(self.s_r_dst_ident) self.xlabel_412.setBuddy(self.results_count) self.xlabel_413.setBuddy(self.starting_from) self.xlabel_41.setBuddy(self.multiple_separator) self.label_31.setBuddy(self.test_text) self.retranslateUi(MetadataBulkDialog) self.central_widget.setCurrentIndex(0) self.button_box.accepted.connect(MetadataBulkDialog.accept) self.button_box.rejected.connect(MetadataBulkDialog.reject) QtCore.QMetaObject.connectSlotsByName(MetadataBulkDialog) MetadataBulkDialog.setTabOrder(self.central_widget, self.authors) MetadataBulkDialog.setTabOrder(self.authors, self.auto_author_sort) MetadataBulkDialog.setTabOrder(self.auto_author_sort, self.swap_title_and_author) MetadataBulkDialog.setTabOrder(self.swap_title_and_author, self.author_sort) MetadataBulkDialog.setTabOrder(self.author_sort, self.rating) MetadataBulkDialog.setTabOrder(self.rating, self.apply_rating) MetadataBulkDialog.setTabOrder(self.apply_rating, self.publisher) MetadataBulkDialog.setTabOrder(self.publisher, self.clear_pub) MetadataBulkDialog.setTabOrder(self.clear_pub, self.tags) MetadataBulkDialog.setTabOrder(self.tags, self.tag_editor_button) MetadataBulkDialog.setTabOrder(self.tag_editor_button, self.remove_tags) MetadataBulkDialog.setTabOrder(self.remove_tags, self.remove_all_tags) MetadataBulkDialog.setTabOrder(self.remove_all_tags, self.series) MetadataBulkDialog.setTabOrder(self.series, self.clear_series) MetadataBulkDialog.setTabOrder(self.clear_series, self.autonumber_series) MetadataBulkDialog.setTabOrder(self.autonumber_series, self.series_numbering_restarts) MetadataBulkDialog.setTabOrder(self.series_numbering_restarts, self.series_start_number) MetadataBulkDialog.setTabOrder(self.series_start_number, self.series_increment) MetadataBulkDialog.setTabOrder(self.series_increment, self.adddate) MetadataBulkDialog.setTabOrder(self.adddate, self.clear_adddate_button) MetadataBulkDialog.setTabOrder(self.clear_adddate_button, self.apply_adddate) MetadataBulkDialog.setTabOrder(self.apply_adddate, self.pubdate) MetadataBulkDialog.setTabOrder(self.pubdate, self.clear_pubdate_button) MetadataBulkDialog.setTabOrder(self.clear_pubdate_button, self.apply_pubdate) MetadataBulkDialog.setTabOrder(self.apply_pubdate, self.languages) MetadataBulkDialog.setTabOrder(self.languages, self.clear_languages) MetadataBulkDialog.setTabOrder(self.clear_languages, self.remove_conversion_settings) MetadataBulkDialog.setTabOrder(self.remove_conversion_settings, self.restore_original) MetadataBulkDialog.setTabOrder(self.restore_original, self.change_title_to_title_case) MetadataBulkDialog.setTabOrder(self.change_title_to_title_case, self.casing_algorithm) MetadataBulkDialog.setTabOrder(self.casing_algorithm, self.cover_generate) MetadataBulkDialog.setTabOrder(self.cover_generate, self.cover_remove) MetadataBulkDialog.setTabOrder(self.cover_remove, self.cover_trim) MetadataBulkDialog.setTabOrder(self.cover_trim, self.cover_from_fmt) MetadataBulkDialog.setTabOrder(self.cover_from_fmt, self.cover_clone) MetadataBulkDialog.setTabOrder(self.cover_clone, self.button_config_cover_gen) MetadataBulkDialog.setTabOrder(self.button_config_cover_gen, self.comments_button) MetadataBulkDialog.setTabOrder(self.comments_button, self.query_field) MetadataBulkDialog.setTabOrder(self.query_field, self.save_button) MetadataBulkDialog.setTabOrder(self.save_button, self.remove_button) MetadataBulkDialog.setTabOrder(self.remove_button, self.search_field) MetadataBulkDialog.setTabOrder(self.search_field, self.search_mode) MetadataBulkDialog.setTabOrder(self.search_mode, self.s_r_src_ident) MetadataBulkDialog.setTabOrder(self.s_r_src_ident, self.s_r_template) MetadataBulkDialog.setTabOrder(self.s_r_template, self.search_for) MetadataBulkDialog.setTabOrder(self.search_for, self.case_sensitive) MetadataBulkDialog.setTabOrder(self.case_sensitive, self.replace_with) MetadataBulkDialog.setTabOrder(self.replace_with, self.replace_func) MetadataBulkDialog.setTabOrder(self.replace_func, self.destination_field) MetadataBulkDialog.setTabOrder(self.destination_field, self.replace_mode) MetadataBulkDialog.setTabOrder(self.replace_mode, self.comma_separated) MetadataBulkDialog.setTabOrder(self.comma_separated, self.s_r_dst_ident) MetadataBulkDialog.setTabOrder(self.s_r_dst_ident, self.results_count) MetadataBulkDialog.setTabOrder(self.results_count, self.starting_from) MetadataBulkDialog.setTabOrder(self.starting_from, self.multiple_separator) MetadataBulkDialog.setTabOrder(self.multiple_separator, self.scrollArea11) MetadataBulkDialog.setTabOrder(self.scrollArea11, self.test_text) MetadataBulkDialog.setTabOrder(self.test_text, self.test_result) MetadataBulkDialog.setTabOrder(self.test_result, self.refresh_book_list)
def setupUi(self, MetadataBulkDialog): MetadataBulkDialog.setObjectName(_fromUtf8("MetadataBulkDialog")) MetadataBulkDialog.resize(962, 645) MetadataBulkDialog.setWindowTitle(_("Edit Meta information")) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(_fromUtf8(I("edit_input.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) MetadataBulkDialog.setWindowIcon(icon) self.gridLayout_2 = QtGui.QGridLayout(MetadataBulkDialog) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.box_title = QtGui.QLabel(MetadataBulkDialog) self.box_title.setText(_fromUtf8("")) self.box_title.setAlignment(QtCore.Qt.AlignCenter) self.box_title.setObjectName(_fromUtf8("box_title")) self.gridLayout_2.addWidget(self.box_title, 0, 0, 1, 1) self.scrollArea = QtGui.QScrollArea(MetadataBulkDialog) self.scrollArea.setFrameShape(QtGui.QFrame.NoFrame) self.scrollArea.setLineWidth(0) self.scrollArea.setWidgetResizable(True) self.scrollArea.setObjectName(_fromUtf8("scrollArea")) self.scrollAreaWidgetContents = QtGui.QWidget() self.scrollAreaWidgetContents.setGeometry(QtCore.QRect(0, 0, 950, 576)) self.scrollAreaWidgetContents.setObjectName(_fromUtf8("scrollAreaWidgetContents")) self.verticalLayout_2 = QtGui.QVBoxLayout(self.scrollAreaWidgetContents) self.verticalLayout_2.setMargin(0) self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.central_widget = QtGui.QTabWidget(self.scrollAreaWidgetContents) self.central_widget.setObjectName(_fromUtf8("central_widget")) self.tabWidgetPage1 = QtGui.QWidget() self.tabWidgetPage1.setObjectName(_fromUtf8("tabWidgetPage1")) self.gridLayout = QtGui.QGridLayout(self.tabWidgetPage1) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.label_2 = QtGui.QLabel(self.tabWidgetPage1) self.label_2.setText(_("&Author(s): ")) self.label_2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_2.setObjectName(_fromUtf8("label_2")) self.gridLayout.addWidget(self.label_2, 0, 0, 1, 1) self.authors = EditWithComplete(self.tabWidgetPage1) self.authors.setEditable(True) self.authors.setObjectName(_fromUtf8("authors")) self.gridLayout.addWidget(self.authors, 0, 1, 1, 1) self.horizontalLayout_2 = QtGui.QHBoxLayout() self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.auto_author_sort = QtGui.QCheckBox(self.tabWidgetPage1) self.auto_author_sort.setText(_("A&utomatically set author sort")) self.auto_author_sort.setObjectName(_fromUtf8("auto_author_sort")) self.horizontalLayout_2.addWidget(self.auto_author_sort) self.swap_title_and_author = QtGui.QCheckBox(self.tabWidgetPage1) self.swap_title_and_author.setText(_("&Swap title and author")) self.swap_title_and_author.setObjectName(_fromUtf8("swap_title_and_author")) self.horizontalLayout_2.addWidget(self.swap_title_and_author) self.gridLayout.addLayout(self.horizontalLayout_2, 1, 1, 1, 1) self.label_8 = QtGui.QLabel(self.tabWidgetPage1) self.label_8.setText(_("Author s&ort: ")) self.label_8.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_8.setObjectName(_fromUtf8("label_8")) self.gridLayout.addWidget(self.label_8, 2, 0, 1, 1) self.author_sort = EnLineEdit(self.tabWidgetPage1) self.author_sort.setToolTip(_("Specify how the author(s) of this book should be sorted. For example Charles Dickens should be sorted as Dickens, Charles.")) self.author_sort.setObjectName(_fromUtf8("author_sort")) self.gridLayout.addWidget(self.author_sort, 2, 1, 1, 1) self.label_6 = QtGui.QLabel(self.tabWidgetPage1) self.label_6.setText(_("&Rating:")) self.label_6.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_6.setObjectName(_fromUtf8("label_6")) self.gridLayout.addWidget(self.label_6, 3, 0, 1, 1) self.rating = QtGui.QSpinBox(self.tabWidgetPage1) self.rating.setToolTip(_("Rating of this book. 0-5 stars")) self.rating.setWhatsThis(_("Rating of this book. 0-5 stars")) self.rating.setButtonSymbols(QtGui.QAbstractSpinBox.PlusMinus) self.rating.setSpecialValueText(_("No change")) self.rating.setSuffix(_(" stars")) self.rating.setMinimum(-1) self.rating.setMaximum(5) self.rating.setProperty("value", -1) self.rating.setObjectName(_fromUtf8("rating")) self.gridLayout.addWidget(self.rating, 3, 1, 1, 1) self.label_3 = QtGui.QLabel(self.tabWidgetPage1) self.label_3.setText(_("&Publisher: ")) self.label_3.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_3.setObjectName(_fromUtf8("label_3")) self.gridLayout.addWidget(self.label_3, 4, 0, 1, 1) self.publisher = EditWithComplete(self.tabWidgetPage1) self.publisher.setEditable(True) self.publisher.setObjectName(_fromUtf8("publisher")) self.gridLayout.addWidget(self.publisher, 4, 1, 1, 1) self.label_4 = QtGui.QLabel(self.tabWidgetPage1) self.label_4.setText(_("Add ta&gs: ")) self.label_4.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_4.setObjectName(_fromUtf8("label_4")) self.gridLayout.addWidget(self.label_4, 5, 0, 1, 1) self.tags = EditWithComplete(self.tabWidgetPage1) self.tags.setToolTip(_("Tags categorize the book. This is particularly useful while searching. <br><br>They can be any words or phrases, separated by commas.")) self.tags.setObjectName(_fromUtf8("tags")) self.gridLayout.addWidget(self.tags, 5, 1, 1, 1) self.tag_editor_button = QtGui.QToolButton(self.tabWidgetPage1) self.tag_editor_button.setToolTip(_("Open Tag Editor")) self.tag_editor_button.setText(_("Open Tag Editor")) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(_fromUtf8(I("chapters.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.tag_editor_button.setIcon(icon1) self.tag_editor_button.setObjectName(_fromUtf8("tag_editor_button")) self.gridLayout.addWidget(self.tag_editor_button, 5, 2, 1, 1) self.label = QtGui.QLabel(self.tabWidgetPage1) self.label.setText(_("&Remove tags:")) self.label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label.setObjectName(_fromUtf8("label")) self.gridLayout.addWidget(self.label, 6, 0, 1, 1) self.remove_tags = EditWithComplete(self.tabWidgetPage1) self.remove_tags.setToolTip(_("Comma separated list of tags to remove from the books. ")) self.remove_tags.setObjectName(_fromUtf8("remove_tags")) self.gridLayout.addWidget(self.remove_tags, 6, 1, 1, 1) self.remove_all_tags = QtGui.QCheckBox(self.tabWidgetPage1) self.remove_all_tags.setToolTip(_("Check this box to remove all tags from the books.")) self.remove_all_tags.setText(_("Remove &all")) self.remove_all_tags.setObjectName(_fromUtf8("remove_all_tags")) self.gridLayout.addWidget(self.remove_all_tags, 6, 2, 1, 1) self.label_7 = QtGui.QLabel(self.tabWidgetPage1) self.label_7.setText(_("&Series:")) self.label_7.setTextFormat(QtCore.Qt.PlainText) self.label_7.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_7.setObjectName(_fromUtf8("label_7")) self.gridLayout.addWidget(self.label_7, 7, 0, 1, 1) self.series = EditWithComplete(self.tabWidgetPage1) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.series.sizePolicy().hasHeightForWidth()) self.series.setSizePolicy(sizePolicy) self.series.setToolTip(_("List of known series. You can add new series.")) self.series.setWhatsThis(_("List of known series. You can add new series.")) self.series.setEditable(True) self.series.setInsertPolicy(QtGui.QComboBox.InsertAlphabetically) self.series.setSizeAdjustPolicy(QtGui.QComboBox.AdjustToMinimumContentsLengthWithIcon) self.series.setMinimumContentsLength(40) self.series.setObjectName(_fromUtf8("series")) self.gridLayout.addWidget(self.series, 7, 1, 1, 1) self.clear_series = QtGui.QCheckBox(self.tabWidgetPage1) self.clear_series.setToolTip(_("If checked, the series will be cleared")) self.clear_series.setText(_("&Clear series")) self.clear_series.setObjectName(_fromUtf8("clear_series")) self.gridLayout.addWidget(self.clear_series, 7, 2, 1, 1) self.HLayout_3 = QtGui.QHBoxLayout() self.HLayout_3.setObjectName(_fromUtf8("HLayout_3")) self.autonumber_series = QtGui.QCheckBox(self.tabWidgetPage1) self.autonumber_series.setEnabled(False) self.autonumber_series.setToolTip(_("If not checked, the series number for the books will be set to 1.\n" "If checked, selected books will be automatically numbered, in the order\n" "you selected them. So if you selected Book A and then Book B,\n" "Book A will have series number 1 and Book B series number 2.")) self.autonumber_series.setText(_("&Automatically number books in this series")) self.autonumber_series.setObjectName(_fromUtf8("autonumber_series")) self.HLayout_3.addWidget(self.autonumber_series) self.series_numbering_restarts = QtGui.QCheckBox(self.tabWidgetPage1) self.series_numbering_restarts.setEnabled(False) self.series_numbering_restarts.setToolTip(_("Series will normally be renumbered from the highest number in the database\n" "for that series. Checking this box will tell calibre to start numbering\n" "from the value in the box")) self.series_numbering_restarts.setText(_("&Force numbers to start with:")) self.series_numbering_restarts.setObjectName(_fromUtf8("series_numbering_restarts")) self.HLayout_3.addWidget(self.series_numbering_restarts) self.series_start_number = QtGui.QSpinBox(self.tabWidgetPage1) self.series_start_number.setEnabled(False) self.series_start_number.setMinimum(1) self.series_start_number.setMaximum(99000000) self.series_start_number.setProperty("value", 1) self.series_start_number.setObjectName(_fromUtf8("series_start_number")) self.HLayout_3.addWidget(self.series_start_number) self.gridLayout.addLayout(self.HLayout_3, 8, 1, 1, 1) self.label_10 = QtGui.QLabel(self.tabWidgetPage1) self.label_10.setText(_("&Date:")) self.label_10.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_10.setObjectName(_fromUtf8("label_10")) self.gridLayout.addWidget(self.label_10, 9, 0, 1, 1) self.horizontalLayout_5 = QtGui.QHBoxLayout() self.horizontalLayout_5.setObjectName(_fromUtf8("horizontalLayout_5")) self.adddate = QtGui.QDateTimeEdit(self.tabWidgetPage1) self.adddate.setDisplayFormat(_("d MMM yyyy")) self.adddate.setCalendarPopup(True) self.adddate.setObjectName(_fromUtf8("adddate")) self.horizontalLayout_5.addWidget(self.adddate) self.clear_adddate_button = QtGui.QToolButton(self.tabWidgetPage1) self.clear_adddate_button.setText(_("...")) icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap(_fromUtf8(I("trash.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.clear_adddate_button.setIcon(icon2) self.clear_adddate_button.setObjectName(_fromUtf8("clear_adddate_button")) self.horizontalLayout_5.addWidget(self.clear_adddate_button) self.gridLayout.addLayout(self.horizontalLayout_5, 9, 1, 1, 1) self.apply_adddate = QtGui.QCheckBox(self.tabWidgetPage1) self.apply_adddate.setText(_("&Apply date")) self.apply_adddate.setObjectName(_fromUtf8("apply_adddate")) self.gridLayout.addWidget(self.apply_adddate, 9, 2, 1, 1) self.label_9 = QtGui.QLabel(self.tabWidgetPage1) self.label_9.setText(_("&Published:")) self.label_9.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_9.setObjectName(_fromUtf8("label_9")) self.gridLayout.addWidget(self.label_9, 10, 0, 1, 1) self.horizontalLayout_4 = QtGui.QHBoxLayout() self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4")) self.pubdate = QtGui.QDateTimeEdit(self.tabWidgetPage1) self.pubdate.setDisplayFormat("MMM yyyy") self.pubdate.setCalendarPopup(True) self.pubdate.setObjectName(_fromUtf8("pubdate")) self.horizontalLayout_4.addWidget(self.pubdate) self.clear_pubdate_button = QtGui.QToolButton(self.tabWidgetPage1) self.clear_pubdate_button.setToolTip(_("Clear published date")) self.clear_pubdate_button.setText(_("...")) self.clear_pubdate_button.setIcon(icon2) self.clear_pubdate_button.setObjectName(_fromUtf8("clear_pubdate_button")) self.horizontalLayout_4.addWidget(self.clear_pubdate_button) self.gridLayout.addLayout(self.horizontalLayout_4, 10, 1, 1, 1) self.apply_pubdate = QtGui.QCheckBox(self.tabWidgetPage1) self.apply_pubdate.setText(_("&Apply date")) self.apply_pubdate.setObjectName(_fromUtf8("apply_pubdate")) self.gridLayout.addWidget(self.apply_pubdate, 10, 2, 1, 1) self.label_11 = QtGui.QLabel(self.tabWidgetPage1) self.label_11.setText(_("&Languages:")) self.label_11.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_11.setObjectName(_fromUtf8("label_11")) self.gridLayout.addWidget(self.label_11, 11, 0, 1, 1) self.languages = LanguagesEdit(self.tabWidgetPage1) self.languages.setObjectName(_fromUtf8("languages")) self.gridLayout.addWidget(self.languages, 11, 1, 1, 1) self.clear_languages = QtGui.QCheckBox(self.tabWidgetPage1) self.clear_languages.setText(_("Remove &all")) self.clear_languages.setObjectName(_fromUtf8("clear_languages")) self.gridLayout.addWidget(self.clear_languages, 11, 2, 1, 1) self.label_5 = QtGui.QLabel(self.tabWidgetPage1) self.label_5.setText(_("Remove &format:")) self.label_5.setObjectName(_fromUtf8("label_5")) self.gridLayout.addWidget(self.label_5, 12, 0, 1, 1) self.horizontalLayout_7 = QtGui.QHBoxLayout() self.horizontalLayout_7.setObjectName(_fromUtf8("horizontalLayout_7")) self.remove_format = QtGui.QComboBox(self.tabWidgetPage1) self.remove_format.setMaximumSize(QtCore.QSize(120, 16777215)) self.remove_format.setObjectName(_fromUtf8("remove_format")) self.horizontalLayout_7.addWidget(self.remove_format) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_7.addItem(spacerItem) self.restore_original = QtGui.QCheckBox(self.tabWidgetPage1) self.restore_original.setToolTip(_("When doing a same format to same format conversion, for e.g., EPUB to EPUB, calibre saves the original EPUB as ORIGINAL_EPUB. This option tells calibre to restore the EPUB from ORIGINAL_EPUB. Useful if you did a bulk conversion of a large number of books and something went wrong.")) self.restore_original.setText(_("Restore pre conversion &originals, if available")) self.restore_original.setObjectName(_fromUtf8("restore_original")) self.horizontalLayout_7.addWidget(self.restore_original) self.gridLayout.addLayout(self.horizontalLayout_7, 12, 1, 1, 1) spacerItem1 = QtGui.QSpacerItem(20, 15, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed) self.gridLayout.addItem(spacerItem1, 13, 0, 1, 1) self.horizontalLayout_3 = QtGui.QHBoxLayout() self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3")) self.change_title_to_title_case = QtGui.QCheckBox(self.tabWidgetPage1) self.change_title_to_title_case.setToolTip(_("Force the title to be in title case. If both this and swap authors are checked,\n" "title and author are swapped before the title case is set")) self.change_title_to_title_case.setText(_("Change title to title &case")) self.change_title_to_title_case.setObjectName(_fromUtf8("change_title_to_title_case")) self.horizontalLayout_3.addWidget(self.change_title_to_title_case) self.update_title_sort = QtGui.QCheckBox(self.tabWidgetPage1) self.update_title_sort.setToolTip(_("Update title sort based on the current title. This will be applied only after other changes to title.")) self.update_title_sort.setText(_("Update &title sort")) self.update_title_sort.setObjectName(_fromUtf8("update_title_sort")) self.horizontalLayout_3.addWidget(self.update_title_sort) spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_3.addItem(spacerItem2) self.remove_conversion_settings = QtGui.QCheckBox(self.tabWidgetPage1) self.remove_conversion_settings.setToolTip(_("Remove stored conversion settings for the selected books.\n" "\n" "Future conversion of these books will use the default settings.")) self.remove_conversion_settings.setText(_("Remove &stored conversion settings for the selected books")) self.remove_conversion_settings.setObjectName(_fromUtf8("remove_conversion_settings")) self.horizontalLayout_3.addWidget(self.remove_conversion_settings) self.gridLayout.addLayout(self.horizontalLayout_3, 14, 0, 1, 2) self.groupBox = QtGui.QGroupBox(self.tabWidgetPage1) self.groupBox.setTitle(_("Change &cover")) self.groupBox.setObjectName(_fromUtf8("groupBox")) self.horizontalLayout = QtGui.QHBoxLayout(self.groupBox) self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.cover_generate = QtGui.QRadioButton(self.groupBox) self.cover_generate.setText(_("&Generate default cover")) self.cover_generate.setObjectName(_fromUtf8("cover_generate")) self.horizontalLayout.addWidget(self.cover_generate) self.cover_remove = QtGui.QRadioButton(self.groupBox) self.cover_remove.setText(_("&Remove cover")) self.cover_remove.setObjectName(_fromUtf8("cover_remove")) self.horizontalLayout.addWidget(self.cover_remove) self.cover_from_fmt = QtGui.QRadioButton(self.groupBox) self.cover_from_fmt.setText(_("Set from &ebook file(s)")) self.cover_from_fmt.setObjectName(_fromUtf8("cover_from_fmt")) self.horizontalLayout.addWidget(self.cover_from_fmt) self.gridLayout.addWidget(self.groupBox, 15, 0, 1, 2) spacerItem3 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem3, 16, 0, 1, 1) self.central_widget.addTab(self.tabWidgetPage1, _fromUtf8("")) self.tab = QtGui.QWidget() self.tab.setObjectName(_fromUtf8("tab")) self.central_widget.addTab(self.tab, _fromUtf8("")) self.tabWidgetPage3 = QtGui.QWidget() self.tabWidgetPage3.setObjectName(_fromUtf8("tabWidgetPage3")) self.vargrid = QtGui.QGridLayout(self.tabWidgetPage3) self.vargrid.setSizeConstraint(QtGui.QLayout.SetMinimumSize) self.vargrid.setObjectName(_fromUtf8("vargrid")) self.s_r_heading = QtGui.QLabel(self.tabWidgetPage3) self.s_r_heading.setWordWrap(True) self.s_r_heading.setOpenExternalLinks(True) self.s_r_heading.setObjectName(_fromUtf8("s_r_heading")) self.vargrid.addWidget(self.s_r_heading, 0, 0, 1, 4) self.filler = QtGui.QLabel(self.tabWidgetPage3) self.filler.setText(_fromUtf8("")) self.filler.setObjectName(_fromUtf8("filler")) self.vargrid.addWidget(self.filler, 1, 0, 1, 1) self.line = QtGui.QFrame(self.tabWidgetPage3) self.line.setFrameShape(QtGui.QFrame.HLine) self.line.setFrameShadow(QtGui.QFrame.Sunken) self.line.setObjectName(_fromUtf8("line")) self.vargrid.addWidget(self.line, 2, 0, 1, 3) self.xlabel_22 = QtGui.QLabel(self.tabWidgetPage3) self.xlabel_22.setText(_("Load searc&h/replace:")) self.xlabel_22.setObjectName(_fromUtf8("xlabel_22")) self.vargrid.addWidget(self.xlabel_22, 3, 0, 1, 1) self.query_field = QtGui.QComboBox(self.tabWidgetPage3) self.query_field.setToolTip(_("Select saved search/replace to load.")) self.query_field.setObjectName(_fromUtf8("query_field")) self.vargrid.addWidget(self.query_field, 3, 1, 1, 1) self.horizontalLayout_6 = QtGui.QHBoxLayout() self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6")) spacerItem4 = QtGui.QSpacerItem(20, 20, QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Minimum) self.horizontalLayout_6.addItem(spacerItem4) self.save_button = QtGui.QPushButton(self.tabWidgetPage3) self.save_button.setToolTip(_("Save current search/replace")) self.save_button.setText(_("Sa&ve")) self.save_button.setObjectName(_fromUtf8("save_button")) self.horizontalLayout_6.addWidget(self.save_button) self.remove_button = QtGui.QPushButton(self.tabWidgetPage3) self.remove_button.setToolTip(_("Delete saved search/replace")) self.remove_button.setText(_("Delete")) self.remove_button.setObjectName(_fromUtf8("remove_button")) self.horizontalLayout_6.addWidget(self.remove_button) spacerItem5 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_6.addItem(spacerItem5) self.vargrid.addLayout(self.horizontalLayout_6, 3, 2, 1, 1) self.xlabel_21 = QtGui.QLabel(self.tabWidgetPage3) self.xlabel_21.setText(_("Search &field:")) self.xlabel_21.setObjectName(_fromUtf8("xlabel_21")) self.vargrid.addWidget(self.xlabel_21, 4, 0, 1, 1) self.search_field = QtGui.QComboBox(self.tabWidgetPage3) self.search_field.setToolTip(_("The name of the field that you want to search")) self.search_field.setObjectName(_fromUtf8("search_field")) self.vargrid.addWidget(self.search_field, 4, 1, 1, 1) self.HLayout_31 = QtGui.QHBoxLayout() self.HLayout_31.setObjectName(_fromUtf8("HLayout_31")) self.xlabel_24 = QtGui.QLabel(self.tabWidgetPage3) self.xlabel_24.setText(_("Search &mode:")) self.xlabel_24.setObjectName(_fromUtf8("xlabel_24")) self.HLayout_31.addWidget(self.xlabel_24) self.search_mode = QtGui.QComboBox(self.tabWidgetPage3) self.search_mode.setToolTip(_("Choose whether to use basic text matching or advanced regular expression matching")) self.search_mode.setObjectName(_fromUtf8("search_mode")) self.HLayout_31.addWidget(self.search_mode) spacerItem6 = QtGui.QSpacerItem(20, 10, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.HLayout_31.addItem(spacerItem6) self.vargrid.addLayout(self.HLayout_31, 4, 2, 1, 1) self.s_r_src_ident_label = QtGui.QLabel(self.tabWidgetPage3) self.s_r_src_ident_label.setText(_("Identifier type:")) self.s_r_src_ident_label.setObjectName(_fromUtf8("s_r_src_ident_label")) self.vargrid.addWidget(self.s_r_src_ident_label, 5, 0, 1, 1) self.s_r_src_ident = QtGui.QComboBox(self.tabWidgetPage3) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(100) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.s_r_src_ident.sizePolicy().hasHeightForWidth()) self.s_r_src_ident.setSizePolicy(sizePolicy) self.s_r_src_ident.setToolTip(_("Choose which identifier type to operate upon")) self.s_r_src_ident.setObjectName(_fromUtf8("s_r_src_ident")) self.vargrid.addWidget(self.s_r_src_ident, 5, 1, 1, 1) self.template_label = QtGui.QLabel(self.tabWidgetPage3) self.template_label.setText(_("Te&mplate:")) self.template_label.setObjectName(_fromUtf8("template_label")) self.vargrid.addWidget(self.template_label, 5, 0, 1, 1) self.s_r_template = HistoryLineEdit(self.tabWidgetPage3) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(100) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.s_r_template.sizePolicy().hasHeightForWidth()) self.s_r_template.setSizePolicy(sizePolicy) self.s_r_template.setToolTip(_("Enter a template to be used as the source for the search/replace")) self.s_r_template.setObjectName(_fromUtf8("s_r_template")) self.vargrid.addWidget(self.s_r_template, 5, 1, 1, 1) self.xlabel_2 = QtGui.QLabel(self.tabWidgetPage3) self.xlabel_2.setText(_("&Search for:")) self.xlabel_2.setObjectName(_fromUtf8("xlabel_2")) self.vargrid.addWidget(self.xlabel_2, 6, 0, 1, 1) self.search_for = HistoryLineEdit(self.tabWidgetPage3) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(100) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.search_for.sizePolicy().hasHeightForWidth()) self.search_for.setSizePolicy(sizePolicy) self.search_for.setToolTip(_("Enter what you are looking for, either plain text or a regular expression, depending on the mode")) self.search_for.setObjectName(_fromUtf8("search_for")) self.vargrid.addWidget(self.search_for, 6, 1, 1, 1) self.case_sensitive = QtGui.QCheckBox(self.tabWidgetPage3) self.case_sensitive.setToolTip(_("Check this box if the search string must match exactly upper and lower case. Uncheck it if case is to be ignored")) self.case_sensitive.setText(_("Cas&e sensitive")) self.case_sensitive.setChecked(True) self.case_sensitive.setObjectName(_fromUtf8("case_sensitive")) self.vargrid.addWidget(self.case_sensitive, 6, 2, 1, 1) self.xlabel_4 = QtGui.QLabel(self.tabWidgetPage3) self.xlabel_4.setText(_("&Replace with:")) self.xlabel_4.setObjectName(_fromUtf8("xlabel_4")) self.vargrid.addWidget(self.xlabel_4, 7, 0, 1, 1) self.replace_with = HistoryLineEdit(self.tabWidgetPage3) self.replace_with.setToolTip(_("The replacement text. The matched search text will be replaced with this string")) self.replace_with.setObjectName(_fromUtf8("replace_with")) self.vargrid.addWidget(self.replace_with, 7, 1, 1, 1) self.verticalLayout = QtGui.QHBoxLayout() self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.label_41 = QtGui.QLabel(self.tabWidgetPage3) self.label_41.setText(_("&Apply function after replace:")) self.label_41.setObjectName(_fromUtf8("label_41")) self.verticalLayout.addWidget(self.label_41) self.replace_func = QtGui.QComboBox(self.tabWidgetPage3) self.replace_func.setToolTip(_("Specify how the text is to be processed after matching and replacement. In character mode, the entire\n" "field is processed. In regular expression mode, only the matched text is processed")) self.replace_func.setObjectName(_fromUtf8("replace_func")) self.verticalLayout.addWidget(self.replace_func) spacerItem7 = QtGui.QSpacerItem(20, 10, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.verticalLayout.addItem(spacerItem7) self.vargrid.addLayout(self.verticalLayout, 7, 2, 1, 1) self.destination_field_label = QtGui.QLabel(self.tabWidgetPage3) self.destination_field_label.setText(_("&Destination field:")) self.destination_field_label.setObjectName(_fromUtf8("destination_field_label")) self.vargrid.addWidget(self.destination_field_label, 8, 0, 1, 1) self.destination_field = QtGui.QComboBox(self.tabWidgetPage3) self.destination_field.setToolTip(_("The field that the text will be put into after all replacements.\n" "If blank, the source field is used if the field is modifiable")) self.destination_field.setObjectName(_fromUtf8("destination_field")) self.vargrid.addWidget(self.destination_field, 8, 1, 1, 1) self.verticalLayout1 = QtGui.QHBoxLayout() self.verticalLayout1.setObjectName(_fromUtf8("verticalLayout1")) self.replace_mode_label = QtGui.QLabel(self.tabWidgetPage3) self.replace_mode_label.setText(_("M&ode:")) self.replace_mode_label.setObjectName(_fromUtf8("replace_mode_label")) self.verticalLayout1.addWidget(self.replace_mode_label) self.replace_mode = QtGui.QComboBox(self.tabWidgetPage3) self.replace_mode.setToolTip(_("Specify how the text should be copied into the destination.")) self.replace_mode.setObjectName(_fromUtf8("replace_mode")) self.verticalLayout1.addWidget(self.replace_mode) self.comma_separated = QtGui.QCheckBox(self.tabWidgetPage3) self.comma_separated.setToolTip(_("Specifies whether result items should be split into multiple values or\n" "left as single values. This option has the most effect when the source field is\n" "not multiple and the destination field is multiple")) self.comma_separated.setText(_("Split &result")) self.comma_separated.setChecked(True) self.comma_separated.setObjectName(_fromUtf8("comma_separated")) self.verticalLayout1.addWidget(self.comma_separated) spacerItem8 = QtGui.QSpacerItem(20, 10, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.verticalLayout1.addItem(spacerItem8) self.vargrid.addLayout(self.verticalLayout1, 8, 2, 1, 1) self.s_r_dst_ident_label = QtGui.QLabel(self.tabWidgetPage3) self.s_r_dst_ident_label.setText(_("Identifier type:")) self.s_r_dst_ident_label.setObjectName(_fromUtf8("s_r_dst_ident_label")) self.vargrid.addWidget(self.s_r_dst_ident_label, 9, 0, 1, 1) self.s_r_dst_ident = QtGui.QLineEdit(self.tabWidgetPage3) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(100) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.s_r_dst_ident.sizePolicy().hasHeightForWidth()) self.s_r_dst_ident.setSizePolicy(sizePolicy) self.s_r_dst_ident.setToolTip(_("Choose which identifier type to operate upon")) self.s_r_dst_ident.setObjectName(_fromUtf8("s_r_dst_ident")) self.vargrid.addWidget(self.s_r_dst_ident, 9, 1, 1, 1) self.horizontalLayout_21 = QtGui.QHBoxLayout() self.horizontalLayout_21.setObjectName(_fromUtf8("horizontalLayout_21")) spacerItem9 = QtGui.QSpacerItem(20, 0, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.horizontalLayout_21.addItem(spacerItem9) self.xlabel_412 = QtGui.QLabel(self.tabWidgetPage3) self.xlabel_412.setText(_("For multiple-valued fields, sho&w")) self.xlabel_412.setObjectName(_fromUtf8("xlabel_412")) self.horizontalLayout_21.addWidget(self.xlabel_412) self.results_count = QtGui.QSpinBox(self.tabWidgetPage3) self.results_count.setEnabled(True) self.results_count.setMinimum(1) self.results_count.setMaximum(999) self.results_count.setProperty("value", 999) self.results_count.setObjectName(_fromUtf8("results_count")) self.horizontalLayout_21.addWidget(self.results_count) self.xlabel_4121 = QtGui.QLabel(self.tabWidgetPage3) self.xlabel_4121.setText(_("values starting a&t")) self.xlabel_4121.setObjectName(_fromUtf8("xlabel_4121")) self.horizontalLayout_21.addWidget(self.xlabel_4121) self.starting_from = QtGui.QSpinBox(self.tabWidgetPage3) self.starting_from.setEnabled(True) self.starting_from.setMinimum(1) self.starting_from.setMaximum(999) self.starting_from.setProperty("value", 1) self.starting_from.setObjectName(_fromUtf8("starting_from")) self.horizontalLayout_21.addWidget(self.starting_from) self.xlabel_41 = QtGui.QLabel(self.tabWidgetPage3) self.xlabel_41.setText(_("with values separated b&y")) self.xlabel_41.setObjectName(_fromUtf8("xlabel_41")) self.horizontalLayout_21.addWidget(self.xlabel_41) self.multiple_separator = QtGui.QLineEdit(self.tabWidgetPage3) self.multiple_separator.setToolTip(_("Used when displaying test results to separate values in multiple-valued fields")) self.multiple_separator.setObjectName(_fromUtf8("multiple_separator")) self.horizontalLayout_21.addWidget(self.multiple_separator) self.vargrid.addLayout(self.horizontalLayout_21, 10, 1, 1, 2) self.scrollArea11 = QtGui.QScrollArea(self.tabWidgetPage3) self.scrollArea11.setFrameShape(QtGui.QFrame.NoFrame) self.scrollArea11.setWidgetResizable(True) self.scrollArea11.setObjectName(_fromUtf8("scrollArea11")) self.gridLayoutWidget_2 = QtGui.QWidget() self.gridLayoutWidget_2.setGeometry(QtCore.QRect(0, 0, 205, 66)) self.gridLayoutWidget_2.setObjectName(_fromUtf8("gridLayoutWidget_2")) self.testgrid = QtGui.QGridLayout(self.gridLayoutWidget_2) self.testgrid.setObjectName(_fromUtf8("testgrid")) self.xlabel_3 = QtGui.QLabel(self.gridLayoutWidget_2) self.xlabel_3.setText(_("Test text")) self.xlabel_3.setObjectName(_fromUtf8("xlabel_3")) self.testgrid.addWidget(self.xlabel_3, 7, 1, 1, 1) self.xlabel_31 = QtGui.QLabel(self.gridLayoutWidget_2) self.xlabel_31.setText(_("Test result")) self.xlabel_31.setObjectName(_fromUtf8("xlabel_31")) self.testgrid.addWidget(self.xlabel_31, 7, 2, 1, 1) self.label_31 = QtGui.QLabel(self.gridLayoutWidget_2) self.label_31.setText(_("Your test:")) self.label_31.setObjectName(_fromUtf8("label_31")) self.testgrid.addWidget(self.label_31, 8, 0, 1, 1) self.test_text = HistoryLineEdit(self.gridLayoutWidget_2) self.test_text.setObjectName(_fromUtf8("test_text")) self.testgrid.addWidget(self.test_text, 8, 1, 1, 1) self.test_result = QtGui.QLineEdit(self.gridLayoutWidget_2) self.test_result.setObjectName(_fromUtf8("test_result")) self.testgrid.addWidget(self.test_result, 8, 2, 1, 1) spacerItem10 = QtGui.QSpacerItem(20, 5, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.testgrid.addItem(spacerItem10, 25, 0, 1, 2) self.scrollArea11.setWidget(self.gridLayoutWidget_2) self.vargrid.addWidget(self.scrollArea11, 11, 0, 1, 4) self.central_widget.addTab(self.tabWidgetPage3, _fromUtf8("")) self.verticalLayout_2.addWidget(self.central_widget) self.scrollArea.setWidget(self.scrollAreaWidgetContents) self.gridLayout_2.addWidget(self.scrollArea, 1, 0, 1, 1) self.button_box = QtGui.QDialogButtonBox(MetadataBulkDialog) self.button_box.setOrientation(QtCore.Qt.Horizontal) self.button_box.setStandardButtons(QtGui.QDialogButtonBox.Apply|QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok) self.button_box.setObjectName(_fromUtf8("button_box")) self.gridLayout_2.addWidget(self.button_box, 2, 0, 1, 1) self.label_2.setBuddy(self.authors) self.label_8.setBuddy(self.author_sort) self.label_6.setBuddy(self.rating) self.label_3.setBuddy(self.publisher) self.label_4.setBuddy(self.tags) self.label.setBuddy(self.remove_tags) self.label_7.setBuddy(self.series) self.label_10.setBuddy(self.adddate) self.label_9.setBuddy(self.pubdate) self.label_11.setBuddy(self.languages) self.label_5.setBuddy(self.remove_format) self.xlabel_22.setBuddy(self.query_field) self.xlabel_21.setBuddy(self.search_field) self.xlabel_24.setBuddy(self.search_mode) self.s_r_src_ident_label.setBuddy(self.s_r_src_ident) self.template_label.setBuddy(self.s_r_template) self.xlabel_2.setBuddy(self.search_for) self.xlabel_4.setBuddy(self.replace_with) self.label_41.setBuddy(self.replace_func) self.destination_field_label.setBuddy(self.destination_field) self.replace_mode_label.setBuddy(self.replace_mode) self.s_r_dst_ident_label.setBuddy(self.s_r_dst_ident) self.xlabel_412.setBuddy(self.results_count) self.xlabel_4121.setBuddy(self.starting_from) self.xlabel_41.setBuddy(self.multiple_separator) self.retranslateUi(MetadataBulkDialog) self.central_widget.setCurrentIndex(0) QtCore.QObject.connect(self.button_box, QtCore.SIGNAL(_fromUtf8("accepted()")), MetadataBulkDialog.accept) QtCore.QObject.connect(self.button_box, QtCore.SIGNAL(_fromUtf8("rejected()")), MetadataBulkDialog.reject) QtCore.QMetaObject.connectSlotsByName(MetadataBulkDialog) MetadataBulkDialog.setTabOrder(self.authors, self.auto_author_sort) MetadataBulkDialog.setTabOrder(self.auto_author_sort, self.swap_title_and_author) MetadataBulkDialog.setTabOrder(self.swap_title_and_author, self.author_sort) MetadataBulkDialog.setTabOrder(self.author_sort, self.rating) MetadataBulkDialog.setTabOrder(self.rating, self.publisher) MetadataBulkDialog.setTabOrder(self.publisher, self.tags) MetadataBulkDialog.setTabOrder(self.tags, self.tag_editor_button) MetadataBulkDialog.setTabOrder(self.tag_editor_button, self.remove_tags) MetadataBulkDialog.setTabOrder(self.remove_tags, self.remove_all_tags) MetadataBulkDialog.setTabOrder(self.remove_all_tags, self.series) MetadataBulkDialog.setTabOrder(self.series, self.clear_series) MetadataBulkDialog.setTabOrder(self.clear_series, self.autonumber_series) MetadataBulkDialog.setTabOrder(self.autonumber_series, self.series_numbering_restarts) MetadataBulkDialog.setTabOrder(self.series_numbering_restarts, self.series_start_number) MetadataBulkDialog.setTabOrder(self.series_start_number, self.adddate) MetadataBulkDialog.setTabOrder(self.adddate, self.clear_adddate_button) MetadataBulkDialog.setTabOrder(self.clear_adddate_button, self.apply_adddate) MetadataBulkDialog.setTabOrder(self.apply_adddate, self.pubdate) MetadataBulkDialog.setTabOrder(self.pubdate, self.clear_pubdate_button) MetadataBulkDialog.setTabOrder(self.clear_pubdate_button, self.apply_pubdate) MetadataBulkDialog.setTabOrder(self.apply_pubdate, self.languages) MetadataBulkDialog.setTabOrder(self.languages, self.clear_languages) MetadataBulkDialog.setTabOrder(self.clear_languages, self.remove_format) MetadataBulkDialog.setTabOrder(self.remove_format, self.restore_original) MetadataBulkDialog.setTabOrder(self.restore_original, self.change_title_to_title_case) MetadataBulkDialog.setTabOrder(self.change_title_to_title_case, self.update_title_sort) MetadataBulkDialog.setTabOrder(self.update_title_sort, self.remove_conversion_settings) MetadataBulkDialog.setTabOrder(self.remove_conversion_settings, self.cover_generate) MetadataBulkDialog.setTabOrder(self.cover_generate, self.cover_remove) MetadataBulkDialog.setTabOrder(self.cover_remove, self.cover_from_fmt) MetadataBulkDialog.setTabOrder(self.cover_from_fmt, self.multiple_separator) MetadataBulkDialog.setTabOrder(self.multiple_separator, self.test_text) MetadataBulkDialog.setTabOrder(self.test_text, self.test_result) MetadataBulkDialog.setTabOrder(self.test_result, self.scrollArea) MetadataBulkDialog.setTabOrder(self.scrollArea, self.central_widget) MetadataBulkDialog.setTabOrder(self.central_widget, self.query_field) MetadataBulkDialog.setTabOrder(self.query_field, self.button_box) MetadataBulkDialog.setTabOrder(self.button_box, self.save_button) MetadataBulkDialog.setTabOrder(self.save_button, self.remove_button) MetadataBulkDialog.setTabOrder(self.remove_button, self.search_field) MetadataBulkDialog.setTabOrder(self.search_field, self.search_mode) MetadataBulkDialog.setTabOrder(self.search_mode, self.s_r_src_ident) MetadataBulkDialog.setTabOrder(self.s_r_src_ident, self.s_r_template) MetadataBulkDialog.setTabOrder(self.s_r_template, self.search_for) MetadataBulkDialog.setTabOrder(self.search_for, self.case_sensitive) MetadataBulkDialog.setTabOrder(self.case_sensitive, self.replace_with) MetadataBulkDialog.setTabOrder(self.replace_with, self.replace_func) MetadataBulkDialog.setTabOrder(self.replace_func, self.destination_field) MetadataBulkDialog.setTabOrder(self.destination_field, self.replace_mode) MetadataBulkDialog.setTabOrder(self.replace_mode, self.comma_separated) MetadataBulkDialog.setTabOrder(self.comma_separated, self.s_r_dst_ident) MetadataBulkDialog.setTabOrder(self.s_r_dst_ident, self.results_count) MetadataBulkDialog.setTabOrder(self.results_count, self.starting_from) MetadataBulkDialog.setTabOrder(self.starting_from, self.multiple_separator) MetadataBulkDialog.setTabOrder(self.multiple_separator, self.scrollArea11)
def setupUi(self, Dialog): Dialog.setObjectName(_fromUtf8("Dialog")) Dialog.resize(646, 503) Dialog.setWindowTitle(_("Dialog")) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(_fromUtf8(I("convert.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) Dialog.setWindowIcon(icon) self.gridLayout = QtGui.QGridLayout(Dialog) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.title_label = QtGui.QLabel(Dialog) self.title_label.setText(_("&Title:")) self.title_label.setObjectName(_fromUtf8("title_label")) self.gridLayout.addWidget(self.title_label, 0, 0, 1, 1) self.opt_title = EnLineEdit(Dialog) self.opt_title.setObjectName(_fromUtf8("opt_title")) self.gridLayout.addWidget(self.opt_title, 0, 1, 1, 1) self.author_label = QtGui.QLabel(Dialog) self.author_label.setText(_("&Author(s):")) self.author_label.setObjectName(_fromUtf8("author_label")) self.gridLayout.addWidget(self.author_label, 1, 0, 1, 1) self.opt_author = EnLineEdit(Dialog) self.opt_author.setObjectName(_fromUtf8("opt_author")) self.gridLayout.addWidget(self.opt_author, 1, 1, 1, 1) self.label_3 = QtGui.QLabel(Dialog) self.label_3.setText(_("&Number of Colors:")) self.label_3.setObjectName(_fromUtf8("label_3")) self.gridLayout.addWidget(self.label_3, 2, 0, 1, 1) self.opt_colors = QtGui.QSpinBox(Dialog) self.opt_colors.setMinimum(8) self.opt_colors.setMaximum(3200000) self.opt_colors.setSingleStep(8) self.opt_colors.setObjectName(_fromUtf8("opt_colors")) self.gridLayout.addWidget(self.opt_colors, 2, 1, 1, 1) self.label_4 = QtGui.QLabel(Dialog) self.label_4.setText(_("&Profile:")) self.label_4.setObjectName(_fromUtf8("label_4")) self.gridLayout.addWidget(self.label_4, 3, 0, 1, 1) self.opt_profile = QtGui.QComboBox(Dialog) self.opt_profile.setObjectName(_fromUtf8("opt_profile")) self.gridLayout.addWidget(self.opt_profile, 3, 1, 1, 1) self.opt_dont_normalize = QtGui.QCheckBox(Dialog) self.opt_dont_normalize.setText(_("Disable &normalize")) self.opt_dont_normalize.setObjectName(_fromUtf8("opt_dont_normalize")) self.gridLayout.addWidget(self.opt_dont_normalize, 4, 0, 1, 1) self.opt_keep_aspect_ratio = QtGui.QCheckBox(Dialog) self.opt_keep_aspect_ratio.setText(_("Keep &aspect ratio")) self.opt_keep_aspect_ratio.setObjectName(_fromUtf8("opt_keep_aspect_ratio")) self.gridLayout.addWidget(self.opt_keep_aspect_ratio, 5, 0, 1, 1) self.opt_dont_sharpen = QtGui.QCheckBox(Dialog) self.opt_dont_sharpen.setText(_("Disable &Sharpening")) self.opt_dont_sharpen.setObjectName(_fromUtf8("opt_dont_sharpen")) self.gridLayout.addWidget(self.opt_dont_sharpen, 6, 0, 1, 1) self.opt_landscape = QtGui.QCheckBox(Dialog) self.opt_landscape.setText(_("&Landscape")) self.opt_landscape.setObjectName(_fromUtf8("opt_landscape")) self.gridLayout.addWidget(self.opt_landscape, 9, 0, 1, 1) self.opt_no_sort = QtGui.QCheckBox(Dialog) self.opt_no_sort.setText(_("Don\'t so&rt")) self.opt_no_sort.setObjectName(_fromUtf8("opt_no_sort")) self.gridLayout.addWidget(self.opt_no_sort, 11, 0, 1, 1) self.buttonBox = QtGui.QDialogButtonBox(Dialog) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.gridLayout.addWidget(self.buttonBox, 13, 1, 1, 1) self.opt_right2left = QtGui.QCheckBox(Dialog) self.opt_right2left.setText(_("&Right to left")) self.opt_right2left.setObjectName(_fromUtf8("opt_right2left")) self.gridLayout.addWidget(self.opt_right2left, 10, 0, 1, 1) self.opt_despeckle = QtGui.QCheckBox(Dialog) self.opt_despeckle.setText(_("De&speckle")) self.opt_despeckle.setObjectName(_fromUtf8("opt_despeckle")) self.gridLayout.addWidget(self.opt_despeckle, 12, 0, 1, 1) self.opt_wide = QtGui.QCheckBox(Dialog) self.opt_wide.setText(_("&Wide")) self.opt_wide.setObjectName(_fromUtf8("opt_wide")) self.gridLayout.addWidget(self.opt_wide, 8, 0, 1, 1) self.opt_disable_trim = QtGui.QCheckBox(Dialog) self.opt_disable_trim.setText(_("Disable &Trimming")) self.opt_disable_trim.setObjectName(_fromUtf8("opt_disable_trim")) self.gridLayout.addWidget(self.opt_disable_trim, 7, 0, 1, 1) self.title_label.setBuddy(self.opt_title) self.author_label.setBuddy(self.opt_author) self.label_3.setBuddy(self.opt_colors) self.label_4.setBuddy(self.opt_profile) self.retranslateUi(Dialog) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), Dialog.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), Dialog.reject) QtCore.QMetaObject.connectSlotsByName(Dialog)
def setupUi(self, Form): Form.setObjectName(_fromUtf8("Form")) Form.resize(600, 500) self.horizontalLayout = QtGui.QHBoxLayout(Form) self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.groupBox_4 = QtGui.QGroupBox(Form) self.groupBox_4.setObjectName(_fromUtf8("groupBox_4")) self._2 = QtGui.QGridLayout(self.groupBox_4) self._2.setObjectName(_fromUtf8("_2")) self._4 = QtGui.QVBoxLayout() self._4.setSpacing(6) self._4.setMargin(0) self._4.setObjectName(_fromUtf8("_4")) self.label_5 = QtGui.QLabel(self.groupBox_4) self.label_5.setObjectName(_fromUtf8("label_5")) self._4.addWidget(self.label_5) self._5 = QtGui.QHBoxLayout() self._5.setSpacing(6) self._5.setMargin(0) self._5.setObjectName(_fromUtf8("_5")) self.cover_path = QtGui.QLineEdit(self.groupBox_4) self.cover_path.setReadOnly(True) self.cover_path.setObjectName(_fromUtf8("cover_path")) self._5.addWidget(self.cover_path) self.cover_button = QtGui.QToolButton(self.groupBox_4) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(_fromUtf8(I("document_open.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.cover_button.setIcon(icon) self.cover_button.setObjectName(_fromUtf8("cover_button")) self._5.addWidget(self.cover_button) self._4.addLayout(self._5) self._2.addLayout(self._4, 1, 0, 1, 1) self.opt_prefer_metadata_cover = QtGui.QCheckBox(self.groupBox_4) self.opt_prefer_metadata_cover.setChecked(True) self.opt_prefer_metadata_cover.setObjectName(_fromUtf8("opt_prefer_metadata_cover")) self._2.addWidget(self.opt_prefer_metadata_cover, 2, 0, 1, 1) self._3 = QtGui.QHBoxLayout() self._3.setObjectName(_fromUtf8("_3")) self.cover = ImageView(self.groupBox_4) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.cover.sizePolicy().hasHeightForWidth()) self.cover.setSizePolicy(sizePolicy) self.cover.setObjectName(_fromUtf8("cover")) self._3.addWidget(self.cover) self._2.addLayout(self._3, 0, 0, 1, 1) self.horizontalLayout.addWidget(self.groupBox_4) self.verticalLayout_2 = QtGui.QVBoxLayout() self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self._7 = QtGui.QGridLayout() self._7.setObjectName(_fromUtf8("_7")) self.label = QtGui.QLabel(Form) self.label.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label.setObjectName(_fromUtf8("label")) self._7.addWidget(self.label, 0, 0, 1, 1) self.title = EnLineEdit(Form) self.title.setObjectName(_fromUtf8("title")) self._7.addWidget(self.title, 0, 1, 1, 1) self.label_2 = QtGui.QLabel(Form) self.label_2.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_2.setObjectName(_fromUtf8("label_2")) self._7.addWidget(self.label_2, 1, 0, 1, 1) self.label_6 = QtGui.QLabel(Form) self.label_6.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_6.setObjectName(_fromUtf8("label_6")) self._7.addWidget(self.label_6, 2, 0, 1, 1) self.author_sort = EnLineEdit(Form) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.author_sort.sizePolicy().hasHeightForWidth()) self.author_sort.setSizePolicy(sizePolicy) self.author_sort.setObjectName(_fromUtf8("author_sort")) self._7.addWidget(self.author_sort, 2, 1, 1, 1) self.label_3 = QtGui.QLabel(Form) self.label_3.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_3.setObjectName(_fromUtf8("label_3")) self._7.addWidget(self.label_3, 3, 0, 1, 1) self.label_4 = QtGui.QLabel(Form) self.label_4.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_4.setObjectName(_fromUtf8("label_4")) self._7.addWidget(self.label_4, 4, 0, 1, 1) self.tags = EditWithComplete(Form) self.tags.setObjectName(_fromUtf8("tags")) self._7.addWidget(self.tags, 4, 1, 1, 1) self.label_7 = QtGui.QLabel(Form) self.label_7.setTextFormat(QtCore.Qt.PlainText) self.label_7.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) self.label_7.setObjectName(_fromUtf8("label_7")) self._7.addWidget(self.label_7, 5, 0, 1, 1) self.series = EditWithComplete(Form) sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(10) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth(self.series.sizePolicy().hasHeightForWidth()) self.series.setSizePolicy(sizePolicy) self.series.setEditable(True) self.series.setInsertPolicy(QtGui.QComboBox.InsertAlphabetically) self.series.setObjectName(_fromUtf8("series")) self._7.addWidget(self.series, 5, 1, 1, 1) self.series_index = QtGui.QDoubleSpinBox(Form) self.series_index.setMaximum(9999999999.99) self.series_index.setProperty("value", 1.0) self.series_index.setObjectName(_fromUtf8("series_index")) self._7.addWidget(self.series_index, 6, 1, 1, 1) self.publisher = EditWithComplete(Form) self.publisher.setEditable(True) self.publisher.setObjectName(_fromUtf8("publisher")) self._7.addWidget(self.publisher, 3, 1, 1, 1) self.author = EditWithComplete(Form) self.author.setEditable(True) self.author.setObjectName(_fromUtf8("author")) self._7.addWidget(self.author, 1, 1, 1, 1) self.verticalLayout_2.addLayout(self._7) self.comment = Editor(Form) self.comment.setObjectName(_fromUtf8("comment")) self.verticalLayout_2.addWidget(self.comment) self.horizontalLayout.addLayout(self.verticalLayout_2) self.label_5.setBuddy(self.cover_path) self.label.setBuddy(self.title) self.label_2.setBuddy(self.author) self.label_6.setBuddy(self.author_sort) self.label_3.setBuddy(self.publisher) self.label_4.setBuddy(self.tags) self.label_7.setBuddy(self.series) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) Form.setTabOrder(self.title, self.author) Form.setTabOrder(self.author, self.author_sort) Form.setTabOrder(self.author_sort, self.publisher) Form.setTabOrder(self.publisher, self.tags) Form.setTabOrder(self.tags, self.series) Form.setTabOrder(self.series, self.series_index) Form.setTabOrder(self.series_index, self.cover_path) Form.setTabOrder(self.cover_path, self.cover_button) Form.setTabOrder(self.cover_button, self.opt_prefer_metadata_cover)
def setupUi(self, Dialog): Dialog.setObjectName(_fromUtf8("Dialog")) Dialog.resize(646, 503) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(_fromUtf8(I("convert.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) Dialog.setWindowIcon(icon) self.gridLayout = QtGui.QGridLayout(Dialog) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.title_label = QtGui.QLabel(Dialog) self.title_label.setObjectName(_fromUtf8("title_label")) self.gridLayout.addWidget(self.title_label, 0, 0, 1, 1) self.opt_title = EnLineEdit(Dialog) self.opt_title.setObjectName(_fromUtf8("opt_title")) self.gridLayout.addWidget(self.opt_title, 0, 1, 1, 1) self.author_label = QtGui.QLabel(Dialog) self.author_label.setObjectName(_fromUtf8("author_label")) self.gridLayout.addWidget(self.author_label, 1, 0, 1, 1) self.opt_author = EnLineEdit(Dialog) self.opt_author.setObjectName(_fromUtf8("opt_author")) self.gridLayout.addWidget(self.opt_author, 1, 1, 1, 1) self.label_3 = QtGui.QLabel(Dialog) self.label_3.setObjectName(_fromUtf8("label_3")) self.gridLayout.addWidget(self.label_3, 2, 0, 1, 1) self.opt_colors = QtGui.QSpinBox(Dialog) self.opt_colors.setMinimum(8) self.opt_colors.setMaximum(3200000) self.opt_colors.setSingleStep(8) self.opt_colors.setObjectName(_fromUtf8("opt_colors")) self.gridLayout.addWidget(self.opt_colors, 2, 1, 1, 1) self.label_4 = QtGui.QLabel(Dialog) self.label_4.setObjectName(_fromUtf8("label_4")) self.gridLayout.addWidget(self.label_4, 3, 0, 1, 1) self.opt_profile = QtGui.QComboBox(Dialog) self.opt_profile.setObjectName(_fromUtf8("opt_profile")) self.gridLayout.addWidget(self.opt_profile, 3, 1, 1, 1) self.opt_dont_normalize = QtGui.QCheckBox(Dialog) self.opt_dont_normalize.setObjectName(_fromUtf8("opt_dont_normalize")) self.gridLayout.addWidget(self.opt_dont_normalize, 4, 0, 1, 1) self.opt_keep_aspect_ratio = QtGui.QCheckBox(Dialog) self.opt_keep_aspect_ratio.setObjectName( _fromUtf8("opt_keep_aspect_ratio")) self.gridLayout.addWidget(self.opt_keep_aspect_ratio, 5, 0, 1, 1) self.opt_dont_sharpen = QtGui.QCheckBox(Dialog) self.opt_dont_sharpen.setObjectName(_fromUtf8("opt_dont_sharpen")) self.gridLayout.addWidget(self.opt_dont_sharpen, 6, 0, 1, 1) self.opt_landscape = QtGui.QCheckBox(Dialog) self.opt_landscape.setObjectName(_fromUtf8("opt_landscape")) self.gridLayout.addWidget(self.opt_landscape, 9, 0, 1, 1) self.opt_no_sort = QtGui.QCheckBox(Dialog) self.opt_no_sort.setObjectName(_fromUtf8("opt_no_sort")) self.gridLayout.addWidget(self.opt_no_sort, 11, 0, 1, 1) self.buttonBox = QtGui.QDialogButtonBox(Dialog) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel | QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.gridLayout.addWidget(self.buttonBox, 13, 1, 1, 1) self.opt_right2left = QtGui.QCheckBox(Dialog) self.opt_right2left.setObjectName(_fromUtf8("opt_right2left")) self.gridLayout.addWidget(self.opt_right2left, 10, 0, 1, 1) self.opt_despeckle = QtGui.QCheckBox(Dialog) self.opt_despeckle.setObjectName(_fromUtf8("opt_despeckle")) self.gridLayout.addWidget(self.opt_despeckle, 12, 0, 1, 1) self.opt_wide = QtGui.QCheckBox(Dialog) self.opt_wide.setObjectName(_fromUtf8("opt_wide")) self.gridLayout.addWidget(self.opt_wide, 8, 0, 1, 1) self.opt_disable_trim = QtGui.QCheckBox(Dialog) self.opt_disable_trim.setObjectName(_fromUtf8("opt_disable_trim")) self.gridLayout.addWidget(self.opt_disable_trim, 7, 0, 1, 1) self.title_label.setBuddy(self.opt_title) self.author_label.setBuddy(self.opt_author) self.label_3.setBuddy(self.opt_colors) self.label_4.setBuddy(self.opt_profile) self.retranslateUi(Dialog) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), Dialog.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), Dialog.reject) QtCore.QMetaObject.connectSlotsByName(Dialog)
class Ui_Dialog(object): def setupUi(self, Dialog): Dialog.setObjectName(_fromUtf8("Dialog")) Dialog.resize(752, 472) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(_fromUtf8(I("search.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) Dialog.setWindowIcon(icon) self.gridLayout_2 = QtGui.QGridLayout(Dialog) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.label_5 = QtGui.QLabel(Dialog) self.label_5.setObjectName(_fromUtf8("label_5")) self.gridLayout_2.addWidget(self.label_5, 0, 0, 1, 1) self.matchkind = QtGui.QComboBox(Dialog) self.matchkind.setObjectName(_fromUtf8("matchkind")) self.matchkind.addItem(_fromUtf8("")) self.matchkind.addItem(_fromUtf8("")) self.matchkind.addItem(_fromUtf8("")) self.gridLayout_2.addWidget(self.matchkind, 0, 1, 1, 1) self.tabWidget = QtGui.QTabWidget(Dialog) self.tabWidget.setObjectName(_fromUtf8("tabWidget")) self.tab = QtGui.QWidget() self.tab.setObjectName(_fromUtf8("tab")) self.gridLayout_3 = QtGui.QGridLayout(self.tab) self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) self.groupBox = QtGui.QGroupBox(self.tab) self.groupBox.setObjectName(_fromUtf8("groupBox")) self.verticalLayout = QtGui.QVBoxLayout(self.groupBox) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.label = QtGui.QLabel(self.groupBox) self.label.setObjectName(_fromUtf8("label")) self.horizontalLayout.addWidget(self.label) self.all = QtGui.QLineEdit(self.groupBox) self.all.setObjectName(_fromUtf8("all")) self.horizontalLayout.addWidget(self.all) self.verticalLayout.addLayout(self.horizontalLayout) self.horizontalLayout_2 = QtGui.QHBoxLayout() self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.label_2 = QtGui.QLabel(self.groupBox) self.label_2.setObjectName(_fromUtf8("label_2")) self.horizontalLayout_2.addWidget(self.label_2) self.phrase = QtGui.QLineEdit(self.groupBox) self.phrase.setObjectName(_fromUtf8("phrase")) self.horizontalLayout_2.addWidget(self.phrase) self.verticalLayout.addLayout(self.horizontalLayout_2) self.horizontalLayout_3 = QtGui.QHBoxLayout() self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3")) self.label_3 = QtGui.QLabel(self.groupBox) self.label_3.setObjectName(_fromUtf8("label_3")) self.horizontalLayout_3.addWidget(self.label_3) self.any = QtGui.QLineEdit(self.groupBox) self.any.setObjectName(_fromUtf8("any")) self.horizontalLayout_3.addWidget(self.any) self.verticalLayout.addLayout(self.horizontalLayout_3) self.gridLayout_3.addWidget(self.groupBox, 0, 0, 1, 1) self.groupBox_2 = QtGui.QGroupBox(self.tab) self.groupBox_2.setObjectName(_fromUtf8("groupBox_2")) self.verticalLayout_2 = QtGui.QVBoxLayout(self.groupBox_2) self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.horizontalLayout_4 = QtGui.QHBoxLayout() self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4")) self.label_4 = QtGui.QLabel(self.groupBox_2) self.label_4.setObjectName(_fromUtf8("label_4")) self.horizontalLayout_4.addWidget(self.label_4) self.none = QtGui.QLineEdit(self.groupBox_2) self.none.setObjectName(_fromUtf8("none")) self.horizontalLayout_4.addWidget(self.none) self.verticalLayout_2.addLayout(self.horizontalLayout_4) self.label_6 = QtGui.QLabel(self.groupBox_2) self.label_6.setMaximumSize(QtCore.QSize(16777215, 30)) self.label_6.setOpenExternalLinks(True) self.label_6.setObjectName(_fromUtf8("label_6")) self.verticalLayout_2.addWidget(self.label_6) self.gridLayout_3.addWidget(self.groupBox_2, 1, 0, 1, 1) spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout_3.addItem(spacerItem, 2, 0, 1, 1) self.buttonBox = QtGui.QDialogButtonBox(self.tab) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.gridLayout_3.addWidget(self.buttonBox, 3, 0, 1, 1) self.tabWidget.addTab(self.tab, _fromUtf8("")) self.tab_2 = QtGui.QWidget() self.tab_2.setObjectName(_fromUtf8("tab_2")) self.gridLayout = QtGui.QGridLayout(self.tab_2) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.label_7 = QtGui.QLabel(self.tab_2) self.label_7.setObjectName(_fromUtf8("label_7")) self.gridLayout.addWidget(self.label_7, 1, 0, 1, 1) self.title_box = EnLineEdit(self.tab_2) self.title_box.setObjectName(_fromUtf8("title_box")) self.gridLayout.addWidget(self.title_box, 1, 1, 1, 1) self.label_8 = QtGui.QLabel(self.tab_2) self.label_8.setObjectName(_fromUtf8("label_8")) self.gridLayout.addWidget(self.label_8, 2, 0, 1, 1) self.horizontalLayout_6 = QtGui.QHBoxLayout() self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6")) self.clear_button = QtGui.QPushButton(self.tab_2) self.clear_button.setObjectName(_fromUtf8("clear_button")) self.horizontalLayout_6.addWidget(self.clear_button) self.tab_2_button_box = QtGui.QDialogButtonBox(self.tab_2) self.tab_2_button_box.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok) self.tab_2_button_box.setObjectName(_fromUtf8("tab_2_button_box")) self.horizontalLayout_6.addWidget(self.tab_2_button_box) self.gridLayout.addLayout(self.horizontalLayout_6, 5, 0, 1, 2) spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem1, 4, 1, 1, 1) self.label_11 = QtGui.QLabel(self.tab_2) self.label_11.setObjectName(_fromUtf8("label_11")) self.gridLayout.addWidget(self.label_11, 0, 0, 1, 2) self.author_box = EnLineEdit(self.tab_2) self.author_box.setObjectName(_fromUtf8("author_box")) self.gridLayout.addWidget(self.author_box, 2, 1, 1, 1) self.format_box = QtGui.QLineEdit(self.tab_2) self.format_box.setObjectName(_fromUtf8("format_box")) self.gridLayout.addWidget(self.format_box, 3, 1, 1, 1) self.label_10 = QtGui.QLabel(self.tab_2) self.label_10.setObjectName(_fromUtf8("label_10")) self.gridLayout.addWidget(self.label_10, 3, 0, 1, 1) self.tabWidget.addTab(self.tab_2, _fromUtf8("")) self.gridLayout_2.addWidget(self.tabWidget, 2, 0, 1, 2) spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout_2.addItem(spacerItem2, 1, 1, 1, 1) self.label_5.setBuddy(self.matchkind) self.label.setBuddy(self.all) self.label_2.setBuddy(self.all) self.label_3.setBuddy(self.all) self.label_4.setBuddy(self.all) self.label_7.setBuddy(self.title_box) self.label_8.setBuddy(self.author_box) self.label_10.setBuddy(self.format_box) self.retranslateUi(Dialog) self.tabWidget.setCurrentIndex(0) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), Dialog.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), Dialog.reject) QtCore.QMetaObject.connectSlotsByName(Dialog) Dialog.setTabOrder(self.all, self.phrase) Dialog.setTabOrder(self.phrase, self.any) Dialog.setTabOrder(self.any, self.none) Dialog.setTabOrder(self.none, self.buttonBox) Dialog.setTabOrder(self.buttonBox, self.title_box) Dialog.setTabOrder(self.title_box, self.author_box) Dialog.setTabOrder(self.author_box, self.format_box) Dialog.setTabOrder(self.format_box, self.clear_button) Dialog.setTabOrder(self.clear_button, self.tab_2_button_box) Dialog.setTabOrder(self.tab_2_button_box, self.tabWidget) Dialog.setTabOrder(self.tabWidget, self.matchkind) def retranslateUi(self, Dialog): Dialog.setWindowTitle(_("Advanced Search")) self.label_5.setText(_("&What kind of match to use:")) self.matchkind.setItemText(0, _("Contains: the word or phrase matches anywhere in the metadata field")) self.matchkind.setItemText(1, _("Equals: the word or phrase must match the entire metadata field")) self.matchkind.setItemText(2, _("Regular expression: the expression must match anywhere in the metadata field")) self.groupBox.setTitle(_("Find entries that have...")) self.label.setText(_("&All these words:")) self.label_2.setText(_("This exact &phrase:")) self.label_3.setText(_("&One or more of these words:")) self.groupBox_2.setTitle(_("But dont show entries that have...")) self.label_4.setText(_("Any of these &unwanted words:")) self.label_6.setText(_("See the <a href=\"http://calibre-ebook.com/user_manual/gui.html#the-search-interface\">User Manual</a> for more help")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _("A&dvanced Search")) self.label_7.setText(_("&Title:")) self.title_box.setToolTip(_("Enter the title.")) self.label_8.setText(_("&Author:")) self.clear_button.setText(_("&Clear")) self.label_11.setText(_("Search only in specific fields:")) self.label_10.setText(_("&Format:")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _("Titl&e/Author/Price ..."))
class Ui_Form(object): def setupUi(self, Form): Form.setObjectName("Form") Form.resize(600, 500) self.horizontalLayout = QtWidgets.QHBoxLayout(Form) self.horizontalLayout.setObjectName("horizontalLayout") self.groupBox_4 = QtWidgets.QGroupBox(Form) self.groupBox_4.setObjectName("groupBox_4") self._2 = QtWidgets.QGridLayout(self.groupBox_4) self._2.setObjectName("_2") self._4 = QtWidgets.QVBoxLayout() self._4.setContentsMargins(0, 0, 0, 0) self._4.setSpacing(6) self._4.setObjectName("_4") self.label_5 = QtWidgets.QLabel(self.groupBox_4) self.label_5.setObjectName("label_5") self._4.addWidget(self.label_5) self._5 = QtWidgets.QHBoxLayout() self._5.setContentsMargins(0, 0, 0, 0) self._5.setSpacing(6) self._5.setObjectName("_5") self.cover_path = QtWidgets.QLineEdit(self.groupBox_4) self.cover_path.setClearButtonEnabled(True) self.cover_path.setObjectName("cover_path") self._5.addWidget(self.cover_path) self.cover_button = QtWidgets.QToolButton(self.groupBox_4) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(I("document_open.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.cover_button.setIcon(icon) self.cover_button.setObjectName("cover_button") self._5.addWidget(self.cover_button) self._4.addLayout(self._5) self._2.addLayout(self._4, 1, 0, 1, 1) self.opt_prefer_metadata_cover = QtWidgets.QCheckBox(self.groupBox_4) self.opt_prefer_metadata_cover.setChecked(True) self.opt_prefer_metadata_cover.setObjectName( "opt_prefer_metadata_cover") self._2.addWidget(self.opt_prefer_metadata_cover, 2, 0, 1, 1) self._3 = QtWidgets.QHBoxLayout() self._3.setObjectName("_3") self.cover = ImageView(self.groupBox_4) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.cover.sizePolicy().hasHeightForWidth()) self.cover.setSizePolicy(sizePolicy) self.cover.setObjectName("cover") self._3.addWidget(self.cover) self._2.addLayout(self._3, 0, 0, 1, 1) self.horizontalLayout.addWidget(self.groupBox_4) self.verticalLayout_2 = QtWidgets.QVBoxLayout() self.verticalLayout_2.setObjectName("verticalLayout_2") self._7 = QtWidgets.QGridLayout() self._7.setObjectName("_7") self.label = QtWidgets.QLabel(Form) self.label.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label.setObjectName("label") self._7.addWidget(self.label, 0, 0, 1, 1) self.title = EnLineEdit(Form) self.title.setObjectName("title") self._7.addWidget(self.title, 0, 1, 1, 1) self.label_2 = QtWidgets.QLabel(Form) self.label_2.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_2.setObjectName("label_2") self._7.addWidget(self.label_2, 1, 0, 1, 1) self.label_6 = QtWidgets.QLabel(Form) self.label_6.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_6.setObjectName("label_6") self._7.addWidget(self.label_6, 2, 0, 1, 1) self.author_sort = EnLineEdit(Form) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.author_sort.sizePolicy().hasHeightForWidth()) self.author_sort.setSizePolicy(sizePolicy) self.author_sort.setObjectName("author_sort") self._7.addWidget(self.author_sort, 2, 1, 1, 1) self.label_3 = QtWidgets.QLabel(Form) self.label_3.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_3.setObjectName("label_3") self._7.addWidget(self.label_3, 3, 0, 1, 1) self.label_4 = QtWidgets.QLabel(Form) self.label_4.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_4.setObjectName("label_4") self._7.addWidget(self.label_4, 4, 0, 1, 1) self.tags = EditWithComplete(Form) self.tags.setObjectName("tags") self._7.addWidget(self.tags, 4, 1, 1, 1) self.label_7 = QtWidgets.QLabel(Form) self.label_7.setTextFormat(QtCore.Qt.PlainText) self.label_7.setAlignment(QtCore.Qt.AlignRight | QtCore.Qt.AlignTrailing | QtCore.Qt.AlignVCenter) self.label_7.setObjectName("label_7") self._7.addWidget(self.label_7, 5, 0, 1, 1) self.series = EditWithComplete(Form) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Fixed) sizePolicy.setHorizontalStretch(10) sizePolicy.setVerticalStretch(0) sizePolicy.setHeightForWidth( self.series.sizePolicy().hasHeightForWidth()) self.series.setSizePolicy(sizePolicy) self.series.setEditable(True) self.series.setInsertPolicy(QtWidgets.QComboBox.InsertAlphabetically) self.series.setObjectName("series") self._7.addWidget(self.series, 5, 1, 1, 1) self.series_index = QtWidgets.QDoubleSpinBox(Form) self.series_index.setMaximum(9999999999.99) self.series_index.setProperty("value", 1.0) self.series_index.setObjectName("series_index") self._7.addWidget(self.series_index, 6, 1, 1, 1) self.publisher = EditWithComplete(Form) self.publisher.setEditable(True) self.publisher.setObjectName("publisher") self._7.addWidget(self.publisher, 3, 1, 1, 1) self.author = EditWithComplete(Form) self.author.setEditable(True) self.author.setObjectName("author") self._7.addWidget(self.author, 1, 1, 1, 1) self.verticalLayout_2.addLayout(self._7) self.comment = Editor(Form) self.comment.setObjectName("comment") self.verticalLayout_2.addWidget(self.comment) self.horizontalLayout.addLayout(self.verticalLayout_2) self.label_5.setBuddy(self.cover_path) self.label.setBuddy(self.title) self.label_2.setBuddy(self.author) self.label_6.setBuddy(self.author_sort) self.label_3.setBuddy(self.publisher) self.label_4.setBuddy(self.tags) self.label_7.setBuddy(self.series) self.retranslateUi(Form) QtCore.QMetaObject.connectSlotsByName(Form) Form.setTabOrder(self.title, self.author) Form.setTabOrder(self.author, self.author_sort) Form.setTabOrder(self.author_sort, self.publisher) Form.setTabOrder(self.publisher, self.tags) Form.setTabOrder(self.tags, self.series) Form.setTabOrder(self.series, self.series_index) Form.setTabOrder(self.series_index, self.cover_path) Form.setTabOrder(self.cover_path, self.cover_button) Form.setTabOrder(self.cover_button, self.opt_prefer_metadata_cover) def retranslateUi(self, Form): Form.setWindowTitle(_("Form")) self.groupBox_4.setTitle(_("Book cover")) self.label_5.setText(_("Change &cover image:")) self.cover_button.setToolTip( _("Browse for an image to use as the cover of this book.")) self.cover_button.setText(_("...")) self.opt_prefer_metadata_cover.setText( _("Use cover from &source file")) self.label.setText(_("&Title:")) self.title.setToolTip(_("Change the title of this book")) self.label_2.setText(_("&Author(s):")) self.label_6.setText(_("Author so&rt:")) self.author_sort.setToolTip( _("Change the author(s) of this book. Multiple authors should be separated by a comma" )) self.label_3.setText(_("&Publisher:")) self.label_4.setText(_("Ta&gs:")) self.tags.setToolTip( _("Tags categorize the book. This is particularly useful while searching. <br><br>They can be any words or phrases, separated by commas." )) self.label_7.setText(_("&Series:")) self.series.setToolTip( _("List of known series. You can add new series.")) self.series.setWhatsThis( _("List of known series. You can add new series.")) self.series_index.setPrefix(_("Book "))
class Ui_TagEditor(object): def setupUi(self, TagEditor): TagEditor.setObjectName("TagEditor") TagEditor.resize(640, 666) self.verticalLayout = QtWidgets.QVBoxLayout(TagEditor) self.verticalLayout.setContentsMargins(11, 11, 11, 11) self.verticalLayout.setSpacing(6) self.verticalLayout.setObjectName("verticalLayout") self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setContentsMargins(0, 11, 0, 11) self.horizontalLayout_4.setSpacing(6) self.horizontalLayout_4.setObjectName("horizontalLayout_4") spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_4.addItem(spacerItem) self.label_3 = QtWidgets.QLabel(TagEditor) self.label_3.setObjectName("label_3") self.horizontalLayout_4.addWidget(self.label_3) self.add_tag_input = EnLineEdit(TagEditor) self.add_tag_input.setObjectName("add_tag_input") self.horizontalLayout_4.addWidget(self.add_tag_input) self.add_tag_button = QtWidgets.QToolButton(TagEditor) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(I("plus.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.add_tag_button.setIcon(icon) self.add_tag_button.setObjectName("add_tag_button") self.horizontalLayout_4.addWidget(self.add_tag_button) spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum) self.horizontalLayout_4.addItem(spacerItem1) self.verticalLayout.addLayout(self.horizontalLayout_4) self.line_2 = QtWidgets.QFrame(TagEditor) self.line_2.setFrameShape(QtWidgets.QFrame.HLine) self.line_2.setFrameShadow(QtWidgets.QFrame.Sunken) self.line_2.setObjectName("line_2") self.verticalLayout.addWidget(self.line_2) self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setContentsMargins(11, 11, 11, 11) self.horizontalLayout.setSpacing(6) self.horizontalLayout.setObjectName("horizontalLayout") self.gridLayout = QtWidgets.QGridLayout() self.gridLayout.setContentsMargins(11, 11, 11, 11) self.gridLayout.setSpacing(6) self.gridLayout.setObjectName("gridLayout") self.available_filter_input = QtWidgets.QLineEdit(TagEditor) self.available_filter_input.setClearButtonEnabled(True) self.available_filter_input.setObjectName("available_filter_input") self.gridLayout.addWidget(self.available_filter_input, 1, 0, 1, 1) self.available_tags = QtWidgets.QListWidget(TagEditor) self.available_tags.setAlternatingRowColors(True) self.available_tags.setSelectionMode( QtWidgets.QAbstractItemView.MultiSelection) self.available_tags.setSelectionBehavior( QtWidgets.QAbstractItemView.SelectRows) self.available_tags.setObjectName("available_tags") self.gridLayout.addWidget(self.available_tags, 2, 0, 1, 2) self.delete_button = QtWidgets.QPushButton(TagEditor) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(I("trash.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.delete_button.setIcon(icon1) self.delete_button.setObjectName("delete_button") self.gridLayout.addWidget(self.delete_button, 3, 0, 1, 2) self.label = QtWidgets.QLabel(TagEditor) self.label.setObjectName("label") self.gridLayout.addWidget(self.label, 0, 0, 1, 2) self.horizontalLayout.addLayout(self.gridLayout) self.apply_button = QtWidgets.QToolButton(TagEditor) icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap(I("forward.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.apply_button.setIcon(icon2) self.apply_button.setObjectName("apply_button") self.horizontalLayout.addWidget(self.apply_button) self.gridLayout_2 = QtWidgets.QGridLayout() self.gridLayout_2.setContentsMargins(11, 11, 11, 11) self.gridLayout_2.setSpacing(6) self.gridLayout_2.setObjectName("gridLayout_2") self.applied_filter_input = QtWidgets.QLineEdit(TagEditor) self.applied_filter_input.setClearButtonEnabled(True) self.applied_filter_input.setObjectName("applied_filter_input") self.gridLayout_2.addWidget(self.applied_filter_input, 1, 0, 1, 1) self.applied_tags = QtWidgets.QListWidget(TagEditor) self.applied_tags.setAlternatingRowColors(True) self.applied_tags.setSelectionMode( QtWidgets.QAbstractItemView.MultiSelection) self.applied_tags.setSelectionBehavior( QtWidgets.QAbstractItemView.SelectRows) self.applied_tags.setObjectName("applied_tags") self.gridLayout_2.addWidget(self.applied_tags, 2, 0, 1, 2) self.label_2 = QtWidgets.QLabel(TagEditor) self.label_2.setObjectName("label_2") self.gridLayout_2.addWidget(self.label_2, 0, 0, 1, 2) self.unapply_button = QtWidgets.QPushButton(TagEditor) icon3 = QtGui.QIcon() icon3.addPixmap(QtGui.QPixmap(I("minus.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.unapply_button.setIcon(icon3) self.unapply_button.setObjectName("unapply_button") self.gridLayout_2.addWidget(self.unapply_button, 3, 0, 1, 2) self.horizontalLayout.addLayout(self.gridLayout_2) self.verticalLayout.addLayout(self.horizontalLayout) self.line = QtWidgets.QFrame(TagEditor) self.line.setFrameShape(QtWidgets.QFrame.HLine) self.line.setFrameShadow(QtWidgets.QFrame.Sunken) self.line.setObjectName("line") self.verticalLayout.addWidget(self.line) self.buttonBox = QtWidgets.QDialogButtonBox(TagEditor) self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel | QtWidgets.QDialogButtonBox.Ok) self.buttonBox.setObjectName("buttonBox") self.verticalLayout.addWidget(self.buttonBox) self.label_3.setBuddy(self.add_tag_input) self.label.setBuddy(self.available_tags) self.label_2.setBuddy(self.applied_tags) self.retranslateUi(TagEditor) self.buttonBox.accepted.connect(TagEditor.accept) self.buttonBox.rejected.connect(TagEditor.reject) QtCore.QMetaObject.connectSlotsByName(TagEditor) def retranslateUi(self, TagEditor): TagEditor.setWindowTitle(_("Tag editor")) self.label_3.setText(_("&Add tag:")) self.add_tag_input.setToolTip( _("If the tag you want is not in the available list, you can add it here. Accepts a comma separated list of tags." )) self.add_tag_button.setToolTip( _("Add tag to available tags and apply it to current book")) self.add_tag_button.setText(_("...")) self.available_filter_input.setPlaceholderText( _("Filter the available tags")) self.delete_button.setToolTip( _("Delete tag from database. This will unapply the tag from all books and then remove it from the database." )) self.delete_button.setText(_("&Delete tag")) self.label.setText(_("Ava&ilable tags")) self.apply_button.setToolTip(_("Apply tag to current book")) self.apply_button.setText(_("...")) self.applied_filter_input.setPlaceholderText( _("Filter the applied tags")) self.label_2.setText(_("Applied &tags")) self.unapply_button.setToolTip( _("Unapply (remove) tag from current book")) self.unapply_button.setText(_("&Unapply tag"))
class Ui_Dialog(object): def setupUi(self, Dialog): Dialog.setObjectName("Dialog") Dialog.resize(752, 472) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(I("search.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) Dialog.setWindowIcon(icon) self.gridLayout_2 = QtWidgets.QGridLayout(Dialog) self.gridLayout_2.setObjectName("gridLayout_2") self.label_5 = QtWidgets.QLabel(Dialog) self.label_5.setObjectName("label_5") self.gridLayout_2.addWidget(self.label_5, 0, 0, 1, 1) self.matchkind = QtWidgets.QComboBox(Dialog) self.matchkind.setObjectName("matchkind") self.matchkind.addItem("") self.matchkind.addItem("") self.matchkind.addItem("") self.gridLayout_2.addWidget(self.matchkind, 0, 1, 1, 1) self.tabWidget = QtWidgets.QTabWidget(Dialog) self.tabWidget.setObjectName("tabWidget") self.tab = QtWidgets.QWidget() self.tab.setObjectName("tab") self.gridLayout_3 = QtWidgets.QGridLayout(self.tab) self.gridLayout_3.setObjectName("gridLayout_3") self.groupBox = QtWidgets.QGroupBox(self.tab) self.groupBox.setObjectName("groupBox") self.verticalLayout = QtWidgets.QVBoxLayout(self.groupBox) self.verticalLayout.setObjectName("verticalLayout") self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.label = QtWidgets.QLabel(self.groupBox) self.label.setObjectName("label") self.horizontalLayout.addWidget(self.label) self.all = QtWidgets.QLineEdit(self.groupBox) self.all.setObjectName("all") self.horizontalLayout.addWidget(self.all) self.verticalLayout.addLayout(self.horizontalLayout) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.label_2 = QtWidgets.QLabel(self.groupBox) self.label_2.setObjectName("label_2") self.horizontalLayout_2.addWidget(self.label_2) self.phrase = QtWidgets.QLineEdit(self.groupBox) self.phrase.setObjectName("phrase") self.horizontalLayout_2.addWidget(self.phrase) self.verticalLayout.addLayout(self.horizontalLayout_2) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.label_3 = QtWidgets.QLabel(self.groupBox) self.label_3.setObjectName("label_3") self.horizontalLayout_3.addWidget(self.label_3) self.any = QtWidgets.QLineEdit(self.groupBox) self.any.setObjectName("any") self.horizontalLayout_3.addWidget(self.any) self.verticalLayout.addLayout(self.horizontalLayout_3) self.gridLayout_3.addWidget(self.groupBox, 0, 0, 1, 1) self.groupBox_2 = QtWidgets.QGroupBox(self.tab) self.groupBox_2.setObjectName("groupBox_2") self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.groupBox_2) self.verticalLayout_2.setObjectName("verticalLayout_2") self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.label_4 = QtWidgets.QLabel(self.groupBox_2) self.label_4.setObjectName("label_4") self.horizontalLayout_4.addWidget(self.label_4) self.none = QtWidgets.QLineEdit(self.groupBox_2) self.none.setObjectName("none") self.horizontalLayout_4.addWidget(self.none) self.verticalLayout_2.addLayout(self.horizontalLayout_4) self.sh_label = QtWidgets.QLabel(self.groupBox_2) self.sh_label.setMaximumSize(QtCore.QSize(16777215, 30)) self.sh_label.setOpenExternalLinks(True) self.sh_label.setObjectName("sh_label") self.verticalLayout_2.addWidget(self.sh_label) self.gridLayout_3.addWidget(self.groupBox_2, 1, 0, 1, 1) self.buttonBox = QtWidgets.QDialogButtonBox(self.tab) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel | QtWidgets.QDialogButtonBox.Ok) self.buttonBox.setObjectName("buttonBox") self.gridLayout_3.addWidget(self.buttonBox, 2, 0, 1, 1) self.tabWidget.addTab(self.tab, "") self.tab_2 = QtWidgets.QWidget() self.tab_2.setObjectName("tab_2") self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.tab_2) self.verticalLayout_3.setObjectName("verticalLayout_3") self.formLayout = QtWidgets.QFormLayout() self.formLayout.setFieldGrowthPolicy( QtWidgets.QFormLayout.ExpandingFieldsGrow) self.formLayout.setObjectName("formLayout") self.label_11 = QtWidgets.QLabel(self.tab_2) self.label_11.setObjectName("label_11") self.formLayout.setWidget(0, QtWidgets.QFormLayout.SpanningRole, self.label_11) self.label_7 = QtWidgets.QLabel(self.tab_2) self.label_7.setObjectName("label_7") self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_7) self.title_box = EnLineEdit(self.tab_2) self.title_box.setObjectName("title_box") self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.title_box) self.label_8 = QtWidgets.QLabel(self.tab_2) self.label_8.setObjectName("label_8") self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_8) self.author_box = EnLineEdit(self.tab_2) self.author_box.setObjectName("author_box") self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.author_box) self.price_label = QtWidgets.QLabel(self.tab_2) self.price_label.setObjectName("price_label") self.formLayout.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.price_label) self.price_box = EnLineEdit(self.tab_2) self.price_box.setObjectName("price_box") self.formLayout.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.price_box) self.label_10 = QtWidgets.QLabel(self.tab_2) self.label_10.setObjectName("label_10") self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.label_10) self.format_box = QtWidgets.QLineEdit(self.tab_2) self.format_box.setObjectName("format_box") self.formLayout.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.format_box) self.label_13 = QtWidgets.QLabel(self.tab_2) self.label_13.setObjectName("label_13") self.formLayout.setWidget(5, QtWidgets.QFormLayout.LabelRole, self.label_13) self.drm_combo = QtWidgets.QComboBox(self.tab_2) self.drm_combo.setObjectName("drm_combo") self.drm_combo.addItem("") self.drm_combo.setItemText(0, "") self.drm_combo.addItem("") self.drm_combo.addItem("") self.formLayout.setWidget(5, QtWidgets.QFormLayout.FieldRole, self.drm_combo) self.label_12 = QtWidgets.QLabel(self.tab_2) self.label_12.setObjectName("label_12") self.formLayout.setWidget(6, QtWidgets.QFormLayout.LabelRole, self.label_12) self.download_combo = QtWidgets.QComboBox(self.tab_2) self.download_combo.setObjectName("download_combo") self.download_combo.addItem("") self.download_combo.setItemText(0, "") self.download_combo.addItem("") self.download_combo.addItem("") self.formLayout.setWidget(6, QtWidgets.QFormLayout.FieldRole, self.download_combo) self.label_9 = QtWidgets.QLabel(self.tab_2) self.label_9.setObjectName("label_9") self.formLayout.setWidget(7, QtWidgets.QFormLayout.LabelRole, self.label_9) self.affiliate_combo = QtWidgets.QComboBox(self.tab_2) self.affiliate_combo.setObjectName("affiliate_combo") self.affiliate_combo.addItem("") self.affiliate_combo.setItemText(0, "") self.affiliate_combo.addItem("") self.affiliate_combo.addItem("") self.formLayout.setWidget(7, QtWidgets.QFormLayout.FieldRole, self.affiliate_combo) self.verticalLayout_3.addLayout(self.formLayout) self.horizontalLayout_6 = QtWidgets.QHBoxLayout() self.horizontalLayout_6.setObjectName("horizontalLayout_6") self.clear_button = QtWidgets.QPushButton(self.tab_2) self.clear_button.setObjectName("clear_button") self.horizontalLayout_6.addWidget(self.clear_button) self.tab_2_button_box = QtWidgets.QDialogButtonBox(self.tab_2) self.tab_2_button_box.setStandardButtons( QtWidgets.QDialogButtonBox.Cancel | QtWidgets.QDialogButtonBox.Ok) self.tab_2_button_box.setObjectName("tab_2_button_box") self.horizontalLayout_6.addWidget(self.tab_2_button_box) self.verticalLayout_3.addLayout(self.horizontalLayout_6) self.tabWidget.addTab(self.tab_2, "") self.gridLayout_2.addWidget(self.tabWidget, 1, 0, 1, 2) self.label_5.setBuddy(self.matchkind) self.label.setBuddy(self.all) self.label_2.setBuddy(self.all) self.label_3.setBuddy(self.all) self.label_4.setBuddy(self.all) self.label_7.setBuddy(self.title_box) self.label_8.setBuddy(self.author_box) self.price_label.setBuddy(self.price_box) self.label_10.setBuddy(self.format_box) self.retranslateUi(Dialog) self.tabWidget.setCurrentIndex(0) self.buttonBox.accepted.connect(Dialog.accept) self.buttonBox.rejected.connect(Dialog.reject) QtCore.QMetaObject.connectSlotsByName(Dialog) Dialog.setTabOrder(self.all, self.phrase) Dialog.setTabOrder(self.phrase, self.any) Dialog.setTabOrder(self.any, self.none) Dialog.setTabOrder(self.none, self.buttonBox) Dialog.setTabOrder(self.buttonBox, self.title_box) Dialog.setTabOrder(self.title_box, self.author_box) Dialog.setTabOrder(self.author_box, self.price_box) Dialog.setTabOrder(self.price_box, self.format_box) Dialog.setTabOrder(self.format_box, self.clear_button) Dialog.setTabOrder(self.clear_button, self.tab_2_button_box) Dialog.setTabOrder(self.tab_2_button_box, self.tabWidget) Dialog.setTabOrder(self.tabWidget, self.matchkind) def retranslateUi(self, Dialog): Dialog.setWindowTitle(_("Advanced search")) self.label_5.setText(_("&What kind of match to use:")) self.matchkind.setItemText( 0, _("Contains: the word or phrase matches anywhere in the metadata field" )) self.matchkind.setItemText( 1, _("Equals: the word or phrase must match the entire metadata field" )) self.matchkind.setItemText( 2, _("Regular expression: the expression must match anywhere in the metadata field" )) self.groupBox.setTitle(_("Find entries that have...")) self.label.setText(_("&All these words:")) self.label_2.setText(_("This exact &phrase:")) self.label_3.setText(_("&One or more of these words:")) self.groupBox_2.setTitle(_("But don\'t show entries that have...")) self.label_4.setText(_("Any of these &unwanted words:")) self.sh_label.setText( _("See the <a href=\"%s\">User Manual</a> for more help")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab), _("A&dvanced Search")) self.label_11.setText(_("Search only in specific fields:")) self.label_7.setText(_("&Title:")) self.title_box.setToolTip(_("Enter the title.")) self.label_8.setText(_("&Author:")) self.price_label.setText(_("&Price:")) self.label_10.setText(_("&Format:")) self.label_13.setText(_("DRM:")) self.drm_combo.setItemText(1, _("true")) self.drm_combo.setItemText(2, _("false")) self.label_12.setText(_("Download:")) self.download_combo.setItemText(1, _("true")) self.download_combo.setItemText(2, _("false")) self.label_9.setText(_("Affiliate:")) self.affiliate_combo.setItemText(1, _("true")) self.affiliate_combo.setItemText(2, _("false")) self.clear_button.setText(_("&Clear")) self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_2), _("Titl&e/author/price..."))
def setupUi(self, TagEditor): TagEditor.setObjectName(_fromUtf8("TagEditor")) TagEditor.resize(588, 335) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(_fromUtf8(I("chapters.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) TagEditor.setWindowIcon(icon) self.gridlayout = QtGui.QGridLayout(TagEditor) self.gridlayout.setObjectName(_fromUtf8("gridlayout")) self.vboxlayout = QtGui.QVBoxLayout() self.vboxlayout.setObjectName(_fromUtf8("vboxlayout")) self.hboxlayout = QtGui.QHBoxLayout() self.hboxlayout.setObjectName(_fromUtf8("hboxlayout")) self.label = QtGui.QLabel(TagEditor) self.label.setObjectName(_fromUtf8("label")) self.hboxlayout.addWidget(self.label) spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.hboxlayout.addItem(spacerItem) self.vboxlayout.addLayout(self.hboxlayout) self.hboxlayout1 = QtGui.QHBoxLayout() self.hboxlayout1.setObjectName(_fromUtf8("hboxlayout1")) self.delete_button = QtGui.QToolButton(TagEditor) icon1 = QtGui.QIcon() icon1.addPixmap(QtGui.QPixmap(_fromUtf8(I("trash.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.delete_button.setIcon(icon1) self.delete_button.setObjectName(_fromUtf8("delete_button")) self.hboxlayout1.addWidget(self.delete_button) self.available_tags = QtGui.QListWidget(TagEditor) self.available_tags.setAlternatingRowColors(True) self.available_tags.setSelectionMode(QtGui.QAbstractItemView.MultiSelection) self.available_tags.setSelectionBehavior(QtGui.QAbstractItemView.SelectRows) self.available_tags.setObjectName(_fromUtf8("available_tags")) self.hboxlayout1.addWidget(self.available_tags) self.vboxlayout.addLayout(self.hboxlayout1) self.gridlayout.addLayout(self.vboxlayout, 0, 0, 1, 1) self.vboxlayout1 = QtGui.QVBoxLayout() self.vboxlayout1.setObjectName(_fromUtf8("vboxlayout1")) spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.vboxlayout1.addItem(spacerItem1) self.apply_button = QtGui.QToolButton(TagEditor) icon2 = QtGui.QIcon() icon2.addPixmap(QtGui.QPixmap(_fromUtf8(I("forward.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.apply_button.setIcon(icon2) self.apply_button.setObjectName(_fromUtf8("apply_button")) self.vboxlayout1.addWidget(self.apply_button) spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.vboxlayout1.addItem(spacerItem2) self.gridlayout.addLayout(self.vboxlayout1, 0, 1, 1, 1) self.vboxlayout2 = QtGui.QVBoxLayout() self.vboxlayout2.setObjectName(_fromUtf8("vboxlayout2")) self.hboxlayout2 = QtGui.QHBoxLayout() self.hboxlayout2.setObjectName(_fromUtf8("hboxlayout2")) self.label_2 = QtGui.QLabel(TagEditor) self.label_2.setObjectName(_fromUtf8("label_2")) self.hboxlayout2.addWidget(self.label_2) spacerItem3 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.hboxlayout2.addItem(spacerItem3) self.vboxlayout2.addLayout(self.hboxlayout2) self.applied_tags = QtGui.QListWidget(TagEditor) self.applied_tags.setAlternatingRowColors(True) self.applied_tags.setSelectionMode(QtGui.QAbstractItemView.MultiSelection) self.applied_tags.setObjectName(_fromUtf8("applied_tags")) self.vboxlayout2.addWidget(self.applied_tags) self.gridlayout.addLayout(self.vboxlayout2, 0, 2, 1, 1) self.vboxlayout3 = QtGui.QVBoxLayout() self.vboxlayout3.setObjectName(_fromUtf8("vboxlayout3")) spacerItem4 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.vboxlayout3.addItem(spacerItem4) self.unapply_button = QtGui.QToolButton(TagEditor) icon3 = QtGui.QIcon() icon3.addPixmap(QtGui.QPixmap(_fromUtf8(I("list_remove.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.unapply_button.setIcon(icon3) self.unapply_button.setObjectName(_fromUtf8("unapply_button")) self.vboxlayout3.addWidget(self.unapply_button) spacerItem5 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.vboxlayout3.addItem(spacerItem5) self.gridlayout.addLayout(self.vboxlayout3, 0, 3, 1, 1) self.hboxlayout3 = QtGui.QHBoxLayout() self.hboxlayout3.setObjectName(_fromUtf8("hboxlayout3")) spacerItem6 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.hboxlayout3.addItem(spacerItem6) self.label_3 = QtGui.QLabel(TagEditor) self.label_3.setObjectName(_fromUtf8("label_3")) self.hboxlayout3.addWidget(self.label_3) self.add_tag_input = EnLineEdit(TagEditor) self.add_tag_input.setObjectName(_fromUtf8("add_tag_input")) self.hboxlayout3.addWidget(self.add_tag_input) self.add_tag_button = QtGui.QToolButton(TagEditor) icon4 = QtGui.QIcon() icon4.addPixmap(QtGui.QPixmap(_fromUtf8(I("plus.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) self.add_tag_button.setIcon(icon4) self.add_tag_button.setObjectName(_fromUtf8("add_tag_button")) self.hboxlayout3.addWidget(self.add_tag_button) spacerItem7 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) self.hboxlayout3.addItem(spacerItem7) self.gridlayout.addLayout(self.hboxlayout3, 1, 0, 1, 4) self.buttonBox = QtGui.QDialogButtonBox(TagEditor) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.gridlayout.addWidget(self.buttonBox, 2, 0, 1, 4) self.label.setBuddy(self.available_tags) self.label_2.setBuddy(self.applied_tags) self.label_3.setBuddy(self.add_tag_input) self.retranslateUi(TagEditor) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), TagEditor.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), TagEditor.reject) QtCore.QMetaObject.connectSlotsByName(TagEditor)
def __init__(self, parent): self.dialog = parent EnLineEdit.__init__(self, parent) self.setToolTip(self.TOOLTIP) self.setWhatsThis(self.TOOLTIP)
def setupUi(self, Dialog): Dialog.setObjectName("Dialog") Dialog.resize(752, 472) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(I("search.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) Dialog.setWindowIcon(icon) self.gridLayout_2 = QtWidgets.QGridLayout(Dialog) self.gridLayout_2.setObjectName("gridLayout_2") self.label_5 = QtWidgets.QLabel(Dialog) self.label_5.setObjectName("label_5") self.gridLayout_2.addWidget(self.label_5, 0, 0, 1, 1) self.matchkind = QtWidgets.QComboBox(Dialog) self.matchkind.setObjectName("matchkind") self.matchkind.addItem("") self.matchkind.addItem("") self.matchkind.addItem("") self.gridLayout_2.addWidget(self.matchkind, 0, 1, 1, 1) self.tabWidget = QtWidgets.QTabWidget(Dialog) self.tabWidget.setObjectName("tabWidget") self.tab = QtWidgets.QWidget() self.tab.setObjectName("tab") self.gridLayout_3 = QtWidgets.QGridLayout(self.tab) self.gridLayout_3.setObjectName("gridLayout_3") self.groupBox = QtWidgets.QGroupBox(self.tab) self.groupBox.setObjectName("groupBox") self.verticalLayout = QtWidgets.QVBoxLayout(self.groupBox) self.verticalLayout.setObjectName("verticalLayout") self.horizontalLayout = QtWidgets.QHBoxLayout() self.horizontalLayout.setObjectName("horizontalLayout") self.label = QtWidgets.QLabel(self.groupBox) self.label.setObjectName("label") self.horizontalLayout.addWidget(self.label) self.all = QtWidgets.QLineEdit(self.groupBox) self.all.setObjectName("all") self.horizontalLayout.addWidget(self.all) self.verticalLayout.addLayout(self.horizontalLayout) self.horizontalLayout_2 = QtWidgets.QHBoxLayout() self.horizontalLayout_2.setObjectName("horizontalLayout_2") self.label_2 = QtWidgets.QLabel(self.groupBox) self.label_2.setObjectName("label_2") self.horizontalLayout_2.addWidget(self.label_2) self.phrase = QtWidgets.QLineEdit(self.groupBox) self.phrase.setObjectName("phrase") self.horizontalLayout_2.addWidget(self.phrase) self.verticalLayout.addLayout(self.horizontalLayout_2) self.horizontalLayout_3 = QtWidgets.QHBoxLayout() self.horizontalLayout_3.setObjectName("horizontalLayout_3") self.label_3 = QtWidgets.QLabel(self.groupBox) self.label_3.setObjectName("label_3") self.horizontalLayout_3.addWidget(self.label_3) self.any = QtWidgets.QLineEdit(self.groupBox) self.any.setObjectName("any") self.horizontalLayout_3.addWidget(self.any) self.verticalLayout.addLayout(self.horizontalLayout_3) self.gridLayout_3.addWidget(self.groupBox, 0, 0, 1, 1) self.groupBox_2 = QtWidgets.QGroupBox(self.tab) self.groupBox_2.setObjectName("groupBox_2") self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.groupBox_2) self.verticalLayout_2.setObjectName("verticalLayout_2") self.horizontalLayout_4 = QtWidgets.QHBoxLayout() self.horizontalLayout_4.setObjectName("horizontalLayout_4") self.label_4 = QtWidgets.QLabel(self.groupBox_2) self.label_4.setObjectName("label_4") self.horizontalLayout_4.addWidget(self.label_4) self.none = QtWidgets.QLineEdit(self.groupBox_2) self.none.setObjectName("none") self.horizontalLayout_4.addWidget(self.none) self.verticalLayout_2.addLayout(self.horizontalLayout_4) self.sh_label = QtWidgets.QLabel(self.groupBox_2) self.sh_label.setMaximumSize(QtCore.QSize(16777215, 30)) self.sh_label.setOpenExternalLinks(True) self.sh_label.setObjectName("sh_label") self.verticalLayout_2.addWidget(self.sh_label) self.gridLayout_3.addWidget(self.groupBox_2, 1, 0, 1, 1) self.buttonBox = QtWidgets.QDialogButtonBox(self.tab) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel | QtWidgets.QDialogButtonBox.Ok) self.buttonBox.setObjectName("buttonBox") self.gridLayout_3.addWidget(self.buttonBox, 2, 0, 1, 1) self.tabWidget.addTab(self.tab, "") self.tab_2 = QtWidgets.QWidget() self.tab_2.setObjectName("tab_2") self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.tab_2) self.verticalLayout_3.setObjectName("verticalLayout_3") self.formLayout = QtWidgets.QFormLayout() self.formLayout.setFieldGrowthPolicy( QtWidgets.QFormLayout.ExpandingFieldsGrow) self.formLayout.setObjectName("formLayout") self.label_11 = QtWidgets.QLabel(self.tab_2) self.label_11.setObjectName("label_11") self.formLayout.setWidget(0, QtWidgets.QFormLayout.SpanningRole, self.label_11) self.label_7 = QtWidgets.QLabel(self.tab_2) self.label_7.setObjectName("label_7") self.formLayout.setWidget(1, QtWidgets.QFormLayout.LabelRole, self.label_7) self.title_box = EnLineEdit(self.tab_2) self.title_box.setObjectName("title_box") self.formLayout.setWidget(1, QtWidgets.QFormLayout.FieldRole, self.title_box) self.label_8 = QtWidgets.QLabel(self.tab_2) self.label_8.setObjectName("label_8") self.formLayout.setWidget(2, QtWidgets.QFormLayout.LabelRole, self.label_8) self.author_box = EnLineEdit(self.tab_2) self.author_box.setObjectName("author_box") self.formLayout.setWidget(2, QtWidgets.QFormLayout.FieldRole, self.author_box) self.price_label = QtWidgets.QLabel(self.tab_2) self.price_label.setObjectName("price_label") self.formLayout.setWidget(3, QtWidgets.QFormLayout.LabelRole, self.price_label) self.price_box = EnLineEdit(self.tab_2) self.price_box.setObjectName("price_box") self.formLayout.setWidget(3, QtWidgets.QFormLayout.FieldRole, self.price_box) self.label_10 = QtWidgets.QLabel(self.tab_2) self.label_10.setObjectName("label_10") self.formLayout.setWidget(4, QtWidgets.QFormLayout.LabelRole, self.label_10) self.format_box = QtWidgets.QLineEdit(self.tab_2) self.format_box.setObjectName("format_box") self.formLayout.setWidget(4, QtWidgets.QFormLayout.FieldRole, self.format_box) self.label_13 = QtWidgets.QLabel(self.tab_2) self.label_13.setObjectName("label_13") self.formLayout.setWidget(5, QtWidgets.QFormLayout.LabelRole, self.label_13) self.drm_combo = QtWidgets.QComboBox(self.tab_2) self.drm_combo.setObjectName("drm_combo") self.drm_combo.addItem("") self.drm_combo.setItemText(0, "") self.drm_combo.addItem("") self.drm_combo.addItem("") self.formLayout.setWidget(5, QtWidgets.QFormLayout.FieldRole, self.drm_combo) self.label_12 = QtWidgets.QLabel(self.tab_2) self.label_12.setObjectName("label_12") self.formLayout.setWidget(6, QtWidgets.QFormLayout.LabelRole, self.label_12) self.download_combo = QtWidgets.QComboBox(self.tab_2) self.download_combo.setObjectName("download_combo") self.download_combo.addItem("") self.download_combo.setItemText(0, "") self.download_combo.addItem("") self.download_combo.addItem("") self.formLayout.setWidget(6, QtWidgets.QFormLayout.FieldRole, self.download_combo) self.label_9 = QtWidgets.QLabel(self.tab_2) self.label_9.setObjectName("label_9") self.formLayout.setWidget(7, QtWidgets.QFormLayout.LabelRole, self.label_9) self.affiliate_combo = QtWidgets.QComboBox(self.tab_2) self.affiliate_combo.setObjectName("affiliate_combo") self.affiliate_combo.addItem("") self.affiliate_combo.setItemText(0, "") self.affiliate_combo.addItem("") self.affiliate_combo.addItem("") self.formLayout.setWidget(7, QtWidgets.QFormLayout.FieldRole, self.affiliate_combo) self.verticalLayout_3.addLayout(self.formLayout) self.horizontalLayout_6 = QtWidgets.QHBoxLayout() self.horizontalLayout_6.setObjectName("horizontalLayout_6") self.clear_button = QtWidgets.QPushButton(self.tab_2) self.clear_button.setObjectName("clear_button") self.horizontalLayout_6.addWidget(self.clear_button) self.tab_2_button_box = QtWidgets.QDialogButtonBox(self.tab_2) self.tab_2_button_box.setStandardButtons( QtWidgets.QDialogButtonBox.Cancel | QtWidgets.QDialogButtonBox.Ok) self.tab_2_button_box.setObjectName("tab_2_button_box") self.horizontalLayout_6.addWidget(self.tab_2_button_box) self.verticalLayout_3.addLayout(self.horizontalLayout_6) self.tabWidget.addTab(self.tab_2, "") self.gridLayout_2.addWidget(self.tabWidget, 1, 0, 1, 2) self.label_5.setBuddy(self.matchkind) self.label.setBuddy(self.all) self.label_2.setBuddy(self.all) self.label_3.setBuddy(self.all) self.label_4.setBuddy(self.all) self.label_7.setBuddy(self.title_box) self.label_8.setBuddy(self.author_box) self.price_label.setBuddy(self.price_box) self.label_10.setBuddy(self.format_box) self.retranslateUi(Dialog) self.tabWidget.setCurrentIndex(0) self.buttonBox.accepted.connect(Dialog.accept) self.buttonBox.rejected.connect(Dialog.reject) QtCore.QMetaObject.connectSlotsByName(Dialog) Dialog.setTabOrder(self.all, self.phrase) Dialog.setTabOrder(self.phrase, self.any) Dialog.setTabOrder(self.any, self.none) Dialog.setTabOrder(self.none, self.buttonBox) Dialog.setTabOrder(self.buttonBox, self.title_box) Dialog.setTabOrder(self.title_box, self.author_box) Dialog.setTabOrder(self.author_box, self.price_box) Dialog.setTabOrder(self.price_box, self.format_box) Dialog.setTabOrder(self.format_box, self.clear_button) Dialog.setTabOrder(self.clear_button, self.tab_2_button_box) Dialog.setTabOrder(self.tab_2_button_box, self.tabWidget) Dialog.setTabOrder(self.tabWidget, self.matchkind)
def setupUi(self, Dialog): Dialog.setObjectName(_fromUtf8("Dialog")) Dialog.resize(752, 472) icon = QtGui.QIcon() icon.addPixmap(QtGui.QPixmap(_fromUtf8(I("search.png"))), QtGui.QIcon.Normal, QtGui.QIcon.Off) Dialog.setWindowIcon(icon) self.gridLayout_2 = QtGui.QGridLayout(Dialog) self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) self.label_5 = QtGui.QLabel(Dialog) self.label_5.setObjectName(_fromUtf8("label_5")) self.gridLayout_2.addWidget(self.label_5, 0, 0, 1, 1) self.matchkind = QtGui.QComboBox(Dialog) self.matchkind.setObjectName(_fromUtf8("matchkind")) self.matchkind.addItem(_fromUtf8("")) self.matchkind.addItem(_fromUtf8("")) self.matchkind.addItem(_fromUtf8("")) self.gridLayout_2.addWidget(self.matchkind, 0, 1, 1, 1) self.tabWidget = QtGui.QTabWidget(Dialog) self.tabWidget.setObjectName(_fromUtf8("tabWidget")) self.tab = QtGui.QWidget() self.tab.setObjectName(_fromUtf8("tab")) self.gridLayout_3 = QtGui.QGridLayout(self.tab) self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) self.groupBox = QtGui.QGroupBox(self.tab) self.groupBox.setObjectName(_fromUtf8("groupBox")) self.verticalLayout = QtGui.QVBoxLayout(self.groupBox) self.verticalLayout.setObjectName(_fromUtf8("verticalLayout")) self.horizontalLayout = QtGui.QHBoxLayout() self.horizontalLayout.setObjectName(_fromUtf8("horizontalLayout")) self.label = QtGui.QLabel(self.groupBox) self.label.setObjectName(_fromUtf8("label")) self.horizontalLayout.addWidget(self.label) self.all = QtGui.QLineEdit(self.groupBox) self.all.setObjectName(_fromUtf8("all")) self.horizontalLayout.addWidget(self.all) self.verticalLayout.addLayout(self.horizontalLayout) self.horizontalLayout_2 = QtGui.QHBoxLayout() self.horizontalLayout_2.setObjectName(_fromUtf8("horizontalLayout_2")) self.label_2 = QtGui.QLabel(self.groupBox) self.label_2.setObjectName(_fromUtf8("label_2")) self.horizontalLayout_2.addWidget(self.label_2) self.phrase = QtGui.QLineEdit(self.groupBox) self.phrase.setObjectName(_fromUtf8("phrase")) self.horizontalLayout_2.addWidget(self.phrase) self.verticalLayout.addLayout(self.horizontalLayout_2) self.horizontalLayout_3 = QtGui.QHBoxLayout() self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3")) self.label_3 = QtGui.QLabel(self.groupBox) self.label_3.setObjectName(_fromUtf8("label_3")) self.horizontalLayout_3.addWidget(self.label_3) self.any = QtGui.QLineEdit(self.groupBox) self.any.setObjectName(_fromUtf8("any")) self.horizontalLayout_3.addWidget(self.any) self.verticalLayout.addLayout(self.horizontalLayout_3) self.gridLayout_3.addWidget(self.groupBox, 0, 0, 1, 1) self.groupBox_2 = QtGui.QGroupBox(self.tab) self.groupBox_2.setObjectName(_fromUtf8("groupBox_2")) self.verticalLayout_2 = QtGui.QVBoxLayout(self.groupBox_2) self.verticalLayout_2.setObjectName(_fromUtf8("verticalLayout_2")) self.horizontalLayout_4 = QtGui.QHBoxLayout() self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4")) self.label_4 = QtGui.QLabel(self.groupBox_2) self.label_4.setObjectName(_fromUtf8("label_4")) self.horizontalLayout_4.addWidget(self.label_4) self.none = QtGui.QLineEdit(self.groupBox_2) self.none.setObjectName(_fromUtf8("none")) self.horizontalLayout_4.addWidget(self.none) self.verticalLayout_2.addLayout(self.horizontalLayout_4) self.label_6 = QtGui.QLabel(self.groupBox_2) self.label_6.setMaximumSize(QtCore.QSize(16777215, 30)) self.label_6.setOpenExternalLinks(True) self.label_6.setObjectName(_fromUtf8("label_6")) self.verticalLayout_2.addWidget(self.label_6) self.gridLayout_3.addWidget(self.groupBox_2, 1, 0, 1, 1) spacerItem = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout_3.addItem(spacerItem, 2, 0, 1, 1) self.buttonBox = QtGui.QDialogButtonBox(self.tab) self.buttonBox.setOrientation(QtCore.Qt.Horizontal) self.buttonBox.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok) self.buttonBox.setObjectName(_fromUtf8("buttonBox")) self.gridLayout_3.addWidget(self.buttonBox, 3, 0, 1, 1) self.tabWidget.addTab(self.tab, _fromUtf8("")) self.tab_2 = QtGui.QWidget() self.tab_2.setObjectName(_fromUtf8("tab_2")) self.gridLayout = QtGui.QGridLayout(self.tab_2) self.gridLayout.setObjectName(_fromUtf8("gridLayout")) self.label_7 = QtGui.QLabel(self.tab_2) self.label_7.setObjectName(_fromUtf8("label_7")) self.gridLayout.addWidget(self.label_7, 1, 0, 1, 1) self.title_box = EnLineEdit(self.tab_2) self.title_box.setObjectName(_fromUtf8("title_box")) self.gridLayout.addWidget(self.title_box, 1, 1, 1, 1) self.label_8 = QtGui.QLabel(self.tab_2) self.label_8.setObjectName(_fromUtf8("label_8")) self.gridLayout.addWidget(self.label_8, 2, 0, 1, 1) self.horizontalLayout_6 = QtGui.QHBoxLayout() self.horizontalLayout_6.setObjectName(_fromUtf8("horizontalLayout_6")) self.clear_button = QtGui.QPushButton(self.tab_2) self.clear_button.setObjectName(_fromUtf8("clear_button")) self.horizontalLayout_6.addWidget(self.clear_button) self.tab_2_button_box = QtGui.QDialogButtonBox(self.tab_2) self.tab_2_button_box.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.Ok) self.tab_2_button_box.setObjectName(_fromUtf8("tab_2_button_box")) self.horizontalLayout_6.addWidget(self.tab_2_button_box) self.gridLayout.addLayout(self.horizontalLayout_6, 5, 0, 1, 2) spacerItem1 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout.addItem(spacerItem1, 4, 1, 1, 1) self.label_11 = QtGui.QLabel(self.tab_2) self.label_11.setObjectName(_fromUtf8("label_11")) self.gridLayout.addWidget(self.label_11, 0, 0, 1, 2) self.author_box = EnLineEdit(self.tab_2) self.author_box.setObjectName(_fromUtf8("author_box")) self.gridLayout.addWidget(self.author_box, 2, 1, 1, 1) self.format_box = QtGui.QLineEdit(self.tab_2) self.format_box.setObjectName(_fromUtf8("format_box")) self.gridLayout.addWidget(self.format_box, 3, 1, 1, 1) self.label_10 = QtGui.QLabel(self.tab_2) self.label_10.setObjectName(_fromUtf8("label_10")) self.gridLayout.addWidget(self.label_10, 3, 0, 1, 1) self.tabWidget.addTab(self.tab_2, _fromUtf8("")) self.gridLayout_2.addWidget(self.tabWidget, 2, 0, 1, 2) spacerItem2 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) self.gridLayout_2.addItem(spacerItem2, 1, 1, 1, 1) self.label_5.setBuddy(self.matchkind) self.label.setBuddy(self.all) self.label_2.setBuddy(self.all) self.label_3.setBuddy(self.all) self.label_4.setBuddy(self.all) self.label_7.setBuddy(self.title_box) self.label_8.setBuddy(self.author_box) self.label_10.setBuddy(self.format_box) self.retranslateUi(Dialog) self.tabWidget.setCurrentIndex(0) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("accepted()")), Dialog.accept) QtCore.QObject.connect(self.buttonBox, QtCore.SIGNAL(_fromUtf8("rejected()")), Dialog.reject) QtCore.QMetaObject.connectSlotsByName(Dialog) Dialog.setTabOrder(self.all, self.phrase) Dialog.setTabOrder(self.phrase, self.any) Dialog.setTabOrder(self.any, self.none) Dialog.setTabOrder(self.none, self.buttonBox) Dialog.setTabOrder(self.buttonBox, self.title_box) Dialog.setTabOrder(self.title_box, self.author_box) Dialog.setTabOrder(self.author_box, self.format_box) Dialog.setTabOrder(self.format_box, self.clear_button) Dialog.setTabOrder(self.clear_button, self.tab_2_button_box) Dialog.setTabOrder(self.tab_2_button_box, self.tabWidget) Dialog.setTabOrder(self.tabWidget, self.matchkind)