diff --git a/KCC-OSX.ui b/KCC-OSX.ui new file mode 100644 index 0000000..7b9bfa6 --- /dev/null +++ b/KCC-OSX.ui @@ -0,0 +1,743 @@ + + + KCC + + + + 0 + 0 + 420 + 380 + + + + + 420 + 380 + + + + + 420 + 380 + + + + + 9 + + + + Qt::NoFocus + + + Kindle Comic Converter + + + + :/Icon/icons/comic2ebook.ico:/Icon/icons/comic2ebook.ico + + + + + + + + true + + + + 9 + 250 + 421 + 61 + + + + + 9 + + + + + + + + 11 + + + + Qt::NoFocus + + + Disable image optimizations. + + + No optimisation + + + + + + + + 11 + + + + Qt::NoFocus + + + <html><head/><body><p>Enable image upscaling.</p><p>Aspect ratio will be preserved.</p></body></html> + + + Upscale images + + + + + + + + 11 + + + + Qt::NoFocus + + + <html><head/><body><p>Enable image stretching.</p><p>Aspect ratio will be not preserved.</p></body></html> + + + Stretch images + + + + + + + + 11 + + + + Qt::NoFocus + + + <html><head/><body><p>Create PNG files instead JPEG.</p><p><span style=" font-weight:600;">Only for non-Kindle devices!</span></p></body></html> + + + PNG output + + + + + + + + 11 + + + + Qt::NoFocus + + + Fill space around images with black color. + + + Black borders + + + + + + + + 11 + + + + Qt::NoFocus + + + <html><head/><body><p>Disable splitting and rotation.</p></body></html> + + + No split/rotate + + + + + + + + + 10 + 200 + 151 + 31 + + + + + 11 + + + + Qt::NoFocus + + + Target device. + + + + + + 260 + 200 + 151 + 31 + + + + + 11 + + + + Qt::NoFocus + + + Output format. + + + + + + 160 + 200 + 101 + 41 + + + + + 11 + 75 + true + + + + Qt::NoFocus + + + Convert + + + + :/Other/icons/convert.png:/Other/icons/convert.png + + + + + + 10 + 160 + 151 + 41 + + + + + 11 + + + + Qt::NoFocus + + + Add directory + + + + :/Other/icons/folder_new.png:/Other/icons/folder_new.png + + + + + + 260 + 160 + 151 + 41 + + + + + 11 + + + + Qt::NoFocus + + + Add file + + + + :/Other/icons/document_new.png:/Other/icons/document_new.png + + + + + + 160 + 160 + 101 + 41 + + + + + 11 + + + + Qt::NoFocus + + + Clear list + + + + :/Other/icons/clear.png:/Other/icons/clear.png + + + + + + 10 + 230 + 421 + 41 + + + + + 9 + + + + + + 9 + 10 + 130 + 18 + + + + + 11 + + + + Qt::NoFocus + + + Enable right-to-left reading. + + + Manga mode + + + true + + + + + + 282 + 10 + 130 + 18 + + + + + 11 + + + + Qt::NoFocus + + + <html><head/><body><p>Enable high quality zoom.</p><p>Enabling it will <span style=" font-weight:600;">highly</span> increase size of output file and <span style=" font-weight:600;">slightly</span> reduce sharpness of not zoomed images.</p></body></html> + + + HQ Panel View + + + true + + + + + + 145 + 10 + 130 + 18 + + + + + 11 + + + + Qt::NoFocus + + + <html><head/><body><p>Disable page spliting.</p><p>They will be rotated instead.</p></body></html> + + + Horizontal mode + + + RotateBox + MangaBox + HQPVBox + + + + + 10 + 50 + 401 + 101 + + + + + 11 + + + + Qt::NoFocus + + + false + + + QAbstractItemView::NoSelection + + + + + + 10 + 10 + 151 + 41 + + + + + 12 + 50 + false + + + + Qt::NoFocus + + + Basic + + + + + + 160 + 10 + 101 + 41 + + + + + 12 + 50 + false + + + + Qt::NoFocus + + + Advanced + + + + + + 260 + 10 + 151 + 41 + + + + + 12 + + + + Qt::NoFocus + + + Expert + + + + + true + + + + 10 + 305 + 401 + 41 + + + + + 9 + + + + + + 8 + 0 + 100 + 40 + + + + + 12 + 50 + false + + + + When converting color images setting this option to 1.0 MIGHT improve readability. + + + Gamma: Auto + + + + + + 110 + 10 + 271 + 22 + + + + Qt::ClickFocus + + + <html><head/><body><p>When converting color images setting this option to 1.0 <span style=" font-weight:600;">might</span> improve readability.</p></body></html> + + + 500 + + + 5 + + + Qt::Horizontal + + + + + + + 20 + 340 + 381 + 40 + + + + + + + + 12 + 50 + false + + + + Device profile width will be overwritten by this value. + + + Custom width: + + + + + + + + 12 + + + + Qt::ClickFocus + + + false + + + Device profile width will be overwritten by this value. + + + 0000; + + + 4 + + + + + + + + 12 + 50 + false + + + + Device profile height will be overwritten by this value. + + + Custom height: + + + + + + + + 12 + + + + Qt::ClickFocus + + + false + + + Device profile height will be overwritten by this value. + + + 0000; + + + 4 + + + + + + + + + 10 + 10 + 401 + 35 + + + + + 10 + 75 + true + + + + true + + + 0 + + + Qt::AlignJustify|Qt::AlignVCenter + + + + + + ExpertModeButton + AdvModeButton + BasicModeButton + ProgressBar + JobList + OptionsAdvanced + DeviceBox + FormatBox + ConvertButton + DirectoryButton + FileButton + ClearButton + OptionsBasic + OptionsAdvancedGamma + OptionsExpert + + + + true + + + false + + + Basic + + + + 9 + + + + + + true + + + Advanced + + + + + DirectoryButton + FileButton + ConvertButton + ClearButton + + + + + + diff --git a/KCC.ui b/KCC.ui index 99b1dcc..8aed800 100644 --- a/KCC.ui +++ b/KCC.ui @@ -150,7 +150,7 @@ - 10 + 8 @@ -171,7 +171,7 @@ - 10 + 8 @@ -192,7 +192,7 @@ - 11 + 9 75 true @@ -219,7 +219,7 @@ - 10 + 8 @@ -244,7 +244,7 @@ - 10 + 8 @@ -269,7 +269,7 @@ - 10 + 8 @@ -637,4 +637,4 @@ - + \ No newline at end of file diff --git a/kcc.py b/kcc.py index 4c26e6e..794fff4 100644 --- a/kcc.py +++ b/kcc.py @@ -25,12 +25,16 @@ __docformat__ = 'restructuredtext en' import sys import os from PyQt4 import QtGui -from kcc import KCC_gui, KCC_ui +from kcc import KCC_gui from multiprocessing import freeze_support -freeze_support() if sys.platform == 'darwin': os.environ['PATH'] = '/usr/local/bin:' + os.environ['PATH'] + from kcc import KCC_ui_osx as KCC_ui +else: + from kcc import KCC_ui + +freeze_support() app = QtGui.QApplication(sys.argv) KCC = QtGui.QMainWindow() ui = KCC_ui.Ui_KCC() diff --git a/kcc/KCC_ui.py b/kcc/KCC_ui.py index b61e264..a2797ea 100644 --- a/kcc/KCC_ui.py +++ b/kcc/KCC_ui.py @@ -2,7 +2,7 @@ # Form implementation generated from reading ui file 'KCC.ui' # -# Created: Thu Jun 13 12:01:26 2013 +# Created: Thu Jun 13 18:31:57 2013 # by: PyQt4 UI code generator 4.10.1 # # WARNING! All changes made in this file will be lost! @@ -75,21 +75,21 @@ class Ui_KCC(object): self.DeviceBox = QtGui.QComboBox(self.Form) self.DeviceBox.setGeometry(QtCore.QRect(10, 200, 141, 31)) font = QtGui.QFont() - font.setPointSize(10) + font.setPointSize(8) self.DeviceBox.setFont(font) self.DeviceBox.setFocusPolicy(QtCore.Qt.NoFocus) self.DeviceBox.setObjectName(_fromUtf8("DeviceBox")) self.FormatBox = QtGui.QComboBox(self.Form) self.FormatBox.setGeometry(QtCore.QRect(260, 200, 151, 31)) font = QtGui.QFont() - font.setPointSize(10) + font.setPointSize(8) self.FormatBox.setFont(font) self.FormatBox.setFocusPolicy(QtCore.Qt.NoFocus) self.FormatBox.setObjectName(_fromUtf8("FormatBox")) self.ConvertButton = QtGui.QPushButton(self.Form) self.ConvertButton.setGeometry(QtCore.QRect(160, 200, 91, 32)) font = QtGui.QFont() - font.setPointSize(11) + font.setPointSize(9) font.setBold(True) font.setWeight(75) self.ConvertButton.setFont(font) @@ -101,7 +101,7 @@ class Ui_KCC(object): self.DirectoryButton = QtGui.QPushButton(self.Form) self.DirectoryButton.setGeometry(QtCore.QRect(10, 160, 141, 32)) font = QtGui.QFont() - font.setPointSize(10) + font.setPointSize(8) self.DirectoryButton.setFont(font) self.DirectoryButton.setFocusPolicy(QtCore.Qt.NoFocus) icon2 = QtGui.QIcon() @@ -111,7 +111,7 @@ class Ui_KCC(object): self.FileButton = QtGui.QPushButton(self.Form) self.FileButton.setGeometry(QtCore.QRect(260, 160, 151, 32)) font = QtGui.QFont() - font.setPointSize(10) + font.setPointSize(8) self.FileButton.setFont(font) self.FileButton.setFocusPolicy(QtCore.Qt.NoFocus) icon3 = QtGui.QIcon() @@ -121,7 +121,7 @@ class Ui_KCC(object): self.ClearButton = QtGui.QPushButton(self.Form) self.ClearButton.setGeometry(QtCore.QRect(160, 160, 91, 32)) font = QtGui.QFont() - font.setPointSize(10) + font.setPointSize(8) self.ClearButton.setFont(font) self.ClearButton.setFocusPolicy(QtCore.Qt.NoFocus) icon4 = QtGui.QIcon() diff --git a/kcc/KCC_ui_osx.py b/kcc/KCC_ui_osx.py new file mode 100644 index 0000000..c40b4df --- /dev/null +++ b/kcc/KCC_ui_osx.py @@ -0,0 +1,346 @@ +# -*- coding: utf-8 -*- + +# Form implementation generated from reading ui file 'KCC-OSX.ui' +# +# Created: Thu Jun 13 18:32:09 2013 +# by: PyQt4 UI code generator 4.10.1 +# +# WARNING! All changes made in this file will be lost! + +from PyQt4 import QtCore, QtGui + +try: + _fromUtf8 = QtCore.QString.fromUtf8 +except AttributeError: + def _fromUtf8(s): + return s + +try: + _encoding = QtGui.QApplication.UnicodeUTF8 + def _translate(context, text, disambig): + return QtGui.QApplication.translate(context, text, disambig, _encoding) +except AttributeError: + def _translate(context, text, disambig): + return QtGui.QApplication.translate(context, text, disambig) + +class Ui_KCC(object): + def setupUi(self, KCC): + KCC.setObjectName(_fromUtf8("KCC")) + KCC.resize(420, 380) + KCC.setMinimumSize(QtCore.QSize(420, 380)) + KCC.setMaximumSize(QtCore.QSize(420, 380)) + font = QtGui.QFont() + font.setPointSize(9) + KCC.setFont(font) + KCC.setFocusPolicy(QtCore.Qt.NoFocus) + icon = QtGui.QIcon() + icon.addPixmap(QtGui.QPixmap(_fromUtf8(":/Icon/icons/comic2ebook.ico")), QtGui.QIcon.Normal, QtGui.QIcon.Off) + KCC.setWindowIcon(icon) + KCC.setLocale(QtCore.QLocale(QtCore.QLocale.C, QtCore.QLocale.AnyCountry)) + self.Form = QtGui.QWidget(KCC) + self.Form.setObjectName(_fromUtf8("Form")) + self.OptionsAdvanced = QtGui.QFrame(self.Form) + self.OptionsAdvanced.setEnabled(True) + self.OptionsAdvanced.setGeometry(QtCore.QRect(9, 250, 421, 61)) + font = QtGui.QFont() + font.setPointSize(9) + self.OptionsAdvanced.setFont(font) + self.OptionsAdvanced.setObjectName(_fromUtf8("OptionsAdvanced")) + self.gridLayout = QtGui.QGridLayout(self.OptionsAdvanced) + self.gridLayout.setObjectName(_fromUtf8("gridLayout")) + self.ProcessingBox = QtGui.QCheckBox(self.OptionsAdvanced) + font = QtGui.QFont() + font.setPointSize(11) + self.ProcessingBox.setFont(font) + self.ProcessingBox.setFocusPolicy(QtCore.Qt.NoFocus) + self.ProcessingBox.setObjectName(_fromUtf8("ProcessingBox")) + self.gridLayout.addWidget(self.ProcessingBox, 1, 0, 1, 1) + self.UpscaleBox = QtGui.QCheckBox(self.OptionsAdvanced) + font = QtGui.QFont() + font.setPointSize(11) + self.UpscaleBox.setFont(font) + self.UpscaleBox.setFocusPolicy(QtCore.Qt.NoFocus) + self.UpscaleBox.setObjectName(_fromUtf8("UpscaleBox")) + self.gridLayout.addWidget(self.UpscaleBox, 1, 1, 1, 1) + self.StretchBox = QtGui.QCheckBox(self.OptionsAdvanced) + font = QtGui.QFont() + font.setPointSize(11) + self.StretchBox.setFont(font) + self.StretchBox.setFocusPolicy(QtCore.Qt.NoFocus) + self.StretchBox.setObjectName(_fromUtf8("StretchBox")) + self.gridLayout.addWidget(self.StretchBox, 3, 1, 1, 1) + self.NoDitheringBox = QtGui.QCheckBox(self.OptionsAdvanced) + font = QtGui.QFont() + font.setPointSize(11) + self.NoDitheringBox.setFont(font) + self.NoDitheringBox.setFocusPolicy(QtCore.Qt.NoFocus) + self.NoDitheringBox.setObjectName(_fromUtf8("NoDitheringBox")) + self.gridLayout.addWidget(self.NoDitheringBox, 3, 2, 1, 1) + self.BorderBox = QtGui.QCheckBox(self.OptionsAdvanced) + font = QtGui.QFont() + font.setPointSize(11) + self.BorderBox.setFont(font) + self.BorderBox.setFocusPolicy(QtCore.Qt.NoFocus) + self.BorderBox.setObjectName(_fromUtf8("BorderBox")) + self.gridLayout.addWidget(self.BorderBox, 3, 0, 1, 1) + self.NoRotateBox = QtGui.QCheckBox(self.OptionsAdvanced) + font = QtGui.QFont() + font.setPointSize(11) + self.NoRotateBox.setFont(font) + self.NoRotateBox.setFocusPolicy(QtCore.Qt.NoFocus) + self.NoRotateBox.setObjectName(_fromUtf8("NoRotateBox")) + self.gridLayout.addWidget(self.NoRotateBox, 1, 2, 1, 1) + self.DeviceBox = QtGui.QComboBox(self.Form) + self.DeviceBox.setGeometry(QtCore.QRect(10, 200, 151, 31)) + font = QtGui.QFont() + font.setPointSize(11) + self.DeviceBox.setFont(font) + self.DeviceBox.setFocusPolicy(QtCore.Qt.NoFocus) + self.DeviceBox.setObjectName(_fromUtf8("DeviceBox")) + self.FormatBox = QtGui.QComboBox(self.Form) + self.FormatBox.setGeometry(QtCore.QRect(260, 200, 151, 31)) + font = QtGui.QFont() + font.setPointSize(11) + self.FormatBox.setFont(font) + self.FormatBox.setFocusPolicy(QtCore.Qt.NoFocus) + self.FormatBox.setObjectName(_fromUtf8("FormatBox")) + self.ConvertButton = QtGui.QPushButton(self.Form) + self.ConvertButton.setGeometry(QtCore.QRect(160, 200, 101, 41)) + font = QtGui.QFont() + font.setPointSize(11) + font.setBold(True) + font.setWeight(75) + self.ConvertButton.setFont(font) + self.ConvertButton.setFocusPolicy(QtCore.Qt.NoFocus) + icon1 = QtGui.QIcon() + icon1.addPixmap(QtGui.QPixmap(_fromUtf8(":/Other/icons/convert.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) + self.ConvertButton.setIcon(icon1) + self.ConvertButton.setObjectName(_fromUtf8("ConvertButton")) + self.DirectoryButton = QtGui.QPushButton(self.Form) + self.DirectoryButton.setGeometry(QtCore.QRect(10, 160, 151, 41)) + font = QtGui.QFont() + font.setPointSize(11) + self.DirectoryButton.setFont(font) + self.DirectoryButton.setFocusPolicy(QtCore.Qt.NoFocus) + icon2 = QtGui.QIcon() + icon2.addPixmap(QtGui.QPixmap(_fromUtf8(":/Other/icons/folder_new.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) + self.DirectoryButton.setIcon(icon2) + self.DirectoryButton.setObjectName(_fromUtf8("DirectoryButton")) + self.FileButton = QtGui.QPushButton(self.Form) + self.FileButton.setGeometry(QtCore.QRect(260, 160, 151, 41)) + font = QtGui.QFont() + font.setPointSize(11) + self.FileButton.setFont(font) + self.FileButton.setFocusPolicy(QtCore.Qt.NoFocus) + icon3 = QtGui.QIcon() + icon3.addPixmap(QtGui.QPixmap(_fromUtf8(":/Other/icons/document_new.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) + self.FileButton.setIcon(icon3) + self.FileButton.setObjectName(_fromUtf8("FileButton")) + self.ClearButton = QtGui.QPushButton(self.Form) + self.ClearButton.setGeometry(QtCore.QRect(160, 160, 101, 41)) + font = QtGui.QFont() + font.setPointSize(11) + self.ClearButton.setFont(font) + self.ClearButton.setFocusPolicy(QtCore.Qt.NoFocus) + icon4 = QtGui.QIcon() + icon4.addPixmap(QtGui.QPixmap(_fromUtf8(":/Other/icons/clear.png")), QtGui.QIcon.Normal, QtGui.QIcon.Off) + self.ClearButton.setIcon(icon4) + self.ClearButton.setObjectName(_fromUtf8("ClearButton")) + self.OptionsBasic = QtGui.QFrame(self.Form) + self.OptionsBasic.setGeometry(QtCore.QRect(10, 230, 421, 41)) + font = QtGui.QFont() + font.setPointSize(9) + self.OptionsBasic.setFont(font) + self.OptionsBasic.setObjectName(_fromUtf8("OptionsBasic")) + self.MangaBox = QtGui.QCheckBox(self.OptionsBasic) + self.MangaBox.setGeometry(QtCore.QRect(9, 10, 130, 18)) + font = QtGui.QFont() + font.setPointSize(11) + self.MangaBox.setFont(font) + self.MangaBox.setFocusPolicy(QtCore.Qt.NoFocus) + self.MangaBox.setChecked(True) + self.MangaBox.setObjectName(_fromUtf8("MangaBox")) + self.HQPVBox = QtGui.QCheckBox(self.OptionsBasic) + self.HQPVBox.setGeometry(QtCore.QRect(282, 10, 130, 18)) + font = QtGui.QFont() + font.setPointSize(11) + self.HQPVBox.setFont(font) + self.HQPVBox.setFocusPolicy(QtCore.Qt.NoFocus) + self.HQPVBox.setChecked(True) + self.HQPVBox.setObjectName(_fromUtf8("HQPVBox")) + self.RotateBox = QtGui.QCheckBox(self.OptionsBasic) + self.RotateBox.setGeometry(QtCore.QRect(145, 10, 130, 18)) + font = QtGui.QFont() + font.setPointSize(11) + self.RotateBox.setFont(font) + self.RotateBox.setFocusPolicy(QtCore.Qt.NoFocus) + self.RotateBox.setObjectName(_fromUtf8("RotateBox")) + self.JobList = QtGui.QListWidget(self.Form) + self.JobList.setGeometry(QtCore.QRect(10, 50, 401, 101)) + font = QtGui.QFont() + font.setPointSize(11) + self.JobList.setFont(font) + self.JobList.setFocusPolicy(QtCore.Qt.NoFocus) + self.JobList.setProperty("showDropIndicator", False) + self.JobList.setSelectionMode(QtGui.QAbstractItemView.NoSelection) + self.JobList.setObjectName(_fromUtf8("JobList")) + self.BasicModeButton = QtGui.QPushButton(self.Form) + self.BasicModeButton.setGeometry(QtCore.QRect(10, 10, 151, 41)) + font = QtGui.QFont() + font.setPointSize(12) + font.setBold(False) + font.setWeight(50) + self.BasicModeButton.setFont(font) + self.BasicModeButton.setFocusPolicy(QtCore.Qt.NoFocus) + self.BasicModeButton.setObjectName(_fromUtf8("BasicModeButton")) + self.AdvModeButton = QtGui.QPushButton(self.Form) + self.AdvModeButton.setGeometry(QtCore.QRect(160, 10, 101, 41)) + font = QtGui.QFont() + font.setPointSize(12) + font.setBold(False) + font.setWeight(50) + self.AdvModeButton.setFont(font) + self.AdvModeButton.setFocusPolicy(QtCore.Qt.NoFocus) + self.AdvModeButton.setObjectName(_fromUtf8("AdvModeButton")) + self.ExpertModeButton = QtGui.QPushButton(self.Form) + self.ExpertModeButton.setGeometry(QtCore.QRect(260, 10, 151, 41)) + font = QtGui.QFont() + font.setPointSize(12) + self.ExpertModeButton.setFont(font) + self.ExpertModeButton.setFocusPolicy(QtCore.Qt.NoFocus) + self.ExpertModeButton.setObjectName(_fromUtf8("ExpertModeButton")) + self.OptionsAdvancedGamma = QtGui.QFrame(self.Form) + self.OptionsAdvancedGamma.setEnabled(True) + self.OptionsAdvancedGamma.setGeometry(QtCore.QRect(10, 305, 401, 41)) + font = QtGui.QFont() + font.setPointSize(9) + self.OptionsAdvancedGamma.setFont(font) + self.OptionsAdvancedGamma.setObjectName(_fromUtf8("OptionsAdvancedGamma")) + self.GammaLabel = QtGui.QLabel(self.OptionsAdvancedGamma) + self.GammaLabel.setGeometry(QtCore.QRect(8, 0, 100, 40)) + font = QtGui.QFont() + font.setPointSize(12) + font.setBold(False) + font.setWeight(50) + self.GammaLabel.setFont(font) + self.GammaLabel.setObjectName(_fromUtf8("GammaLabel")) + self.GammaSlider = QtGui.QSlider(self.OptionsAdvancedGamma) + self.GammaSlider.setGeometry(QtCore.QRect(110, 10, 271, 22)) + self.GammaSlider.setFocusPolicy(QtCore.Qt.ClickFocus) + self.GammaSlider.setMaximum(500) + self.GammaSlider.setSingleStep(5) + self.GammaSlider.setOrientation(QtCore.Qt.Horizontal) + self.GammaSlider.setObjectName(_fromUtf8("GammaSlider")) + self.OptionsExpert = QtGui.QFrame(self.Form) + self.OptionsExpert.setGeometry(QtCore.QRect(20, 340, 381, 40)) + self.OptionsExpert.setObjectName(_fromUtf8("OptionsExpert")) + self.gridLayout_2 = QtGui.QGridLayout(self.OptionsExpert) + self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) + self.wLabel = QtGui.QLabel(self.OptionsExpert) + font = QtGui.QFont() + font.setPointSize(12) + font.setBold(False) + font.setWeight(50) + self.wLabel.setFont(font) + self.wLabel.setObjectName(_fromUtf8("wLabel")) + self.gridLayout_2.addWidget(self.wLabel, 0, 0, 1, 1) + self.customWidth = QtGui.QLineEdit(self.OptionsExpert) + font = QtGui.QFont() + font.setPointSize(12) + self.customWidth.setFont(font) + self.customWidth.setFocusPolicy(QtCore.Qt.ClickFocus) + self.customWidth.setAcceptDrops(False) + self.customWidth.setMaxLength(4) + self.customWidth.setObjectName(_fromUtf8("customWidth")) + self.gridLayout_2.addWidget(self.customWidth, 0, 1, 1, 1) + self.hLabel = QtGui.QLabel(self.OptionsExpert) + font = QtGui.QFont() + font.setPointSize(12) + font.setBold(False) + font.setWeight(50) + self.hLabel.setFont(font) + self.hLabel.setObjectName(_fromUtf8("hLabel")) + self.gridLayout_2.addWidget(self.hLabel, 0, 2, 1, 1) + self.customHeight = QtGui.QLineEdit(self.OptionsExpert) + font = QtGui.QFont() + font.setPointSize(12) + self.customHeight.setFont(font) + self.customHeight.setFocusPolicy(QtCore.Qt.ClickFocus) + self.customHeight.setAcceptDrops(False) + self.customHeight.setMaxLength(4) + self.customHeight.setObjectName(_fromUtf8("customHeight")) + self.gridLayout_2.addWidget(self.customHeight, 0, 3, 1, 1) + self.ProgressBar = QtGui.QProgressBar(self.Form) + self.ProgressBar.setGeometry(QtCore.QRect(10, 10, 401, 35)) + font = QtGui.QFont() + font.setPointSize(10) + font.setBold(True) + font.setWeight(75) + self.ProgressBar.setFont(font) + self.ProgressBar.setAutoFillBackground(True) + self.ProgressBar.setProperty("value", 0) + self.ProgressBar.setAlignment(QtCore.Qt.AlignJustify|QtCore.Qt.AlignVCenter) + self.ProgressBar.setFormat(_fromUtf8("")) + self.ProgressBar.setObjectName(_fromUtf8("ProgressBar")) + KCC.setCentralWidget(self.Form) + self.ActionBasic = QtGui.QAction(KCC) + self.ActionBasic.setCheckable(True) + self.ActionBasic.setChecked(False) + font = QtGui.QFont() + font.setPointSize(9) + self.ActionBasic.setFont(font) + self.ActionBasic.setObjectName(_fromUtf8("ActionBasic")) + self.ActionAdvanced = QtGui.QAction(KCC) + self.ActionAdvanced.setCheckable(True) + self.ActionAdvanced.setObjectName(_fromUtf8("ActionAdvanced")) + + self.retranslateUi(KCC) + QtCore.QMetaObject.connectSlotsByName(KCC) + KCC.setTabOrder(self.DirectoryButton, self.FileButton) + KCC.setTabOrder(self.FileButton, self.ConvertButton) + KCC.setTabOrder(self.ConvertButton, self.ClearButton) + + def retranslateUi(self, KCC): + KCC.setWindowTitle(_translate("KCC", "Kindle Comic Converter", None)) + self.ProcessingBox.setToolTip(_translate("KCC", "Disable image optimizations.", None)) + self.ProcessingBox.setText(_translate("KCC", "No optimisation", None)) + self.UpscaleBox.setToolTip(_translate("KCC", "

