AZW3 output options UI

This commit is contained in:
Kovid Goyal 2018-07-04 15:22:04 +05:30
parent 19d2561f81
commit 664ddf49cc
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -604,6 +604,19 @@ def mobi_output(container):
g.appendChild(checkbox('share_not_sync', _('Enable &sharing of book content via Facebook, etc. WARNING: Disables last read syncing'))) g.appendChild(checkbox('share_not_sync', _('Enable &sharing of book content via Facebook, etc. WARNING: Disables last read syncing')))
# }}} # }}}
# AZW3 Output {{{
@ep
def azw3_output(container):
g = E.div(class_='simple-group')
container.appendChild(g)
g.appendChild(checkbox('no_inline_toc', _('Do not add &Table of Contents to book')))
g.appendChild(lineedit('toc_title', indent + _('&Title for Table of Contents:')))
g.appendChild(checkbox('mobi_toc_at_start', _('Put generated Table of Contents at &start of book instead of end')))
g.appendChild(checkbox('prefer_author_sort', _('Use author &sort for author')))
g.appendChild(checkbox('dont_compress', _('Disable &compression of the file contents')))
g.appendChild(checkbox('share_not_sync', _('Enable &sharing of book content via Facebook, etc. WARNING: Disables last read syncing')))
# }}}
def restore_defaults(): def restore_defaults():
for setting in registry: for setting in registry:
set(setting, get_option_default_value(setting)) set(setting, get_option_default_value(setting))