Update of /cvsroot/wxlua/wxLua/samples
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv30597/samples
Modified Files:
bindings.wx.lua
Log Message:
Show what binding the classes are from when displaying them all
Index: bindings.wx.lua
===================================================================
RCS file: /cvsroot/wxlua/wxLua/samples/bindings.wx.lua,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** bindings.wx.lua 22 Dec 2007 06:07:17 -0000 1.19
--- bindings.wx.lua 17 Jan 2008 05:32:05 -0000 1.20
***************
*** 912,916 ****
local t = {
{"..", ["icon"] = list_images.folder},
! ["col_labels"] = {"wxLua Class Name (1st line) / wxClassInfo Name (2nd line)"},
["object_type"] = "All wxLua Classes"
}
--- 912,916 ----
local t = {
{"..", ["icon"] = list_images.folder},
! ["col_labels"] = {"Binding", "wxLua Class Name (1st line) / wxClassInfo Name (2nd line)"},
["object_type"] = "All wxLua Classes"
}
***************
*** 966,973 ****
-- this string is to force the wxLua classname and the wxClassInfo names
-- to be together and the first char is to keep bindings together
! local a = string.format("%s%03d. ", string.char(string.byte('a')+b-1), i)
local c = classTable[i]
! local c_table = {["color"] = wx.wxBLUE}
-- check for mistakes in the bindings
--- 966,973 ----
-- this string is to force the wxLua classname and the wxClassInfo names
-- to be together and the first char is to keep bindings together
! local a = string.format("%s %03d", binding.GetBindingName, i)
local c = classTable[i]
! local c_table = {a, ["color"] = wx.wxBLUE}
-- check for mistakes in the bindings
***************
*** 994,998 ****
if c.classInfo then
local ci = c.classInfo
! local c_table2 = {}
while ci do
--- 994,998 ----
if c.classInfo then
local ci = c.classInfo
! local c_table2 = {a.."c"}
while ci do
***************
*** 1019,1028 ****
end
- t[#t][1] = a..t[#t][1]
- c_table2[1] = a..c_table2[1]
if max_cols < #c_table2 then max_cols = #c_table2 end
table.insert(t, c_table2)
- else
- t[#t][1] = a..t[#t][1]
end
--- 1019,1024 ----
***************
*** 1031,1035 ****
-- Set the col labels after counting them
! for i = 2, max_cols do
t.col_labels[i] = "Base class "..tostring(i-1)
end
--- 1027,1031 ----
-- Set the col labels after counting them
! for i = 3, max_cols do
t.col_labels[i] = "Base class "..tostring(i-1)
end
|