Enable the "help" button to work on the report dialog.
svn: r10473
This commit is contained in:
@@ -51,6 +51,13 @@ import logging
|
|||||||
|
|
||||||
log = logging.getLogger(".")
|
log = logging.getLogger(".")
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------
|
||||||
|
#
|
||||||
|
# Private Constants
|
||||||
|
#
|
||||||
|
#-------------------------------------------------------------------------
|
||||||
|
URL_REPORT_PAGE = "Gramps_3.0_Wiki_Manual_-_Reports"
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# BareReportDialog class
|
# BareReportDialog class
|
||||||
@@ -68,7 +75,6 @@ class BareReportDialog(ManagedWindow.ManagedWindow):
|
|||||||
|
|
||||||
frame_pad = 5
|
frame_pad = 5
|
||||||
border_pad = 6
|
border_pad = 6
|
||||||
HELP_TOPIC = None
|
|
||||||
|
|
||||||
def __init__(self, dbstate, uistate, option_class,
|
def __init__(self, dbstate, uistate, option_class,
|
||||||
name, translated_name, track=[]):
|
name, translated_name, track=[]):
|
||||||
@@ -113,9 +119,8 @@ class BareReportDialog(ManagedWindow.ManagedWindow):
|
|||||||
self.window.set_has_separator(False)
|
self.window.set_has_separator(False)
|
||||||
self.window.set_modal(True)
|
self.window.set_modal(True)
|
||||||
|
|
||||||
if self.HELP_TOPIC:
|
self.help = self.window.add_button(gtk.STOCK_HELP, gtk.RESPONSE_HELP)
|
||||||
self.help = self.window.add_button(gtk.STOCK_HELP, gtk.RESPONSE_HELP)
|
self.help.connect('clicked',self.on_help_clicked)
|
||||||
self.help.connect('clicked',self.on_help_clicked)
|
|
||||||
|
|
||||||
self.cancel = self.window.add_button(gtk.STOCK_CANCEL,gtk.RESPONSE_CANCEL)
|
self.cancel = self.window.add_button(gtk.STOCK_CANCEL,gtk.RESPONSE_CANCEL)
|
||||||
self.cancel.connect('clicked',self.on_cancel)
|
self.cancel.connect('clicked',self.on_cancel)
|
||||||
@@ -447,9 +452,10 @@ class BareReportDialog(ManagedWindow.ManagedWindow):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
def on_help_clicked(self, *obj):
|
def on_help_clicked(self, *obj):
|
||||||
if self.HELP_TOPIC:
|
import GrampsDisplay
|
||||||
import GrampsDisplay
|
GrampsDisplay.help(None,
|
||||||
GrampsDisplay.help(self.HELP_TOPIC)
|
URL_REPORT_PAGE,
|
||||||
|
self.report_name.replace(" ", "_") )
|
||||||
|
|
||||||
def on_ok_clicked(self, obj):
|
def on_ok_clicked(self, obj):
|
||||||
"""The user is satisfied with the dialog choices. Parse all options
|
"""The user is satisfied with the dialog choices. Parse all options
|
||||||
|
Reference in New Issue
Block a user