Enable the "help" button to work on the report dialog.

svn: r10462
This commit is contained in:
Brian Matherly 2008-04-04 02:46:36 +00:00
parent 9c5ad9eb44
commit 50539237d7

View File

@ -68,7 +68,6 @@ class BareReportDialog(ManagedWindow.ManagedWindow):
frame_pad = 5
border_pad = 6
HELP_TOPIC = None
def __init__(self, dbstate, uistate, option_class,
name, translated_name, track=[]):
@ -113,9 +112,8 @@ class BareReportDialog(ManagedWindow.ManagedWindow):
self.window.set_has_separator(False)
self.window.set_modal(True)
if self.HELP_TOPIC:
self.help = self.window.add_button(gtk.STOCK_HELP, gtk.RESPONSE_HELP)
self.help.connect('clicked',self.on_help_clicked)
self.help = self.window.add_button(gtk.STOCK_HELP, gtk.RESPONSE_HELP)
self.help.connect('clicked',self.on_help_clicked)
self.cancel = self.window.add_button(gtk.STOCK_CANCEL,gtk.RESPONSE_CANCEL)
self.cancel.connect('clicked',self.on_cancel)
@ -452,9 +450,10 @@ class BareReportDialog(ManagedWindow.ManagedWindow):
pass
def on_help_clicked(self, *obj):
if self.HELP_TOPIC:
import GrampsDisplay
GrampsDisplay.help(self.HELP_TOPIC)
import GrampsDisplay
GrampsDisplay.help(None,
"Gramps_3.0_Wiki_Manual_-_Reports",
self.report_name.replace(" ", "_") )
def on_ok_clicked(self, obj):
"""The user is satisfied with the dialog choices. Parse all options