Changed Place Map Options so that either option will allow the MapService options as both should have access to it.
svn: r17972
This commit is contained in:
parent
9bc3d725cb
commit
9f1cbc9ffc
@ -6657,9 +6657,18 @@ class NavWebOptions(MenuReportOptions):
|
|||||||
self.__placemappages = BooleanOption(_("Include Place map on Place Pages"), False)
|
self.__placemappages = BooleanOption(_("Include Place map on Place Pages"), False)
|
||||||
self.__placemappages.set_help(_("Whether to include a place map on the Place Pages, "
|
self.__placemappages.set_help(_("Whether to include a place map on the Place Pages, "
|
||||||
"where Latitude/ Longitude are available."))
|
"where Latitude/ Longitude are available."))
|
||||||
self.__placemappages.connect("value-changed", self.__placemap_changed)
|
self.__placemappages.connect("value-changed", self.__placemap_options)
|
||||||
addopt("placemappages", self.__placemappages)
|
addopt("placemappages", self.__placemappages)
|
||||||
|
|
||||||
|
self.__familymappages = BooleanOption(_("Include Family Map Pages with "
|
||||||
|
"all places shown on the map"), False)
|
||||||
|
self.__familymappages.set_help(_("Whether or not to add an individual page map "
|
||||||
|
"showing all the places on this page. "
|
||||||
|
"This will allow you to see how your family "
|
||||||
|
"traveled around the country."))
|
||||||
|
self.__familymappages.connect("value-changed", self.__placemap_options)
|
||||||
|
addopt("familymappages", self.__familymappages)
|
||||||
|
|
||||||
mapopts = [
|
mapopts = [
|
||||||
[_("Google"), "Google"],
|
[_("Google"), "Google"],
|
||||||
[_("OpenStreetMap"), "OpenStreetMap"] ]
|
[_("OpenStreetMap"), "OpenStreetMap"] ]
|
||||||
@ -6670,15 +6679,7 @@ class NavWebOptions(MenuReportOptions):
|
|||||||
"creating the Place Map Pages."))
|
"creating the Place Map Pages."))
|
||||||
addopt("mapservice", self.__mapservice)
|
addopt("mapservice", self.__mapservice)
|
||||||
|
|
||||||
self.__placemap_changed()
|
self.__placemap_options()
|
||||||
|
|
||||||
familymappages = BooleanOption(_("Include Family Map Pages with "
|
|
||||||
"all places shown on the map"), False)
|
|
||||||
familymappages.set_help(_("Whether or not to add an individual page map "
|
|
||||||
"showing all the places on this page. "
|
|
||||||
"This will allow you to see how your family "
|
|
||||||
"traveled around the country."))
|
|
||||||
addopt( "familymappages", familymappages )
|
|
||||||
|
|
||||||
def __archive_changed(self):
|
def __archive_changed(self):
|
||||||
"""
|
"""
|
||||||
@ -6773,19 +6774,12 @@ class NavWebOptions(MenuReportOptions):
|
|||||||
else:
|
else:
|
||||||
self.__openstreetmap.set_available(True)
|
self.__openstreetmap.set_available(True)
|
||||||
|
|
||||||
def __openstreetmap_changed(self):
|
def __placemap_options(self):
|
||||||
"""Handles changing nature of openstreetmaps"""
|
|
||||||
if self.__openstreetmap.get_value():
|
|
||||||
self.__placemappages.set_available(False)
|
|
||||||
else:
|
|
||||||
self.__placemappages.set_available(True)
|
|
||||||
|
|
||||||
def __placemap_changed(self):
|
|
||||||
"""
|
"""
|
||||||
Handles the changing nature of the place maps
|
Handles the changing nature of the place map Options
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if self.__placemappages.get_value():
|
if (self.__placemappages.get_value() or self.__familymappages.get_value()):
|
||||||
self.__mapservice.set_available(True)
|
self.__mapservice.set_available(True)
|
||||||
else:
|
else:
|
||||||
self.__mapservice.set_available(False)
|
self.__mapservice.set_available(False)
|
||||||
|
Loading…
Reference in New Issue
Block a user