Enable image upscaling.

Aspect ratio will be preserved.

", None)) + self.UpscaleBox.setText(_translate("KCC", "Upscale images", None)) + self.StretchBox.setToolTip(_translate("KCC", "

Enable image stretching.

Aspect ratio will be not preserved.

", None)) + self.StretchBox.setText(_translate("KCC", "Stretch images", None)) + self.NoDitheringBox.setToolTip(_translate("KCC", "

Create PNG files instead JPEG.

Only for non-Kindle devices!

", None)) + self.NoDitheringBox.setText(_translate("KCC", "PNG output", None)) + self.BorderBox.setToolTip(_translate("KCC", "Fill space around images with black color.", None)) + self.BorderBox.setText(_translate("KCC", "Black borders", None)) + self.NoRotateBox.setToolTip(_translate("KCC", "

Disable splitting and rotation.

", None)) + self.NoRotateBox.setText(_translate("KCC", "No split/rotate", None)) + self.DeviceBox.setToolTip(_translate("KCC", "Target device.", None)) + self.FormatBox.setToolTip(_translate("KCC", "Output format.", None)) + self.ConvertButton.setText(_translate("KCC", "Convert", None)) + self.DirectoryButton.setText(_translate("KCC", "Add directory", None)) + self.FileButton.setText(_translate("KCC", "Add file", None)) + self.ClearButton.setText(_translate("KCC", "Clear list", None)) + self.MangaBox.setToolTip(_translate("KCC", "Enable right-to-left reading.", None)) + self.MangaBox.setText(_translate("KCC", "Manga mode", None)) + self.HQPVBox.setToolTip(_translate("KCC", "

