2007-11-29 Douglas S. Blank <dblank@cs.brynmawr.edu>

* src/ViewManager.py: use PluginsWindows
	* src/PluginUtils/_PluginStatus.py: moved from
	* src/PluginUtils/_PluginWindows.py: moved to
	* src/PluginUtils/__init__.py: use PluginsWindows
	* src/PluginUtils/_Plugins.py: use PluginsWindows



svn: r9429
This commit is contained in:
Doug Blank 2007-11-29 06:32:59 +00:00
parent a6247edf67
commit 15f4b137da
5 changed files with 19 additions and 12 deletions

View File

@ -1,3 +1,10 @@
2007-11-29 Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/ViewManager.py: use PluginsWindows
* src/PluginUtils/_PluginStatus.py: moved from
* src/PluginUtils/_PluginWindows.py: moved to
* src/PluginUtils/__init__.py: use PluginsWindows
* src/PluginUtils/_Plugins.py: use PluginsWindows
2007-11-28 Douglas S. Blank <dblank@cs.brynmawr.edu> 2007-11-28 Douglas S. Blank <dblank@cs.brynmawr.edu>
* src/PluginUtils/_MenuOptions.py: added comments * src/PluginUtils/_MenuOptions.py: added comments
* src/PluginUtils/_PluginStatus.py: added ToolManagedWindowBatch * src/PluginUtils/_PluginStatus.py: added ToolManagedWindowBatch

View File

@ -56,7 +56,7 @@ import Errors
from ReportBase import report, standalone_categories from ReportBase import report, standalone_categories
import _Tool import _Tool
import _PluginMgr import _PluginMgr
import _PluginStatus import _PluginWindows
import ManagedWindow import ManagedWindow
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
@ -380,12 +380,12 @@ class Reload(_Tool.Tool):
if Config.get(Config.POP_PLUGIN_STATUS) \ if Config.get(Config.POP_PLUGIN_STATUS) \
and len(_PluginMgr.failmsg_list): and len(_PluginMgr.failmsg_list):
try: try:
_PluginStatus.PluginStatus(dbstate,uistate) _PluginWindows.PluginStatus(dbstate,uistate)
except Errors.WindowActiveError: except Errors.WindowActiveError:
old_win = uistate.gwm.get_item_from_id( old_win = uistate.gwm.get_item_from_id(
_PluginStatus.PluginStatus) _PluginWindows.PluginStatus)
old_win.close() old_win.close()
_PluginStatus.PluginStatus(dbstate,uistate) _PluginWindows.PluginStatus(dbstate,uistate)
# Emit signal to re-generate tool and report menus # Emit signal to re-generate tool and report menus
uistate.emit('plugins-reloaded', uistate.emit('plugins-reloaded',

View File

@ -40,7 +40,7 @@ from _PluginMgr import \
import _Tool as Tool import _Tool as Tool
import _Plugins as Plugins import _Plugins as Plugins
import _PluginStatus as PluginStatus import _PluginWindows as PluginWindows
from _MenuOptions import MenuReportOptions, MenuToolOptions, \ from _MenuOptions import MenuReportOptions, MenuToolOptions, \
NumberOption, BooleanOption, TextOption, \ NumberOption, BooleanOption, TextOption, \
EnumeratedListOption, FilterListOption, StringOption EnumeratedListOption, FilterListOption, StringOption

View File

@ -57,7 +57,7 @@ import gtk
# GRAMPS modules # GRAMPS modules
# #
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
from PluginUtils import Plugins, Tool, PluginStatus, \ from PluginUtils import Plugins, Tool, PluginWindows, \
relationship_class, load_plugins, \ relationship_class, load_plugins, \
tool_list, report_list tool_list, report_list
@ -595,12 +595,12 @@ class ViewManager:
# get to ssee if we need to open the plugin status window # get to ssee if we need to open the plugin status window
if Config.get(Config.POP_PLUGIN_STATUS) and error: if Config.get(Config.POP_PLUGIN_STATUS) and error:
try: try:
PluginStatus.PluginStatus(self.state, self.uistate, []) PluginWindows.PluginStatus(self.state, self.uistate, [])
except Errors.WindowActiveError: except Errors.WindowActiveError:
old_win = self.uistate.gwm.get_item_from_id( old_win = self.uistate.gwm.get_item_from_id(
PluginStatus.PluginStatus) PluginWindows.PluginStatus)
old_win.close() old_win.close()
PluginStatus.PluginStatus(self.state, self.uistate, []) PluginWindows.PluginStatus(self.state, self.uistate, [])
self.uistate.push_message(self.state, _('Ready')) self.uistate.push_message(self.state, _('Ready'))
@ -724,12 +724,12 @@ class ViewManager:
Display plugin status dialog Display plugin status dialog
""" """
try: try:
PluginStatus.PluginStatus(self.state, self.uistate, []) PluginWindows.PluginStatus(self.state, self.uistate, [])
except Errors.WindowActiveError: except Errors.WindowActiveError:
old_win = self.uistate.gwm.get_item_from_id( old_win = self.uistate.gwm.get_item_from_id(
PluginStatus.PluginStatus) PluginWindows.PluginStatus)
old_win.close() old_win.close()
PluginStatus.PluginStatus(self.state, self.uistate, []) PluginWindows.PluginStatus(self.state, self.uistate, [])
def sidebar_toggle(self, obj): def sidebar_toggle(self, obj):
""" """