Update of /cvsroot/wxlua/wxLua/modules/wxbind/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6440/wxLua/modules/wxbind/src Added Files: appframe.cpp clipdrag.cpp config.cpp controls.cpp data.cpp defsutil.cpp dialogs.cpp event.cpp file.cpp fl.cpp gdi.cpp geometry.cpp grid.cpp help.cpp html.cpp image.cpp mdi.cpp menutool.cpp plot.cpp print.cpp regex.cpp sizer.cpp socket.cpp thread.cpp wave.cpp windows.cpp wx_builtin.cpp wx_class.cpp wx_define.cpp wx_event.cpp wx_object.cpp wxlua.cpp xml.cpp Log Message: added wxWidgets bindings and finishing separating wxSTC module --- NEW FILE: xml.cpp --- // --------------------------------------------------------- // This file was generated by genwxbind.lua // // Any changes made to this file may be lost when file // is regenerated // --------------------------------------------------------- #include "wx/wxprec.h" #ifdef __BORLANDC__ #pragma hdrstop #endif #ifndef WX_PRECOMP #include "wx/wx.h" #endif [...1577 lines suppressed...] { LuaMethod, "LoadPanelCreate", wxXmlResource_LoadPanelCreate, 3, 3 }, { LuaMethod, "Set", wxXmlResource_Set, 1, 1 }, { LuaMethod, "GetFlags", wxXmlResource_GetFlags, 0, 0 }, { LuaMethod, "SetFlags", wxXmlResource_SetFlags, 1, 1 }, { LuaGetProp, "Flags", wxXmlResource_GetFlags, 0, 0 }, { LuaDelete, "wxXmlResource", wxXmlResource_destructor, 0, 0 }, { LuaMethod, "Delete", wxXmlResource_Delete, 0, 0 }, #if (wxLUA_USE_wxFrame) && (wxLUA_USE_wxXMLResource) { LuaMethod, "LoadFrame", wxXmlResource_LoadFrame, 3, 3 }, { LuaMethod, "CreateFrame", wxXmlResource_CreateFrame, 2, 2 }, #endif }; // Extern accessor to class method map WXLUAMETHOD* wxXmlResource_methods = s_wxXmlResource_methods; int wxXmlResource_methodCount = sizeof(s_wxXmlResource_methods)/sizeof(s_wxXmlResource_methods[0]); #endif --- NEW FILE: dialogs.cpp --- // --------------------------------------------------------- // This file was generated by genwxbind.lua // // Any changes made to this file may be lost when file // is regenerated // --------------------------------------------------------- #include "wx/wxprec.h" #ifdef __BORLANDC__ #pragma hdrstop #endif #ifndef WX_PRECOMP #include "wx/wx.h" #endif [...2379 lines suppressed...] static int LUACALL wxProgressDialog_destructor(lua_State *) { return 0; } // Map Lua Class Methods to C Binding Functions static WXLUAMETHOD s_wxProgressDialog_methods[] = { { LuaConstructor, "wxProgressDialog", wxProgressDialog_constructor, 5, 2 }, { LuaMethod, "Update", wxProgressDialog_Update, 2, 0 }, { LuaMethod, "Resume", wxProgressDialog_Resume, 0, 0 }, { LuaDelete, "wxProgressDialog", wxProgressDialog_destructor, 0, 0 }, }; // Extern accessor to class method map WXLUAMETHOD* wxProgressDialog_methods = s_wxProgressDialog_methods; int wxProgressDialog_methodCount = sizeof(s_wxProgressDialog_methods)/sizeof(s_wxProgressDialog_methods[0]); #endif --- NEW FILE: wxlua.cpp --- // --------------------------------------------------------- // This file was generated by genwxbind.lua // // Any changes made to this file may be lost when file // is regenerated // --------------------------------------------------------- #include "wx/wxprec.h" #ifdef __BORLANDC__ #pragma hdrstop #endif #ifndef WX_PRECOMP #include "wx/wx.h" #endif [...961 lines suppressed...] return 0; } // Map Lua Class Methods to C Binding Functions static WXLUAMETHOD s_wxLuaTreeItemData_methods[] = { { LuaConstructor, "wxLuaTreeItemData", wxLuaTreeItemData_constructor, 1, 0 }, { LuaMethod, "GetValue", wxLuaTreeItemData_GetValue, 0, 0 }, { LuaMethod, "SetValue", wxLuaTreeItemData_SetValue, 1, 1 }, { LuaGetProp, "Value", wxLuaTreeItemData_GetValue, 0, 0 }, { LuaSetProp, "Value", wxLuaTreeItemData_SetValue, 1, 1 }, { LuaDelete, "wxLuaTreeItemData", wxLuaTreeItemData_destructor, 0, 0 }, }; // Extern accessor to class method map WXLUAMETHOD* wxLuaTreeItemData_methods = s_wxLuaTreeItemData_methods; int wxLuaTreeItemData_methodCount = sizeof(s_wxLuaTreeItemData_methods)/sizeof(s_wxLuaTreeItemData_methods[0]); #endif --- NEW FILE: image.cpp --- // --------------------------------------------------------- // This file was generated by genwxbind.lua // // Any changes made to this file may be lost when file // is regenerated // --------------------------------------------------------- #include "wx/wxprec.h" #ifdef __BORLANDC__ #pragma hdrstop #endif #ifndef WX_PRECOMP #include "wx/wx.h" #endif [...1418 lines suppressed...] } static int LUACALL wxICOHandler_destructor(lua_State *) { return 0; } // Map Lua Class Methods to C Binding Functions static WXLUAMETHOD s_wxICOHandler_methods[] = { { LuaConstructor, "wxICOHandler", wxICOHandler_constructor, 0, 0 }, { LuaDelete, "wxICOHandler", wxICOHandler_destructor, 0, 0 }, }; // Extern accessor to class method map WXLUAMETHOD* wxICOHandler_methods = s_wxICOHandler_methods; int wxICOHandler_methodCount = sizeof(s_wxICOHandler_methods)/sizeof(s_wxICOHandler_methods[0]); #endif --- NEW FILE: mdi.cpp --- // --------------------------------------------------------- // This file was generated by genwxbind.lua // // Any changes made to this file may be lost when file // is regenerated // --------------------------------------------------------- #include "wx/wxprec.h" #ifdef __BORLANDC__ #pragma hdrstop #endif #ifndef WX_PRECOMP #include "wx/wx.h" #endif [...3223 lines suppressed...] #if (wxLUA_USE_wxFileHistory) && (wxLUA_USE_wxConfig) { LuaMethod, "Load", wxFileHistory_Load, 1, 1 }, { LuaMethod, "Save", wxFileHistory_Save, 1, 1 }, #endif #if (wxLUA_USE_wxFileHistory) && (wxLUA_USE_wxMenu) { LuaMethod, "AddFilesToGivenMenu", wxFileHistory_AddFilesToGivenMenu, 1, 1 }, { LuaMethod, "RemoveMenu", wxFileHistory_RemoveMenu, 1, 1 }, { LuaMethod, "UseMenu", wxFileHistory_UseMenu, 1, 1 }, #endif }; // Extern accessor to class method map WXLUAMETHOD* wxFileHistory_methods = s_wxFileHistory_methods; int wxFileHistory_methodCount = sizeof(s_wxFileHistory_methods)/sizeof(s_wxFileHistory_methods[0]); #endif --- NEW FILE: config.cpp --- // --------------------------------------------------------- // This file was generated by genwxbind.lua // // Any changes made to this file may be lost when file // is regenerated // --------------------------------------------------------- #include "wx/wxprec.h" #ifdef __BORLANDC__ #pragma hdrstop #endif #ifndef WX_PRECOMP #include "wx/wx.h" #endif #include "wxluasetup.h" #include "wxlua/include/internal.h" #include "wxbind/include/wxbind.h" #if wxLUA_USE_wxConfig // ------------------------------------------------------------------------------------------------- // Bind class wxConfigBase // ------------------------------------------------------------------------------------------------- // Lua MetaTable Tag for Class int s_wxluatag_wxConfigBase = -1; // %override wxConfigGet_constructor // %constructor wxConfigGet(bool CreateOnDemand = TRUE) static int LUACALL wxConfigGet_constructor(lua_State *L) { wxLuaState wxlState(L); wxConfigBase *returns; // get number of arguments int argCount = lua_gettop(L); // bool CreateOnDemand = TRUE bool CreateOnDemand = (argCount >= 1 ? wxlState.getbooleantype(1) : TRUE); // call constructor returns = wxConfigBase::Get(CreateOnDemand); // push the constructed class pointer wxlState.pushuserdatatype(s_wxluatag_wxConfig, returns); // return the number of parameters return 1; } // %override wxConfigCreate_constructor // %constructor wxConfigCreate() static int LUACALL wxConfigCreate_constructor(lua_State *L) { wxLuaState wxlState(L); wxConfigBase *returns; // call constructor returns = wxConfigBase::Create(); // push the constructed class pointer wxlState.pushuserdatatype(s_wxluatag_wxConfig, returns); // return the number of parameters return 1; } // static wxConfigBase * Set(wxConfigBase *pConfig = NULL) static int LUACALL wxConfigBase_Set(lua_State *L) { wxLuaState wxlState(L); wxConfigBase *returns; // get number of arguments int argCount = lua_gettop(L); // wxConfigBase pConfig = NULL wxConfigBase * pConfig = (argCount >= 2 ? (wxConfigBase *)wxlState.getuserdatatype(2, s_wxluatag_wxConfigBase) : NULL); // call Set returns = wxConfigBase::Set(pConfig); // push the result datatype wxlState.pushuserdatatype(s_wxluatag_wxConfigBase, returns); return 1; } // static void DontCreateOnDemand() static int LUACALL wxConfigBase_DontCreateOnDemand(lua_State *L) { wxLuaState wxlState(L); // call DontCreateOnDemand wxConfigBase::DontCreateOnDemand(); return 0; } // %override wxConfigBase_Destroy // void Destroy() static int LUACALL wxConfigBase_Destroy(lua_State *L) { wxLuaState wxlState(L); // get this wxConfigBase *self = (wxConfigBase *)wxlState.getuserdatatype(1, s_wxluatag_wxConfigBase); // call Destroy delete self; // return the number of parameters return 0; } // bool DeleteAll() static int LUACALL wxConfigBase_DeleteAll(lua_State *L) { wxLuaState wxlState(L); bool returns; // get this wxConfigBase * self = (wxConfigBase *)wxlState.getuserdatatype(1, s_wxluatag_wxConfigBase); // call DeleteAll returns = self->DeleteAll(); // push the result flag lua_pushboolean(L, returns); return 1; } // bool DeleteEntry(const wxString& key, bool bDeleteGroupIfEmpty = TRUE) static int LUACALL wxConfigBase_DeleteEntry(lua_State *L) { wxLuaState wxlState(L); bool returns; // get number of arguments int argCount = lua_gettop(L); // bool bDeleteGroupIfEmpty = TRUE bool bDeleteGroupIfEmpty = (argCount >= 3 ? wxlState.getbooleantype(3) : TRUE); // const wxString key const wxString key = lua2wx(wxlState.getstringtype(2)); // get this wxConfigBase * self = (wxConfigBase *)wxlState.getuserdatatype(1, s_wxluatag_wxConfigBase); // call DeleteEntry returns = self->DeleteEntry(key, bDeleteGroupIfEmpty); // push the result flag lua_pushboolean(L, returns); return 1; } // bool DeleteGroup(const wxString& key) static int LUACALL wxConfigBase_DeleteGroup(lua_State *L) { wxLuaState wxlState(L); bool returns; // const wxString key const wxString key = lua2wx(wxlState.getstringtype(2)); // get this wxConfigBase * self = (wxConfigBase *)wxlState.getuserdatatype(1, s_wxluatag_wxConfigBase); // call DeleteGroup returns = self->DeleteGroup(key); // push the result flag lua_pushboolean(L, returns); return 1; } // bool Exists(wxString& strName) const static int LUACALL wxConfigBase_Exists(lua_State *L) { wxLuaState wxlState(L); bool returns; // wxString strName wxString strName = lua2wx(wxlState.getstringtype(2)); // get this wxConfigBase * self = (wxConfigBase *)wxlState.getuserdatatype(1, s_wxluatag_wxConfigBase); // call Exists returns = self->Exists(strName); // push the result flag lua_pushboolean(L, returns); return 1; } // bool Flush(bool bCurrentOnly = FALSE) static int LUACALL wxConfigBase_Flush(lua_State *L) { wxLuaState wxlState(L); bool returns; // get number of arguments int argCount = lua_gettop(L); // bool bCurrentOnly = FALSE bool bCurrentOnly = (argCount >= 2 ? wxlState.getbooleantype(2) : FALSE); // get this wxConfigBase * self = (wxConfigBase *)wxlState.getuserdatatype(1, s_wxluatag_wxConfigBase); // call Flush returns = self->Flush(bCurrentOnly); // push the result flag lua_pushboolean(L, returns); return 1; } // wxString GetAppName() const static int LUACALL wxConfigBase_GetAppName(lua_State *L) { wxLuaState wxlState(L); wxString returns; // get this wxConfigBase * self = (wxConfigBase *)wxlState.getuserdatatype(1, s_wxluatag_wxConfigBase); // call GetAppName returns = self->GetAppName(); // push the result string lua_pushstring(L, wx2lua(returns) ); return 1; } // wxConfigBase::EntryType GetEntryType(const wxString& name) const static int LUACALL wxConfigBase_GetEntryType(lua_State *L) { wxLuaState wxlState(L); wxConfigBase::EntryType returns; // const wxString name const wxString name = lua2wx(wxlState.getstringtype(2)); // get this wxConfigBase * self = (wxConfigBase *)wxlState.getuserdatatype(1, s_wxluatag_wxConfigBase); // call GetEntryType returns = self->GetEntryType(name); // push the result number lua_pushnumber(L, returns); return 1; } // %override wxConfigBase_GetFirstGroup // bool GetFirstGroup(wxString& str, long& index) const static int LUACALL wxConfigBase_GetFirstGroup(lua_State *L) { wxLuaState wxlState(L); bool returns; // long& index long index = (long)wxlState.getnumbertype(3); // wxString& str wxString str = lua2wx(wxlState.getstringtype(2)); // get this wxConfigBase *self = (wxConfigBase *)wxlState.getuserdatatype(1, s_wxluatag_wxConfigBase); // call GetFirstGroup returns = self->GetFirstGroup(str, index); // push the result flag lua_pushnumber(L, index); lua_pushboolean(L, returns); // return the number of parameters return 2; } // %override wxConfigBase_GetFirstEntry // bool GetFirstEntry(wxString& str, long& index) const static int LUACALL wxConfigBase_GetFirstEntry(lua_State *L) { wxLuaState wxlState(L); bool returns; // long& index long index = (long)wxlState.getnumbertype(3); // wxString& str wxString str = lua2wx(wxlState.getstringtype(2)); // get this wxConfigBase *self = (wxConfigBase *)wxlState.getuserdatatype(1, s_wxluatag_wxConfigBase); // call GetFirstEntry returns = self->GetFirstEntry(str, index); // push the result flag lua_pushnumber(L, index); lua_pushboolean(L, returns); // return the number of parameters return 2; } // %override wxConfigBase_GetNextGroup // bool GetNextGroup(wxString& str, long& index) const static int LUACALL wxConfigBase_GetNextGroup(lua_State *L) { wxLuaState wxlState(L); bool returns; // long& index long index = (long)wxlState.getnumbertype(3); // wxString& str wxString str = lua2wx(wxlState.getstringtype(2)); // get this wxConfigBase *self = (wxConfigBase *)wxlState.getuserdatatype(1, s_wxluatag_wxConfigBase); // call GetNextGroup returns = self->GetNextGroup(str, index); // push the result flag lua_pushnumber(L, index); lua_pushboolean(L, returns); // return the number of parameters return 2; } // %override wxConfigBase_GetNextEntry // bool GetNextEntry(wxString& str, long& index) const static int LUACALL wxConfigBase_GetNextEntry(lua_State *L) { wxLuaState wxlState(L); bool returns; // long& index long index = (long)wxlState.getnumbertype(3); // wxString& str wxString str = lua2wx(wxlState.getstringtype(2)); // get this wxConfigBase *self = (wxConfigBase *)wxlState.getuserdatatype(1, s_wxluatag_wxConfigBase); // call GetNextEntry returns = self->GetNextEntry(str, index); // push the result flag lua_pushnumber(L, index); lua_pushboolean(L, returns); // return the number of parameters return 2; } // unsigned int GetNumberOfEntries(bool bRecursive = FALSE) const static int LUACALL wxConfigBase_GetNumberOfEntries(lua_State *L) { wxLuaState wxlState(L); unsigned int returns; // get number of arguments int argCount = lua_gettop(L); // bool bRecursive = FALSE bool bRecursive = (argCount >= 2 ? wxlState.getbooleantype(2) : FALSE); // get this wxConfigBase * self = (wxConfigBase *)wxlState.getuserdatatype(1, s_wxluatag_wxConfigBase); // call GetNumberOfEntries returns = self->GetNumberOfEntries(bRecursive); // push the result number lua_pushnumber(L, returns); return 1; } // unsigned int GetNumberOfGroups(bool bRecursive = FALSE) const static int LUACALL wxConfigBase_GetNumberOfGroups(lua_State *L) { wxLuaState wxlState(L); unsigned int returns; // get number of arguments int argCount = lua_gettop(L); // bool bRecursive = FALSE bool bRecursive = (argCount >= 2 ? wxlState.getbooleantype(2) : FALSE); // get this wxConfigBase * self = (wxConfigBase *)wxlState.getuserdatatype(1, s_wxluatag_wxConfigBase); // call GetNumberOfGroups returns = self->GetNumberOfGroups(bRecursive); // push the result number lua_pushnumber(L, returns); return 1; } // const wxString& GetPath() const static int LUACALL wxConfigBase_GetPath(lua_State *L) { wxLuaState wxlState(L); wxString returns; // get this wxConfigBase * self = (wxConfigBase *)wxlState.getuserdatatype(1, s_wxluatag_wxConfigBase); // call GetPath returns = self->GetPath(); // push the result string lua_pushstring(L, wx2lua(returns) ); return 1; } // wxString GetVendorName() const static int LUACALL wxConfigBase_GetVendorName(lua_State *L) { wxLuaState wxlState(L); wxString returns; // get this wxConfigBase * self = (wxConfigBase *)wxlState.getuserdatatype(1, s_wxluatag_wxConfigBase); // call GetVendorName returns = self->GetVendorName(); // push the result string lua_pushstring(L, wx2lua(returns) ); return 1; } // bool HasEntry(wxString& strName) const static int LUACALL wxConfigBase_HasEntry(lua_State *L) { wxLuaState wxlState(L); bool returns; // wxString strName wxString strName = lua2wx(wxlState.getstringtype(2)); // get this wxConfigBase * self = (wxConfigBase *)wxlState.getuserdatatype(1, s_wxluatag_wxConfigBase); // call HasEntry returns = self->HasEntry(strName); // push the result flag lua_pushboolean(L, returns); return 1; } // bool HasGroup(const wxString& strName) const static int LUACALL wxConfigBase_HasGroup(lua_State *L) { wxLuaState wxlState(L); bool returns; // const wxString strName const wxString strName = lua2wx(wxlState.getstringtype(2)); // get this wxConfigBase * self = (wxConfigBase *)wxlState.getuserdatatype(1, s_wxluatag_wxConfigBase); // call HasGroup returns = self->HasGroup(strName); // push the result flag lua_pushboolean(L, returns); return 1; } // bool IsExpandingEnvVars() const static int LUACALL wxConfigBase_IsExpandingEnvVars(lua_State *L) { wxLuaState wxlState(L); bool returns; // get this wxConfigBase * self = (wxConfigBase *)wxlState.getuserdatatype(1, s_wxluatag_wxConfigBase); // call IsExpandingEnvVars returns = self->IsExpandingEnvVars(); // push the result flag lua_pushboolean(L, returns); return 1; } // bool IsRecordingDefaults() const static int LUACALL wxConfigBase_IsRecordingDefaults(lua_State *L) { wxLuaState wxlState(L); bool returns; // get this wxConfigBase * self = (wxConfigBase *)wxlState.getuserdatatype(1, s_wxluatag_wxConfigBase); // call IsRecordingDefaults returns = self->IsRecordingDefaults(); // push the result flag lua_pushboolean(L, returns); return 1; } // wxString Read(const wxString& key, const wxString& defaultVal = "") const static int LUACALL wxConfigBase_Read(lua_State *L) { wxLuaState wxlState(L); wxString returns; // get number of arguments int argCount = lua_gettop(L); // const wxString defaultVal = "" const wxString defaultVal = (argCount >= 3 ? lua2wx(wxlState.getstringtype(3)) : wxString(wxEmptyString)); // const wxString key const wxString key = lua2wx(wxlState.getstringtype(2)); // get this wxConfigBase * self = (wxConfigBase *)wxlState.getuserdatatype(1, s_wxluatag_wxConfigBase); // call Read returns = self->Read(key, defaultVal); // push the result string lua_pushstring(L, wx2lua(returns) ); return 1; } // %rename ReadInt long Read(const wxString& key, long defaultVal = 0) const static int LUACALL wxConfigBase_ReadInt(lua_State *L) { wxLuaState wxlState(L); long returns; // get number of arguments int argCount = lua_gettop(L); // long defaultVal = 0 long defaultVal = (argCount >= 3 ? (long)wxlState.getnumbertype(3) : 0); // const wxString key const wxString key = lua2wx(wxlState.getstringtype(2)); // get this wxConfigBase * self = (wxConfigBase *)wxlState.getuserdatatype(1, s_wxluatag_wxConfigBase); // call Read returns = self->Read(key, defaultVal); // push the result number lua_pushnumber(L, returns); return 1; } // %override wxConfigBase_ReadFloat // %rename ReadFloat double Read(const wxString& key, double defaultVal = 0) const static int LUACALL wxConfigBase_ReadFloat(lua_State *L) { wxLuaState wxlState(L); double returns; // get number of arguments int argCount = lua_gettop(L); // double defaultVal = 0 long defaultVal = (argCount >= 3 ? (long)wxlState.getnumbertype(3) : 0); // const wxString& key wxString key = lua2wx(wxlState.getstringtype(2)); // get this wxConfigBase *self = (wxConfigBase *)wxlState.getuserdatatype(1, s_wxluatag_wxConfigBase); // call Read returns = self->Read(key, defaultVal); // push the result number lua_pushnumber(L, returns); // return the number of parameters return 1; } // bool RenameEntry(const wxString& oldName, const wxString& newName) static int LUACALL wxConfigBase_RenameEntry(lua_State *L) { wxLuaState wxlState(L); bool returns; // const wxString newName const wxString newName = lua2wx(wxlState.getstringtype(3)); // const wxString oldName const wxString oldName = lua2wx(wxlState.getstringtype(2)); // get this wxConfigBase * self = (wxConfigBase *)wxlState.getuserdatatype(1, s_wxluatag_wxConfigBase); // call RenameEntry returns = self->RenameEntry(oldName, newName); // push the result flag lua_pushboolean(L, returns); return 1; } // bool RenameGroup(const wxString& oldName, const wxString& newName) static int LUACALL wxConfigBase_RenameGroup(lua_State *L) { wxLuaState wxlState(L); bool returns; // const wxString newName const wxString newName = lua2wx(wxlState.getstringtype(3)); // const wxString oldName const wxString oldName = lua2wx(wxlState.getstringtype(2)); // get this wxConfigBase * self = (wxConfigBase *)wxlState.getuserdatatype(1, s_wxluatag_wxConfigBase); // call RenameGroup returns = self->RenameGroup(oldName, newName); // push the result flag lua_pushboolean(L, returns); return 1; } // void SetExpandEnvVars (bool bDoIt = TRUE) static int LUACALL wxConfigBase_SetExpandEnvVars(lua_State *L) { wxLuaState wxlState(L); // get number of arguments int argCount = lua_gettop(L); // bool bDoIt = TRUE bool bDoIt = (argCount >= 2 ? wxlState.getbooleantype(2) : TRUE); // get this wxConfigBase * self = (wxConfigBase *)wxlState.getuserdatatype(1, s_wxluatag_wxConfigBase); // call SetExpandEnvVars self->SetExpandEnvVars(bDoIt); return 0; } // void SetPath(const wxString& strPath) static int LUACALL wxConfigBase_SetPath(lua_State *L) { wxLuaState wxlState(L); // const wxString strPath const wxString strPath = lua2wx(wxlState.getstringtype(2)); // get this wxConfigBase * self = (wxConfigBase *)wxlState.getuserdatatype(1, s_wxluatag_wxConfigBase); // call SetPath self->SetPath(strPath); return 0; } // void SetRecordDefaults(bool bDoIt = TRUE) static int LUACALL wxConfigBase_SetRecordDefaults(lua_State *L) { wxLuaState wxlState(L); // get number of arguments int argCount = lua_gettop(L); // bool bDoIt = TRUE bool bDoIt = (argCount >= 2 ? wxlState.getbooleantype(2) : TRUE); // get this wxConfigBase * self = (wxConfigBase *)wxlState.getuserdatatype(1, s_wxluatag_wxConfigBase); // call SetRecordDefaults self->SetRecordDefaults(bDoIt); return 0; } // bool Write(const wxString& key, wxString &value) static int LUACALL wxConfigBase_Write(lua_State *L) { wxLuaState wxlState(L); bool returns; // wxString value wxString value = lua2wx(wxlState.getstringtype(3)); // const wxString key const wxString key = lua2wx(wxlState.getstringtype(2)); // get this wxConfigBase * self = (wxConfigBase *)wxlState.getuserdatatype(1, s_wxluatag_wxConfigBase); // call Write returns = self->Write(key, value); // push the result flag lua_pushboolean(L, returns); return 1; } // %rename WriteInt bool Write(const wxString &key, long value) static int LUACALL wxConfigBase_WriteInt(lua_State *L) { wxLuaState wxlState(L); bool returns; // long value long value = (long)wxlState.getnumbertype(3); // const wxString key const wxString key = lua2wx(wxlState.getstringtype(2)); // get this wxConfigBase * self = (wxConfigBase *)wxlState.getuserdatatype(1, s_wxluatag_wxConfigBase); // call Write returns = self->Write(key, value); // push the result flag lua_pushboolean(L, returns); return 1; } // %rename WriteFloat bool Write(const wxString &key, double value) static int LUACALL wxConfigBase_WriteFloat(lua_State *L) { wxLuaState wxlState(L); bool returns; // double value double value = (double)wxlState.getnumbertype(3); // const wxString key const wxString key = lua2wx(wxlState.getstringtype(2)); // get this wxConfigBase * self = (wxConfigBase *)wxlState.getuserdatatype(1, s_wxluatag_wxConfigBase); // call Write returns = self->Write(key, value); // push the result flag lua_pushboolean(L, returns); return 1; } static int LUACALL wxConfigBase_destructor(lua_State *L) { wxLuaState wxlState(L); wxConfigBase * self = (wxConfigBase *)wxlState.getuserdatatype(1, s_wxluatag_wxConfigBase); // remove from tracked memory list if (self != 0) wxlState.removeTrackedMemory(self); return 0; } static int LUACALL wxConfigBase_Delete(lua_State *L) { wxLuaState wxlState(L); wxConfigBase * self = (wxConfigBase *)wxlState.getuserdatatype(1, s_wxluatag_wxConfigBase); // remove from tracked memory list if (self != 0) if (wxlState.removeTrackedMemory(self)) { // if removed, reset the tag so that gc() is not called on this object. lua_pushnil(L); lua_setmetatable(L, -2); } return 0; } #if (defined(__WXMSW__)) && (wxLUA_USE_wxConfig) #endif // Map Lua Class Methods to C Binding Functions static WXLUAMETHOD s_wxConfigBase_methods[] = { { LuaConstructor, "wxConfigGet", wxConfigGet_constructor, 1, 0 }, { LuaConstructor, "wxConfigCreate", wxConfigCreate_constructor, 0, 0 }, { LuaMethod, "Set", wxConfigBase_Set, 1, 0 }, { LuaMethod, "DontCreateOnDemand", wxConfigBase_DontCreateOnDemand, 0, 0 }, { LuaMethod, "Destroy", wxConfigBase_Destroy, 0, 0 }, { LuaMethod, "DeleteAll", wxConfigBase_DeleteAll, 0, 0 }, { LuaMethod, "DeleteEntry", wxConfigBase_DeleteEntry, 2, 1 }, { LuaMethod, "DeleteGroup", wxConfigBase_DeleteGroup, 1, 1 }, { LuaMethod, "Exists", wxConfigBase_Exists, 1, 1 }, { LuaMethod, "Flush", wxConfigBase_Flush, 1, 0 }, { LuaMethod, "GetAppName", wxConfigBase_GetAppName, 0, 0 }, { LuaMethod, "GetEntryType", wxConfigBase_GetEntryType, 1, 1 }, { LuaMethod, "GetFirstGroup", wxConfigBase_GetFirstGroup, 2, 2 }, { LuaMethod, "GetFirstEntry", wxConfigBase_GetFirstEntry, 2, 2 }, { LuaMethod, "GetNextGroup", wxConfigBase_GetNextGroup, 2, 2 }, { LuaMethod, "GetNextEntry", wxConfigBase_GetNextEntry, 2, 2 }, { LuaMethod, "GetNumberOfEntries", wxConfigBase_GetNumberOfEntries, 1, 0 }, { LuaMethod, "GetNumberOfGroups", wxConfigBase_GetNumberOfGroups, 1, 0 }, { LuaMethod, "GetPath", wxConfigBase_GetPath, 0, 0 }, { LuaMethod, "GetVendorName", wxConfigBase_GetVendorName, 0, 0 }, { LuaMethod, "HasEntry", wxConfigBase_HasEntry, 1, 1 }, { LuaMethod, "HasGroup", wxConfigBase_HasGroup, 1, 1 }, { LuaMethod, "IsExpandingEnvVars", wxConfigBase_IsExpandingEnvVars, 0, 0 }, { LuaMethod, "IsRecordingDefaults", wxConfigBase_IsRecordingDefaults, 0, 0 }, { LuaMethod, "Read", wxConfigBase_Read, 2, 1 }, { LuaMethod, "ReadInt", wxConfigBase_ReadInt, 2, 1 }, { LuaMethod, "ReadFloat", wxConfigBase_ReadFloat, 2, 1 }, { LuaMethod, "RenameEntry", wxConfigBase_RenameEntry, 2, 2 }, { LuaMethod, "RenameGroup", wxConfigBase_RenameGroup, 2, 2 }, { LuaMethod, "SetExpandEnvVars", wxConfigBase_SetExpandEnvVars, 1, 0 }, { LuaMethod, "SetPath", wxConfigBase_SetPath, 1, 1 }, { LuaGetProp, "Path", wxConfigBase_GetPath, 0, 0 }, { LuaSetProp, "Path", wxConfigBase_SetPath, 1, 1 }, { LuaMethod, "SetRecordDefaults", wxConfigBase_SetRecordDefaults, 1, 0 }, { LuaMethod, "Write", wxConfigBase_Write, 2, 2 }, { LuaMethod, "WriteInt", wxConfigBase_WriteInt, 2, 2 }, { LuaMethod, "WriteFloat", wxConfigBase_WriteFloat, 2, 2 }, { LuaDelete, "wxConfigBase", wxConfigBase_destructor, 0, 0 }, { LuaMethod, "Delete", wxConfigBase_Delete, 0, 0 }, #if (defined(__WXMSW__)) && (wxLUA_USE_wxConfig) { LuaGetProp, "AppName", wxConfigBase_GetAppName, 0, 0 }, { LuaGetProp, "VendorName", wxConfigBase_GetVendorName, 0, 0 }, #endif }; // Extern accessor to class method map WXLUAMETHOD* wxConfigBase_methods = s_wxConfigBase_methods; int wxConfigBase_methodCount = sizeof(s_wxConfigBase_methods)/sizeof(s_wxConfigBase_methods[0]); #endif #if wxLUA_USE_wxConfig // ------------------------------------------------------------------------------------------------- // Bind class wxConfig // ------------------------------------------------------------------------------------------------- // Lua MetaTable Tag for Class int s_wxluatag_wxConfig = -1; // wxConfig(const wxString& appName = wxEmptyString, const wxString& vendorName = wxEmptyString, const wxString& localFilename = wxEmptyString, const wxString& globalFilename = wxEmptyString, long style = 0) static int LUACALL wxConfig_constructor(lua_State *L) { wxLuaState wxlState(L); wxConfig *returns; // get number of arguments int argCount = lua_gettop(L); // long style = 0 long style = (argCount >= 5 ? (long)wxlState.getnumbertype(5) : 0); // const wxString globalFilename = wxEmptyString const wxString globalFilename = (argCount >= 4 ? lua2wx(wxlState.getstringtype(4)) : wxString(wxEmptyString)); // const wxString localFilename = wxEmptyString const wxString localFilename = (argCount >= 3 ? lua2wx(wxlState.getstringtype(3)) : wxString(wxEmptyString)); // const wxString vendorName = wxEmptyString const wxString vendorName = (argCount >= 2 ? lua2wx(wxlState.getstringtype(2)) : wxString(wxEmptyString)); // const wxString appName = wxEmptyString const wxString appName = (argCount >= 1 ? lua2wx(wxlState.getstringtype(1)) : wxString(wxEmptyString)); // call constructor returns = new wxConfig(appName, vendorName, localFilename, globalFilename, style); // push the constructed class pointer wxlState.pushuserdatatype(s_wxluatag_wxConfig, returns); return 1; } static int LUACALL wxConfig_destructor(lua_State *) { return 0; } #if (defined(__WXGTK__) || defined(__WXMAC__)) && (wxLUA_USE_wxConfig) // %gtk|%mac void SetUmask(int mode) static int LUACALL wxConfig_SetUmask(lua_State *L) { wxLuaState wxlState(L); // int mode int mode = (int)wxlState.getnumbertype(2); // get this wxConfig * self = (wxConfig *)wxlState.getuserdatatype(1, s_wxluatag_wxConfig); // call SetUmask self->SetUmask(mode); return 0; } #endif // Map Lua Class Methods to C Binding Functions static WXLUAMETHOD s_wxConfig_methods[] = { { LuaConstructor, "wxConfig", wxConfig_constructor, 5, 0 }, { LuaDelete, "wxConfig", wxConfig_destructor, 0, 0 }, #if (defined(__WXGTK__) || defined(__WXMAC__)) && (wxLUA_USE_wxConfig) { LuaMethod, "SetUmask", wxConfig_SetUmask, 1, 1 }, #endif }; // Extern accessor to class method map WXLUAMETHOD* wxConfig_methods = s_wxConfig_methods; int wxConfig_methodCount = sizeof(s_wxConfig_methods)/sizeof(s_wxConfig_methods[0]); #endif --- NEW FILE: grid.cpp --- // --------------------------------------------------------- // This file was generated by genwxbind.lua // // Any changes made to this file may be lost when file // is regenerated // --------------------------------------------------------- #include "wx/wxprec.h" #ifdef __BORLANDC__ #pragma hdrstop #endif #ifndef WX_PRECOMP #include "wx/wx.h" #endif [...6284 lines suppressed...] { LuaMethod, "GetCol", wxGridEditorCreatedEvent_GetCol, 0, 0 }, { LuaMethod, "GetControl", wxGridEditorCreatedEvent_GetControl, 0, 0 }, { LuaMethod, "SetRow", wxGridEditorCreatedEvent_SetRow, 1, 1 }, { LuaGetProp, "Row", wxGridEditorCreatedEvent_GetRow, 0, 0 }, { LuaSetProp, "Row", wxGridEditorCreatedEvent_SetRow, 1, 1 }, { LuaMethod, "SetCol", wxGridEditorCreatedEvent_SetCol, 1, 1 }, { LuaGetProp, "Col", wxGridEditorCreatedEvent_GetCol, 0, 0 }, { LuaSetProp, "Col", wxGridEditorCreatedEvent_SetCol, 1, 1 }, { LuaMethod, "SetControl", wxGridEditorCreatedEvent_SetControl, 1, 1 }, { LuaGetProp, "Control", wxGridEditorCreatedEvent_GetControl, 0, 0 }, { LuaSetProp, "Control", wxGridEditorCreatedEvent_SetControl, 1, 1 }, { LuaDelete, "wxGridEditorCreatedEvent", wxGridEditorCreatedEvent_destructor, 0, 0 }, { LuaMethod, "Delete", wxGridEditorCreatedEvent_Delete, 0, 0 }, }; // Extern accessor to class method map WXLUAMETHOD* wxGridEditorCreatedEvent_methods = s_wxGridEditorCreatedEvent_methods; int wxGridEditorCreatedEvent_methodCount = sizeof(s_wxGridEditorCreatedEvent_methods)/sizeof(s_wxGridEditorCreatedEvent_methods[0]); #endif --- NEW FILE: file.cpp --- // --------------------------------------------------------- // This file was generated by genwxbind.lua // // Any changes made to this file may be lost when file // is regenerated // --------------------------------------------------------- #include "wx/wxprec.h" #ifdef __BORLANDC__ #pragma hdrstop #endif #ifndef WX_PRECOMP #include "wx/wx.h" #endif [...1869 lines suppressed...] { LuaConstructor, "wxDirOpen", wxDirOpen_constructor, 1, 1 }, { LuaMethod, "Exists", wxDir_Exists, 1, 1 }, { LuaMethod, "Open", wxDir_Open, 1, 1 }, { LuaMethod, "IsOpened", wxDir_IsOpened, 0, 0 }, { LuaMethod, "GetFirst", wxDir_GetFirst, 3, 1 }, { LuaMethod, "GetNext", wxDir_GetNext, 1, 1 }, { LuaDelete, "wxDir", wxDir_destructor, 0, 0 }, { LuaMethod, "Delete", wxDir_Delete, 0, 0 }, #if ((wxCHECK_VERSION(2,3,0)) && (wxLUA_USE_wxDir)) && (wxLUA_USE_wxArrayString) { LuaMethod, "GetAllFiles", wxDir_GetAllFiles, 4, 2 }, #endif }; // Extern accessor to class method map WXLUAMETHOD* wxDir_methods = s_wxDir_methods; int wxDir_methodCount = sizeof(s_wxDir_methods)/sizeof(s_wxDir_methods[0]); #endif --- NEW FILE: wx_object.cpp --- // --------------------------------------------------------- // wxLuaGetObjectList_wx() is called by registerGeneratedClasses() // to register object and pointer bindings // // This file was generated by genwxbind.lua // // Any changes made to this file may be lost when file // is regenerated // --------------------------------------------------------- #include "wx/wxprec.h" #ifdef __BORLANDC__ #pragma hdrstop #endif #ifndef WX_PRECOMP #include "wx/wx.h" #endif #include "wxluasetup.h" #include "wxlua/include/internal.h" #include "wxbind/include/wxbind.h" WXLUAOBJECT* wxLuaGetObjectList_wx(size_t &count) { static WXLUAOBJECT objectList[] = { #if wxLUA_USE_wxAcceleratorTable { &wxNullAcceleratorTable, 0, "wxNullAcceleratorTable", &s_wxluatag_wxAcceleratorTable }, #endif #if wxLUA_USE_wxColourPenBrush { &wxNullPen, 0, "wxNullPen", &s_wxluatag_wxPen }, { &wxNullColour, 0, "wxNullColour", &s_wxluatag_wxColour }, { &wxNullBrush, 0, "wxNullBrush", &s_wxluatag_wxBrush }, #endif #if wxLUA_USE_wxDataObject { &wxFormatInvalid, 0, "wxFormatInvalid", &s_wxluatag_wxDataFormat }, #endif #if (wxCHECK_VERSION(2,3,0)) && (wxLUA_USE_wxImage) { &wxNullImage, 0, "wxNullImage", &s_wxluatag_wxImage }, #endif #if wxLUA_USE_wxGrid { &wxGridNoCellRect, 0, "wxGridNoCellRect", &s_wxluatag_wxGridCellCoords }, #endif #if wxLUA_USE_wxCursor { &wxNullCursor, 0, "wxNullCursor", &s_wxluatag_wxCursor }, #endif #if wxLUA_USE_wxValidator { &wxDefaultValidator, 0, "wxDefaultValidator", &s_wxluatag_wxValidator }, #endif #if wxLUA_USE_wxIcon { &wxNullIcon, 0, "wxNullIcon", &s_wxluatag_wxIcon }, #endif #if wxLUA_USE_wxPointSizeRect { &wxDefaultPosition, 0, "wxDefaultPosition", &s_wxluatag_wxPoint }, { &wxDefaultSize, 0, "wxDefaultSize", &s_wxluatag_wxSize }, #endif #if wxLUA_USE_wxDateTime { &wxDefaultDateTime, 0, "wxDefaultDateTime", &s_wxluatag_wxDateTime }, #endif #if wxLUA_USE_wxBitmap { &wxNullBitmap, 0, "wxNullBitmap", &s_wxluatag_wxBitmap }, #endif #if wxLUA_USE_wxFont { &wxNullFont, 0, "wxNullFont", &s_wxluatag_wxFont }, #endif #if wxLUA_USE_wxPalette { &wxNullPalette, 0, "wxNullPalette", &s_wxluatag_wxPalette }, #endif #if wxLUA_USE_wxFontList { 0, (const void **) &wxTheFontList, "wxTheFontList", &s_wxluatag_wxFontList }, #endif #if wxLUA_USE_wxCursor { 0, (const void **) &wxSTANDARD_CURSOR, "wxSTANDARD_CURSOR", &s_wxluatag_wxCursor }, { 0, (const void **) &wxHOURGLASS_CURSOR, "wxHOURGLASS_CURSOR", &s_wxluatag_wxCursor }, { 0, (const void **) &wxCROSS_CURSOR, "wxCROSS_CURSOR", &s_wxluatag_wxCursor }, #endif #if wxLUA_USE_wxColourPenBrush { 0, (const void **) &wxGREY_PEN, "wxGREY_PEN", &s_wxluatag_wxPen }, { 0, (const void **) &wxBLUE, "wxBLUE", &s_wxluatag_wxColour }, { 0, (const void **) &wxGREEN_PEN, "wxGREEN_PEN", &s_wxluatag_wxPen }, { 0, (const void **) &wxTRANSPARENT_PEN, "wxTRANSPARENT_PEN", &s_wxluatag_wxPen }, { 0, (const void **) &wxWHITE_PEN, "wxWHITE_PEN", &s_wxluatag_wxPen }, { 0, (const void **) &wxBLACK_PEN, "wxBLACK_PEN", &s_wxluatag_wxPen }, { 0, (const void **) &wxLIGHT_GREY_PEN, "wxLIGHT_GREY_PEN", &s_wxluatag_wxPen }, { 0, (const void **) &wxCYAN_BRUSH, "wxCYAN_BRUSH", &s_wxluatag_wxBrush }, { 0, (const void **) &wxGREEN, "wxGREEN", &s_wxluatag_wxColour }, { 0, (const void **) &wxTRANSPARENT_BRUSH, "wxTRANSPARENT_BRUSH", &s_wxluatag_wxBrush }, { 0, (const void **) &wxLIGHT_GREY_BRUSH, "wxLIGHT_GREY_BRUSH", &s_wxluatag_wxBrush }, { 0, (const void **) &wxGREEN_BRUSH, "wxGREEN_BRUSH", &s_wxluatag_wxBrush }, { 0, (const void **) &wxBLACK_BRUSH, "wxBLACK_BRUSH", &s_wxluatag_wxBrush }, { 0, (const void **) &wxRED_PEN, "wxRED_PEN", &s_wxluatag_wxPen }, { 0, (const void **) &wxBLACK_DASHED_PEN, "wxBLACK_DASHED_PEN", &s_wxluatag_wxPen }, { 0, (const void **) &wxLIGHT_GREY, "wxLIGHT_GREY", &s_wxluatag_wxColour }, { 0, (const void **) &wxRED_BRUSH, "wxRED_BRUSH", &s_wxluatag_wxBrush }, { 0, (const void **) &wxMEDIUM_GREY_BRUSH, "wxMEDIUM_GREY_BRUSH", &s_wxluatag_wxBrush }, { 0, (const void **) &wxRED, "wxRED", &s_wxluatag_wxColour }, { 0, (const void **) &wxCYAN, "wxCYAN", &s_wxluatag_wxColour }, { 0, (const void **) &wxGREY_BRUSH, "wxGREY_BRUSH", &s_wxluatag_wxBrush }, { 0, (const void **) &wxMEDIUM_GREY_PEN, "wxMEDIUM_GREY_PEN", &s_wxluatag_wxPen }, { 0, (const void **) &wxCYAN_PEN, "wxCYAN_PEN", &s_wxluatag_wxPen }, { 0, (const void **) &wxWHITE, "wxWHITE", &s_wxluatag_wxColour }, { 0, (const void **) &wxBLACK, "wxBLACK", &s_wxluatag_wxColour }, { 0, (const void **) &wxWHITE_BRUSH, "wxWHITE_BRUSH", &s_wxluatag_wxBrush }, { 0, (const void **) &wxBLUE_BRUSH, "wxBLUE_BRUSH", &s_wxluatag_wxBrush }, #endif #if wxLUA_USE_wxFont { 0, (const void **) &wxSMALL_FONT, "wxSMALL_FONT", &s_wxluatag_wxFont }, { 0, (const void **) &wxNORMAL_FONT, "wxNORMAL_FONT", &s_wxluatag_wxFont }, { 0, (const void **) &wxSWISS_FONT, "wxSWISS_FONT", &s_wxluatag_wxFont }, { 0, (const void **) &wxITALIC_FONT, "wxITALIC_FONT", &s_wxluatag_wxFont }, #endif #if (!wxCHECK_VERSION(2,5,0)) && (wxLUA_USE_wxClipboard) { 0, (const void **) &wxTheClipboard, "wxTheClipboard", &s_wxluatag_wxClipboard }, #endif { 0, 0, 0, 0 }, }; count = (sizeof(objectList)/sizeof(objectList[0])) - 1; return objectList; } --- NEW FILE: data.cpp --- // --------------------------------------------------------- // This file was generated by genwxbind.lua // // Any changes made to this file may be lost when file // is regenerated // --------------------------------------------------------- #include "wx/wxprec.h" #ifdef __BORLANDC__ #pragma hdrstop #endif #ifndef WX_PRECOMP #include "wx/wx.h" #endif [...3537 lines suppressed...] { LuaDelete, "wxFTP", wxFTP_destructor, 0, 0 }, { LuaMethod, "Delete", wxFTP_Delete, 0, 0 }, #if wxLUA_USE_wxArrayString { LuaMethod, "GetDirList", wxFTP_GetDirList, 2, 1 }, { LuaMethod, "GetFilesList", wxFTP_GetFilesList, 2, 1 }, #endif #if wxUSE_STREAMS { LuaMethod, "GetOutputStream", wxFTP_GetOutputStream, 1, 1 }, { LuaMethod, "GetInputStream", wxFTP_GetInputStream, 1, 1 }, #endif }; // Extern accessor to class method map WXLUAMETHOD* wxFTP_methods = s_wxFTP_methods; int wxFTP_methodCount = sizeof(s_wxFTP_methods)/sizeof(s_wxFTP_methods[0]); --- NEW FILE: regex.cpp --- // --------------------------------------------------------- // This file was generated by genwxbind.lua // // Any changes made to this file may be lost when file // is regenerated // --------------------------------------------------------- #include "wx/wxprec.h" #ifdef __BORLANDC__ #pragma hdrstop #endif #ifndef WX_PRECOMP #include "wx/wx.h" #endif #include "wxluasetup.h" #include "wxlua/include/internal.h" #include "wxbind/include/wxbind.h" #if wxLUA_USE_wxRegEx // ------------------------------------------------------------------------------------------------- // Bind class wxRegEx // ------------------------------------------------------------------------------------------------- // Lua MetaTable Tag for Class int s_wxluatag_wxRegEx = -1; // %constructor wxRegExDefault() static int LUACALL wxRegExDefault_constructor(lua_State *L) { wxLuaState wxlState(L); wxRegEx *returns; // call constructor returns = new wxRegEx(); // add to tracked memory list wxLua_addToTrackedMemoryList(wxlState, (wxRegEx *)returns); // push the constructed class pointer wxlState.pushuserdatatype(s_wxluatag_wxRegEx, returns); return 1; } // wxRegEx(const wxString& expr, int flags = wxRE_DEFAULT) static int LUACALL wxRegEx_constructor(lua_State *L) { wxLuaState wxlState(L); wxRegEx *returns; // get number of arguments int argCount = lua_gettop(L); // int flags = wxRE_DEFAULT int flags = (argCount >= 2 ? (int)wxlState.getnumbertype(2) : wxRE_DEFAULT); // const wxString expr const wxString expr = lua2wx(wxlState.getstringtype(1)); // call constructor returns = new wxRegEx(expr, flags); // add to tracked memory list wxLua_addToTrackedMemoryList(wxlState, (wxRegEx *)returns); // push the constructed class pointer wxlState.pushuserdatatype(s_wxluatag_wxRegEx, returns); return 1; } // bool Compile(const wxString& pattern, int flags = wxRE_DEFAULT) static int LUACALL wxRegEx_Compile(lua_State *L) { wxLuaState wxlState(L); bool returns; // get number of arguments int argCount = lua_gettop(L); // int flags = wxRE_DEFAULT int flags = (argCount >= 3 ? (int)wxlState.getnumbertype(3) : wxRE_DEFAULT); // const wxString pattern const wxString pattern = lua2wx(wxlState.getstringtype(2)); // get this wxRegEx * self = (wxRegEx *)wxlState.getuserdatatype(1, s_wxluatag_wxRegEx); // call Compile returns = self->Compile(pattern, flags); // push the result flag lua_pushboolean(L, returns); return 1; } // bool IsValid() const static int LUACALL wxRegEx_IsValid(lua_State *L) { wxLuaState wxlState(L); bool returns; // get this wxRegEx * self = (wxRegEx *)wxlState.getuserdatatype(1, s_wxluatag_wxRegEx); // call IsValid returns = self->IsValid(); // push the result flag lua_pushboolean(L, returns); return 1; } // wxString GetMatch(const wxString& text, size_t index = 0) const static int LUACALL wxRegEx_GetMatch(lua_State *L) { wxLuaState wxlState(L); wxString returns; // get number of arguments int argCount = lua_gettop(L); // size_t index = 0 size_t index = (argCount >= 3 ? (size_t)wxlState.getnumbertype(3) : 0); // const wxString text const wxString text = lua2wx(wxlState.getstringtype(2)); // get this wxRegEx * self = (wxRegEx *)wxlState.getuserdatatype(1, s_wxluatag_wxRegEx); // call GetMatch returns = self->GetMatch(text, index); // push the result string lua_pushstring(L, wx2lua(returns) ); return 1; } // bool Matches(const wxString &text, int flags = 0) const static int LUACALL wxRegEx_Matches(lua_State *L) { wxLuaState wxlState(L); bool returns; // get number of arguments int argCount = lua_gettop(L); // int flags = 0 int flags = (argCount >= 3 ? (int)wxlState.getnumbertype(3) : 0); // const wxString text const wxString text = lua2wx(wxlState.getstringtype(2)); // get this wxRegEx * self = (wxRegEx *)wxlState.getuserdatatype(1, s_wxluatag_wxRegEx); // call Matches returns = self->Matches(text, flags); // push the result flag lua_pushboolean(L, returns); return 1; } // %override wxRegEx_GetMatchIndexes // %rename GetMatchPointer bool GetMatch(size_t* start, size_t* len, size_t index = 0) const static int LUACALL wxRegEx_GetMatchIndexes(lua_State *L) { wxLuaState wxlState(L); bool returns; // get number of arguments int argCount = lua_gettop(L); // size_t index = 0 size_t index = (argCount >= 2 ? (size_t)wxlState.getnumbertype(2) : 0); // size_t* len size_t len = 0; // size_t* start size_t start = 0; // get this wxRegEx *self = (wxRegEx *)wxlState.getuserdatatype(1, s_wxluatag_wxRegEx); // call GetMatch returns = self->GetMatch(&start, &len, index); // push the result number lua_pushboolean(L, returns); // push the match start and length indexes lua_pushnumber(L, start); lua_pushnumber(L, len); // return the number of parameters return 3; } // %override wxRegEx_Replace // int Replace(wxString* text, const wxString& replacement, size_t maxMatches = 0) const static int LUACALL wxRegEx_Replace(lua_State *L) { wxLuaState wxlState(L); int returns; // get number of arguments int argCount = lua_gettop(L); // size_t maxMatches = 0 size_t maxMatches = (argCount >= 4 ? (size_t)wxlState.getnumbertype(4) : 0); // const wxString& replacement wxString replacement = lua2wx(wxlState.getstringtype(3)); // wxString* text wxString text = lua2wx(wxlState.getstringtype(2)); // get this wxRegEx *self = (wxRegEx *)wxlState.getuserdatatype(1, s_wxluatag_wxRegEx); // call Replace returns = self->Replace(&text, replacement, maxMatches); // push the result number lua_pushnumber(L, returns); // push the result text lua_pushstring(L, wx2lua(text)); // return the number of parameters return 2; } // %override wxRegEx_ReplaceAll // int ReplaceAll(wxString* text, const wxString& replacement) const static int LUACALL wxRegEx_ReplaceAll(lua_State *L) { wxLuaState wxlState(L); int returns; // const wxString& replacement wxString replacement = lua2wx(wxlState.getstringtype(3)); // wxString* text wxString text = lua2wx(wxlState.getstringtype(2)); // get this wxRegEx *self = (wxRegEx *)wxlState.getuserdatatype(1, s_wxluatag_wxRegEx); // call ReplaceAll returns = self->ReplaceAll(&text, replacement); // push the result number lua_pushnumber(L, returns); // push the result text lua_pushstring(L, wx2lua(text)); // return the number of parameters return 2; } // %override wxRegEx_ReplaceFirst // int ReplaceFirst(wxString* text, const wxString& replacement) const static int LUACALL wxRegEx_ReplaceFirst(lua_State *L) { wxLuaState wxlState(L); int returns; // const wxString& replacement wxString replacement = lua2wx(wxlState.getstringtype(3)); // wxString* text wxString text = lua2wx(wxlState.getstringtype(2)); // get this wxRegEx *self = (wxRegEx *)wxlState.getuserdatatype(1, s_wxluatag_wxRegEx); // call ReplaceFirst returns = self->ReplaceFirst(&text, replacement); // push the result number lua_pushnumber(L, returns); // push the result text lua_pushstring(L, wx2lua(text)); // return the number of parameters return 2; } static int LUACALL wxRegEx_destructor(lua_State *L) { wxLuaState wxlState(L); wxRegEx * self = (wxRegEx *)wxlState.getuserdatatype(1, s_wxluatag_wxRegEx); // remove from tracked memory list if (self != 0) wxlState.removeTrackedMemory(self); return 0; } static int LUACALL wxRegEx_Delete(lua_State *L) { wxLuaState wxlState(L); wxRegEx * self = (wxRegEx *)wxlState.getuserdatatype(1, s_wxluatag_wxRegEx); // remove from tracked memory list if (self != 0) if (wxlState.removeTrackedMemory(self)) { // if removed, reset the tag so that gc() is not called on this object. lua_pushnil(L); lua_setmetatable(L, -2); } return 0; } // Map Lua Class Methods to C Binding Functions static WXLUAMETHOD s_wxRegEx_methods[] = { { LuaConstructor, "wxRegExDefault", wxRegExDefault_constructor, 0, 0 }, { LuaConstructor, "wxRegEx", wxRegEx_constructor, 2, 1 }, { LuaMethod, "Compile", wxRegEx_Compile, 2, 1 }, { LuaMethod, "IsValid", wxRegEx_IsValid, 0, 0 }, { LuaMethod, "GetMatch", wxRegEx_GetMatch, 2, 1 }, { LuaMethod, "Matches", wxRegEx_Matches, 2, 1 }, { LuaMethod, "GetMatchIndexes", wxRegEx_GetMatchIndexes, 3, 2 }, { LuaMethod, "Replace", wxRegEx_Replace, 3, 2 }, { LuaMethod, "ReplaceAll", wxRegEx_ReplaceAll, 2, 2 }, { LuaMethod, "ReplaceFirst", wxRegEx_ReplaceFirst, 2, 2 }, { LuaDelete, "wxRegEx", wxRegEx_destructor, 0, 0 }, { LuaMethod, "Delete", wxRegEx_Delete, 0, 0 }, }; // Extern accessor to class method map WXLUAMETHOD* wxRegEx_methods = s_wxRegEx_methods; int wxRegEx_methodCount = sizeof(s_wxRegEx_methods)/sizeof(s_wxRegEx_methods[0]); #endif --- NEW FILE: controls.cpp --- // --------------------------------------------------------- // This file was generated by genwxbind.lua // // Any changes made to this file may be lost when file // is regenerated // --------------------------------------------------------- #include "wx/wxprec.h" #ifdef __BORLANDC__ #pragma hdrstop #endif #ifndef WX_PRECOMP #include "wx/wx.h" #endif [...8693 lines suppressed...] { LuaDelete, "wxTreeEvent", wxTreeEvent_destructor, 0, 0 }, { LuaMethod, "Delete", wxTreeEvent_Delete, 0, 0 }, #if (wxLUA_USE_wxTreeCtrl) && (wxLUA_USE_wxPointSizeRect) { LuaMethod, "GetPoint", wxTreeEvent_GetPoint, 0, 0 }, { LuaGetProp, "Point", wxTreeEvent_GetPoint, 0, 0 }, #endif #if (wxCHECK_VERSION(2,3,0)) && (wxLUA_USE_wxTreeCtrl) { LuaMethod, "GetKeyCode", wxTreeEvent_GetKeyCode, 0, 0 }, #endif }; // Extern accessor to class method map WXLUAMETHOD* wxTreeEvent_methods = s_wxTreeEvent_methods; int wxTreeEvent_methodCount = sizeof(s_wxTreeEvent_methods)/sizeof(s_wxTreeEvent_methods[0]); #endif --- NEW FILE: plot.cpp --- // --------------------------------------------------------- // This file was generated by genwxbind.lua // // Any changes made to this file may be lost when file // is regenerated // --------------------------------------------------------- #include "wx/wxprec.h" #ifdef __BORLANDC__ #pragma hdrstop #endif #ifndef WX_PRECOMP #include "wx/wx.h" #endif #include "wxluasetup.h" #include "wxlua/include/internal.h" #include "wxbind/include/wxbind.h" --- NEW FILE: wx_define.cpp --- // --------------------------------------------------------- // wxLuaGetDefineList_wx() is called by registerGeneratedClasses() // to register defines, enums and static strings // // This file was generated by genwxbind.lua // // Any changes made to this file may be lost when file // is regenerated // --------------------------------------------------------- #include "wx/wxprec.h" #ifdef __BORLANDC__ #pragma hdrstop #endif [...1777 lines suppressed...] { "wxXML_HTML_DOCUMENT_NODE", false, wxXML_HTML_DOCUMENT_NODE, 0 }, { "wxXML_DOCUMENT_NODE", false, wxXML_DOCUMENT_NODE, 0 }, { "wxXML_ATTRIBUTE_NODE", false, wxXML_ATTRIBUTE_NODE, 0 }, { "wxXML_DOCUMENT_TYPE_NODE", false, wxXML_DOCUMENT_TYPE_NODE, 0 }, { "wxXML_NOTATION_NODE", false, wxXML_NOTATION_NODE, 0 }, #endif #if wxLUA_USE_wxRegion { "wxOutRegion", false, wxOutRegion, 0 }, { "wxPartRegion", false, wxPartRegion, 0 }, { "wxInRegion", false, wxInRegion, 0 }, #endif { 0, 0, 0, 0 }, }; count = (sizeof(defineList)/sizeof(defineList[0])) - 1; return defineList; } --- NEW FILE: socket.cpp --- // --------------------------------------------------------- // This file was generated by genwxbind.lua // // Any changes made to this file may be lost when file // is regenerated // --------------------------------------------------------- #include "wx/wxprec.h" #ifdef __BORLANDC__ #pragma hdrstop #endif #ifndef WX_PRECOMP #include "wx/wx.h" #endif [...1156 lines suppressed...] // Map Lua Class Methods to C Binding Functions static WXLUAMETHOD s_wxIPV4address_methods[] = { { LuaConstructor, "wxIPV4address", wxIPV4address_constructor, 0, 0 }, { LuaMethod, "SetHostname", wxIPV4address_SetHostname, 1, 1 }, { LuaMethod, "SetHostnameAddr", wxIPV4address_SetHostnameAddr, 1, 1 }, { LuaMethod, "Hostname", wxIPV4address_Hostname, 0, 0 }, { LuaMethod, "SetService", wxIPV4address_SetService, 1, 1 }, { LuaMethod, "SetServicePort", wxIPV4address_SetServicePort, 1, 1 }, { LuaMethod, "Service", wxIPV4address_Service, 0, 0 }, { LuaMethod, "AnyAddress", wxIPV4address_AnyAddress, 0, 0 }, { LuaMethod, "LocalHost", wxIPV4address_LocalHost, 0, 0 }, { LuaDelete, "wxIPV4address", wxIPV4address_destructor, 0, 0 }, }; // Extern accessor to class method map WXLUAMETHOD* wxIPV4address_methods = s_wxIPV4address_methods; int wxIPV4address_methodCount = sizeof(s_wxIPV4address_methods)/sizeof(s_wxIPV4address_methods[0]); #endif --- NEW FILE: clipdrag.cpp --- // --------------------------------------------------------- // This file was generated by genwxbind.lua // // Any changes made to this file may be lost when file // is regenerated // --------------------------------------------------------- #include "wx/wxprec.h" #ifdef __BORLANDC__ #pragma hdrstop #endif #ifndef WX_PRECOMP #include "wx/wx.h" #endif [...1902 lines suppressed...] // Map Lua Class Methods to C Binding Functions static WXLUAMETHOD s_wxMetafileDC_methods[] = { { LuaConstructor, "wxMetafileDC", wxMetafileDC_constructor, 1, 0 }, { LuaDelete, "wxMetafileDC", wxMetafileDC_destructor, 0, 0 }, { LuaMethod, "Delete", wxMetafileDC_Delete, 0, 0 }, #if ((defined(__WXMSW__) || defined(__WXMAC__) || defined(__WXPM__)) && (wxLUA_USE_wxMetafile)) && ((defined(__WXMSW__)) && ((defined(__WXMSW__) || defined(__WXMAC__) || defined(__WXPM__)) && (wxLUA_USE_wxMetafile))) { LuaMethod, "Close", wxMetafileDC_Close, 0, 0 }, #endif }; // Extern accessor to class method map WXLUAMETHOD* wxMetafileDC_methods = s_wxMetafileDC_methods; int wxMetafileDC_methodCount = sizeof(s_wxMetafileDC_methods)/sizeof(s_wxMetafileDC_methods[0]); #endif --- NEW FILE: sizer.cpp --- // --------------------------------------------------------- // This file was generated by genwxbind.lua // // Any changes made to this file may be lost when file // is regenerated // --------------------------------------------------------- #include "wx/wxprec.h" #ifdef __BORLANDC__ #pragma hdrstop #endif #ifndef WX_PRECOMP #include "wx/wx.h" #endif [...1089 lines suppressed...] static WXLUAMETHOD s_wxIndividualLayoutConstraint_methods[] = { { LuaConstructor, "wxIndividualLayoutConstraint", wxIndividualLayoutConstraint_constructor, 0, 0 }, { LuaMethod, "Above", wxIndividualLayoutConstraint_Above, 2, 1 }, { LuaMethod, "Absolute", wxIndividualLayoutConstraint_Absolute, 1, 1 }, { LuaMethod, "AsIs", wxIndividualLayoutConstraint_AsIs, 0, 0 }, { LuaMethod, "Below", wxIndividualLayoutConstraint_Below, 2, 1 }, { LuaMethod, "Unconstrained", wxIndividualLayoutConstraint_Unconstrained, 0, 0 }, { LuaMethod, "LeftOf", wxIndividualLayoutConstraint_LeftOf, 2, 1 }, { LuaMethod, "PercentOf", wxIndividualLayoutConstraint_PercentOf, 3, 3 }, { LuaMethod, "RightOf", wxIndividualLayoutConstraint_RightOf, 2, 1 }, { LuaMethod, "SameAs", wxIndividualLayoutConstraint_SameAs, 3, 2 }, { LuaMethod, "Set", wxIndividualLayoutConstraint_Set, 5, 3 }, { LuaDelete, "wxIndividualLayoutConstraint", wxIndividualLayoutConstraint_destructor, 0, 0 }, }; // Extern accessor to class method map WXLUAMETHOD* wxIndividualLayoutConstraint_methods = s_wxIndividualLayoutConstraint_methods; int wxIndividualLayoutConstraint_methodCount = sizeof(s_wxIndividualLayoutConstraint_methods)/sizeof(s_wxIndividualLayoutConstraint_methods[0]); #endif --- NEW FILE: fl.cpp --- // --------------------------------------------------------- // This file was generated by genwxbind.lua // // Any changes made to this file may be lost when file // is regenerated // --------------------------------------------------------- #include "wx/wxprec.h" #ifdef __BORLANDC__ #pragma hdrstop #endif #ifndef WX_PRECOMP #include "wx/wx.h" #endif [...5106 lines suppressed...] { LuaMethod, "DrawSeparator", wxDynamicToolBar_DrawSeparator, 2, 2 }, #endif #if (((wxLUA_USE_FL) && (wxLUA_USE_wxToolbar)) && (wxLUA_USE_wxBitmap)) && (wxLUA_USE_wxObject) { LuaMethod, "AddToolCompatible", wxDynamicToolBar_AddToolCompatible, 9, 2 }, #endif #if (wxLUA_USE_FL) && (wxLUA_USE_wxBitmap) { LuaMethod, "AddTool", wxDynamicToolBar_AddTool, 5, 2 }, #endif }; // Extern accessor to class method map WXLUAMETHOD* wxDynamicToolBar_methods = s_wxDynamicToolBar_methods; int wxDynamicToolBar_methodCount = sizeof(s_wxDynamicToolBar_methods)/sizeof(s_wxDynamicToolBar_methods[0]); #endif --- NEW FILE: defsutil.cpp --- // --------------------------------------------------------- // This file was generated by genwxbind.lua // // Any changes made to this file may be lost when file // is regenerated // --------------------------------------------------------- #include "wx/wxprec.h" #ifdef __BORLANDC__ #pragma hdrstop #endif #ifndef WX_PRECOMP #include "wx/wx.h" #endif #include "wxluasetup.h" #include "wxlua/include/internal.h" #include "wxbind/include/wxbind.h" // ------------------------------------------------------------------------------------------------- // Bind class wxProcess // ------------------------------------------------------------------------------------------------- // Lua MetaTable Tag for Class int s_wxluatag_wxProcess = -1; // wxProcess(wxEvtHandler *parent = NULL, int nId = wxID_ANY) static int LUACALL wxProcess_constructor(lua_State *L) { wxLuaState wxlState(L); wxProcess *returns; // get number of arguments int argCount = lua_gettop(L); // int nId = wxID_ANY int nId = (argCount >= 2 ? (int)wxlState.getnumbertype(... [truncated message content] |