diff --git a/gui/MetaEditor.ui b/gui/MetaEditor.ui index a8691ff..176eb2c 100644 --- a/gui/MetaEditor.ui +++ b/gui/MetaEditor.ui @@ -62,56 +62,66 @@ - + Number: - + - + Writer: - + - + Penciller: - + - + Inker: - + - + Colorist: - + + + + + Title: + + + + + + diff --git a/kindlecomicconverter/KCC_gui.py b/kindlecomicconverter/KCC_gui.py index 0c6e0f8..04adb32 100644 --- a/kindlecomicconverter/KCC_gui.py +++ b/kindlecomicconverter/KCC_gui.py @@ -1348,15 +1348,16 @@ class KCCGUI_MetaEditor(KCC_ui_editor.Ui_editorDialog): self.editorWidget.setEnabled(True) self.okButton.setEnabled(True) self.statusLabel.setText('Separate authors with a comma.') - for field in (self.seriesLine, self.volumeLine, self.numberLine): + for field in (self.seriesLine, self.volumeLine, self.numberLine, self.titleLine): field.setText(self.parser.data[field.objectName().capitalize()[:-4]]) for field in (self.writerLine, self.pencillerLine, self.inkerLine, self.coloristLine): field.setText(', '.join(self.parser.data[field.objectName().capitalize()[:-4] + 's'])) - if self.seriesLine.text() == '': - if file.endswith('.xml'): - self.seriesLine.setText(file.split('\\')[-2]) - else: - self.seriesLine.setText(file.split('\\')[-1].split('/')[-1].split('.')[0]) + for field in (self.seriesLine, self.titleLine): + if field.text() == '': + if file.endswith('.xml'): + field.setText(file.split('\\')[-2]) + else: + field.setText(file.split('\\')[-1].split('/')[-1].split('.')[0]) def saveData(self): for field in (self.volumeLine, self.numberLine): @@ -1366,7 +1367,8 @@ class KCCGUI_MetaEditor(KCC_ui_editor.Ui_editorDialog): self.statusLabel.setText(field.objectName().capitalize()[:-4] + ' field must be a number.') break else: - self.parser.data['Series'] = self.cleanData(self.seriesLine.text()) + for field in (self.seriesLine, self.titleLine): + self.parser.data[field.objectName().capitalize()[:-4]] = self.cleanData(field.text()) for field in (self.writerLine, self.pencillerLine, self.inkerLine, self.coloristLine): values = self.cleanData(field.text()).split(',') tmpData = [] diff --git a/kindlecomicconverter/KCC_rc.py b/kindlecomicconverter/KCC_rc.py index 9acb42d..151c18f 100644 --- a/kindlecomicconverter/KCC_rc.py +++ b/kindlecomicconverter/KCC_rc.py @@ -1,6 +1,6 @@ # Resource object code (Python 3) # Created by: object code -# Created by: The Resource Compiler for Qt version 6.9.1 +# Created by: The Resource Compiler for Qt version 6.9.3 # WARNING! All changes made in this file will be lost! from PySide6 import QtCore @@ -13767,59 +13767,59 @@ qt_resource_struct = b"\ \x00\x00\x00h\x00\x02\x00\x00\x00\x04\x00\x00\x00\x08\ \x00\x00\x00\x00\x00\x00\x00\x00\ \x00\x00\x02<\x00\x00\x00\x00\x00\x01\x00\x02\xb4\x18\ -\x00\x00\x01\x88;p\xbcB\ +\x00\x00\x01\x99\xab\x9faO\ \x00\x00\x02z\x00\x00\x00\x00\x00\x01\x00\x03\x08\xb2\ -\x00\x00\x01\x88;p\xbcB\ +\x00\x00\x01\x99\xab\x9faM\ \x00\x00\x02f\x00\x00\x00\x00\x00\x01\x00\x02\xde\xb7\ -\x00\x00\x01\x88;p\xbcB\ +\x00\x00\x01\x99\xab\x9faM\ \x00\x00\x02R\x00\x00\x00\x00\x00\x01\x00\x02\xd3T\ -\x00\x00\x01\x89\x89D9.\ +\x00\x00\x01\x99\xab\x9faN\ \x00\x00\x00h\x00\x02\x00\x00\x00\x04\x00\x00\x00\x0d\ \x00\x00\x00\x00\x00\x00\x00\x00\ \x00\x00\x01\x22\x00\x00\x00\x00\x00\x01\x00\x01\xad\xc2\ -\x00\x00\x01\x88;p\xbcB\ +\x00\x00\x01\x99\xab\x9faO\ \x00\x00\x018\x00\x00\x00\x00\x00\x01\x00\x01\xb7\x1a\ -\x00\x00\x01\x98\x8a\xa4\xaa\xe2\ +\x00\x00\x01\x99\xab\x9faP\ \x00\x00\x01\x08\x00\x00\x00\x00\x00\x01\x00\x01\xa2\xbb\ -\x00\x00\x01\x88;p\xbcB\ +\x00\x00\x01\x99\xab\x9faN\ \x00\x00\x01L\x00\x00\x00\x00\x00\x01\x00\x01\xbf0\ -\x00\x00\x01\x88;p\xbcB\ +\x00\x00\x01\x99\xab\x9faO\ \x00\x00\x00h\x00\x02\x00\x00\x00\x03\x00\x00\x00\x12\ \x00\x00\x00\x00\x00\x00\x00\x00\ \x00\x00\x02\xbe\x00\x00\x00\x00\x00\x01\x00\x03:\xfe\ -\x00\x00\x01\x88;p\xbcJ\ +\x00\x00\x01\x99\xab\x9fa\x5c\ \x00\x00\x02\x90\x00\x00\x00\x00\x00\x01\x00\x03%\x01\ -\x00\x00\x01\x88;p\xbcI\ +\x00\x00\x01\x99\xab\x9faZ\ \x00\x00\x02\xa6\x00\x00\x00\x00\x00\x01\x00\x03.^\ -\x00\x00\x01\x88;p\xbcI\ +\x00\x00\x01\x99\xab\x9faZ\ \x00\x00\x00h\x00\x02\x00\x00\x00\x07\x00\x00\x00\x16\ \x00\x00\x00\x00\x00\x00\x00\x00\ \x00\x00\x01\x98\x00\x00\x00\x00\x00\x01\x00\x01\xd5\xdc\ -\x00\x00\x01\x88;p\xbcJ\ +\x00\x00\x01\x99\xab\x9fa]\ \x00\x00\x01\xae\x00\x00\x00\x00\x00\x01\x00\x01\xfe\x84\ -\x00\x00\x01\x88;p\xbcI\ +\x00\x00\x01\x99\xab\x9faZ\ \x00\x00\x02\x10\x00\x00\x00\x00\x00\x01\x00\x02WX\ -\x00\x00\x01\x94\xb4\xd4\xf0a\ +\x00\x00\x01\x99\xab\x9fa[\ \x00\x00\x01\xf6\x00\x00\x00\x00\x00\x01\x00\x02\x12\x11\ -\x00\x00\x01\x88;p\xbcH\ +\x00\x00\x01\x99\xab\x9faZ\ \x00\x00\x01\x80\x00\x00\x00\x00\x00\x01\x00\x01\xd1}\ -\x00\x00\x01\x88;p\xbcF\ +\x00\x00\x01\x99\xab\x9faT\ \x00\x00\x01d\x00\x00\x00\x00\x00\x01\x00\x01\xc5\x14\ -\x00\x00\x01\x88;p\xbcH\ +\x00\x00\x01\x99\xab\x9faY\ \x00\x00\x01\xd0\x00\x00\x00\x00\x00\x01\x00\x02\x07\xdb\ -\x00\x00\x01\x88;p\xbcH\ +\x00\x00\x01\x99\xab\x9faY\ \x00\x00\x00h\x00\x02\x00\x00\x00\x03\x00\x00\x00\x1e\ \x00\x00\x00\x00\x00\x00\x00\x00\ \x00\x00\x00\xe4\x00\x00\x00\x00\x00\x01\x00\x01~z\ -\x00\x00\x01\x98\x8a\xa4\xaa\xe2\ +\x00\x00\x01\x99\xab\x9fa[\ \x00\x00\x00\x9c\x00\x00\x00\x00\x00\x01\x00\x01\x1d\x90\ -\x00\x00\x01\x99:\x8c\x10\x01\ +\x00\x00\x01\x99\xab\x9faM\ \x00\x00\x00\xbe\x00\x00\x00\x00\x00\x01\x00\x01=\xd0\ -\x00\x00\x01\x99:}N\xda\ +\x00\x00\x01\x99\xab\x9faN\ \x00\x00\x00h\x00\x02\x00\x00\x00\x01\x00\x00\x00\x22\ \x00\x00\x00\x00\x00\x00\x00\x00\ \x00\x00\x00x\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\ -\x00\x00\x01\x88;p\xbcH\ +\x00\x00\x01\x99\xab\x9faX\ " def qInitResources(): diff --git a/kindlecomicconverter/KCC_ui_editor.py b/kindlecomicconverter/KCC_ui_editor.py index 75fac37..80a8f76 100644 --- a/kindlecomicconverter/KCC_ui_editor.py +++ b/kindlecomicconverter/KCC_ui_editor.py @@ -3,7 +3,7 @@ ################################################################################ ## Form generated from reading UI file 'MetaEditor.ui' ## -## Created by: Qt User Interface Compiler version 6.9.1 +## Created by: Qt User Interface Compiler version 6.9.3 ## ## WARNING! All changes made in this file will be lost when recompiling UI file! ################################################################################ @@ -60,52 +60,62 @@ class Ui_editorDialog(object): self.label_3 = QLabel(self.editorWidget) self.label_3.setObjectName(u"label_3") - self.gridLayout.addWidget(self.label_3, 2, 0, 1, 1) + self.gridLayout.addWidget(self.label_3, 3, 0, 1, 1) self.numberLine = QLineEdit(self.editorWidget) self.numberLine.setObjectName(u"numberLine") - self.gridLayout.addWidget(self.numberLine, 2, 1, 1, 1) + self.gridLayout.addWidget(self.numberLine, 3, 1, 1, 1) self.label_4 = QLabel(self.editorWidget) self.label_4.setObjectName(u"label_4") - self.gridLayout.addWidget(self.label_4, 3, 0, 1, 1) + self.gridLayout.addWidget(self.label_4, 4, 0, 1, 1) self.writerLine = QLineEdit(self.editorWidget) self.writerLine.setObjectName(u"writerLine") - self.gridLayout.addWidget(self.writerLine, 3, 1, 1, 1) + self.gridLayout.addWidget(self.writerLine, 4, 1, 1, 1) self.label_5 = QLabel(self.editorWidget) self.label_5.setObjectName(u"label_5") - self.gridLayout.addWidget(self.label_5, 4, 0, 1, 1) + self.gridLayout.addWidget(self.label_5, 5, 0, 1, 1) self.pencillerLine = QLineEdit(self.editorWidget) self.pencillerLine.setObjectName(u"pencillerLine") - self.gridLayout.addWidget(self.pencillerLine, 4, 1, 1, 1) + self.gridLayout.addWidget(self.pencillerLine, 5, 1, 1, 1) self.label_6 = QLabel(self.editorWidget) self.label_6.setObjectName(u"label_6") - self.gridLayout.addWidget(self.label_6, 5, 0, 1, 1) + self.gridLayout.addWidget(self.label_6, 6, 0, 1, 1) self.inkerLine = QLineEdit(self.editorWidget) self.inkerLine.setObjectName(u"inkerLine") - self.gridLayout.addWidget(self.inkerLine, 5, 1, 1, 1) + self.gridLayout.addWidget(self.inkerLine, 6, 1, 1, 1) self.label_7 = QLabel(self.editorWidget) self.label_7.setObjectName(u"label_7") - self.gridLayout.addWidget(self.label_7, 6, 0, 1, 1) + self.gridLayout.addWidget(self.label_7, 7, 0, 1, 1) self.coloristLine = QLineEdit(self.editorWidget) self.coloristLine.setObjectName(u"coloristLine") - self.gridLayout.addWidget(self.coloristLine, 6, 1, 1, 1) + self.gridLayout.addWidget(self.coloristLine, 7, 1, 1, 1) + + self.label_8 = QLabel(self.editorWidget) + self.label_8.setObjectName(u"label_8") + + self.gridLayout.addWidget(self.label_8, 2, 0, 1, 1) + + self.titleLine = QLineEdit(self.editorWidget) + self.titleLine.setObjectName(u"titleLine") + + self.gridLayout.addWidget(self.titleLine, 2, 1, 1, 1) self.verticalLayout.addWidget(self.editorWidget) @@ -161,6 +171,7 @@ class Ui_editorDialog(object): self.label_5.setText(QCoreApplication.translate("editorDialog", u"Penciller:", None)) self.label_6.setText(QCoreApplication.translate("editorDialog", u"Inker:", None)) self.label_7.setText(QCoreApplication.translate("editorDialog", u"Colorist:", None)) + self.label_8.setText(QCoreApplication.translate("editorDialog", u"Title:", None)) self.statusLabel.setText("") self.okButton.setText(QCoreApplication.translate("editorDialog", u"Save", None)) self.cancelButton.setText(QCoreApplication.translate("editorDialog", u"Cancel", None))