Update of /cvsroot/wxlua/wxLua/modules/wxbindstc/src
In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv14219/wxLua/modules/wxbindstc/src
Modified Files:
stc.cpp wxstc_bind.cpp
Log Message:
Huge changes, overloaded functions by default
replace wx.wxNull with wx.NULL
change WXLUA_VERSION and others with wxLUA_VERSION
class member enums are part of class table
static class member functions are part of class table
%properties are generated on the fly
... and more, see docs/changelog.txt
Index: wxstc_bind.cpp
===================================================================
RCS file: /cvsroot/wxlua/wxLua/modules/wxbindstc/src/wxstc_bind.cpp,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** wxstc_bind.cpp 19 Mar 2007 03:47:21 -0000 1.20
--- wxstc_bind.cpp 31 May 2007 17:18:54 -0000 1.21
***************
*** 1481,1485 ****
{
! { LuaGlobal, 0, 0, 0, 0, s_wxluaargArray_None },
};
count = (sizeof(functionList)/sizeof(functionList[0])) - 1;
--- 1481,1485 ----
{
! { WXLUAMETHOD_CFUNCTION, 0, 0, 0 },
};
count = (sizeof(functionList)/sizeof(functionList[0])) - 1;
***************
*** 1497,1502 ****
static WXLUACLASS classList[] =
{
! { "wxStyledTextCtrl", wxStyledTextCtrl_methods, wxStyledTextCtrl_methodCount, CLASSINFO(wxStyledTextCtrl), &s_wxluatag_wxStyledTextCtrl, "wxControl", NULL },
! { "wxStyledTextEvent", wxStyledTextEvent_methods, wxStyledTextEvent_methodCount, CLASSINFO(wxStyledTextEvent), &s_wxluatag_wxStyledTextEvent, "wxCommandEvent", NULL },
{ 0, 0, 0, 0, 0, 0, 0 },
--- 1497,1502 ----
static WXLUACLASS classList[] =
{
! { "wxStyledTextCtrl", wxStyledTextCtrl_methods, wxStyledTextCtrl_methodCount, CLASSINFO(wxStyledTextCtrl), &s_wxluatag_wxStyledTextCtrl, "wxControl", NULL ,wxStyledTextCtrl_enums, wxStyledTextCtrl_enumCount, },
! { "wxStyledTextEvent", wxStyledTextEvent_methods, wxStyledTextEvent_methodCount, CLASSINFO(wxStyledTextEvent), &s_wxluatag_wxStyledTextEvent, "wxCommandEvent", NULL ,wxStyledTextEvent_enums, wxStyledTextEvent_enumCount, },
{ 0, 0, 0, 0, 0, 0, 0 },
Index: stc.cpp
===================================================================
RCS file: /cvsroot/wxlua/wxLua/modules/wxbindstc/src/stc.cpp,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -d -r1.30 -r1.31
*** stc.cpp 19 Mar 2007 03:47:20 -0000 1.30
--- stc.cpp 31 May 2007 17:18:54 -0000 1.31
***************
*** 28,31 ****
--- 28,34 ----
static wxLuaArgTag s_wxluatagArray_wxLua_wxStyledTextCtrl_AddRefDocument[] = { &s_wxluaarg_LightUserData, 0 };
+ static int LUACALL wxLua_wxStyledTextCtrl_AddRefDocument(lua_State *L);
+ static WXLUAMETHOD_CFUNC s_wxluafunc_wxLua_wxStyledTextCtrl_AddRefDocument[1] = {{ wxLua_wxStyledTextCtrl_AddRefDocument, 1, 1, s_wxluatagArray_wxLua_wxStyledTextCtrl_AddRefDocument }};
+
// void AddRefDocument(void* docPointer);
static int LUACALL wxLua_wxStyledTextCtrl_AddRefDocument(lua_State *L)
***************
*** 43,46 ****
[...9447 lines suppressed...]
! { WXLUAMETHOD_METHOD, "SetModificationType", s_wxluafunc_wxLua_wxStyledTextEvent_SetModificationType, 1 },
! { WXLUAMETHOD_METHOD, "SetModifiers", s_wxluafunc_wxLua_wxStyledTextEvent_SetModifiers, 1 },
! { WXLUAMETHOD_METHOD, "SetPosition", s_wxluafunc_wxLua_wxStyledTextEvent_SetPosition, 1 },
! { WXLUAMETHOD_METHOD, "SetText", s_wxluafunc_wxLua_wxStyledTextEvent_SetText, 1 },
! { WXLUAMETHOD_METHOD, "SetWParam", s_wxluafunc_wxLua_wxStyledTextEvent_SetWParam, 1 },
! { WXLUAMETHOD_METHOD, "SetX", s_wxluafunc_wxLua_wxStyledTextEvent_SetX, 1 },
! { WXLUAMETHOD_METHOD, "SetY", s_wxluafunc_wxLua_wxStyledTextEvent_SetY, 1 },
! { WXLUAMETHOD_CONSTRUCTOR, "wxStyledTextEvent", s_wxluafunc_wxLua_wxStyledTextEvent_constructor, 1 },
! { WXLUAMETHOD_METHOD, 0, 0, 0 },
! };
! int wxStyledTextEvent_methodCount = sizeof(wxStyledTextEvent_methods)/sizeof(wxStyledTextEvent_methods[0]) - 1;
!
! WXLUADEFINE wxStyledTextEvent_enums[] = {
! { NULL, 0, },
};
! int wxStyledTextEvent_enumCount = sizeof(wxStyledTextEvent_enums)/sizeof(wxStyledTextEvent_enums[0]) - 1;
|