mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
PMLZ output options UI
This commit is contained in:
parent
e77c8cc7ab
commit
9bad72f2cc
@ -305,7 +305,7 @@ OPTIONS = {
|
||||
'pdf_page_margin_right', 'pdf_page_margin_bottom',
|
||||
'pdf_use_document_margins',),
|
||||
|
||||
'pmlz': ('inline_toc', 'full_image_depth', 'pml_output_encoding'),
|
||||
'pml': ('inline_toc', 'full_image_depth', 'pml_output_encoding'),
|
||||
|
||||
'rb': ('inline_toc',),
|
||||
|
||||
|
@ -19,6 +19,6 @@ class PluginWidget(Widget, Ui_Form):
|
||||
ICON = I('mimetypes/unknown.png')
|
||||
|
||||
def __init__(self, parent, get_option, get_help, db=None, book_id=None):
|
||||
Widget.__init__(self, parent, OPTIONS['output']['pmlz'])
|
||||
Widget.__init__(self, parent, OPTIONS['output']['pml'])
|
||||
self.db, self.book_id = db, book_id
|
||||
self.initialize_options(get_option, get_help, db, book_id)
|
||||
|
@ -667,6 +667,16 @@ def pdf_output(container):
|
||||
g.appendChild(lineedit('pdf_footer_template', _('&Footer template:')))
|
||||
# }}}
|
||||
|
||||
# PMLZ Output {{{
|
||||
@ep
|
||||
def pml_output(container):
|
||||
g = E.div(class_='simple-group')
|
||||
container.appendChild(g)
|
||||
g.appendChild(lineedit('pml_output_encoding', _('O&utput encoding:')))
|
||||
g.appendChild(checkbox('inline_toc', _('&Inline TOC')))
|
||||
g.appendChild(checkbox('full_image_depth', _('Do not &reduce image size and depth')))
|
||||
# }}}
|
||||
|
||||
def restore_defaults():
|
||||
for setting in registry:
|
||||
set(setting, get_option_default_value(setting))
|
||||
|
Loading…
x
Reference in New Issue
Block a user