DataTypeEditor.py
changeset 462 9abbc90c0263
parent 460 2ddf7bbd1f74
child 494 c91644c2bfa7
--- a/DataTypeEditor.py	Tue Dec 01 10:55:28 2009 +0100
+++ b/DataTypeEditor.py	Wed Dec 02 16:07:39 2009 +0100
@@ -800,16 +800,16 @@
                 self.Bind(wx.EVT_MENU, self.GetElementTypeFunction(base_type), id=new_id)
             type_menu.AppendMenu(wx.NewId(), _("Base Types"), base_menu)
             datatype_menu = wx.Menu(title='')
-            for datatype in self.Controler.GetDataTypes(self.TagName, False, self.ParentWindow.Debug):
+            for datatype in self.Controler.GetDataTypes(self.TagName, False):
                 new_id = wx.NewId()
                 AppendMenu(datatype_menu, help='', id=new_id, kind=wx.ITEM_NORMAL, text=datatype)
                 self.Bind(wx.EVT_MENU, self.GetElementTypeFunction(datatype), id=new_id)
             type_menu.AppendMenu(wx.NewId(), _("User Data Types"), datatype_menu)
 ##            functionblock_menu = wx.Menu(title='')
-##            bodytype = self.Controler.GetEditedElementBodyType(self.TagName, self.ParentWindow.Debug)
-##            pouname, poutype = self.Controler.GetEditedElementType(self.TagName, self.ParentWindow.Debug)
+##            bodytype = self.Controler.GetEditedElementBodyType(self.TagName)
+##            pouname, poutype = self.Controler.GetEditedElementType(self.TagName)
 ##            if classtype in ["Input","Output","InOut","External","Global"] or poutype != "function" and bodytype in ["ST", "IL"]:
-##                for functionblock_type in self.Controler.GetFunctionBlockTypes(self.TagName, self.ParentWindow.Debug):
+##                for functionblock_type in self.Controler.GetFunctionBlockTypes(self.TagName):
 ##                    new_id = wx.NewId()
 ##                    AppendMenu(functionblock_menu, help='', id=new_id, kind=wx.ITEM_NORMAL, text=functionblock_type)
 ##                    self.Bind(wx.EVT_MENU, self.GetVariableTypeFunction(functionblock_type), id=new_id)