From: John L. <jr...@us...> - 2007-06-08 01:36:49
|
Update of /cvsroot/wxlua/wxLua/modules/wxbindstc/src In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv15480/wxLua/modules/wxbindstc/src Modified Files: stc.cpp wxstc_bind.cpp Log Message: Add a simple method to get the binding info, seems small and works well Addd sample lua program bindings.wx.lua to show them in a listctrl Fix incircles to work with new bindings Put the "name" of the struct binding items first always Index: wxstc_bind.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbindstc/src/wxstc_bind.cpp,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** wxstc_bind.cpp 7 Jun 2007 03:22:09 -0000 1.23 --- wxstc_bind.cpp 8 Jun 2007 01:36:31 -0000 1.24 *************** *** 28,62 **** static wxLuaBindEvent eventList[] = { ! { &wxEVT_STC_AUTOCOMP_SELECTION, "wxEVT_STC_AUTOCOMP_SELECTION", &s_wxluatag_wxStyledTextEvent }, ! { &wxEVT_STC_CALLTIP_CLICK, "wxEVT_STC_CALLTIP_CLICK", &s_wxluatag_wxStyledTextEvent }, ! { &wxEVT_STC_CHANGE, "wxEVT_STC_CHANGE", &s_wxluatag_wxStyledTextEvent }, ! { &wxEVT_STC_CHARADDED, "wxEVT_STC_CHARADDED", &s_wxluatag_wxStyledTextEvent }, ! { &wxEVT_STC_DOUBLECLICK, "wxEVT_STC_DOUBLECLICK", &s_wxluatag_wxStyledTextEvent }, ! { &wxEVT_STC_DO_DROP, "wxEVT_STC_DO_DROP", &s_wxluatag_wxStyledTextEvent }, ! { &wxEVT_STC_DRAG_OVER, "wxEVT_STC_DRAG_OVER", &s_wxluatag_wxStyledTextEvent }, ! { &wxEVT_STC_DWELLEND, "wxEVT_STC_DWELLEND", &s_wxluatag_wxStyledTextEvent }, ! { &wxEVT_STC_DWELLSTART, "wxEVT_STC_DWELLSTART", &s_wxluatag_wxStyledTextEvent }, ! { &wxEVT_STC_HOTSPOT_CLICK, "wxEVT_STC_HOTSPOT_CLICK", &s_wxluatag_wxStyledTextEvent }, ! { &wxEVT_STC_HOTSPOT_DCLICK, "wxEVT_STC_HOTSPOT_DCLICK", &s_wxluatag_wxStyledTextEvent }, ! { &wxEVT_STC_KEY, "wxEVT_STC_KEY", &s_wxluatag_wxStyledTextEvent }, ! { &wxEVT_STC_MACRORECORD, "wxEVT_STC_MACRORECORD", &s_wxluatag_wxStyledTextEvent }, ! { &wxEVT_STC_MARGINCLICK, "wxEVT_STC_MARGINCLICK", &s_wxluatag_wxStyledTextEvent }, ! { &wxEVT_STC_MODIFIED, "wxEVT_STC_MODIFIED", &s_wxluatag_wxStyledTextEvent }, ! { &wxEVT_STC_NEEDSHOWN, "wxEVT_STC_NEEDSHOWN", &s_wxluatag_wxStyledTextEvent }, ! { &wxEVT_STC_PAINTED, "wxEVT_STC_PAINTED", &s_wxluatag_wxStyledTextEvent }, #if !wxCHECK_VERSION(2,5,0) ! { &wxEVT_STC_POSCHANGED, "wxEVT_STC_POSCHANGED", &s_wxluatag_wxStyledTextEvent }, #endif // !wxCHECK_VERSION(2,5,0) ! { &wxEVT_STC_ROMODIFYATTEMPT, "wxEVT_STC_ROMODIFYATTEMPT", &s_wxluatag_wxStyledTextEvent }, ! { &wxEVT_STC_SAVEPOINTLEFT, "wxEVT_STC_SAVEPOINTLEFT", &s_wxluatag_wxStyledTextEvent }, ! { &wxEVT_STC_SAVEPOINTREACHED, "wxEVT_STC_SAVEPOINTREACHED", &s_wxluatag_wxStyledTextEvent }, ! { &wxEVT_STC_START_DRAG, "wxEVT_STC_START_DRAG", &s_wxluatag_wxStyledTextEvent }, ! { &wxEVT_STC_STYLENEEDED, "wxEVT_STC_STYLENEEDED", &s_wxluatag_wxStyledTextEvent }, ! { &wxEVT_STC_UPDATEUI, "wxEVT_STC_UPDATEUI", &s_wxluatag_wxStyledTextEvent }, ! { &wxEVT_STC_URIDROPPED, "wxEVT_STC_URIDROPPED", &s_wxluatag_wxStyledTextEvent }, ! { &wxEVT_STC_USERLISTSELECTION, "wxEVT_STC_USERLISTSELECTION", &s_wxluatag_wxStyledTextEvent }, ! { &wxEVT_STC_ZOOM, "wxEVT_STC_ZOOM", &s_wxluatag_wxStyledTextEvent }, { 0, 0, 0 }, --- 28,62 ---- static wxLuaBindEvent eventList[] = { ! { "wxEVT_STC_AUTOCOMP_SELECTION", &wxEVT_STC_AUTOCOMP_SELECTION, &s_wxluatag_wxStyledTextEvent }, ! { "wxEVT_STC_CALLTIP_CLICK", &wxEVT_STC_CALLTIP_CLICK, &s_wxluatag_wxStyledTextEvent }, ! { "wxEVT_STC_CHANGE", &wxEVT_STC_CHANGE, &s_wxluatag_wxStyledTextEvent }, ! { "wxEVT_STC_CHARADDED", &wxEVT_STC_CHARADDED, &s_wxluatag_wxStyledTextEvent }, ! { "wxEVT_STC_DOUBLECLICK", &wxEVT_STC_DOUBLECLICK, &s_wxluatag_wxStyledTextEvent }, ! { "wxEVT_STC_DO_DROP", &wxEVT_STC_DO_DROP, &s_wxluatag_wxStyledTextEvent }, ! { "wxEVT_STC_DRAG_OVER", &wxEVT_STC_DRAG_OVER, &s_wxluatag_wxStyledTextEvent }, ! { "wxEVT_STC_DWELLEND", &wxEVT_STC_DWELLEND, &s_wxluatag_wxStyledTextEvent }, ! { "wxEVT_STC_DWELLSTART", &wxEVT_STC_DWELLSTART, &s_wxluatag_wxStyledTextEvent }, ! { "wxEVT_STC_HOTSPOT_CLICK", &wxEVT_STC_HOTSPOT_CLICK, &s_wxluatag_wxStyledTextEvent }, ! { "wxEVT_STC_HOTSPOT_DCLICK", &wxEVT_STC_HOTSPOT_DCLICK, &s_wxluatag_wxStyledTextEvent }, ! { "wxEVT_STC_KEY", &wxEVT_STC_KEY, &s_wxluatag_wxStyledTextEvent }, ! { "wxEVT_STC_MACRORECORD", &wxEVT_STC_MACRORECORD, &s_wxluatag_wxStyledTextEvent }, ! { "wxEVT_STC_MARGINCLICK", &wxEVT_STC_MARGINCLICK, &s_wxluatag_wxStyledTextEvent }, ! { "wxEVT_STC_MODIFIED", &wxEVT_STC_MODIFIED, &s_wxluatag_wxStyledTextEvent }, ! { "wxEVT_STC_NEEDSHOWN", &wxEVT_STC_NEEDSHOWN, &s_wxluatag_wxStyledTextEvent }, ! { "wxEVT_STC_PAINTED", &wxEVT_STC_PAINTED, &s_wxluatag_wxStyledTextEvent }, #if !wxCHECK_VERSION(2,5,0) ! { "wxEVT_STC_POSCHANGED", &wxEVT_STC_POSCHANGED, &s_wxluatag_wxStyledTextEvent }, #endif // !wxCHECK_VERSION(2,5,0) ! { "wxEVT_STC_ROMODIFYATTEMPT", &wxEVT_STC_ROMODIFYATTEMPT, &s_wxluatag_wxStyledTextEvent }, ! { "wxEVT_STC_SAVEPOINTLEFT", &wxEVT_STC_SAVEPOINTLEFT, &s_wxluatag_wxStyledTextEvent }, ! { "wxEVT_STC_SAVEPOINTREACHED", &wxEVT_STC_SAVEPOINTREACHED, &s_wxluatag_wxStyledTextEvent }, ! { "wxEVT_STC_START_DRAG", &wxEVT_STC_START_DRAG, &s_wxluatag_wxStyledTextEvent }, ! { "wxEVT_STC_STYLENEEDED", &wxEVT_STC_STYLENEEDED, &s_wxluatag_wxStyledTextEvent }, ! { "wxEVT_STC_UPDATEUI", &wxEVT_STC_UPDATEUI, &s_wxluatag_wxStyledTextEvent }, ! { "wxEVT_STC_URIDROPPED", &wxEVT_STC_URIDROPPED, &s_wxluatag_wxStyledTextEvent }, ! { "wxEVT_STC_USERLISTSELECTION", &wxEVT_STC_USERLISTSELECTION, &s_wxluatag_wxStyledTextEvent }, ! { "wxEVT_STC_ZOOM", &wxEVT_STC_ZOOM, &s_wxluatag_wxStyledTextEvent }, { 0, 0, 0 }, Index: stc.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbindstc/src/stc.cpp,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -d -r1.36 -r1.37 *** stc.cpp 7 Jun 2007 03:22:09 -0000 1.36 --- stc.cpp 8 Jun 2007 01:36:30 -0000 1.37 *************** *** 7993,8548 **** // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxStyledTextCtrl_methods[] = { ! { WXLUAMETHOD_METHOD, "AddRefDocument", s_wxluafunc_wxLua_wxStyledTextCtrl_AddRefDocument, 1, NULL }, ! { WXLUAMETHOD_METHOD, "AddText", s_wxluafunc_wxLua_wxStyledTextCtrl_AddText, 1, NULL }, ! { WXLUAMETHOD_METHOD, "AddTextRaw", s_wxluafunc_wxLua_wxStyledTextCtrl_AddTextRaw, 1, NULL }, ! { WXLUAMETHOD_METHOD, "Allocate", s_wxluafunc_wxLua_wxStyledTextCtrl_Allocate, 1, NULL }, ! { WXLUAMETHOD_METHOD, "AppendText", s_wxluafunc_wxLua_wxStyledTextCtrl_AppendText, 1, NULL }, ! { WXLUAMETHOD_METHOD, "AutoCompActive", s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompActive, 1, NULL }, ! { WXLUAMETHOD_METHOD, "AutoCompCancel", s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompCancel, 1, NULL }, ! { WXLUAMETHOD_METHOD, "AutoCompComplete", s_wxluafunc_wxLua_wxStyledTextCtrl_AutoCompComplete, 1, NULL }, [...1200 lines suppressed...] ! { "SetFoldLevelNow", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_SetFoldLevelNow, 1, NULL }, ! { "SetFoldLevelPrev", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_SetFoldLevelPrev, 1, NULL }, ! { "SetKey", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_SetKey, 1, NULL }, ! { "SetLParam", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_SetLParam, 1, NULL }, ! { "SetLength", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_SetLength, 1, NULL }, ! { "SetLine", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_SetLine, 1, NULL }, ! { "SetLinesAdded", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_SetLinesAdded, 1, NULL }, ! { "SetListType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_SetListType, 1, NULL }, ! { "SetMargin", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_SetMargin, 1, NULL }, ! { "SetMessage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_SetMessage, 1, NULL }, ! { "SetModificationType", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_SetModificationType, 1, NULL }, ! { "SetModifiers", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_SetModifiers, 1, NULL }, ! { "SetPosition", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_SetPosition, 1, NULL }, ! { "SetText", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_SetText, 1, NULL }, ! { "SetWParam", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_SetWParam, 1, NULL }, ! { "SetX", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_SetX, 1, NULL }, ! { "SetY", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStyledTextEvent_SetY, 1, NULL }, ! { "wxStyledTextEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxStyledTextEvent_constructor, 1, NULL }, { 0, 0, 0, 0 }, }; |