1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-24 23:23:27 +00:00

Add rotate option to GUI

This commit is contained in:
Ciro Mattia Gonano
2013-03-02 19:38:08 +01:00
parent a5fccdff4b
commit b6b6bf5d1f
2 changed files with 6 additions and 2 deletions

View File

@@ -319,7 +319,7 @@ def main(argv=None):
parser.add_option("-t", "--title", action="store", dest="title", default="defaulttitle",
help="Comic title [default=filename]")
parser.add_option("-m", "--manga-style", action="store_true", dest="righttoleft", default=False,
help="Split pages 'manga style' (right-to-left reading) [default=False]")
help="'Manga style' (right-to-left reading and splitting) [default=False]")
parser.add_option("-v", "--verbose", action="store_true", dest="verbose", default=False,
help="Verbose output [default=False]")
parser.add_option("--no-image-processing", action="store_false", dest="imgproc", default=True,

View File

@@ -89,6 +89,7 @@ class MainWindow:
self.options = {
'epub_only': IntVar(None, 0),
'image_preprocess': IntVar(None, 1),
'rotate': IntVar(None, 0),
'cut_page_numbers': IntVar(None, 1),
'mangastyle': IntVar(None, 0),
'image_upscale': IntVar(None, 0),
@@ -98,8 +99,9 @@ class MainWindow:
self.optionlabels = {
'epub_only': "Generate ePub only (does not call 'kindlegen')",
'image_preprocess': "Apply image optimizations",
'rotate': "Rotate landscape images instead of splitting them.",
'cut_page_numbers': "Cut page numbers",
'mangastyle': "Split manga-style (right-to-left reading)",
'mangastyle': "Manga-style (right-to-left reading, applies to reading and splitting)",
'image_upscale': "Allow image upscaling",
'image_stretch': "Stretch images",
'black_borders': "Use black borders"
@@ -130,6 +132,8 @@ class MainWindow:
argv = ["-p", profilekey]
if self.options['image_preprocess'].get() == 0:
argv.append("--no-image-processing")
if self.options['rotate'].get() == 1:
argv.append("--rotate")
if self.options['cut_page_numbers'].get() == 0:
argv.append("--no-cut-page-numbers")
if self.options['mangastyle'].get() == 1: