From: John L. <jr...@us...> - 2007-06-06 23:43:22
|
Update of /cvsroot/wxlua/wxLua/samples In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv4156/wxLua/samples Modified Files: editor.wx.lua Log Message: Rename structs WXLUACLASS, WXLUAMETHOD, WXLUADEFINE, WXLUASTRING, WXLUAEVENT to wxLuaBindClass, wxLuaBindMethod, wxLuaBindDefine, wxLuaBindString, wxLuaBindEvent Fix %renamed listCtrl:SetItemString to now use overload SetItem Fix recursion in traversing the base class methods Add IntArray_FromLuaTable for binding generator to do (int n, int* items) from a table Use NULL in bindings for items that are *pointers for clarity Use sizeof(struct name) instead of sizeof(array[0]) in bindings Rename wxLuaBinding GetLuaClassList to just GetClassArray since it's a C array Index: editor.wx.lua =================================================================== RCS file: /cvsroot/wxlua/wxLua/samples/editor.wx.lua,v retrieving revision 1.52 retrieving revision 1.53 diff -C2 -d -r1.52 -r1.53 *** editor.wx.lua 5 Jun 2007 21:07:26 -0000 1.52 --- editor.wx.lua 6 Jun 2007 23:43:17 -0000 1.53 *************** *** 187,191 **** statusBar = frame:CreateStatusBar( 4 ) local status_txt_width = statusBar:GetTextExtent("OVRW") ! frame:SetStatusWidths{-1, status_txt_width, status_txt_width, status_txt_width*5} frame:SetStatusText("Welcome to wxLua") --- 187,191 ---- statusBar = frame:CreateStatusBar( 4 ) local status_txt_width = statusBar:GetTextExtent("OVRW") ! frame:SetStatusWidths({-1, status_txt_width, status_txt_width, status_txt_width*5}) frame:SetStatusText("Welcome to wxLua") *************** *** 760,766 **** watchWindow:Connect(ID_ADDWATCH, wx.wxEVT_COMMAND_MENU_SELECTED, function (event) ! local row = watchListCtrl:InsertStringItem(watchListCtrl:GetItemCount(), "Expr") ! watchListCtrl:SetStringItem(row, 0, "Expr") ! watchListCtrl:SetStringItem(row, 1, "Value") watchListCtrl:EditLabel(row) end) --- 760,766 ---- watchWindow:Connect(ID_ADDWATCH, wx.wxEVT_COMMAND_MENU_SELECTED, function (event) ! local row = watchListCtrl:InsertItem(watchListCtrl:GetItemCount(), "Expr") ! watchListCtrl:SetItem(row, 0, "Expr") ! watchListCtrl:SetItem(row, 1, "Value") watchListCtrl:EditLabel(row) end) *************** *** 801,806 **** watchListCtrl:Connect(wx.wxEVT_COMMAND_LIST_END_LABEL_EDIT, function (event) ! watchListCtrl:SetStringItem(event:GetIndex(), ! 0, event:GetText()) ProcessWatches() event:Skip() --- 801,805 ---- watchListCtrl:Connect(wx.wxEVT_COMMAND_LIST_END_LABEL_EDIT, function (event) ! watchListCtrl:SetItem(event:GetIndex(), 0, event:GetText()) ProcessWatches() event:Skip() *************** *** 1995,2001 **** function (event) if watchListCtrl then ! watchListCtrl:SetStringItem(event:GetReference(), ! 1, ! event:GetMessage()) end end) --- 1994,2000 ---- function (event) if watchListCtrl then ! watchListCtrl:SetItem(event:GetReference(), ! 1, ! event:GetMessage()) end end) *************** *** 2022,2025 **** --- 2021,2025 ---- frame:Connect(wx.wxEVT_IDLE, function(event) + if (debugger_destroy > 0) then debugger_destroy = debugger_destroy + 1 |