NarrativeWeb: Reduce the Report options window.
This commit is contained in:
@ -9605,10 +9605,13 @@ class NavWebOptions(MenuReportOptions):
|
|||||||
@param: menu -- The menu for which we add options
|
@param: menu -- The menu for which we add options
|
||||||
"""
|
"""
|
||||||
self.__add_report_options(menu)
|
self.__add_report_options(menu)
|
||||||
|
self.__add_report_options_2(menu)
|
||||||
self.__add_page_generation_options(menu)
|
self.__add_page_generation_options(menu)
|
||||||
|
self.__add_images_generation_options(menu)
|
||||||
self.__add_privacy_options(menu)
|
self.__add_privacy_options(menu)
|
||||||
self.__add_download_options(menu)
|
self.__add_download_options(menu)
|
||||||
self.__add_advanced_options(menu)
|
self.__add_advanced_options(menu)
|
||||||
|
self.__add_advanced_options_2(menu)
|
||||||
self.__add_place_map_options(menu)
|
self.__add_place_map_options(menu)
|
||||||
self.__add_others_options(menu)
|
self.__add_others_options(menu)
|
||||||
|
|
||||||
@ -9658,6 +9661,15 @@ class NavWebOptions(MenuReportOptions):
|
|||||||
|
|
||||||
stdoptions.add_name_format_option(menu, category_name)
|
stdoptions.add_name_format_option(menu, category_name)
|
||||||
|
|
||||||
|
stdoptions.add_localization_option(menu, category_name)
|
||||||
|
|
||||||
|
def __add_report_options_2(self, menu):
|
||||||
|
"""
|
||||||
|
Continue Options on the "Report Options" tab.
|
||||||
|
"""
|
||||||
|
category_name = _("Report Options (2)")
|
||||||
|
addopt = partial( menu.add_option, category_name )
|
||||||
|
|
||||||
ext = EnumeratedListOption(_("File extension"), ".html")
|
ext = EnumeratedListOption(_("File extension"), ".html")
|
||||||
for etype in _WEB_EXT:
|
for etype in _WEB_EXT:
|
||||||
ext.add_item(etype, etype)
|
ext.add_item(etype, etype)
|
||||||
@ -9718,10 +9730,12 @@ class NavWebOptions(MenuReportOptions):
|
|||||||
self.__graphgens.set_help(_("The number of generations to include in "
|
self.__graphgens.set_help(_("The number of generations to include in "
|
||||||
"the ancestor graph"))
|
"the ancestor graph"))
|
||||||
addopt("graphgens", self.__graphgens)
|
addopt("graphgens", self.__graphgens)
|
||||||
|
|
||||||
stdoptions.add_localization_option(menu, category_name)
|
|
||||||
self.__graph_changed()
|
self.__graph_changed()
|
||||||
|
|
||||||
|
nogid = BooleanOption(_('Suppress Gramps ID'), False)
|
||||||
|
nogid.set_help(_('Whether to include the Gramps ID of objects'))
|
||||||
|
addopt( "nogid", nogid )
|
||||||
|
|
||||||
def __add_page_generation_options(self, menu):
|
def __add_page_generation_options(self, menu):
|
||||||
"""
|
"""
|
||||||
Options on the "Page Generation" tab.
|
Options on the "Page Generation" tab.
|
||||||
@ -9767,6 +9781,13 @@ class NavWebOptions(MenuReportOptions):
|
|||||||
footernote.set_help(_("A note to be used as the page footer"))
|
footernote.set_help(_("A note to be used as the page footer"))
|
||||||
addopt("footernote", footernote)
|
addopt("footernote", footernote)
|
||||||
|
|
||||||
|
def __add_images_generation_options(self, menu):
|
||||||
|
"""
|
||||||
|
Options on the "Page Generation" tab.
|
||||||
|
"""
|
||||||
|
category_name = _("Images Generation")
|
||||||
|
addopt = partial(menu.add_option, category_name)
|
||||||
|
|
||||||
self.__gallery = BooleanOption(_("Include images and media objects"),
|
self.__gallery = BooleanOption(_("Include images and media objects"),
|
||||||
True)
|
True)
|
||||||
self.__gallery.set_help(_('Whether to include '
|
self.__gallery.set_help(_('Whether to include '
|
||||||
@ -9807,10 +9828,6 @@ class NavWebOptions(MenuReportOptions):
|
|||||||
|
|
||||||
self.__gallery_changed()
|
self.__gallery_changed()
|
||||||
|
|
||||||
nogid = BooleanOption(_('Suppress Gramps ID'), False)
|
|
||||||
nogid.set_help(_('Whether to include the Gramps ID of objects'))
|
|
||||||
addopt("nogid", nogid)
|
|
||||||
|
|
||||||
def __add_privacy_options(self, menu):
|
def __add_privacy_options(self, menu):
|
||||||
"""
|
"""
|
||||||
Options on the "Privacy" tab.
|
Options on the "Privacy" tab.
|
||||||
@ -9909,6 +9926,13 @@ class NavWebOptions(MenuReportOptions):
|
|||||||
"step-siblings with the parents and siblings"))
|
"step-siblings with the parents and siblings"))
|
||||||
addopt('showhalfsiblings', showallsiblings)
|
addopt('showhalfsiblings', showallsiblings)
|
||||||
|
|
||||||
|
def __add_advanced_options_2(self, menu):
|
||||||
|
"""
|
||||||
|
Continue options on the "Advanced" tab.
|
||||||
|
"""
|
||||||
|
category_name = _("Advanced Options (2)")
|
||||||
|
addopt = partial(menu.add_option, category_name)
|
||||||
|
|
||||||
birthorder = BooleanOption(
|
birthorder = BooleanOption(
|
||||||
_('Sort all children in birth order'), False)
|
_('Sort all children in birth order'), False)
|
||||||
birthorder.set_help(
|
birthorder.set_help(
|
||||||
|
Reference in New Issue
Block a user