Enable high quality zoom.

Enabling it will highly increase size of output file and slightly reduce sharpness of not zoomed images.

", None)) + self.HQPVBox.setText(_translate("KCC", "HQ Panel View", None)) + self.RotateBox.setToolTip(_translate("KCC", "

Disable page spliting.

They will be rotated instead.

", None)) + self.RotateBox.setText(_translate("KCC", "Horizontal mode", None)) + self.BasicModeButton.setText(_translate("KCC", "Basic", None)) + self.AdvModeButton.setText(_translate("KCC", "Advanced", None)) + self.ExpertModeButton.setText(_translate("KCC", "Expert", None)) + self.GammaLabel.setToolTip(_translate("KCC", "When converting color images setting this option to 1.0 MIGHT improve readability.", None)) + self.GammaLabel.setText(_translate("KCC", "Gamma: Auto", None)) + self.GammaSlider.setToolTip(_translate("KCC", "

When converting color images setting this option to 1.0 might improve readability.

", None)) + self.wLabel.setToolTip(_translate("KCC", "Device profile width will be overwritten by this value.", None)) + self.wLabel.setText(_translate("KCC", "Custom width: ", None)) + self.customWidth.setToolTip(_translate("KCC", "Device profile width will be overwritten by this value.", None)) + self.customWidth.setInputMask(_translate("KCC", "0000; ", None)) + self.hLabel.setToolTip(_translate("KCC", "Device profile height will be overwritten by this value.", None)) + self.hLabel.setText(_translate("KCC", "Custom height: ", None)) + self.customHeight.setToolTip(_translate("KCC", "Device profile height will be overwritten by this value.", None)) + self.customHeight.setInputMask(_translate("KCC", "0000; ", None)) + self.ActionBasic.setText(_translate("KCC", "Basic", None)) + self.ActionAdvanced.setText(_translate("KCC", "Advanced", None)) + +import KCC_rc