From a8b7cc4af8e10d8f451c34c4c69331d604c802bd Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 4 May 2009 18:57:14 -0700 Subject: [PATCH] IGN:... --- src/calibre/gui2/convert/lrf_output.py | 4 +++ src/calibre/gui2/convert/lrf_output.ui | 48 ++++++++++++++++++++++++++ src/calibre/gui2/convert/single.py | 14 ++++++-- 3 files changed, 63 insertions(+), 3 deletions(-) diff --git a/src/calibre/gui2/convert/lrf_output.py b/src/calibre/gui2/convert/lrf_output.py index 1a64b0689f..78a7bfa3fa 100644 --- a/src/calibre/gui2/convert/lrf_output.py +++ b/src/calibre/gui2/convert/lrf_output.py @@ -35,6 +35,10 @@ class PluginWidget(Widget, Ui_Form): self.opt_mono_family.setModel(self.font_family_model) self.initialize_options(get_option, get_help, db, book_id) + self.opt_header.toggle(), self.opt_header.toggle() + self.opt_render_tables_as_images.toggle() + self.opt_render_tables_as_images.toggle() + def set_value_handler(self, g, val): if val is None and unicode(g.objectName()) in ('opt_serif_family', diff --git a/src/calibre/gui2/convert/lrf_output.ui b/src/calibre/gui2/convert/lrf_output.ui index 7c58fd02fb..ecbe673c61 100644 --- a/src/calibre/gui2/convert/lrf_output.ui +++ b/src/calibre/gui2/convert/lrf_output.ui @@ -252,5 +252,53 @@ + + opt_render_tables_as_images + toggled(bool) + label_3 + setEnabled(bool) + + + 96 + 76 + + + 31 + 113 + + + + + opt_header + toggled(bool) + label_4 + setEnabled(bool) + + + 67 + 144 + + + 72 + 165 + + + + + opt_header + toggled(bool) + label_5 + setEnabled(bool) + + + 107 + 141 + + + 102 + 211 + + + diff --git a/src/calibre/gui2/convert/single.py b/src/calibre/gui2/convert/single.py index 4d3f023a4c..7bf18e90c7 100644 --- a/src/calibre/gui2/convert/single.py +++ b/src/calibre/gui2/convert/single.py @@ -69,6 +69,7 @@ class Config(ResizableDialog, Ui_Dialog): input_path - Path to input file output_format - Output format (without a leading .) + input_format - Input format (without a leading .) opf_path - Path to OPF file with user specified metadata cover_path - Path to user specified cover (can be None) recommendations - A pickled list of 3 tuples in the same format as the @@ -96,14 +97,21 @@ class Config(ResizableDialog, Ui_Dialog): self.show_group_help) self.groups.setMouseTracking(True) + @property + def input_format(self): + return unicode(self.input_formats.currentText()).lower() + + @property + def output_format(self): + return unicode(self.output_formats.currentText()).lower() + def setup_pipeline(self, *args): - input_format = unicode(self.input_formats.currentText()).lower() - output_format = unicode(self.output_formats.currentText()).lower() + input_format = self.input_format + output_format = self.output_format input_path = self.db.format_abspath(self.book_id, input_format, index_is_id=True) self.input_path = input_path - self.output_format = output_format output_path = 'dummy.'+output_format log = Log() log.outputs = []