mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix HTMLZ options for GUI.
This commit is contained in:
parent
5731cad1be
commit
7b267d300c
@ -52,8 +52,7 @@ class HTMLZOutput(OutputFormatPlugin):
|
|||||||
else:
|
else:
|
||||||
from calibre.ebooks.htmlz.oeb2html import OEB2HTMLClassCSSizer as OEB2HTMLizer
|
from calibre.ebooks.htmlz.oeb2html import OEB2HTMLClassCSSizer as OEB2HTMLizer
|
||||||
|
|
||||||
|
with TemporaryDirectory('_htmlz_output') as tdir:
|
||||||
with TemporaryDirectory('_txtz_output') as tdir:
|
|
||||||
htmlizer = OEB2HTMLizer(log)
|
htmlizer = OEB2HTMLizer(log)
|
||||||
html = htmlizer.oeb2html(oeb_book, opts)
|
html = htmlizer.oeb2html(oeb_book, opts)
|
||||||
|
|
||||||
|
@ -17,10 +17,10 @@ class PluginWidget(Widget, Ui_Form):
|
|||||||
ICON = I('mimetypes/html.png')
|
ICON = I('mimetypes/html.png')
|
||||||
|
|
||||||
def __init__(self, parent, get_option, get_help, db=None, book_id=None):
|
def __init__(self, parent, get_option, get_help, db=None, book_id=None):
|
||||||
Widget.__init__(self, parent, ['css_type', 'class_style'])
|
Widget.__init__(self, parent, ['htmlz_css_type', 'htmlz_class_style'])
|
||||||
self.db, self.book_id = db, book_id
|
self.db, self.book_id = db, book_id
|
||||||
for x in get_option('css_type').option.choices:
|
for x in get_option('htmlz_css_type').option.choices:
|
||||||
self.opt_css_type.addItem(x)
|
self.opt_htmlz_css_type.addItem(x)
|
||||||
for x in get_option('class_style').option.choices:
|
for x in get_option('htmlz_class_style').option.choices:
|
||||||
self.opt_class_style.addItem(x)
|
self.opt_htmlz_class_style.addItem(x)
|
||||||
self.initialize_options(get_option, get_help, db, book_id)
|
self.initialize_options(get_option, get_help, db, book_id)
|
||||||
|
@ -33,12 +33,12 @@
|
|||||||
<string>How to handle CSS</string>
|
<string>How to handle CSS</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="buddy">
|
<property name="buddy">
|
||||||
<cstring>opt_css_type</cstring>
|
<cstring>opt_htmlz_css_type</cstring>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="1">
|
<item row="0" column="1">
|
||||||
<widget class="QComboBox" name="opt_css_type">
|
<widget class="QComboBox" name="opt_htmlz_css_type">
|
||||||
<property name="minimumContentsLength">
|
<property name="minimumContentsLength">
|
||||||
<number>20</number>
|
<number>20</number>
|
||||||
</property>
|
</property>
|
||||||
@ -52,7 +52,7 @@
|
|||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="1">
|
<item row="1" column="1">
|
||||||
<widget class="QComboBox" name="opt_class_style"/>
|
<widget class="QComboBox" name="opt_htmlz_class_style"/>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user