Add tooltip support for the "extra" menu and textbox.

svn: r642
This commit is contained in:
David Hampton
2001-12-19 23:03:51 +00:00
parent 89e576b349
commit 20182aece1
3 changed files with 34 additions and 15 deletions

View File

@@ -274,9 +274,10 @@ class AncestorChartDialog(DrawReportDialog):
"""Default to 10 generations, no page breaks."""
return (10, 0)
def get_report_extra_textbox_string(self):
def get_report_extra_textbox_info(self):
"""Label the textbox and provide the default contents."""
return (_("Display Format"), "$n\nb. $b\nd. $d")
return (_("Display Format"), "$n\nb. $b\nd. $d",
_("Allows you to customize the data in the boxes in the report"))
#------------------------------------------------------------------------
#

View File

@@ -358,7 +358,7 @@ class FamilyGroupDialog(TextReportDialog):
"""No generation options."""
return (0, 0)
def get_report_extra_menu_map(self):
def get_report_extra_menu_info(self):
"""Create a mapping of all spouse names:families to be put
into the 'extra' option menu in the report options box. If
the selected person has never been married then this routine
@@ -378,7 +378,7 @@ class FamilyGroupDialog(TextReportDialog):
else:
name= _("unknown")
mapping[name] = family
return (_("Spouse"), mapping, None)
return (_("Spouse"), mapping, None, None)
#------------------------------------------------------------------------
#