-
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
0
-
@@ -316,7 +355,16 @@
-
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
0
-
diff --git a/kindlecomicconverter/KCC_gui.py b/kindlecomicconverter/KCC_gui.py
index 5cf29d7..a8c7449 100644
--- a/kindlecomicconverter/KCC_gui.py
+++ b/kindlecomicconverter/KCC_gui.py
@@ -254,8 +254,10 @@ class WorkerThread(QtCore.QThread):
options.splitter = 2
elif GUI.rotateBox.checkState() == 2:
options.splitter = 1
- if GUI.qualityBox.isChecked():
+ if GUI.qualityBox.checkState() == 1:
options.autoscale = True
+ elif GUI.qualityBox.checkState() == 2:
+ options.hq = True
if GUI.webtoonBox.isChecked():
options.webtoon = True
if GUI.upscaleBox.checkState() == 1:
@@ -613,6 +615,18 @@ class KCCGUI(KCC_ui.Ui_mainWindow):
GUI.rotateBox.setEnabled(True)
GUI.upscaleBox.setEnabled(True)
+ def togglequalityBox(self, value):
+ profile = GUI.profiles[str(GUI.deviceBox.currentText())]
+ if value == 2:
+ if profile['Label'] in ['KV']:
+ self.addMessage('This option is intended for older Kindle models.', 'warning')
+ self.addMessage('It might not provide any quality increase in this case.', 'warning')
+ GUI.upscaleBox.setEnabled(False)
+ GUI.upscaleBox.setChecked(True)
+ else:
+ GUI.upscaleBox.setEnabled(True)
+ GUI.upscaleBox.setChecked(profile['DefaultUpscale'])
+
def changeGamma(self, value):
valueRaw = int(5 * round(float(value) / 5))
value = '%.2f' % (float(valueRaw) / 100)
@@ -634,7 +648,8 @@ class KCCGUI(KCC_ui.Ui_mainWindow):
self.changeFormat()
GUI.gammaSlider.setValue(0)
self.changeGamma(0)
- GUI.qualityBox.setEnabled(profile['PVOptions'])
+ if not GUI.webtoonBox.isChecked():
+ GUI.qualityBox.setEnabled(profile['PVOptions'])
GUI.upscaleBox.setChecked(profile['DefaultUpscale'])
if not profile['PVOptions']:
GUI.qualityBox.setChecked(False)
@@ -648,7 +663,8 @@ class KCCGUI(KCC_ui.Ui_mainWindow):
GUI.formatBox.setCurrentIndex(outputFormat)
else:
GUI.formatBox.setCurrentIndex(profile['DefaultFormat'])
- GUI.qualityBox.setEnabled(profile['PVOptions'])
+ if not GUI.webtoonBox.isChecked():
+ GUI.qualityBox.setEnabled(profile['PVOptions'])
if str(GUI.formatBox.currentText()) == 'MOBI/AZW3':
GUI.outputSplit.setEnabled(True)
else:
@@ -1002,6 +1018,7 @@ class KCCGUI(KCC_ui.Ui_mainWindow):
GUI.gammaSlider.valueChanged.connect(self.changeGamma)
GUI.gammaBox.stateChanged.connect(self.togglegammaBox)
GUI.webtoonBox.stateChanged.connect(self.togglewebtoonBox)
+ GUI.qualityBox.stateChanged.connect(self.togglequalityBox)
GUI.deviceBox.activated.connect(self.changeDevice)
GUI.formatBox.activated.connect(self.changeFormat)
MW.progressBarTick.connect(self.updateProgressbar)
diff --git a/kindlecomicconverter/KCC_ui.py b/kindlecomicconverter/KCC_ui.py
index 71689ab..b23c981 100644
--- a/kindlecomicconverter/KCC_ui.py
+++ b/kindlecomicconverter/KCC_ui.py
@@ -2,7 +2,7 @@
# Form implementation generated from reading ui file 'gui\KCC.ui'
#
-# Created by: PyQt5 UI code generator 5.6
+# Created by: PyQt5 UI code generator 5.8.1
#
# WARNING! All changes made in this file will be lost!
@@ -81,6 +81,7 @@ class Ui_mainWindow(object):
self.rotateBox.setObjectName("rotateBox")
self.gridLayout_2.addWidget(self.rotateBox, 0, 1, 1, 1)
self.qualityBox = QtWidgets.QCheckBox(self.optionWidget)
+ self.qualityBox.setTristate(True)
self.qualityBox.setObjectName("qualityBox")
self.gridLayout_2.addWidget(self.qualityBox, 0, 2, 1, 1)
self.webtoonBox = QtWidgets.QCheckBox(self.optionWidget)
@@ -241,8 +242,8 @@ class Ui_mainWindow(object):
self.mangaBox.setText(_translate("mainWindow", "Manga mode"))
self.rotateBox.setToolTip(_translate("mainWindow", "
Unchecked - Split
Double page spreads will be cut into two separate pages.
Indeterminate - Rotate and split
Double page spreads will be displayed twice. First rotated and then split.
Checked - Rotate
Double page spreads will be rotated.
"))
self.rotateBox.setText(_translate("mainWindow", "Spread splitter"))
- self.qualityBox.setToolTip(_translate("mainWindow", "Unchecked - 4 panels
Zoom each corner separately.
Checked - 2 panels
Zoom only the top and bottom of the page.
"))
- self.qualityBox.setText(_translate("mainWindow", "Panel View 4/2"))
+ self.qualityBox.setToolTip(_translate("mainWindow", "Unchecked - 4 panels
Zoom each corner separately.
Indeterminate - 2 panels
Zoom only the top and bottom of the page.
Checked - 4 high quality panels
Zoom each corner separately. Try to increase the quality of magnification. Check wiki for more details.
"))
+ self.qualityBox.setText(_translate("mainWindow", "Panel View 4/2/HQ"))
self.webtoonBox.setToolTip(_translate("mainWindow", "Enable special parsing mode for Korean Webtoons.
"))
self.webtoonBox.setText(_translate("mainWindow", "Webtoon mode"))
self.upscaleBox.setToolTip(_translate("mainWindow", "