From: John L. <jr...@us...> - 2006-12-19 06:18:37
|
Update of /cvsroot/wxlua/wxLua/bindings In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv15689/wxLua/bindings Modified Files: genidocs.lua Log Message: update wxluaref.html add wxIconBundle Index: genidocs.lua =================================================================== RCS file: /cvsroot/wxlua/wxLua/bindings/genidocs.lua,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** genidocs.lua 2 Nov 2006 23:38:08 -0000 1.4 --- genidocs.lua 19 Dec 2006 06:18:01 -0000 1.5 *************** *** 10,16 **** wxWidgetsClassRefTable = {} -- a list of wx classes from the alphabetical class list ! typeDefs = {} -- filled from the data cache files ! dataTypes = {} ! conditions = {} classColour = "AA0000" --- 10,16 ---- wxWidgetsClassRefTable = {} -- a list of wx classes from the alphabetical class list ! typedefTable = {} -- filled from the data cache files ! dataTypeTable = {} ! preprocConditionTable = {} classColour = "AA0000" *************** *** 71,75 **** table.insert(fileTable, "<body>") ! table.insert(fileTable, "<h1>wxLua 2.6.3.0 Class Reference for wxWidgets 2.6.3</h1>") return fileTable --- 71,75 ---- table.insert(fileTable, "<body>") ! table.insert(fileTable, "<h1>wxLua 2.8.0.0 Class Reference for wxWidgets 2.8.0</h1>") return fileTable *************** *** 93,97 **** allClasses[k] = false -- wxWidgets classes end ! for k, v in pairs(dataTypes) do -- hack for special classes if (v.DefType == "class") or (v.DefType == "wx2lua") then --- 93,97 ---- allClasses[k] = false -- wxWidgets classes end ! for k, v in pairs(dataTypeTable) do -- hack for special classes if (v.DefType == "class") or (v.DefType == "wx2lua") then *************** *** 128,132 **** table.insert(fileTable, "<h2>wxWidgets Enums</h2>") ! for k, v in pairs(dataTypes) do if v.DefType == "enum" then table.insert(names, k) --- 128,132 ---- table.insert(fileTable, "<h2>wxWidgets Enums</h2>") ! for k, v in pairs(dataTypeTable) do if v.DefType == "enum" then table.insert(names, k) *************** *** 239,263 **** used[cname] = true - local function replace_pattern(w) - - end - for w in string.gmatch(line, "([%w_]+)") do if ((string.len(cname) == 0) or (not string.find(w, cname, 1, 1))) and (not used[w]) and ! dataTypes[w] and (dataTypes[w].DefType ~= "builtin") and (dataTypes[w].DefType ~= "wxtypedef") then used[w] = true -- replace the classname with a link, but not if it's part of a name --out_line = string.gsub(out_line, w, MakeLink(w)) ! local pat = "[ %&%*%(%)%{%}%[%]%+%-%=%<%>%.%-%+%|%/]" ! local s, e = string.find(out_line, w..pat, 1) while s do local link = MakeLink(w) out_line = string.sub(out_line, 1, s-1)..link..string.sub(out_line, e) ! s, e = string.find(out_line, w..pat, s+string.len(link)) end end end out_line = string.gsub(out_line, "(%%[%w_]+)", function(s) return "<i>"..s.."</i>" end) --- 239,262 ---- used[cname] = true for w in string.gmatch(line, "([%w_]+)") do if ((string.len(cname) == 0) or (not string.find(w, cname, 1, 1))) and (not used[w]) and ! dataTypeTable[w] and (dataTypeTable[w].DefType ~= "number") and ! (dataTypeTable[w].DefType ~= "wxtypedef") and (dataTypeTable[w].DefType ~= "special") then used[w] = true -- replace the classname with a link, but not if it's part of a name --out_line = string.gsub(out_line, w, MakeLink(w)) ! local pat = "[ %&%*%(%)%{%}%[%]%+%-%=%<%>%.%-%+%|%/%,]" ! -- need extra ending space to find words at end of line ! local s, e = string.find(out_line.." ", w..pat, 1) while s do local link = MakeLink(w) out_line = string.sub(out_line, 1, s-1)..link..string.sub(out_line, e) ! s, e = string.find(out_line.." ", w..pat, s+string.len(link)) end end end + -- italicize the %keywords out_line = string.gsub(out_line, "(%%[%w_]+)", function(s) return "<i>"..s.."</i>" end) *************** *** 323,326 **** --- 322,327 ---- end + dataTypeTable["wxString"].DefType = "class" -- FIXME hack for wxString DefType as "special" + -- load any cached settings from other wrappers if datatype_cache_input_fileTable then |