# HG changeset patch # User laurent # Date 1316034304 -7200 # Node ID 69214983dd0310eb612ae55a8b70bdc3d72b796c # Parent b6f9d08fd69fe808c3391091af1d99c11a5fc017 Enabling support for direct array variable declaration diff -r b6f9d08fd69f -r 69214983dd03 DataTypeEditor.py --- a/DataTypeEditor.py Tue Sep 13 13:01:04 2011 +0200 +++ b/DataTypeEditor.py Wed Sep 14 23:05:04 2011 +0200 @@ -285,7 +285,7 @@ def _init_coll_ArrayPanelSizer_Items(self, parent): parent.AddSizer(self.ArrayPanelLeftSizer, 0, border=0, flag=wx.GROW) - parent.AddSizer(self.ArrayPanelRightSizer, 0, border=0, flag=0) + parent.AddSizer(self.ArrayPanelRightSizer, 0, border=0, flag=wx.GROW) parent.AddWindow(self.ArrayDimensions, 0, border=5, flag=wx.GROW|wx.ALL) def _init_coll_ArrayPanelSizer_Growables(self, parent): diff -r b6f9d08fd69f -r 69214983dd03 VariablePanel.py --- a/VariablePanel.py Tue Sep 13 13:01:04 2011 +0200 +++ b/VariablePanel.py Wed Sep 14 23:05:04 2011 +0200 @@ -794,9 +794,9 @@ pouname, poutype = self.Controler.GetEditedElementType(self.TagName) classtype = self.Table.GetValueByName(row, "Class") - #new_id = wx.NewId() - #AppendMenu(type_menu, help='', id=new_id, kind=wx.ITEM_NORMAL, text=_("Array")) - #self.Bind(wx.EVT_MENU, self.VariableArrayTypeFunction, id=new_id) + new_id = wx.NewId() + AppendMenu(type_menu, help='', id=new_id, kind=wx.ITEM_NORMAL, text=_("Array")) + self.Bind(wx.EVT_MENU, self.VariableArrayTypeFunction, id=new_id) if classtype in ["Input", "Output", "InOut", "External", "Global"] or \ poutype != "function" and bodytype in ["ST", "IL"]: