From: John L. <jr...@us...> - 2006-05-15 04:48:40
|
Update of /cvsroot/wxlua/wxLua/samples In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv3872/wxLua/samples Modified Files: editor.wx.lua unittest.wx.lua Log Message: cleanup the app wxlua editor, don't try to run all the notebook pages at once make lconsole available for app wxLua use wxCmdLineParser in app wxlua push full args in app wxlua fix splittree to scroll child for generic treectrl in 2.6.3 Index: editor.wx.lua =================================================================== RCS file: /cvsroot/wxlua/wxLua/samples/editor.wx.lua,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** editor.wx.lua 2 May 2006 05:25:06 -0000 1.15 --- editor.wx.lua 15 May 2006 04:48:38 -0000 1.16 *************** *** 35,46 **** local ID_CLEAROUTPUT = wx.wxID_HIGHEST + 26 local ID_AUTOCOMPLETE = wx.wxID_HIGHEST + 27 ! local wxBREAKPOINT_MARKER = 1 ! local wxBREAKPOINT_MARKER_VALUE = 2 ! local wxCURRENT_LINE_MARKER = 2 ! local wxCURRENT_LINE_MARKER_VALUE = 4 - local wxIDWatchWindow = 100 [...2008 lines suppressed...] ! ! if arg then ! -- arguments pushed into wxLua are [C++ app][lua prog][args for lua start at 1] ! local n = 0 ! while 1 do ! if not arg[n] then break end ! if arg[n] and not arg[n-1] then programName = arg[n] end ! n = n - 1 end ! ! for index = 1, #arg do ! fileName = arg[index] ! loadFile(fileName, fileName) ! end ! ! if notebook:GetPageCount() > 0 then ! notebook:SetSelection(0) ! else local editor = createEditor("Untitled") setupKeywords(editor, 1) Index: unittest.wx.lua =================================================================== RCS file: /cvsroot/wxlua/wxLua/samples/unittest.wx.lua,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** unittest.wx.lua 28 Apr 2006 04:12:43 -0000 1.3 --- unittest.wx.lua 15 May 2006 04:48:38 -0000 1.4 *************** *** 24,30 **** print("No args passed to the program") else print(string.format("Program arg count %d", #arg)) ! for n = 1, #arg do ! print(string.format("Program arg #%2d of %2d '%s'", n, #arg, arg[n])) end end --- 24,35 ---- print("No args passed to the program") else + local start_n = 1 + while arg[start_n-1] do start_n = start_n - 1 end + print(string.format("Program arg count %d", #arg)) ! for n = start_n, 10000 do ! if arg[n] then ! print(string.format("Program arg #%2d of %2d '%s'", n, #arg, arg[n])) ! end end end |