Update of /cvsroot/wxlua/wxLua/modules/wxbind/src In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv7428/wxLua/modules/wxbind/src Modified Files: appframe.cpp clipdrag.cpp controls.cpp data.cpp datetime.cpp defsutil.cpp dialogs.cpp event.cpp file.cpp gdi.cpp html.cpp image.cpp mdi.cpp menutool.cpp print.cpp sizer.cpp wave.cpp windows.cpp wx_bind.cpp Log Message: Add more classes from wxWidgets 2.8 Index: dialogs.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/dialogs.cpp,v retrieving revision 1.48 retrieving revision 1.49 diff -C2 -d -r1.48 -r1.49 *** dialogs.cpp 17 Jun 2007 18:36:17 -0000 1.48 --- dialogs.cpp 18 Jun 2007 02:56:29 -0000 1.49 *************** *** 1658,1666 **** ! #if (!wxCHECK_VERSION(2,7,0)) && (wxLUA_USE_wxFileDialog && wxUSE_FILEDLG) static wxLuaArgTag s_wxluatagArray_wxLua_wxFileDialog_GetStyle[] = { &s_wxluatag_wxFileDialog, NULL }; static int LUACALL wxLua_wxFileDialog_GetStyle(lua_State *L); static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileDialog_GetStyle[1] = {{ wxLua_wxFileDialog_GetStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatagArray_wxLua_wxFileDialog_GetStyle }}; ! // !%wxchkver_2_7 long GetStyle() const static int LUACALL wxLua_wxFileDialog_GetStyle(lua_State *L) { --- 1658,1666 ---- ! #if (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileDialog && wxUSE_FILEDLG) static wxLuaArgTag s_wxluatagArray_wxLua_wxFileDialog_GetStyle[] = { &s_wxluatag_wxFileDialog, NULL }; static int LUACALL wxLua_wxFileDialog_GetStyle(lua_State *L); static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileDialog_GetStyle[1] = {{ wxLua_wxFileDialog_GetStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatagArray_wxLua_wxFileDialog_GetStyle }}; ! // !%wxchkver_2_8 long GetStyle() const static int LUACALL wxLua_wxFileDialog_GetStyle(lua_State *L) { *************** *** 1677,1681 **** } ! #endif // (!wxCHECK_VERSION(2,7,0)) && (wxLUA_USE_wxFileDialog && wxUSE_FILEDLG) static wxLuaArgTag s_wxluatagArray_wxLua_wxFileDialog_GetWildcard[] = { &s_wxluatag_wxFileDialog, NULL }; --- 1677,1681 ---- } ! #endif // (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileDialog && wxUSE_FILEDLG) static wxLuaArgTag s_wxluatagArray_wxLua_wxFileDialog_GetWildcard[] = { &s_wxluatag_wxFileDialog, NULL }; *************** *** 1783,1791 **** ! #if (!wxCHECK_VERSION(2,7,0)) && (wxLUA_USE_wxFileDialog && wxUSE_FILEDLG) static wxLuaArgTag s_wxluatagArray_wxLua_wxFileDialog_SetStyle[] = { &s_wxluatag_wxFileDialog, &s_wxluaarg_Number, NULL }; static int LUACALL wxLua_wxFileDialog_SetStyle(lua_State *L); static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileDialog_SetStyle[1] = {{ wxLua_wxFileDialog_SetStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatagArray_wxLua_wxFileDialog_SetStyle }}; ! // !%wxchkver_2_7 void SetStyle(long style) static int LUACALL wxLua_wxFileDialog_SetStyle(lua_State *L) { --- 1783,1791 ---- ! #if (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileDialog && wxUSE_FILEDLG) static wxLuaArgTag s_wxluatagArray_wxLua_wxFileDialog_SetStyle[] = { &s_wxluatag_wxFileDialog, &s_wxluaarg_Number, NULL }; static int LUACALL wxLua_wxFileDialog_SetStyle(lua_State *L); static wxLuaBindCFunc s_wxluafunc_wxLua_wxFileDialog_SetStyle[1] = {{ wxLua_wxFileDialog_SetStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatagArray_wxLua_wxFileDialog_SetStyle }}; ! // !%wxchkver_2_8 void SetStyle(long style) static int LUACALL wxLua_wxFileDialog_SetStyle(lua_State *L) { *************** *** 1801,1805 **** } ! #endif // (!wxCHECK_VERSION(2,7,0)) && (wxLUA_USE_wxFileDialog && wxUSE_FILEDLG) static wxLuaArgTag s_wxluatagArray_wxLua_wxFileDialog_SetWildcard[] = { &s_wxluatag_wxFileDialog, &s_wxluaarg_String, NULL }; --- 1801,1805 ---- } ! #endif // (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileDialog && wxUSE_FILEDLG) static wxLuaArgTag s_wxluatagArray_wxLua_wxFileDialog_SetWildcard[] = { &s_wxluatag_wxFileDialog, &s_wxluaarg_String, NULL }; *************** *** 1913,1919 **** { "GetPaths", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileDialog_GetPaths, 1, NULL }, ! #if (!wxCHECK_VERSION(2,7,0)) && (wxLUA_USE_wxFileDialog && wxUSE_FILEDLG) { "GetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileDialog_GetStyle, 1, NULL }, ! #endif // (!wxCHECK_VERSION(2,7,0)) && (wxLUA_USE_wxFileDialog && wxUSE_FILEDLG) { "GetWildcard", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileDialog_GetWildcard, 1, NULL }, --- 1913,1919 ---- { "GetPaths", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileDialog_GetPaths, 1, NULL }, ! #if (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileDialog && wxUSE_FILEDLG) { "GetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileDialog_GetStyle, 1, NULL }, ! #endif // (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileDialog && wxUSE_FILEDLG) { "GetWildcard", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileDialog_GetWildcard, 1, NULL }, *************** *** 1924,1930 **** { "SetPath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileDialog_SetPath, 1, NULL }, ! #if (!wxCHECK_VERSION(2,7,0)) && (wxLUA_USE_wxFileDialog && wxUSE_FILEDLG) { "SetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileDialog_SetStyle, 1, NULL }, ! #endif // (!wxCHECK_VERSION(2,7,0)) && (wxLUA_USE_wxFileDialog && wxUSE_FILEDLG) { "SetWildcard", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileDialog_SetWildcard, 1, NULL }, --- 1924,1930 ---- { "SetPath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileDialog_SetPath, 1, NULL }, ! #if (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileDialog && wxUSE_FILEDLG) { "SetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileDialog_SetStyle, 1, NULL }, ! #endif // (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxFileDialog && wxUSE_FILEDLG) { "SetWildcard", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFileDialog_SetWildcard, 1, NULL }, *************** *** 1988,1996 **** ! #if (!wxCHECK_VERSION(2,7,0)) && (wxLUA_USE_wxDirDialog && wxUSE_DIRDLG) static wxLuaArgTag s_wxluatagArray_wxLua_wxDirDialog_GetStyle[] = { &s_wxluatag_wxDirDialog, NULL }; static int LUACALL wxLua_wxDirDialog_GetStyle(lua_State *L); static wxLuaBindCFunc s_wxluafunc_wxLua_wxDirDialog_GetStyle[1] = {{ wxLua_wxDirDialog_GetStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatagArray_wxLua_wxDirDialog_GetStyle }}; ! // !%wxchkver_2_7 long GetStyle() const static int LUACALL wxLua_wxDirDialog_GetStyle(lua_State *L) { --- 1988,1996 ---- ! #if (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDirDialog && wxUSE_DIRDLG) static wxLuaArgTag s_wxluatagArray_wxLua_wxDirDialog_GetStyle[] = { &s_wxluatag_wxDirDialog, NULL }; static int LUACALL wxLua_wxDirDialog_GetStyle(lua_State *L); static wxLuaBindCFunc s_wxluafunc_wxLua_wxDirDialog_GetStyle[1] = {{ wxLua_wxDirDialog_GetStyle, WXLUAMETHOD_METHOD, 1, 1, s_wxluatagArray_wxLua_wxDirDialog_GetStyle }}; ! // !%wxchkver_2_8 long GetStyle() const static int LUACALL wxLua_wxDirDialog_GetStyle(lua_State *L) { *************** *** 2007,2011 **** } ! #endif // (!wxCHECK_VERSION(2,7,0)) && (wxLUA_USE_wxDirDialog && wxUSE_DIRDLG) static wxLuaArgTag s_wxluatagArray_wxLua_wxDirDialog_SetMessage[] = { &s_wxluatag_wxDirDialog, &s_wxluaarg_String, NULL }; --- 2007,2011 ---- } ! #endif // (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDirDialog && wxUSE_DIRDLG) static wxLuaArgTag s_wxluatagArray_wxLua_wxDirDialog_SetMessage[] = { &s_wxluatag_wxDirDialog, &s_wxluaarg_String, NULL }; *************** *** 2044,2052 **** ! #if (!wxCHECK_VERSION(2,7,0)) && (wxLUA_USE_wxDirDialog && wxUSE_DIRDLG) static wxLuaArgTag s_wxluatagArray_wxLua_wxDirDialog_SetStyle[] = { &s_wxluatag_wxDirDialog, &s_wxluaarg_Number, NULL }; static int LUACALL wxLua_wxDirDialog_SetStyle(lua_State *L); static wxLuaBindCFunc s_wxluafunc_wxLua_wxDirDialog_SetStyle[1] = {{ wxLua_wxDirDialog_SetStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatagArray_wxLua_wxDirDialog_SetStyle }}; ! // !%wxchkver_2_7 void SetStyle(long style) static int LUACALL wxLua_wxDirDialog_SetStyle(lua_State *L) { --- 2044,2052 ---- ! #if (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDirDialog && wxUSE_DIRDLG) static wxLuaArgTag s_wxluatagArray_wxLua_wxDirDialog_SetStyle[] = { &s_wxluatag_wxDirDialog, &s_wxluaarg_Number, NULL }; static int LUACALL wxLua_wxDirDialog_SetStyle(lua_State *L); static wxLuaBindCFunc s_wxluafunc_wxLua_wxDirDialog_SetStyle[1] = {{ wxLua_wxDirDialog_SetStyle, WXLUAMETHOD_METHOD, 2, 2, s_wxluatagArray_wxLua_wxDirDialog_SetStyle }}; ! // !%wxchkver_2_8 void SetStyle(long style) static int LUACALL wxLua_wxDirDialog_SetStyle(lua_State *L) { *************** *** 2062,2066 **** } ! #endif // (!wxCHECK_VERSION(2,7,0)) && (wxLUA_USE_wxDirDialog && wxUSE_DIRDLG) #if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxDirDialog && wxUSE_DIRDLG) --- 2062,2066 ---- } ! #endif // (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDirDialog && wxUSE_DIRDLG) #if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxDirDialog && wxUSE_DIRDLG) *************** *** 2105,2118 **** { "GetPath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDirDialog_GetPath, 1, NULL }, ! #if (!wxCHECK_VERSION(2,7,0)) && (wxLUA_USE_wxDirDialog && wxUSE_DIRDLG) { "GetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDirDialog_GetStyle, 1, NULL }, ! #endif // (!wxCHECK_VERSION(2,7,0)) && (wxLUA_USE_wxDirDialog && wxUSE_DIRDLG) { "SetMessage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDirDialog_SetMessage, 1, NULL }, { "SetPath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDirDialog_SetPath, 1, NULL }, ! #if (!wxCHECK_VERSION(2,7,0)) && (wxLUA_USE_wxDirDialog && wxUSE_DIRDLG) { "SetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDirDialog_SetStyle, 1, NULL }, ! #endif // (!wxCHECK_VERSION(2,7,0)) && (wxLUA_USE_wxDirDialog && wxUSE_DIRDLG) #if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxDirDialog && wxUSE_DIRDLG) --- 2105,2118 ---- { "GetPath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDirDialog_GetPath, 1, NULL }, ! #if (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDirDialog && wxUSE_DIRDLG) { "GetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDirDialog_GetStyle, 1, NULL }, ! #endif // (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDirDialog && wxUSE_DIRDLG) { "SetMessage", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDirDialog_SetMessage, 1, NULL }, { "SetPath", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDirDialog_SetPath, 1, NULL }, ! #if (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDirDialog && wxUSE_DIRDLG) { "SetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDirDialog_SetStyle, 1, NULL }, ! #endif // (!wxCHECK_VERSION(2,8,0)) && (wxLUA_USE_wxDirDialog && wxUSE_DIRDLG) #if (wxLUA_USE_wxPointSizeRect) && (wxLUA_USE_wxDirDialog && wxUSE_DIRDLG) Index: image.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/image.cpp,v retrieving revision 1.46 retrieving revision 1.47 diff -C2 -d -r1.46 -r1.47 *** image.cpp 17 Jun 2007 18:36:24 -0000 1.46 --- image.cpp 18 Jun 2007 02:56:31 -0000 1.47 *************** *** 2758,2761 **** --- 2758,2812 ---- #if wxLUA_USE_wxImage && wxUSE_IMAGE // --------------------------------------------------------------------------- + // Bind class wxQuantize + // --------------------------------------------------------------------------- + + // Lua MetaTable Tag for Class 'wxQuantize' + int s_wxluatag_wxQuantize = -1; + + static wxLuaArgTag s_wxluatagArray_wxLua_wxQuantize_Quantize[] = { &s_wxluatag_wxImage, &s_wxluatag_wxImage, &s_wxluaarg_Number, &s_wxluaarg_Number, NULL }; + static int LUACALL wxLua_wxQuantize_Quantize(lua_State *L); + static wxLuaBindCFunc s_wxluafunc_wxLua_wxQuantize_Quantize[1] = {{ wxLua_wxQuantize_Quantize, WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, 2, 4, s_wxluatagArray_wxLua_wxQuantize_Quantize }}; + // %override wxLua_wxQuantize_Quantize + // static bool Quantize(const wxImage& src, wxImage& dest, wxPalette** pPalette, int desiredNoColours = 236, unsigned char** eightBitData = 0, int flags = wxQUANTIZE_INCLUDE_WINDOWS_COLOURS|wxQUANTIZE_FILL_DESTINATION_IMAGE|wxQUANTIZE_RETURN_8BIT_DATA); + static int LUACALL wxLua_wxQuantize_Quantize(lua_State *L) + { + wxLuaState wxlState(L); + bool returns; + // get number of arguments + int argCount = lua_gettop(L); + // int flags = wxQUANTIZE_INCLUDE_WINDOWS_COLOURS | wxQUANTIZE_FILL_DESTINATION_IMAGE | wxQUANTIZE_RETURN_8BIT_DATA + int flags = (argCount >= 6 ? (int)wxlua_getnumbertype(L, 4) : wxQUANTIZE_INCLUDE_WINDOWS_COLOURS | wxQUANTIZE_FILL_DESTINATION_IMAGE | wxQUANTIZE_RETURN_8BIT_DATA); + // int desiredNoColours = 236 + int desiredNoColours = (argCount >= 4 ? (int)wxlua_getnumbertype(L, 3) : 236); + // wxImage dest + wxImage * dest = (wxImage *)wxlState.GetUserDataType(2, s_wxluatag_wxImage); + // const wxImage src + const wxImage * src = (const wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); + // call Quantize + returns = (wxQuantize::Quantize(*src, *dest, NULL, desiredNoColours, NULL, flags)); + // push the result flag + lua_pushboolean(L, returns); + + return 1; + } + + + + + + // Map Lua Class Methods to C Binding Functions + wxLuaBindMethod wxQuantize_methods[] = { + { "Quantize", WXLUAMETHOD_METHOD|WXLUAMETHOD_STATIC, s_wxluafunc_wxLua_wxQuantize_Quantize, 1, NULL }, + + { 0, 0, 0, 0 }, + }; + + int wxQuantize_methodCount = sizeof(wxQuantize_methods)/sizeof(wxLuaBindMethod) - 1; + + #endif // wxLUA_USE_wxImage && wxUSE_IMAGE + + + #if wxLUA_USE_wxImage && wxUSE_IMAGE + // --------------------------------------------------------------------------- // Bind class wxImageHandler // --------------------------------------------------------------------------- Index: mdi.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/mdi.cpp,v retrieving revision 1.40 retrieving revision 1.41 diff -C2 -d -r1.40 -r1.41 *** mdi.cpp 14 Jun 2007 23:59:45 -0000 1.40 --- mdi.cpp 18 Jun 2007 02:56:31 -0000 1.41 *************** *** 568,571 **** --- 568,970 ---- #if wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE // --------------------------------------------------------------------------- + // Bind class wxDocMDIParentFrame + // --------------------------------------------------------------------------- + + // Lua MetaTable Tag for Class 'wxDocMDIParentFrame' + int s_wxluatag_wxDocMDIParentFrame = -1; + + #if ((wxLUA_USE_wxFrame) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) && (wxLUA_USE_wxPointSizeRect) + static wxLuaArgTag s_wxluatagArray_wxLua_wxDocMDIParentFrame_Create[] = { &s_wxluatag_wxDocMDIParentFrame, &s_wxluatag_wxDocManager, &s_wxluatag_wxFrame, &s_wxluaarg_Number, &s_wxluaarg_String, &s_wxluatag_wxPoint, &s_wxluatag_wxSize, &s_wxluaarg_Number, &s_wxluaarg_String, NULL }; + static int LUACALL wxLua_wxDocMDIParentFrame_Create(lua_State *L); + static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocMDIParentFrame_Create[1] = {{ wxLua_wxDocMDIParentFrame_Create, WXLUAMETHOD_METHOD, 5, 9, s_wxluatagArray_wxLua_wxDocMDIParentFrame_Create }}; + // bool Create(wxDocManager *manager, wxFrame *parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE, const wxString& name = "wxDocMDIParentFrame") + static int LUACALL wxLua_wxDocMDIParentFrame_Create(lua_State *L) + { + wxLuaState wxlState(L); + bool returns; + // get number of arguments + int argCount = lua_gettop(L); + // const wxString name = "wxDocMDIParentFrame" + const wxString name = (argCount >= 9 ? wxlState.GetwxStringType(9) : wxString(wxT("wxDocMDIParentFrame"))); + // long style = wxDEFAULT_FRAME_STYLE + long style = (argCount >= 8 ? (long)wxlua_getnumbertype(L, 8) : wxDEFAULT_FRAME_STYLE); + // const wxSize size = wxDefaultSize + const wxSize * size = (argCount >= 7 ? (const wxSize *)wxlState.GetUserDataType(7, s_wxluatag_wxSize) : &wxDefaultSize); + // const wxPoint pos = wxDefaultPosition + const wxPoint * pos = (argCount >= 6 ? (const wxPoint *)wxlState.GetUserDataType(6, s_wxluatag_wxPoint) : &wxDefaultPosition); + // const wxString title + const wxString title = wxlState.GetwxStringType(5); + // wxWindowID id + wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 4); + // wxFrame parent + wxFrame * parent = (wxFrame *)wxlState.GetUserDataType(3, s_wxluatag_wxFrame); + // wxDocManager manager + wxDocManager * manager = (wxDocManager *)wxlState.GetUserDataType(2, s_wxluatag_wxDocManager); + // get this + wxDocMDIParentFrame * self = (wxDocMDIParentFrame *)wxlState.GetUserDataType(1, s_wxluatag_wxDocMDIParentFrame); + // call Create + returns = (self->Create(manager, parent, id, title, *pos, *size, style, name)); + // push the result flag + lua_pushboolean(L, returns); + + return 1; + } + + #endif // ((wxLUA_USE_wxFrame) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) && (wxLUA_USE_wxPointSizeRect) + + static wxLuaArgTag s_wxluatagArray_wxLua_wxDocMDIParentFrame_GetDocumentManager[] = { &s_wxluatag_wxDocMDIParentFrame, NULL }; + static int LUACALL wxLua_wxDocMDIParentFrame_GetDocumentManager(lua_State *L); + static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocMDIParentFrame_GetDocumentManager[1] = {{ wxLua_wxDocMDIParentFrame_GetDocumentManager, WXLUAMETHOD_METHOD, 1, 1, s_wxluatagArray_wxLua_wxDocMDIParentFrame_GetDocumentManager }}; + // wxDocManager *GetDocumentManager() const + static int LUACALL wxLua_wxDocMDIParentFrame_GetDocumentManager(lua_State *L) + { + wxLuaState wxlState(L); + wxDocManager *returns; + // get this + wxDocMDIParentFrame * self = (wxDocMDIParentFrame *)wxlState.GetUserDataType(1, s_wxluatag_wxDocMDIParentFrame); + // call GetDocumentManager + returns = (wxDocManager *)self->GetDocumentManager(); + // push the result datatype + wxlState.PushUserDataType(s_wxluatag_wxDocManager, returns); + + return 1; + } + + + #if ((wxLUA_USE_wxFrame) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) && (wxLUA_USE_wxPointSizeRect) + static wxLuaArgTag s_wxluatagArray_wxLua_wxDocMDIParentFrame_constructor1[] = { &s_wxluatag_wxDocManager, &s_wxluatag_wxFrame, &s_wxluaarg_Number, &s_wxluaarg_String, &s_wxluatag_wxPoint, &s_wxluatag_wxSize, &s_wxluaarg_Number, &s_wxluaarg_String, NULL }; + static int LUACALL wxLua_wxDocMDIParentFrame_constructor1(lua_State *L); + // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocMDIParentFrame_constructor1[1] = {{ wxLua_wxDocMDIParentFrame_constructor1, WXLUAMETHOD_CONSTRUCTOR, 4, 8, s_wxluatagArray_wxLua_wxDocMDIParentFrame_constructor1 }}; + // wxDocMDIParentFrame(wxDocManager *manager, wxFrame *parent, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long style = wxDEFAULT_FRAME_STYLE, const wxString& name = "wxDocMDIParentFrame") + static int LUACALL wxLua_wxDocMDIParentFrame_constructor1(lua_State *L) + { + wxluabind_removetableforcall(L); + wxLuaState wxlState(L); + wxDocMDIParentFrame *returns; + // get number of arguments + int argCount = lua_gettop(L); + // const wxString name = "wxDocMDIParentFrame" + const wxString name = (argCount >= 8 ? wxlState.GetwxStringType(8) : wxString(wxT("wxDocMDIParentFrame"))); + // long style = wxDEFAULT_FRAME_STYLE + long style = (argCount >= 7 ? (long)wxlua_getnumbertype(L, 7) : wxDEFAULT_FRAME_STYLE); + // const wxSize size = wxDefaultSize + const wxSize * size = (argCount >= 6 ? (const wxSize *)wxlState.GetUserDataType(6, s_wxluatag_wxSize) : &wxDefaultSize); + // const wxPoint pos = wxDefaultPosition + const wxPoint * pos = (argCount >= 5 ? (const wxPoint *)wxlState.GetUserDataType(5, s_wxluatag_wxPoint) : &wxDefaultPosition); + // const wxString title + const wxString title = wxlState.GetwxStringType(4); + // wxWindowID id + wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 3); + // wxFrame parent + wxFrame * parent = (wxFrame *)wxlState.GetUserDataType(2, s_wxluatag_wxFrame); + // wxDocManager manager + wxDocManager * manager = (wxDocManager *)wxlState.GetUserDataType(1, s_wxluatag_wxDocManager); + // call constructor + returns = new wxDocMDIParentFrame(manager, parent, id, title, *pos, *size, style, name); + // add to tracked window list, it will check validity + wxlState.AddTrackedWindow(returns); + // push the constructed class pointer + wxlState.PushUserDataType(s_wxluatag_wxDocMDIParentFrame, returns); + + return 1; + } + + #endif // ((wxLUA_USE_wxFrame) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) && (wxLUA_USE_wxPointSizeRect) + + static int LUACALL wxLua_wxDocMDIParentFrame_constructor(lua_State *L); + // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocMDIParentFrame_constructor[1] = {{ wxLua_wxDocMDIParentFrame_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, s_wxluaargArray_None }}; + // wxDocMDIParentFrame() + static int LUACALL wxLua_wxDocMDIParentFrame_constructor(lua_State *L) + { + wxluabind_removetableforcall(L); + wxLuaState wxlState(L); + wxDocMDIParentFrame *returns; + // call constructor + returns = new wxDocMDIParentFrame(); + // add to tracked window list, it will check validity + wxlState.AddTrackedWindow(returns); + // push the constructed class pointer + wxlState.PushUserDataType(s_wxluatag_wxDocMDIParentFrame, returns); + + return 1; + } + + + + + #if (((wxLUA_USE_wxFrame) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) + static int LUACALL wxLua_wxDocMDIParentFrame_constructor_overload(lua_State *L); + // function overload table + static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocMDIParentFrame_constructor_overload[] = + { + { wxLua_wxDocMDIParentFrame_constructor_overload, WXLUAMETHOD_METHOD|WXLUAMETHOD_OVERLOAD, 0, 8, s_wxluaargArray_None }, + + #if ((wxLUA_USE_wxFrame) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) && (wxLUA_USE_wxPointSizeRect) + { wxLua_wxDocMDIParentFrame_constructor1, WXLUAMETHOD_CONSTRUCTOR, 4, 8, s_wxluatagArray_wxLua_wxDocMDIParentFrame_constructor1 }, + #endif // ((wxLUA_USE_wxFrame) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) && (wxLUA_USE_wxPointSizeRect) + { wxLua_wxDocMDIParentFrame_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, s_wxluaargArray_None }, + }; + static int s_wxluafunc_wxLua_wxDocMDIParentFrame_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxDocMDIParentFrame_constructor_overload)/sizeof(wxLuaBindCFunc); + // Overloaded function for wxDocMDIParentFrame::wxDocMDIParentFrame + static int LUACALL wxLua_wxDocMDIParentFrame_constructor_overload(lua_State *L) + { + wxLuaState wxlState(L); + static wxLuaBindMethod overload_method = + { "wxDocMDIParentFrame", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDocMDIParentFrame_constructor_overload, s_wxluafunc_wxLua_wxDocMDIParentFrame_constructor_overload_count, 0 }; + return wxlState.CallOverloadedFunction(&overload_method); + } + #endif // (((wxLUA_USE_wxFrame) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) + + // Map Lua Class Methods to C Binding Functions + wxLuaBindMethod wxDocMDIParentFrame_methods[] = { + #if ((wxLUA_USE_wxFrame) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) && (wxLUA_USE_wxPointSizeRect) + { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocMDIParentFrame_Create, 1, NULL }, + #endif // ((wxLUA_USE_wxFrame) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) && (wxLUA_USE_wxPointSizeRect) + + { "GetDocumentManager", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocMDIParentFrame_GetDocumentManager, 1, NULL }, + + #if (((wxLUA_USE_wxFrame) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) + { "wxDocMDIParentFrame", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDocMDIParentFrame_constructor_overload, s_wxluafunc_wxLua_wxDocMDIParentFrame_constructor_overload_count, 0 }, + #endif // (((wxLUA_USE_wxFrame) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) + + { 0, 0, 0, 0 }, + }; + + int wxDocMDIParentFrame_methodCount = sizeof(wxDocMDIParentFrame_methods)/sizeof(wxLuaBindMethod) - 1; + + #endif // wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE + + + #if wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE + // --------------------------------------------------------------------------- + // Bind class wxDocMDIChildFrame + // --------------------------------------------------------------------------- + + // Lua MetaTable Tag for Class 'wxDocMDIChildFrame' + int s_wxluatag_wxDocMDIChildFrame = -1; + + #if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect) + static wxLuaArgTag s_wxluatagArray_wxLua_wxDocMDIChildFrame_Create[] = { &s_wxluatag_wxDocMDIChildFrame, &s_wxluatag_wxDocument, &s_wxluatag_wxView, &s_wxluatag_wxMDIParentFrame, &s_wxluaarg_Number, &s_wxluaarg_String, &s_wxluatag_wxPoint, &s_wxluatag_wxSize, &s_wxluaarg_Number, &s_wxluaarg_String, NULL }; + static int LUACALL wxLua_wxDocMDIChildFrame_Create(lua_State *L); + static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocMDIChildFrame_Create[1] = {{ wxLua_wxDocMDIChildFrame_Create, WXLUAMETHOD_METHOD, 6, 10, s_wxluatagArray_wxLua_wxDocMDIChildFrame_Create }}; + // bool Create(wxDocument *doc, wxView *view, wxMDIParentFrame *frame, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize, long type = wxDEFAULT_FRAME_STYLE, const wxString& name = "wxDocMDIChildFrame") + static int LUACALL wxLua_wxDocMDIChildFrame_Create(lua_State *L) + { + wxLuaState wxlState(L); + bool returns; + // get number of arguments + int argCount = lua_gettop(L); + // const wxString name = "wxDocMDIChildFrame" + const wxString name = (argCount >= 10 ? wxlState.GetwxStringType(10) : wxString(wxT("wxDocMDIChildFrame"))); + // long type = wxDEFAULT_FRAME_STYLE + long type = (argCount >= 9 ? (long)wxlua_getnumbertype(L, 9) : wxDEFAULT_FRAME_STYLE); + // const wxSize size = wxDefaultSize + const wxSize * size = (argCount >= 8 ? (const wxSize *)wxlState.GetUserDataType(8, s_wxluatag_wxSize) : &wxDefaultSize); + // const wxPoint pos = wxDefaultPosition + const wxPoint * pos = (argCount >= 7 ? (const wxPoint *)wxlState.GetUserDataType(7, s_wxluatag_wxPoint) : &wxDefaultPosition); + // const wxString title + const wxString title = wxlState.GetwxStringType(6); + // wxWindowID id + wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 5); + // wxMDIParentFrame frame + wxMDIParentFrame * frame = (wxMDIParentFrame *)wxlState.GetUserDataType(4, s_wxluatag_wxMDIParentFrame); + // wxView view + wxView * view = (wxView *)wxlState.GetUserDataType(3, s_wxluatag_wxView); + // wxDocument doc + wxDocument * doc = (wxDocument *)wxlState.GetUserDataType(2, s_wxluatag_wxDocument); + // get this + wxDocMDIChildFrame * self = (wxDocMDIChildFrame *)wxlState.GetUserDataType(1, s_wxluatag_wxDocMDIChildFrame); + // call Create + returns = (self->Create(doc, view, frame, id, title, *pos, *size, type, name)); + // push the result flag + lua_pushboolean(L, returns); + + return 1; + } + + #endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect) + + static wxLuaArgTag s_wxluatagArray_wxLua_wxDocMDIChildFrame_GetDocument[] = { &s_wxluatag_wxDocMDIChildFrame, NULL }; + static int LUACALL wxLua_wxDocMDIChildFrame_GetDocument(lua_State *L); + static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocMDIChildFrame_GetDocument[1] = {{ wxLua_wxDocMDIChildFrame_GetDocument, WXLUAMETHOD_METHOD, 1, 1, s_wxluatagArray_wxLua_wxDocMDIChildFrame_GetDocument }}; + // wxDocument *GetDocument() const + static int LUACALL wxLua_wxDocMDIChildFrame_GetDocument(lua_State *L) + { + wxLuaState wxlState(L); + wxDocument *returns; + // get this + wxDocMDIChildFrame * self = (wxDocMDIChildFrame *)wxlState.GetUserDataType(1, s_wxluatag_wxDocMDIChildFrame); + // call GetDocument + returns = (wxDocument *)self->GetDocument(); + // push the result datatype + wxlState.PushUserDataType(s_wxluatag_wxDocument, returns); + + return 1; + } + + static wxLuaArgTag s_wxluatagArray_wxLua_wxDocMDIChildFrame_GetView[] = { &s_wxluatag_wxDocMDIChildFrame, NULL }; + static int LUACALL wxLua_wxDocMDIChildFrame_GetView(lua_State *L); + static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocMDIChildFrame_GetView[1] = {{ wxLua_wxDocMDIChildFrame_GetView, WXLUAMETHOD_METHOD, 1, 1, s_wxluatagArray_wxLua_wxDocMDIChildFrame_GetView }}; + // wxView *GetView() const + static int LUACALL wxLua_wxDocMDIChildFrame_GetView(lua_State *L) + { + wxLuaState wxlState(L); + wxView *returns; + // get this + wxDocMDIChildFrame * self = (wxDocMDIChildFrame *)wxlState.GetUserDataType(1, s_wxluatag_wxDocMDIChildFrame); + // call GetView + returns = (wxView *)self->GetView(); + // push the result datatype + wxlState.PushUserDataType(s_wxluatag_wxView, returns); + + return 1; + } + + static wxLuaArgTag s_wxluatagArray_wxLua_wxDocMDIChildFrame_SetDocument[] = { &s_wxluatag_wxDocMDIChildFrame, &s_wxluatag_wxDocument, NULL }; + static int LUACALL wxLua_wxDocMDIChildFrame_SetDocument(lua_State *L); + static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocMDIChildFrame_SetDocument[1] = {{ wxLua_wxDocMDIChildFrame_SetDocument, WXLUAMETHOD_METHOD, 2, 2, s_wxluatagArray_wxLua_wxDocMDIChildFrame_SetDocument }}; + // void SetDocument(wxDocument *doc) + static int LUACALL wxLua_wxDocMDIChildFrame_SetDocument(lua_State *L) + { + wxLuaState wxlState(L); + // wxDocument doc + wxDocument * doc = (wxDocument *)wxlState.GetUserDataType(2, s_wxluatag_wxDocument); + // get this + wxDocMDIChildFrame * self = (wxDocMDIChildFrame *)wxlState.GetUserDataType(1, s_wxluatag_wxDocMDIChildFrame); + // call SetDocument + self->SetDocument(doc); + + return 0; + } + + static wxLuaArgTag s_wxluatagArray_wxLua_wxDocMDIChildFrame_SetView[] = { &s_wxluatag_wxDocMDIChildFrame, &s_wxluatag_wxView, NULL }; + static int LUACALL wxLua_wxDocMDIChildFrame_SetView(lua_State *L); + static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocMDIChildFrame_SetView[1] = {{ wxLua_wxDocMDIChildFrame_SetView, WXLUAMETHOD_METHOD, 2, 2, s_wxluatagArray_wxLua_wxDocMDIChildFrame_SetView }}; + // void SetView(wxView *view) + static int LUACALL wxLua_wxDocMDIChildFrame_SetView(lua_State *L) + { + wxLuaState wxlState(L); + // wxView view + wxView * view = (wxView *)wxlState.GetUserDataType(2, s_wxluatag_wxView); + // get this + wxDocMDIChildFrame * self = (wxDocMDIChildFrame *)wxlState.GetUserDataType(1, s_wxluatag_wxDocMDIChildFrame); + // call SetView + self->SetView(view); + + return 0; + } + + + #if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect) + static wxLuaArgTag s_wxluatagArray_wxLua_wxDocMDIChildFrame_constructor1[] = { &s_wxluatag_wxDocument, &s_wxluatag_wxView, &s_wxluatag_wxMDIParentFrame, &s_wxluaarg_Number, &s_wxluaarg_String, &s_wxluatag_wxPoint, &s_wxluatag_wxSize, &s_wxluaarg_Number, &s_wxluaarg_String, NULL }; + static int LUACALL wxLua_wxDocMDIChildFrame_constructor1(lua_State *L); + // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocMDIChildFrame_constructor1[1] = {{ wxLua_wxDocMDIChildFrame_constructor1, WXLUAMETHOD_CONSTRUCTOR, 5, 9, s_wxluatagArray_wxLua_wxDocMDIChildFrame_constructor1 }}; + // wxDocMDIChildFrame(wxDocument *doc, wxView *view, wxMDIParentFrame *frame, wxWindowID id, const wxString& title, const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxDefaultSize,long type = wxDEFAULT_FRAME_STYLE, const wxString& name = "wxDocMDIChildFrame") + static int LUACALL wxLua_wxDocMDIChildFrame_constructor1(lua_State *L) + { + wxluabind_removetableforcall(L); + wxLuaState wxlState(L); + wxDocMDIChildFrame *returns; + // get number of arguments + int argCount = lua_gettop(L); + // const wxString name = "wxDocMDIChildFrame" + const wxString name = (argCount >= 9 ? wxlState.GetwxStringType(9) : wxString(wxT("wxDocMDIChildFrame"))); + // long type = wxDEFAULT_FRAME_STYLE + long type = (argCount >= 8 ? (long)wxlua_getnumbertype(L, 8) : wxDEFAULT_FRAME_STYLE); + // const wxSize size = wxDefaultSize + const wxSize * size = (argCount >= 7 ? (const wxSize *)wxlState.GetUserDataType(7, s_wxluatag_wxSize) : &wxDefaultSize); + // const wxPoint pos = wxDefaultPosition + const wxPoint * pos = (argCount >= 6 ? (const wxPoint *)wxlState.GetUserDataType(6, s_wxluatag_wxPoint) : &wxDefaultPosition); + // const wxString title + const wxString title = wxlState.GetwxStringType(5); + // wxWindowID id + wxWindowID id = (wxWindowID)wxlua_getnumbertype(L, 4); + // wxMDIParentFrame frame + wxMDIParentFrame * frame = (wxMDIParentFrame *)wxlState.GetUserDataType(3, s_wxluatag_wxMDIParentFrame); + // wxView view + wxView * view = (wxView *)wxlState.GetUserDataType(2, s_wxluatag_wxView); + // wxDocument doc + wxDocument * doc = (wxDocument *)wxlState.GetUserDataType(1, s_wxluatag_wxDocument); + // call constructor + returns = new wxDocMDIChildFrame(doc, view, frame, id, title, *pos, *size, type, name); + // add to tracked window list, it will check validity + wxlState.AddTrackedWindow(returns); + // push the constructed class pointer + wxlState.PushUserDataType(s_wxluatag_wxDocMDIChildFrame, returns); + + return 1; + } + + #endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect) + + static int LUACALL wxLua_wxDocMDIChildFrame_constructor(lua_State *L); + // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocMDIChildFrame_constructor[1] = {{ wxLua_wxDocMDIChildFrame_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, s_wxluaargArray_None }}; + // wxDocMDIChildFrame() + static int LUACALL wxLua_wxDocMDIChildFrame_constructor(lua_State *L) + { + wxluabind_removetableforcall(L); + wxLuaState wxlState(L); + wxDocMDIChildFrame *returns; + // call constructor + returns = new wxDocMDIChildFrame(); + // add to tracked window list, it will check validity + wxlState.AddTrackedWindow(returns); + // push the constructed class pointer + wxlState.PushUserDataType(s_wxluatag_wxDocMDIChildFrame, returns); + + return 1; + } + + + + + #if ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) + static int LUACALL wxLua_wxDocMDIChildFrame_constructor_overload(lua_State *L); + // function overload table + static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocMDIChildFrame_constructor_overload[] = + { + { wxLua_wxDocMDIChildFrame_constructor_overload, WXLUAMETHOD_METHOD|WXLUAMETHOD_OVERLOAD, 0, 9, s_wxluaargArray_None }, + + #if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect) + { wxLua_wxDocMDIChildFrame_constructor1, WXLUAMETHOD_CONSTRUCTOR, 5, 9, s_wxluatagArray_wxLua_wxDocMDIChildFrame_constructor1 }, + #endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect) + { wxLua_wxDocMDIChildFrame_constructor, WXLUAMETHOD_CONSTRUCTOR, 0, 0, s_wxluaargArray_None }, + }; + static int s_wxluafunc_wxLua_wxDocMDIChildFrame_constructor_overload_count = sizeof(s_wxluafunc_wxLua_wxDocMDIChildFrame_constructor_overload)/sizeof(wxLuaBindCFunc); + // Overloaded function for wxDocMDIChildFrame::wxDocMDIChildFrame + static int LUACALL wxLua_wxDocMDIChildFrame_constructor_overload(lua_State *L) + { + wxLuaState wxlState(L); + static wxLuaBindMethod overload_method = + { "wxDocMDIChildFrame", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDocMDIChildFrame_constructor_overload, s_wxluafunc_wxLua_wxDocMDIChildFrame_constructor_overload_count, 0 }; + return wxlState.CallOverloadedFunction(&overload_method); + } + #endif // ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) + + // Map Lua Class Methods to C Binding Functions + wxLuaBindMethod wxDocMDIChildFrame_methods[] = { + #if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect) + { "Create", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocMDIChildFrame_Create, 1, NULL }, + #endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect) + + { "GetDocument", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocMDIChildFrame_GetDocument, 1, NULL }, + { "GetView", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocMDIChildFrame_GetView, 1, NULL }, + { "SetDocument", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocMDIChildFrame_SetDocument, 1, NULL }, + { "SetView", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocMDIChildFrame_SetView, 1, NULL }, + + #if ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) + { "wxDocMDIChildFrame", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxDocMDIChildFrame_constructor_overload, s_wxluafunc_wxLua_wxDocMDIChildFrame_constructor_overload_count, 0 }, + #endif // ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxPointSizeRect))||(wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) + + { 0, 0, 0, 0 }, + }; + + int wxDocMDIChildFrame_methodCount = sizeof(wxDocMDIChildFrame_methods)/sizeof(wxLuaBindMethod) - 1; + + #endif // wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE + + + #if wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE + // --------------------------------------------------------------------------- // Bind class wxDocChildFrame // --------------------------------------------------------------------------- *************** *** 716,724 **** int s_wxluatag_wxDocManager = -1; ! #if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && ((!wxCHECK_VERSION(2,5,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) static wxLuaArgTag s_wxluatagArray_wxLua_wxDocManager_ActivateView1[] = { &s_wxluatag_wxDocManager, &s_wxluatag_wxView, &s_wxluaarg_Boolean, &s_wxluaarg_Boolean, NULL }; static int LUACALL wxLua_wxDocManager_ActivateView1(lua_State *L); // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocManager_ActivateView1[1] = {{ wxLua_wxDocManager_ActivateView1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatagArray_wxLua_wxDocManager_ActivateView1 }}; ! // !%wxchkver_2_5 void ActivateView(wxView* view, bool activate, bool deleting) static int LUACALL wxLua_wxDocManager_ActivateView1(lua_State *L) { --- 1115,1123 ---- int s_wxluatag_wxDocManager = -1; ! #if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && ((!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) static wxLuaArgTag s_wxluatagArray_wxLua_wxDocManager_ActivateView1[] = { &s_wxluatag_wxDocManager, &s_wxluatag_wxView, &s_wxluaarg_Boolean, &s_wxluaarg_Boolean, NULL }; static int LUACALL wxLua_wxDocManager_ActivateView1(lua_State *L); // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocManager_ActivateView1[1] = {{ wxLua_wxDocManager_ActivateView1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatagArray_wxLua_wxDocManager_ActivateView1 }}; ! // !%wxchkver_2_6 void ActivateView(wxView* view, bool activate, bool deleting) static int LUACALL wxLua_wxDocManager_ActivateView1(lua_State *L) { *************** *** 738,748 **** } ! #endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && ((!wxCHECK_VERSION(2,5,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) ! #if ((wxCHECK_VERSION(2,5,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) static wxLuaArgTag s_wxluatagArray_wxLua_wxDocManager_ActivateView[] = { &s_wxluatag_wxDocManager, &s_wxluatag_wxView, &s_wxluaarg_Boolean, NULL }; static int LUACALL wxLua_wxDocManager_ActivateView(lua_State *L); // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocManager_ActivateView[1] = {{ wxLua_wxDocManager_ActivateView, WXLUAMETHOD_METHOD, 3, 3, s_wxluatagArray_wxLua_wxDocManager_ActivateView }}; ! // %wxchkver_2_5 void ActivateView(wxView* view, bool activate) static int LUACALL wxLua_wxDocManager_ActivateView(lua_State *L) { --- 1137,1147 ---- } ! #endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && ((!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) ! #if ((wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) static wxLuaArgTag s_wxluatagArray_wxLua_wxDocManager_ActivateView[] = { &s_wxluatag_wxDocManager, &s_wxluatag_wxView, &s_wxluaarg_Boolean, NULL }; static int LUACALL wxLua_wxDocManager_ActivateView(lua_State *L); // static wxLuaBindCFunc s_wxluafunc_wxLua_wxDocManager_ActivateView[1] = {{ wxLua_wxDocManager_ActivateView, WXLUAMETHOD_METHOD, 3, 3, s_wxluatagArray_wxLua_wxDocManager_ActivateView }}; ! // %wxchkver_2_6 void ActivateView(wxView* view, bool activate) static int LUACALL wxLua_wxDocManager_ActivateView(lua_State *L) { *************** *** 760,764 **** } ! #endif // ((wxCHECK_VERSION(2,5,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) static wxLuaArgTag s_wxluatagArray_wxLua_wxDocManager_AddDocument[] = { &s_wxluatag_wxDocManager, &s_wxluatag_wxDocument, NULL }; --- 1159,1163 ---- } ! #endif // ((wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) static wxLuaArgTag s_wxluatagArray_wxLua_wxDocManager_AddDocument[] = { &s_wxluatag_wxDocManager, &s_wxluatag_wxDocument, NULL }; *************** *** 1479,1483 **** ! #if ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && ((!wxCHECK_VERSION(2,5,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)))||(((wxCHECK_VERSION(2,5,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) static int LUACALL wxLua_wxDocManager_ActivateView_overload(lua_State *L); // function overload table --- 1878,1882 ---- ! #if ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && ((!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)))||(((wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) static int LUACALL wxLua_wxDocManager_ActivateView_overload(lua_State *L); // function overload table *************** *** 1486,1496 **** { wxLua_wxDocManager_ActivateView_overload, WXLUAMETHOD_METHOD|WXLUAMETHOD_OVERLOAD, 3, 4, s_wxluaargArray_None }, ! #if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && ((!wxCHECK_VERSION(2,5,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) { wxLua_wxDocManager_ActivateView1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatagArray_wxLua_wxDocManager_ActivateView1 }, ! #endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && ((!wxCHECK_VERSION(2,5,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) ! #if ((wxCHECK_VERSION(2,5,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) { wxLua_wxDocManager_ActivateView, WXLUAMETHOD_METHOD, 3, 3, s_wxluatagArray_wxLua_wxDocManager_ActivateView }, ! #endif // ((wxCHECK_VERSION(2,5,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) }; static int s_wxluafunc_wxLua_wxDocManager_ActivateView_overload_count = sizeof(s_wxluafunc_wxLua_wxDocManager_ActivateView_overload)/sizeof(wxLuaBindCFunc); --- 1885,1895 ---- { wxLua_wxDocManager_ActivateView_overload, WXLUAMETHOD_METHOD|WXLUAMETHOD_OVERLOAD, 3, 4, s_wxluaargArray_None }, ! #if (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && ((!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) { wxLua_wxDocManager_ActivateView1, WXLUAMETHOD_METHOD, 4, 4, s_wxluatagArray_wxLua_wxDocManager_ActivateView1 }, ! #endif // (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && ((!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) ! #if ((wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) { wxLua_wxDocManager_ActivateView, WXLUAMETHOD_METHOD, 3, 3, s_wxluatagArray_wxLua_wxDocManager_ActivateView }, ! #endif // ((wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) }; static int s_wxluafunc_wxLua_wxDocManager_ActivateView_overload_count = sizeof(s_wxluafunc_wxLua_wxDocManager_ActivateView_overload)/sizeof(wxLuaBindCFunc); *************** *** 1503,1507 **** return wxlState.CallOverloadedFunction(&overload_method); } ! #endif // ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && ((!wxCHECK_VERSION(2,5,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)))||(((wxCHECK_VERSION(2,5,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) #if ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxMenu && wxUSE_MENUS))||(wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) --- 1902,1906 ---- return wxlState.CallOverloadedFunction(&overload_method); } ! #endif // ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && ((!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)))||(((wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) #if ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && (wxLUA_USE_wxMenu && wxUSE_MENUS))||(wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) *************** *** 1530,1536 **** // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxDocManager_methods[] = { ! #if ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && ((!wxCHECK_VERSION(2,5,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)))||(((wxCHECK_VERSION(2,5,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) { "ActivateView", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocManager_ActivateView_overload, s_wxluafunc_wxLua_wxDocManager_ActivateView_overload_count, 0 }, ! #endif // ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && ((!wxCHECK_VERSION(2,5,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)))||(((wxCHECK_VERSION(2,5,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) { "AddDocument", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocManager_AddDocument, 1, NULL }, --- 1929,1935 ---- // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxDocManager_methods[] = { ! #if ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && ((!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)))||(((wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) { "ActivateView", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocManager_ActivateView_overload, s_wxluafunc_wxLua_wxDocManager_ActivateView_overload_count, 0 }, ! #endif // ((wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE) && ((!wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)))||(((wxCHECK_VERSION(2,6,0)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) && (wxLUA_USE_MDI && wxUSE_MDI && wxUSE_DOC_VIEW_ARCHITECTURE)) { "AddDocument", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxDocManager_AddDocument, 1, NULL }, Index: file.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/file.cpp,v retrieving revision 1.53 retrieving revision 1.54 diff -C2 -d -r1.53 -r1.54 *** file.cpp 17 Jun 2007 18:36:19 -0000 1.53 --- file.cpp 18 Jun 2007 02:56:29 -0000 1.54 *************** *** 3558,3561 **** --- 3558,4614 ---- #endif // wxLUA_USE_wxDir + // --------------------------------------------------------------------------- + // Bind class wxFileTypeInfo + // --------------------------------------------------------------------------- + + // Lua MetaTable Tag for Class 'wxFileTypeInfo' + int s_wxluatag_wxFileTypeInfo = -1; + [...1079 lines suppressed...] ! #endif // (wxCHECK_VERSION(2,6,0)) && (wxUSE_STREAMS) static wxLuaArgTag s_wxluatagArray_wxLua_wxStreamBase_GetSize[] = { &s_wxluatag_wxStreamBase, NULL }; *************** *** 3683,3689 **** { "GetLastError", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStreamBase_GetLastError, 1, NULL }, ! #if (wxCHECK_VERSION(2,5,0)) && (wxUSE_STREAMS) { "GetLength", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStreamBase_GetLength, 1, NULL }, ! #endif // (wxCHECK_VERSION(2,5,0)) && (wxUSE_STREAMS) { "GetSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStreamBase_GetSize, 1, NULL }, --- 4736,4742 ---- { "GetLastError", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStreamBase_GetLastError, 1, NULL }, ! #if (wxCHECK_VERSION(2,6,0)) && (wxUSE_STREAMS) { "GetLength", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStreamBase_GetLength, 1, NULL }, ! #endif // (wxCHECK_VERSION(2,6,0)) && (wxUSE_STREAMS) { "GetSize", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxStreamBase_GetSize, 1, NULL }, Index: data.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/data.cpp,v retrieving revision 1.53 retrieving revision 1.54 diff -C2 -d -r1.53 -r1.54 *** data.cpp 17 Jun 2007 18:36:15 -0000 1.53 --- data.cpp 18 Jun 2007 02:56:28 -0000 1.54 *************** *** 1017,1025 **** int s_wxluatag_wxTextValidator = -1; ! #if (wxLUA_USE_wxArrayString) && ((wxCHECK_VERSION(2,5,0)) && ((wxLUA_USE_wxTextValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))) static wxLuaArgTag s_wxluatagArray_wxLua_wxTextValidator_GetExcludes[] = { &s_wxluatag_wxTextValidator, NULL }; static int LUACALL wxLua_wxTextValidator_GetExcludes(lua_State *L); static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextValidator_GetExcludes[1] = {{ wxLua_wxTextValidator_GetExcludes, WXLUAMETHOD_METHOD, 1, 1, s_wxluatagArray_wxLua_wxTextValidator_GetExcludes }}; ! // %wxchkver_2_5 wxArrayString& GetExcludes() static int LUACALL wxLua_wxTextValidator_GetExcludes(lua_State *L) { --- 1017,1025 ---- int s_wxluatag_wxTextValidator = -1; ! #if (wxLUA_USE_wxArrayString) && ((wxCHECK_VERSION(2,6,0)) && ((wxLUA_USE_wxTextValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))) static wxLuaArgTag s_wxluatagArray_wxLua_wxTextValidator_GetExcludes[] = { &s_wxluatag_wxTextValidator, NULL }; static int LUACALL wxLua_wxTextValidator_GetExcludes(lua_State *L); static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextValidator_GetExcludes[1] = {{ wxLua_wxTextValidator_GetExcludes, WXLUAMETHOD_METHOD, 1, 1, s_wxluatagArray_wxLua_wxTextValidator_GetExcludes }}; ! // %wxchkver_2_6 wxArrayString& GetExcludes() static int LUACALL wxLua_wxTextValidator_GetExcludes(lua_State *L) { *************** *** 1039,1043 **** static int LUACALL wxLua_wxTextValidator_GetIncludes(lua_State *L); static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextValidator_GetIncludes[1] = {{ wxLua_wxTextValidator_GetIncludes, WXLUAMETHOD_METHOD, 1, 1, s_wxluatagArray_wxLua_wxTextValidator_GetIncludes }}; ! // %wxchkver_2_5 wxArrayString& GetIncludes() static int LUACALL wxLua_wxTextValidator_GetIncludes(lua_State *L) { --- 1039,1043 ---- static int LUACALL wxLua_wxTextValidator_GetIncludes(lua_State *L); static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextValidator_GetIncludes[1] = {{ wxLua_wxTextValidator_GetIncludes, WXLUAMETHOD_METHOD, 1, 1, s_wxluatagArray_wxLua_wxTextValidator_GetIncludes }}; ! // %wxchkver_2_6 wxArrayString& GetIncludes() static int LUACALL wxLua_wxTextValidator_GetIncludes(lua_State *L) { *************** *** 1054,1058 **** } ! #endif // (wxLUA_USE_wxArrayString) && ((wxCHECK_VERSION(2,5,0)) && ((wxLUA_USE_wxTextValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))) static wxLuaArgTag s_wxluatagArray_wxLua_wxTextValidator_GetStyle[] = { &s_wxluatag_wxTextValidator, NULL }; --- 1054,1058 ---- } ! #endif // (wxLUA_USE_wxArrayString) && ((wxCHECK_VERSION(2,6,0)) && ((wxLUA_USE_wxTextValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))) static wxLuaArgTag s_wxluatagArray_wxLua_wxTextValidator_GetStyle[] = { &s_wxluatag_wxTextValidator, NULL }; *************** *** 1075,1083 **** ! #if (wxLUA_USE_wxArrayString) && ((wxCHECK_VERSION(2,5,0)) && ((wxLUA_USE_wxTextValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))) static wxLuaArgTag s_wxluatagArray_wxLua_wxTextValidator_SetExcludes[] = { &s_wxluatag_wxTextValidator, &s_wxluatag_wxArrayString, NULL }; static int LUACALL wxLua_wxTextValidator_SetExcludes(lua_State *L); static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextValidator_SetExcludes[1] = {{ wxLua_wxTextValidator_SetExcludes, WXLUAMETHOD_METHOD, 2, 2, s_wxluatagArray_wxLua_wxTextValidator_SetExcludes }}; ! // %wxchkver_2_5 void SetExcludes(const wxArrayString& excludes) static int LUACALL wxLua_wxTextValidator_SetExcludes(lua_State *L) { --- 1075,1083 ---- ! #if (wxLUA_USE_wxArrayString) && ((wxCHECK_VERSION(2,6,0)) && ((wxLUA_USE_wxTextValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))) static wxLuaArgTag s_wxluatagArray_wxLua_wxTextValidator_SetExcludes[] = { &s_wxluatag_wxTextValidator, &s_wxluatag_wxArrayString, NULL }; static int LUACALL wxLua_wxTextValidator_SetExcludes(lua_State *L); static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextValidator_SetExcludes[1] = {{ wxLua_wxTextValidator_SetExcludes, WXLUAMETHOD_METHOD, 2, 2, s_wxluatagArray_wxLua_wxTextValidator_SetExcludes }}; ! // %wxchkver_2_6 void SetExcludes(const wxArrayString& excludes) static int LUACALL wxLua_wxTextValidator_SetExcludes(lua_State *L) { *************** *** 1096,1100 **** static int LUACALL wxLua_wxTextValidator_SetIncludes(lua_State *L); static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextValidator_SetIncludes[1] = {{ wxLua_wxTextValidator_SetIncludes, WXLUAMETHOD_METHOD, 2, 2, s_wxluatagArray_wxLua_wxTextValidator_SetIncludes }}; ! // %wxchkver_2_5 void SetIncludes(const wxArrayString& includes) static int LUACALL wxLua_wxTextValidator_SetIncludes(lua_State *L) { --- 1096,1100 ---- static int LUACALL wxLua_wxTextValidator_SetIncludes(lua_State *L); static wxLuaBindCFunc s_wxluafunc_wxLua_wxTextValidator_SetIncludes[1] = {{ wxLua_wxTextValidator_SetIncludes, WXLUAMETHOD_METHOD, 2, 2, s_wxluatagArray_wxLua_wxTextValidator_SetIncludes }}; ! // %wxchkver_2_6 void SetIncludes(const wxArrayString& includes) static int LUACALL wxLua_wxTextValidator_SetIncludes(lua_State *L) { *************** *** 1110,1114 **** } ! #endif // (wxLUA_USE_wxArrayString) && ((wxCHECK_VERSION(2,5,0)) && ((wxLUA_USE_wxTextValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))) static wxLuaArgTag s_wxluatagArray_wxLua_wxTextValidator_SetStyle[] = { &s_wxluatag_wxTextValidator, &s_wxluaarg_Number, NULL }; --- 1110,1114 ---- } ! #endif // (wxLUA_USE_wxArrayString) && ((wxCHECK_VERSION(2,6,0)) && ((wxLUA_USE_wxTextValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))) static wxLuaArgTag s_wxluatagArray_wxLua_wxTextValidator_SetStyle[] = { &s_wxluatag_wxTextValidator, &s_wxluaarg_Number, NULL }; *************** *** 1181,1195 **** // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxTextValidator_methods[] = { ! #if (wxLUA_USE_wxArrayString) && ((wxCHECK_VERSION(2,5,0)) && ((wxLUA_USE_wxTextValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))) { "GetExcludes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextValidator_GetExcludes, 1, NULL }, { "GetIncludes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextValidator_GetIncludes, 1, NULL }, ! #endif // (wxLUA_USE_wxArrayString) && ((wxCHECK_VERSION(2,5,0)) && ((wxLUA_USE_wxTextValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))) { "GetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextValidator_GetStyle, 1, NULL }, ! #if (wxLUA_USE_wxArrayString) && ((wxCHECK_VERSION(2,5,0)) && ((wxLUA_USE_wxTextValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))) { "SetExcludes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextValidator_SetExcludes, 1, NULL }, { "SetIncludes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextValidator_SetIncludes, 1, NULL }, ! #endif // (wxLUA_USE_wxArrayString) && ((wxCHECK_VERSION(2,5,0)) && ((wxLUA_USE_wxTextValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))) { "SetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextValidator_SetStyle, 1, NULL }, --- 1181,1195 ---- // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxTextValidator_methods[] = { ! #if (wxLUA_USE_wxArrayString) && ((wxCHECK_VERSION(2,6,0)) && ((wxLUA_USE_wxTextValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))) { "GetExcludes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextValidator_GetExcludes, 1, NULL }, { "GetIncludes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextValidator_GetIncludes, 1, NULL }, ! #endif // (wxLUA_USE_wxArrayString) && ((wxCHECK_VERSION(2,6,0)) && ((wxLUA_USE_wxTextValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))) { "GetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextValidator_GetStyle, 1, NULL }, ! #if (wxLUA_USE_wxArrayString) && ((wxCHECK_VERSION(2,6,0)) && ((wxLUA_USE_wxTextValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))) { "SetExcludes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextValidator_SetExcludes, 1, NULL }, { "SetIncludes", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextValidator_SetIncludes, 1, NULL }, ! #endif // (wxLUA_USE_wxArrayString) && ((wxCHECK_VERSION(2,6,0)) && ((wxLUA_USE_wxTextValidator) && (wxLUA_USE_wxValidator && wxUSE_VALIDATORS))) { "SetStyle", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxTextValidator_SetStyle, 1, NULL }, Index: controls.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/controls.cpp,v retrieving revision 1.67 retrieving revision 1.68 diff -C2 -d -r1.67 -r1.68 *** controls.cpp 17 Jun 2007 18:36:15 -0000 1.67 --- controls.cpp 18 Jun 2007 02:56:27 -0000 1.68 *************** *** 2331,2334 **** --- 2331,2784 ---- + #if wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX + // --------------------------------------------------------------------------- + // Bind class wxBitmapComboBox + // --------------------------------------------------------------------------- + + // Lua MetaTable Tag for Class 'wxBitmapComboBox' + int s_wxluatag_wxBitmapComboBox = -1; + + #if (wxLUA_USE_wxBitmapComboBox && wxUSE_BITMAPCOMBOBOX) && (wxLUA_USE_wxBitm... [truncated message content] |