--- a/plugins/svgui/svgui.py Mon Sep 08 14:33:57 2008 +0200
+++ b/plugins/svgui/svgui.py Wed Sep 10 16:44:27 2008 +0200
@@ -47,6 +47,8 @@
self.FBDPanel.Bind(wx.EVT_PAINT, self.OnPaintFBDPanel)
setattr(self.FBDPanel, "GetScaling", lambda: None)
+ setattr(self.FBDPanel, "IsOfType", self.IsOfType)
+ setattr(self.FBDPanel, "GetBlockType", self.GetBlockType)
self._init_sizers()
@@ -55,6 +57,12 @@
self.FBDBlock = None
+ def IsOfType(self, type, reference):
+ return self.Controler.GetPlugRoot().IsOfType(type, reference)
+
+ def GetBlockType(self, type, inputs = None):
+ return self.Controler.GetPlugRoot().GetBlockType(type, inputs)
+
def RefreshView(self, select_id = None):
SVGUIEditor.RefreshView(self, select_id)
self.FBDPanel.Refresh()