From 28bd7cd3f9a6059f6d99697103660d80bf31c376 Mon Sep 17 00:00:00 2001 From: John Schember Date: Tue, 23 Jun 2009 18:22:10 -0400 Subject: [PATCH] GUI config for PDF intput. --- src/calibre/gui2/convert/pdf_input.py | 19 +++++++++ src/calibre/gui2/convert/pdf_input.ui | 61 +++++++++++++++++++++++++++ 2 files changed, 80 insertions(+) create mode 100644 src/calibre/gui2/convert/pdf_input.py create mode 100644 src/calibre/gui2/convert/pdf_input.ui diff --git a/src/calibre/gui2/convert/pdf_input.py b/src/calibre/gui2/convert/pdf_input.py new file mode 100644 index 0000000000..71e4bc0ef3 --- /dev/null +++ b/src/calibre/gui2/convert/pdf_input.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- + +__license__ = 'GPL 3' +__copyright__ = '2009, John Schember ' +__docformat__ = 'restructuredtext en' + +from calibre.gui2.convert.pdf_input_ui import Ui_Form +from calibre.gui2.convert import Widget + +class PluginWidget(Widget, Ui_Form): + + TITLE = _('PDF Input') + HELP = _('Options specific to')+' PDF '+_('input') + + def __init__(self, parent, get_option, get_help, db=None, book_id=None): + Widget.__init__(self, parent, 'pdf_input', + ['no_images', 'pdf_line_length']) + self.db, self.book_id = db, book_id + self.initialize_options(get_option, get_help, db, book_id) diff --git a/src/calibre/gui2/convert/pdf_input.ui b/src/calibre/gui2/convert/pdf_input.ui new file mode 100644 index 0000000000..35b840ded0 --- /dev/null +++ b/src/calibre/gui2/convert/pdf_input.ui @@ -0,0 +1,61 @@ + + + Form + + + + 0 + 0 + 400 + 300 + + + + Form + + + + + + Line Un-Wrapping Factor: + + + + + + + Qt::Vertical + + + + 20 + 213 + + + + + + + + 1.000000000000000 + + + 0.010000000000000 + + + 0.500000000000000 + + + + + + + No Images + + + + + + + +