diff --git a/gramps/gui/glade/plugins.glade b/gramps/gui/glade/plugins.glade index 2d6c21b7441..336f15bf683 100644 --- a/gramps/gui/glade/plugins.glade +++ b/gramps/gui/glade/plugins.glade @@ -17,6 +17,21 @@ False 6 end + + + _Help + True + True + True + True + + + + False + False + 0 + + _Close @@ -30,7 +45,8 @@ False False - 0 + end + 1 @@ -51,7 +67,8 @@ False False - 1 + end + 2 diff --git a/gramps/gui/plug/_dialogs.py b/gramps/gui/plug/_dialogs.py index 00c76ba15a2..980663f4010 100644 --- a/gramps/gui/plug/_dialogs.py +++ b/gramps/gui/plug/_dialogs.py @@ -49,6 +49,7 @@ from .report import report from ..pluginmanager import GuiPluginManager from ..managedwindow import ManagedWindow +from ..display import display_help # ------------------------------------------------------------------------- # @@ -105,6 +106,7 @@ def __init__( self.dialog.connect_signals( { "on_report_apply_clicked": self.on_apply_clicked, + "on_report_help_clicked": self.on_help_clicked, "destroy_passed_object": self.close, "on_delete_event": self.close, } @@ -170,6 +172,13 @@ def on_apply_clicked(self, obj): return self.run_plugin(self.item) + def on_help_clicked(self, obj): + """Display help page for the selected report""" + if not self.item: + return + if self.item.help_url: + display_help(self.item.help_url) + def on_node_selected(self, obj): """Updates the informational display on the right hand side of the dialog box with the description of the selected report"""