Changeset 1480
- Timestamp:
- 07/10/08 18:14:33 (4 months ago)
- Location:
- trunk/peppy
- Files:
-
- 2 modified
-
plugins/project.py (modified) (3 diffs)
-
yapsy/PeppyPluginManager.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/peppy/plugins/project.py
r1472 r1480 22 22 from peppy.actions.minibuffer import * 23 23 from peppy.lib.userparams import * 24 from peppy.lib.pluginmanager import * 24 25 from peppy.lib.processmanager import * 25 26 … … 356 357 357 358 sizer = wx.BoxSizer(wx.VERTICAL) 358 359 self.panel = InstancePanel(self, project) 360 sizer.Add(self.panel, 1, wx.EXPAND) 359 self.notebook = wx.Notebook(self) 360 sizer.Add(self.notebook, 1, wx.EXPAND) 361 362 self.local = InstancePanel(self.notebook, project) 363 self.notebook.AddPage(self.local, _("This Project")) 364 365 pm = wx.GetApp().plugin_manager 366 plugins = pm.getPluginInfo(ProjectPlugin) 367 dprint(plugins) 368 369 self.plugin = PluginPanel(self.notebook, plugins[0]) 370 self.notebook.AddPage(self.plugin, _("Global Project Settings")) 361 371 362 372 btnsizer = wx.StdDialogButtonSizer() … … 376 386 377 387 def applyPreferences(self): 378 self.panel.update() 388 self.local.update() 389 self.plugin.update() 379 390 380 391 -
trunk/peppy/yapsy/PeppyPluginManager.py
r603 r1480 52 52 IPeppyPlugin.setStartupComplete() 53 53 54 def getPluginInfo(self, interface=IPeppyPlugin): 55 """Return the list of all plugin_info objects of the requested class 56 """ 57 info = [] 58 all = self.getAllPlugins() 59 for plugin in all: 60 #print "checking plugin %s for interface %s" % (plugin.name, interface) 61 obj = plugin.plugin_object 62 if isinstance(obj, interface): 63 info.append(plugin) 64 return info 65 54 66 def getActivePluginObjects(self, interface=IPeppyPlugin): 55 67 """
