Bug when trying to choose type of struture datatype element fixed
authorlaurent
Wed, 02 Dec 2009 16:07:39 +0100
changeset 462 9abbc90c0263
parent 461 649a8465148d
child 465 5c26470e82a5
child 466 68aacce44fe0
Bug when trying to choose type of struture datatype element fixed
DataTypeEditor.py
--- 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)