2006-12-20 Alex Roitman <shura@gramps-project.org>
* src/PluginUtils/_Plugins.py (PluginDialog.__init__): Connect to signal in the parent class. svn: r7831
This commit is contained in:
parent
70550f3321
commit
ae1ec18797
@ -1,3 +1,7 @@
|
|||||||
|
2006-12-20 Alex Roitman <shura@gramps-project.org>
|
||||||
|
* src/PluginUtils/_Plugins.py (PluginDialog.__init__): Connect to
|
||||||
|
signal in the parent class.
|
||||||
|
|
||||||
2006-12-20 Don Allingham <don@gramps-project.org>
|
2006-12-20 Don Allingham <don@gramps-project.org>
|
||||||
* src/DataViews/_PersonView.py: use a container for bookmarks to prevent
|
* src/DataViews/_PersonView.py: use a container for bookmarks to prevent
|
||||||
lost of data (bug #777)
|
lost of data (bug #777)
|
||||||
|
@ -137,8 +137,13 @@ class PluginDialog(ManagedWindow.ManagedWindow):
|
|||||||
|
|
||||||
self.item = None
|
self.item = None
|
||||||
self.build_plugin_tree(item_list,categories)
|
self.build_plugin_tree(item_list,categories)
|
||||||
|
uistate.connect('plugins-reloaded',self.rebuild)
|
||||||
self.show()
|
self.show()
|
||||||
|
|
||||||
|
def rebuild(self,tool_list,report_list):
|
||||||
|
# This method needs to be overridden in the subclass
|
||||||
|
assert False, "This method needs to be overridden in the subclass."
|
||||||
|
|
||||||
def build_menu_names(self,obj):
|
def build_menu_names(self,obj):
|
||||||
return (self.msg,None)
|
return (self.msg,None)
|
||||||
|
|
||||||
@ -266,9 +271,8 @@ class ReportPlugins(PluginDialog):
|
|||||||
_("Select a report from those available on the left."),
|
_("Select a report from those available on the left."),
|
||||||
_("_Generate"), _("Generate selected report"),
|
_("_Generate"), _("Generate selected report"),
|
||||||
REPORTS)
|
REPORTS)
|
||||||
uistate.connect('plugins-reloaded',self.rebuild_reports)
|
|
||||||
|
|
||||||
def rebuild_reports(self,tool_list,report_list):
|
def rebuild(self,tool_list,report_list):
|
||||||
self.build_plugin_tree(report_list,standalone_categories)
|
self.build_plugin_tree(report_list,standalone_categories)
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
@ -300,10 +304,8 @@ class ToolPlugins(PluginDialog):
|
|||||||
_("_Run"),
|
_("_Run"),
|
||||||
_("Run selected tool"),
|
_("Run selected tool"),
|
||||||
TOOLS)
|
TOOLS)
|
||||||
|
|
||||||
uistate.connect('plugins-reloaded',self.rebuild_tools)
|
|
||||||
|
|
||||||
def rebuild_tools(self,tool_list,report_list):
|
def rebuild(self,tool_list,report_list):
|
||||||
self.build_plugin_tree(tool_list,_Tool.tool_categories)
|
self.build_plugin_tree(tool_list,_Tool.tool_categories)
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user