diff --git a/src/calibre/gui2/convert/metadata.ui b/src/calibre/gui2/convert/metadata.ui index 3abe8ece55..b1424b49dc 100644 --- a/src/calibre/gui2/convert/metadata.ui +++ b/src/calibre/gui2/convert/metadata.ui @@ -20,6 +20,36 @@ Book Cover + + + + + + + + + :/images/book.svg + + + true + + + Qt::AlignCenter + + + + + + + + + Use cover from &source file + + + true + + + @@ -71,36 +101,6 @@ - - - - Use cover from &source file - - - true - - - - - - - - - - - - :/images/book.svg - - - true - - - Qt::AlignCenter - - - - - opt_prefer_metadata_cover @@ -329,6 +329,19 @@
widgets.h
+ + title + author + author_sort + publisher + tags + series + series_index + comment + cover_path + cover_button + opt_prefer_metadata_cover + diff --git a/src/calibre/gui2/dialogs/metadata_single.ui b/src/calibre/gui2/dialogs/metadata_single.ui index 14191f2851..15ac6b201d 100644 --- a/src/calibre/gui2/dialogs/metadata_single.ui +++ b/src/calibre/gui2/dialogs/metadata_single.ui @@ -43,8 +43,8 @@ 0 0 - 869 - 696 + 879 + 710 @@ -121,6 +121,9 @@ Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + authors + @@ -661,26 +664,28 @@ title swap_button + authors author_sort auto_author_sort rating publisher tags - series tag_editor_button + series remove_series_button + series_index isbn pubdate comments fetch_metadata_button - fetch_cover_button formats add_format_button - remove_format_button button_set_cover + remove_format_button cover_path cover_button reset_cover + fetch_cover_button scrollArea button_box diff --git a/src/calibre/gui2/widgets.py b/src/calibre/gui2/widgets.py index f4b9130fc8..fc77d3cd08 100644 --- a/src/calibre/gui2/widgets.py +++ b/src/calibre/gui2/widgets.py @@ -490,13 +490,13 @@ class LineEditECM(object): class EnLineEdit(LineEditECM, QLineEdit): - + ''' Enhanced QLineEdit. - + Includes an extended content menu. ''' - + pass @@ -593,6 +593,13 @@ class EnComboBox(QComboBox): def text(self): return qstring_to_unicode(self.currentText()) + def setText(self, text): + idx = self.findText(text, Qt.MatchFixedString) + if idx == -1: + self.insertItem(0, text) + idx = 0 + self.setCurrentIndex(idx) + class PythonHighlighter(QSyntaxHighlighter): Rules = []