Update of /cvsroot/wxlua/wxLua/modules/wxbind/src In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv16698/wxLua/modules/wxbind/src Modified Files: appframe.cpp clipdrag.cpp config.cpp controls.cpp data.cpp datetime.cpp defsutil.cpp dialogs.cpp event.cpp file.cpp gdi.cpp geometry.cpp grid.cpp help.cpp html.cpp image.cpp mdi.cpp menutool.cpp print.cpp regex.cpp sizer.cpp socket.cpp wave.cpp windows.cpp wx_bind.cpp wxlua.cpp xml.cpp Log Message: Add "voidptr_long" binding tag to allow using void* as a number Speed up bindings by using numbers as keys in the registry (avoid lua doing a string copy) Get rid of wxLuaState::GetXXXTag functions, something better needs to be implemented, using global vars for the few tags that we really use often now Allow the wxLuaStackDialog to be able to show lua's registry lots of cleanup in bindings.wx.lua Index: xml.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/xml.cpp,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -d -r1.38 -r1.39 *** xml.cpp 14 Jun 2007 01:23:19 -0000 1.38 --- xml.cpp 14 Jun 2007 23:59:47 -0000 1.39 *************** *** 101,105 **** wxXmlNode * self = (wxXmlNode *)wxlState.GetUserDataType(1, s_wxluatag_wxXmlNode); // call DeleteProperty ! returns = self->DeleteProperty(name); // push the result flag lua_pushboolean(L, returns); --- 101,105 ---- wxXmlNode * self = (wxXmlNode *)wxlState.GetUserDataType(1, s_wxluatag_wxXmlNode); // call DeleteProperty ! returns = (self->DeleteProperty(name)); // push the result flag lua_pushboolean(L, returns); *************** *** 137,141 **** wxXmlNode * self = (wxXmlNode *)wxlState.GetUserDataType(1, s_wxluatag_wxXmlNode); // call GetContent ! returns = self->GetContent(); // push the result string wxlState.lua_PushString(returns); --- 137,141 ---- wxXmlNode * self = (wxXmlNode *)wxlState.GetUserDataType(1, s_wxluatag_wxXmlNode); // call GetContent ! returns = (self->GetContent()); // push the result string wxlState.lua_PushString(returns); *************** *** 155,159 **** wxXmlNode * self = (wxXmlNode *)wxlState.GetUserDataType(1, s_wxluatag_wxXmlNode); // call GetName ! returns = self->GetName(); // push the result string wxlState.lua_PushString(returns); --- 155,159 ---- wxXmlNode * self = (wxXmlNode *)wxlState.GetUserDataType(1, s_wxluatag_wxXmlNode); // call GetName ! returns = (self->GetName()); // push the result string wxlState.lua_PushString(returns); *************** *** 213,217 **** wxXmlNode * self = (wxXmlNode *)wxlState.GetUserDataType(1, s_wxluatag_wxXmlNode); // call GetPropVal ! returns = self->GetPropVal(propName, defaultVal); // push the result string wxlState.lua_PushString(returns); --- 213,217 ---- wxXmlNode * self = (wxXmlNode *)wxlState.GetUserDataType(1, s_wxluatag_wxXmlNode); // call GetPropVal ! returns = (self->GetPropVal(propName, defaultVal)); // push the result string wxlState.lua_PushString(returns); *************** *** 276,280 **** wxXmlNode * self = (wxXmlNode *)wxlState.GetUserDataType(1, s_wxluatag_wxXmlNode); // call GetType ! returns = self->GetType(); // push the result number lua_pushnumber(L, returns); --- 276,280 ---- wxXmlNode * self = (wxXmlNode *)wxlState.GetUserDataType(1, s_wxluatag_wxXmlNode); // call GetType ! returns = (self->GetType()); // push the result number lua_pushnumber(L, returns); *************** *** 296,300 **** wxXmlNode * self = (wxXmlNode *)wxlState.GetUserDataType(1, s_wxluatag_wxXmlNode); // call HasProp ! returns = self->HasProp(propName); // push the result flag lua_pushboolean(L, returns); --- 296,300 ---- wxXmlNode * self = (wxXmlNode *)wxlState.GetUserDataType(1, s_wxluatag_wxXmlNode); // call HasProp ! returns = (self->HasProp(propName)); // push the result flag lua_pushboolean(L, returns); *************** *** 335,339 **** wxXmlNode * self = (wxXmlNode *)wxlState.GetUserDataType(1, s_wxluatag_wxXmlNode); // call RemoveChild ! returns = self->RemoveChild(child); // push the result flag lua_pushboolean(L, returns); --- 335,339 ---- wxXmlNode * self = (wxXmlNode *)wxlState.GetUserDataType(1, s_wxluatag_wxXmlNode); // call RemoveChild ! returns = (self->RemoveChild(child)); // push the result flag lua_pushboolean(L, returns); *************** *** 675,679 **** wxXmlProperty * self = (wxXmlProperty *)wxlState.GetUserDataType(1, s_wxluatag_wxXmlProperty); // call GetName ! returns = self->GetName(); // push the result string wxlState.lua_PushString(returns); --- 675,679 ---- wxXmlProperty * self = (wxXmlProperty *)wxlState.GetUserDataType(1, s_wxluatag_wxXmlProperty); // call GetName ! returns = (self->GetName()); // push the result string wxlState.lua_PushString(returns); *************** *** 711,715 **** wxXmlProperty * self = (wxXmlProperty *)wxlState.GetUserDataType(1, s_wxluatag_wxXmlProperty); // call GetValue ! returns = self->GetValue(); // push the result string wxlState.lua_PushString(returns); --- 711,715 ---- wxXmlProperty * self = (wxXmlProperty *)wxlState.GetUserDataType(1, s_wxluatag_wxXmlProperty); // call GetValue ! returns = (self->GetValue()); // push the result string wxlState.lua_PushString(returns); *************** *** 892,896 **** wxXmlDocument * self = (wxXmlDocument *)wxlState.GetUserDataType(1, s_wxluatag_wxXmlDocument); // call GetFileEncoding ! returns = self->GetFileEncoding(); // push the result string wxlState.lua_PushString(returns); --- 892,896 ---- wxXmlDocument * self = (wxXmlDocument *)wxlState.GetUserDataType(1, s_wxluatag_wxXmlDocument); // call GetFileEncoding ! returns = (self->GetFileEncoding()); // push the result string wxlState.lua_PushString(returns); *************** *** 928,932 **** wxXmlDocument * self = (wxXmlDocument *)wxlState.GetUserDataType(1, s_wxluatag_wxXmlDocument); // call GetVersion ! returns = self->GetVersion(); // push the result string wxlState.lua_PushString(returns); --- 928,932 ---- wxXmlDocument * self = (wxXmlDocument *)wxlState.GetUserDataType(1, s_wxluatag_wxXmlDocument); // call GetVersion ! returns = (self->GetVersion()); // push the result string wxlState.lua_PushString(returns); *************** *** 946,950 **** wxXmlDocument * self = (wxXmlDocument *)wxlState.GetUserDataType(1, s_wxluatag_wxXmlDocument); // call IsOk ! returns = self->IsOk(); // push the result flag lua_pushboolean(L, returns); --- 946,950 ---- wxXmlDocument * self = (wxXmlDocument *)wxlState.GetUserDataType(1, s_wxluatag_wxXmlDocument); // call IsOk ! returns = (self->IsOk()); // push the result flag lua_pushboolean(L, returns); *************** *** 970,974 **** wxXmlDocument * self = (wxXmlDocument *)wxlState.GetUserDataType(1, s_wxluatag_wxXmlDocument); // call Load ! returns = self->Load(filename, encoding); // push the result flag lua_pushboolean(L, returns); --- 970,974 ---- wxXmlDocument * self = (wxXmlDocument *)wxlState.GetUserDataType(1, s_wxluatag_wxXmlDocument); // call Load ! returns = (self->Load(filename, encoding)); // push the result flag lua_pushboolean(L, returns); *************** *** 990,994 **** wxXmlDocument * self = (wxXmlDocument *)wxlState.GetUserDataType(1, s_wxluatag_wxXmlDocument); // call Save ! returns = self->Save(filename); // push the result flag lua_pushboolean(L, returns); --- 990,994 ---- wxXmlDocument * self = (wxXmlDocument *)wxlState.GetUserDataType(1, s_wxluatag_wxXmlDocument); // call Save ! returns = (self->Save(filename)); // push the result flag lua_pushboolean(L, returns); *************** *** 1182,1186 **** wxXmlResource * self = (wxXmlResource *)wxlState.GetUserDataType(1, s_wxluatag_wxXmlResource); // call AttachUnknownControl ! returns = self->AttachUnknownControl(name, control, parent); // push the result flag lua_pushboolean(L, returns); --- 1182,1186 ---- wxXmlResource * self = (wxXmlResource *)wxlState.GetUserDataType(1, s_wxluatag_wxXmlResource); // call AttachUnknownControl ! returns = (self->AttachUnknownControl(name, control, parent)); // push the result flag lua_pushboolean(L, returns); *************** *** 1223,1227 **** wxXmlResource * self = (wxXmlResource *)wxlState.GetUserDataType(1, s_wxluatag_wxXmlResource); // call CompareVersion ! returns = self->CompareVersion(major, minor, release, revision); // push the result number lua_pushnumber(L, returns); --- 1223,1227 ---- wxXmlResource * self = (wxXmlResource *)wxlState.GetUserDataType(1, s_wxluatag_wxXmlResource); // call CompareVersion ! returns = (self->CompareVersion(major, minor, release, revision)); // push the result number lua_pushnumber(L, returns); *************** *** 1324,1328 **** wxXmlResource * self = (wxXmlResource *)wxlState.GetUserDataType(1, s_wxluatag_wxXmlResource); // call GetFlags ! returns = self->GetFlags(); // push the result number lua_pushnumber(L, returns); --- 1324,1328 ---- wxXmlResource * self = (wxXmlResource *)wxlState.GetUserDataType(1, s_wxluatag_wxXmlResource); // call GetFlags ! returns = (self->GetFlags()); // push the result number lua_pushnumber(L, returns); *************** *** 1342,1346 **** wxXmlResource * self = (wxXmlResource *)wxlState.GetUserDataType(1, s_wxluatag_wxXmlResource); // call GetVersion ! returns = self->GetVersion(); // push the result number lua_pushnumber(L, returns); --- 1342,1346 ---- wxXmlResource * self = (wxXmlResource *)wxlState.GetUserDataType(1, s_wxluatag_wxXmlResource); // call GetVersion ! returns = (self->GetVersion()); // push the result number lua_pushnumber(L, returns); *************** *** 1397,1401 **** wxXmlResource * self = (wxXmlResource *)wxlState.GetUserDataType(1, s_wxluatag_wxXmlResource); // call Load ! returns = self->Load(filemask); // push the result flag lua_pushboolean(L, returns); --- 1397,1401 ---- wxXmlResource * self = (wxXmlResource *)wxlState.GetUserDataType(1, s_wxluatag_wxXmlResource); // call Load ! returns = (self->Load(filemask)); // push the result flag lua_pushboolean(L, returns); *************** *** 1449,1453 **** wxXmlResource * self = (wxXmlResource *)wxlState.GetUserDataType(1, s_wxluatag_wxXmlResource); // call LoadDialog ! returns = self->LoadDialog(dlg, parent, name); // push the result flag lua_pushboolean(L, returns); --- 1449,1453 ---- wxXmlResource * self = (wxXmlResource *)wxlState.GetUserDataType(1, s_wxluatag_wxXmlResource); // call LoadDialog ! returns = (self->LoadDialog(dlg, parent, name)); // push the result flag lua_pushboolean(L, returns); *************** *** 1498,1502 **** wxXmlResource * self = (wxXmlResource *)wxlState.GetUserDataType(1, s_wxluatag_wxXmlResource); // call LoadFrame ! returns = self->LoadFrame(frame, parent, name); // push the result flag lua_pushboolean(L, returns); --- 1498,1502 ---- wxXmlResource * self = (wxXmlResource *)wxlState.GetUserDataType(1, s_wxluatag_wxXmlResource); // call LoadFrame ! returns = (self->LoadFrame(frame, parent, name)); // push the result flag lua_pushboolean(L, returns); *************** *** 1615,1619 **** wxXmlResource * self = (wxXmlResource *)wxlState.GetUserDataType(1, s_wxluatag_wxXmlResource); // call LoadPanel ! returns = self->LoadPanel(panel, parent, name); // push the result flag lua_pushboolean(L, returns); --- 1615,1619 ---- wxXmlResource * self = (wxXmlResource *)wxlState.GetUserDataType(1, s_wxluatag_wxXmlResource); // call LoadPanel ! returns = (self->LoadPanel(panel, parent, name)); // push the result flag lua_pushboolean(L, returns); *************** *** 1720,1724 **** wxXmlResource * self = (wxXmlResource *)wxlState.GetUserDataType(1, s_wxluatag_wxXmlResource); // call Unload ! returns = self->Unload(filename); // push the result flag lua_pushboolean(L, returns); --- 1720,1724 ---- wxXmlResource * self = (wxXmlResource *)wxlState.GetUserDataType(1, s_wxluatag_wxXmlResource); // call Unload ! returns = (self->Unload(filename)); // push the result flag lua_pushboolean(L, returns); Index: defsutil.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/defsutil.cpp,v retrieving revision 1.40 retrieving revision 1.41 diff -C2 -d -r1.40 -r1.41 *** defsutil.cpp 14 Jun 2007 01:23:13 -0000 1.40 --- defsutil.cpp 14 Jun 2007 23:59:43 -0000 1.41 *************** *** 78,82 **** int pid = (int)wxlua_getnumbertype(L, 1); // call Exists ! returns = wxProcess::Exists(pid); // push the result flag lua_pushboolean(L, returns); --- 78,82 ---- int pid = (int)wxlua_getnumbertype(L, 1); // call Exists ! returns = (wxProcess::Exists(pid)); // push the result flag lua_pushboolean(L, returns); *************** *** 155,159 **** wxProcess * self = (wxProcess *)wxlState.GetUserDataType(1, s_wxluatag_wxProcess); // call IsErrorAvailable ! returns = self->IsErrorAvailable(); // push the result flag lua_pushboolean(L, returns); --- 155,159 ---- wxProcess * self = (wxProcess *)wxlState.GetUserDataType(1, s_wxluatag_wxProcess); // call IsErrorAvailable ! returns = (self->IsErrorAvailable()); // push the result flag lua_pushboolean(L, returns); *************** *** 173,177 **** wxProcess * self = (wxProcess *)wxlState.GetUserDataType(1, s_wxluatag_wxProcess); // call IsInputAvailable ! returns = self->IsInputAvailable(); // push the result flag lua_pushboolean(L, returns); --- 173,177 ---- wxProcess * self = (wxProcess *)wxlState.GetUserDataType(1, s_wxluatag_wxProcess); // call IsInputAvailable ! returns = (self->IsInputAvailable()); // push the result flag lua_pushboolean(L, returns); *************** *** 191,195 **** wxProcess * self = (wxProcess *)wxlState.GetUserDataType(1, s_wxluatag_wxProcess); // call IsInputOpened ! returns = self->IsInputOpened(); // push the result flag lua_pushboolean(L, returns); --- 191,195 ---- wxProcess * self = (wxProcess *)wxlState.GetUserDataType(1, s_wxluatag_wxProcess); // call IsInputOpened ! returns = (self->IsInputOpened()); // push the result flag lua_pushboolean(L, returns); *************** *** 211,215 **** wxProcess * self = (wxProcess *)wxlState.GetUserDataType(1, s_wxluatag_wxProcess); // call IsRedirected ! returns = self->IsRedirected(); // push the result flag lua_pushboolean(L, returns); --- 211,215 ---- wxProcess * self = (wxProcess *)wxlState.GetUserDataType(1, s_wxluatag_wxProcess); // call IsRedirected ! returns = (self->IsRedirected()); // push the result flag lua_pushboolean(L, returns); *************** *** 234,238 **** int pid = (int)wxlua_getnumbertype(L, 1); // call Kill ! returns = wxProcess::Kill(pid, sig, flags); // push the result number lua_pushnumber(L, returns); --- 234,238 ---- int pid = (int)wxlua_getnumbertype(L, 1); // call Kill ! returns = (wxProcess::Kill(pid, sig, flags)); // push the result number lua_pushnumber(L, returns); *************** *** 407,411 **** wxMouseState * self = (wxMouseState *)wxlState.GetUserDataType(1, s_wxluatag_wxMouseState); // call AltDown ! returns = self->AltDown(); // push the result flag lua_pushboolean(L, returns); --- 407,411 ---- wxMouseState * self = (wxMouseState *)wxlState.GetUserDataType(1, s_wxluatag_wxMouseState); // call AltDown ! returns = (self->AltDown()); // push the result flag lua_pushboolean(L, returns); *************** *** 425,429 **** wxMouseState * self = (wxMouseState *)wxlState.GetUserDataType(1, s_wxluatag_wxMouseState); // call CmdDown ! returns = self->CmdDown(); // push the result flag lua_pushboolean(L, returns); --- 425,429 ---- wxMouseState * self = (wxMouseState *)wxlState.GetUserDataType(1, s_wxluatag_wxMouseState); // call CmdDown ! returns = (self->CmdDown()); // push the result flag lua_pushboolean(L, returns); *************** *** 443,447 **** wxMouseState * self = (wxMouseState *)wxlState.GetUserDataType(1, s_wxluatag_wxMouseState); // call ControlDown ! returns = self->ControlDown(); // push the result flag lua_pushboolean(L, returns); --- 443,447 ---- wxMouseState * self = (wxMouseState *)wxlState.GetUserDataType(1, s_wxluatag_wxMouseState); // call ControlDown ! returns = (self->ControlDown()); // push the result flag lua_pushboolean(L, returns); *************** *** 461,465 **** wxMouseState * self = (wxMouseState *)wxlState.GetUserDataType(1, s_wxluatag_wxMouseState); // call GetX ! returns = self->GetX(); // push the result number lua_pushnumber(L, returns); --- 461,465 ---- wxMouseState * self = (wxMouseState *)wxlState.GetUserDataType(1, s_wxluatag_wxMouseState); // call GetX ! returns = (self->GetX()); // push the result number lua_pushnumber(L, returns); *************** *** 479,483 **** wxMouseState * self = (wxMouseState *)wxlState.GetUserDataType(1, s_wxluatag_wxMouseState); // call GetY ! returns = self->GetY(); // push the result number lua_pushnumber(L, returns); --- 479,483 ---- wxMouseState * self = (wxMouseState *)wxlState.GetUserDataType(1, s_wxluatag_wxMouseState); // call GetY ! returns = (self->GetY()); // push the result number lua_pushnumber(L, returns); *************** *** 497,501 **** wxMouseState * self = (wxMouseState *)wxlState.GetUserDataType(1, s_wxluatag_wxMouseState); // call LeftDown ! returns = self->LeftDown(); // push the result flag lua_pushboolean(L, returns); --- 497,501 ---- wxMouseState * self = (wxMouseState *)wxlState.GetUserDataType(1, s_wxluatag_wxMouseState); // call LeftDown ! returns = (self->LeftDown()); // push the result flag lua_pushboolean(L, returns); *************** *** 515,519 **** wxMouseState * self = (wxMouseState *)wxlState.GetUserDataType(1, s_wxluatag_wxMouseState); // call MetaDown ! returns = self->MetaDown(); // push the result flag lua_pushboolean(L, returns); --- 515,519 ---- wxMouseState * self = (wxMouseState *)wxlState.GetUserDataType(1, s_wxluatag_wxMouseState); // call MetaDown ! returns = (self->MetaDown()); // push the result flag lua_pushboolean(L, returns); *************** *** 533,537 **** wxMouseState * self = (wxMouseState *)wxlState.GetUserDataType(1, s_wxluatag_wxMouseState); // call MiddleDown ! returns = self->MiddleDown(); // push the result flag lua_pushboolean(L, returns); --- 533,537 ---- wxMouseState * self = (wxMouseState *)wxlState.GetUserDataType(1, s_wxluatag_wxMouseState); // call MiddleDown ! returns = (self->MiddleDown()); // push the result flag lua_pushboolean(L, returns); *************** *** 551,555 **** wxMouseState * self = (wxMouseState *)wxlState.GetUserDataType(1, s_wxluatag_wxMouseState); // call RightDown ! returns = self->RightDown(); // push the result flag lua_pushboolean(L, returns); --- 551,555 ---- wxMouseState * self = (wxMouseState *)wxlState.GetUserDataType(1, s_wxluatag_wxMouseState); // call RightDown ! returns = (self->RightDown()); // push the result flag lua_pushboolean(L, returns); *************** *** 722,726 **** wxMouseState * self = (wxMouseState *)wxlState.GetUserDataType(1, s_wxluatag_wxMouseState); // call ShiftDown ! returns = self->ShiftDown(); // push the result flag lua_pushboolean(L, returns); --- 722,726 ---- wxMouseState * self = (wxMouseState *)wxlState.GetUserDataType(1, s_wxluatag_wxMouseState); // call ShiftDown ! returns = (self->ShiftDown()); // push the result flag lua_pushboolean(L, returns); Index: wxlua.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/wxlua.cpp,v retrieving revision 1.43 retrieving revision 1.44 diff -C2 -d -r1.43 -r1.44 *** wxlua.cpp 14 Jun 2007 01:23:18 -0000 1.43 --- wxlua.cpp 14 Jun 2007 23:59:47 -0000 1.44 *************** *** 91,95 **** wxLuaPrintout * self = (wxLuaPrintout *)wxlState.GetUserDataType(1, s_wxluatag_wxLuaPrintout); // call TestVirtualFunctionBinding ! returns = self->TestVirtualFunctionBinding(val); // push the result string wxlState.lua_PushString(returns); --- 91,95 ---- wxLuaPrintout * self = (wxLuaPrintout *)wxlState.GetUserDataType(1, s_wxluatag_wxLuaPrintout); // call TestVirtualFunctionBinding ! returns = (self->TestVirtualFunctionBinding(val)); // push the result string wxlState.lua_PushString(returns); *************** *** 281,285 **** wxLuaHtmlWinTagEvent * self = (wxLuaHtmlWinTagEvent *)wxlState.GetUserDataType(1, s_wxluatag_wxLuaHtmlWinTagEvent); // call GetParseInnerCalled ! returns = self->GetParseInnerCalled(); // push the result flag lua_pushboolean(L, returns); --- 281,285 ---- wxLuaHtmlWinTagEvent * self = (wxLuaHtmlWinTagEvent *)wxlState.GetUserDataType(1, s_wxluatag_wxLuaHtmlWinTagEvent); // call GetParseInnerCalled ! returns = (self->GetParseInnerCalled()); // push the result flag lua_pushboolean(L, returns); *************** *** 364,368 **** wxLuaTreeItemData * self = (wxLuaTreeItemData *)wxlState.GetUserDataType(1, s_wxluatag_wxLuaTreeItemData); // call GetValue ! returns = self->GetValue(); // push the result number lua_pushnumber(L, returns); --- 364,368 ---- wxLuaTreeItemData * self = (wxLuaTreeItemData *)wxlState.GetUserDataType(1, s_wxluatag_wxLuaTreeItemData); // call GetValue ! returns = (self->GetValue()); // push the result number lua_pushnumber(L, returns); Index: image.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/image.cpp,v retrieving revision 1.44 retrieving revision 1.45 diff -C2 -d -r1.44 -r1.45 *** image.cpp 14 Jun 2007 01:23:15 -0000 1.44 --- image.cpp 14 Jun 2007 23:59:45 -0000 1.45 *************** *** 147,151 **** wxImage * self = (wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); // call ComputeHistogram ! returns = self->ComputeHistogram(*histogram); // push the result number lua_pushnumber(L, returns); --- 147,151 ---- wxImage * self = (wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); // call ComputeHistogram ! returns = (self->ComputeHistogram(*histogram)); // push the result number lua_pushnumber(L, returns); *************** *** 394,398 **** wxImage * self = (wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); // call GetAlpha ! returns = self->GetAlpha(x, y); // push the result number lua_pushnumber(L, returns); --- 394,398 ---- wxImage * self = (wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); // call GetAlpha ! returns = (self->GetAlpha(x, y)); // push the result number lua_pushnumber(L, returns); *************** *** 416,420 **** wxImage * self = (wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); // call GetBlue ! returns = self->GetBlue(x, y); // push the result number lua_pushnumber(L, returns); --- 416,420 ---- wxImage * self = (wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); // call GetBlue ! returns = (self->GetBlue(x, y)); // push the result number lua_pushnumber(L, returns); *************** *** 438,442 **** wxImage * self = (wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); // call GetGreen ! returns = self->GetGreen(x, y); // push the result number lua_pushnumber(L, returns); --- 438,442 ---- wxImage * self = (wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); // call GetGreen ! returns = (self->GetGreen(x, y)); // push the result number lua_pushnumber(L, returns); *************** *** 475,479 **** wxImage * self = (wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); // call GetHeight ! returns = self->GetHeight(); // push the result number lua_pushnumber(L, returns); --- 475,479 ---- wxImage * self = (wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); // call GetHeight ! returns = (self->GetHeight()); // push the result number lua_pushnumber(L, returns); *************** *** 499,503 **** wxInputStream * stream = (wxInputStream *)wxlState.GetUserDataType(1, s_wxluatag_wxInputStream); // call GetImageCount ! returns = wxImage::GetImageCount(*stream, type); // push the result number lua_pushnumber(L, returns); --- 499,503 ---- wxInputStream * stream = (wxInputStream *)wxlState.GetUserDataType(1, s_wxluatag_wxInputStream); // call GetImageCount ! returns = (wxImage::GetImageCount(*stream, type)); // push the result number lua_pushnumber(L, returns); *************** *** 523,527 **** const wxString filename = wxlState.GetwxStringType(1); // call GetImageCount ! returns = wxImage::GetImageCount(filename, type); // push the result number lua_pushnumber(L, returns); --- 523,527 ---- const wxString filename = wxlState.GetwxStringType(1); // call GetImageCount ! returns = (wxImage::GetImageCount(filename, type)); // push the result number lua_pushnumber(L, returns); *************** *** 538,542 **** wxString returns; // call GetImageExtWildcard ! returns = wxImage::GetImageExtWildcard(); // push the result string wxlState.lua_PushString(returns); --- 538,542 ---- wxString returns; // call GetImageExtWildcard ! returns = (wxImage::GetImageExtWildcard()); // push the result string wxlState.lua_PushString(returns); *************** *** 556,560 **** wxImage * self = (wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); // call GetMaskBlue ! returns = self->GetMaskBlue(); // push the result number lua_pushnumber(L, returns); --- 556,560 ---- wxImage * self = (wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); // call GetMaskBlue ! returns = (self->GetMaskBlue()); // push the result number lua_pushnumber(L, returns); *************** *** 574,578 **** wxImage * self = (wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); // call GetMaskGreen ! returns = self->GetMaskGreen(); // push the result number lua_pushnumber(L, returns); --- 574,578 ---- wxImage * self = (wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); // call GetMaskGreen ! returns = (self->GetMaskGreen()); // push the result number lua_pushnumber(L, returns); *************** *** 592,596 **** wxImage * self = (wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); // call GetMaskRed ! returns = self->GetMaskRed(); // push the result number lua_pushnumber(L, returns); --- 592,596 ---- wxImage * self = (wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); // call GetMaskRed ! returns = (self->GetMaskRed()); // push the result number lua_pushnumber(L, returns); *************** *** 612,616 **** wxImage * self = (wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); // call GetOption ! returns = self->GetOption(name); // push the result string wxlState.lua_PushString(returns); --- 612,616 ---- wxImage * self = (wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); // call GetOption ! returns = (self->GetOption(name)); // push the result string wxlState.lua_PushString(returns); *************** *** 632,636 **** wxImage * self = (wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); // call GetOptionInt ! returns = self->GetOptionInt(name); // push the result number lua_pushnumber(L, returns); --- 632,636 ---- wxImage * self = (wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); // call GetOptionInt ! returns = (self->GetOptionInt(name)); // push the result number lua_pushnumber(L, returns); *************** *** 703,707 **** wxImage * self = (wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); // call GetRed ! returns = self->GetRed(x, y); // push the result number lua_pushnumber(L, returns); --- 703,707 ---- wxImage * self = (wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); // call GetRed ! returns = (self->GetRed(x, y)); // push the result number lua_pushnumber(L, returns); *************** *** 748,752 **** wxImage * self = (wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); // call GetWidth ! returns = self->GetWidth(); // push the result number lua_pushnumber(L, returns); --- 748,752 ---- wxImage * self = (wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); // call GetWidth ! returns = (self->GetWidth()); // push the result number lua_pushnumber(L, returns); *************** *** 793,797 **** wxImage * self = (wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); // call HasAlpha ! returns = self->HasAlpha(); // push the result flag lua_pushboolean(L, returns); --- 793,797 ---- wxImage * self = (wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); // call HasAlpha ! returns = (self->HasAlpha()); // push the result flag lua_pushboolean(L, returns); *************** *** 811,815 **** wxImage * self = (wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); // call HasMask ! returns = self->HasMask(); // push the result flag lua_pushboolean(L, returns); --- 811,815 ---- wxImage * self = (wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); // call HasMask ! returns = (self->HasMask()); // push the result flag lua_pushboolean(L, returns); *************** *** 831,835 **** wxImage * self = (wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); // call HasOption ! returns = self->HasOption(name); // push the result number lua_pushnumber(L, returns); --- 831,835 ---- wxImage * self = (wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); // call HasOption ! returns = (self->HasOption(name)); // push the result number lua_pushnumber(L, returns); *************** *** 898,902 **** wxImage * self = (wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); // call IsTransparent ! returns = self->IsTransparent(x, y, threshold); // push the result flag lua_pushboolean(L, returns); --- 898,902 ---- wxImage * self = (wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); // call IsTransparent ! returns = (self->IsTransparent(x, y, threshold)); // push the result flag lua_pushboolean(L, returns); *************** *** 926,930 **** wxImage * self = (wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); // call LoadFile ! returns = self->LoadFile(*stream, type, index); // push the result flag lua_pushboolean(L, returns); --- 926,930 ---- wxImage * self = (wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); // call LoadFile ! returns = (self->LoadFile(*stream, type, index)); // push the result flag lua_pushboolean(L, returns); *************** *** 950,954 **** wxImage * self = (wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); // call LoadFile ! returns = self->LoadFile(name, mimetype); // push the result flag lua_pushboolean(L, returns); --- 950,954 ---- wxImage * self = (wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); // call LoadFile ! returns = (self->LoadFile(name, mimetype)); // push the result flag lua_pushboolean(L, returns); *************** *** 974,978 **** wxImage * self = (wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); // call LoadFile ! returns = self->LoadFile(name, type); // push the result flag lua_pushboolean(L, returns); --- 974,978 ---- wxImage * self = (wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); // call LoadFile ! returns = (self->LoadFile(name, type)); // push the result flag lua_pushboolean(L, returns); *************** *** 1017,1021 **** wxImage * self = (wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); // call Ok ! returns = self->Ok(); // push the result flag lua_pushboolean(L, returns); --- 1017,1021 ---- wxImage * self = (wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); // call Ok ! returns = (self->Ok()); // push the result flag lua_pushboolean(L, returns); *************** *** 1062,1066 **** const wxString name = wxlState.GetwxStringType(1); // call RemoveHandler ! returns = wxImage::RemoveHandler(name); // push the result flag lua_pushboolean(L, returns); --- 1062,1066 ---- const wxString name = wxlState.GetwxStringType(1); // call RemoveHandler ! returns = (wxImage::RemoveHandler(name)); // push the result flag lua_pushboolean(L, returns); *************** *** 1322,1326 **** wxImage * self = (wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); // call SaveFile ! returns = self->SaveFile(name, mimetype); // push the result flag lua_pushboolean(L, returns); --- 1322,1326 ---- wxImage * self = (wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); // call SaveFile ! returns = (self->SaveFile(name, mimetype)); // push the result flag lua_pushboolean(L, returns); *************** *** 1344,1348 **** wxImage * self = (wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); // call SaveFile ! returns = self->SaveFile(name, type); // push the result flag lua_pushboolean(L, returns); --- 1344,1348 ---- wxImage * self = (wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); // call SaveFile ! returns = (self->SaveFile(name, type)); // push the result flag lua_pushboolean(L, returns); *************** *** 1364,1368 **** wxImage * self = (wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); // call SaveFile ! returns = self->SaveFile(name); // push the result flag lua_pushboolean(L, returns); --- 1364,1368 ---- wxImage * self = (wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); // call SaveFile ! returns = (self->SaveFile(name)); // push the result flag lua_pushboolean(L, returns); *************** *** 1562,1566 **** wxImage * self = (wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); // call SetMaskFromImage ! returns = self->SetMaskFromImage(*mask, mr, mg, mb); // push the result flag lua_pushboolean(L, returns); --- 1562,1566 ---- wxImage * self = (wxImage *)wxlState.GetUserDataType(1, s_wxluatag_wxImage); // call SetMaskFromImage ! returns = (self->SetMaskFromImage(*mask, mr, mg, mb)); // push the result flag lua_pushboolean(L, returns); *************** *** 2481,2485 **** wxImageHistogram::iterator * self = (wxImageHistogram::iterator *)wxlState.GetUserDataType(1, s_wxluatag_wxImageHistogram_iterator); // call op_eq ! returns = (*self)==(*other); // push the result flag lua_pushboolean(L, returns); --- 2481,2485 ---- wxImageHistogram::iterator * self = (wxImageHistogram::iterator *)wxlState.GetUserDataType(1, s_wxluatag_wxImageHistogram_iterator); // call op_eq ! returns = ((*self)==(*other)); // push the result flag lua_pushboolean(L, returns); *************** *** 2553,2557 **** unsigned char r = (char)wxlua_getnumbertype(L, 1); // call MakeKey ! returns = wxImageHistogram::MakeKey(r, g, b); // push the result number lua_pushnumber(L, returns); --- 2553,2557 ---- unsigned char r = (char)wxlua_getnumbertype(L, 1); // call MakeKey ! returns = (wxImageHistogram::MakeKey(r, g, b)); // push the result number lua_pushnumber(L, returns); *************** *** 2609,2613 **** wxImageHistogram * self = (wxImageHistogram *)wxlState.GetUserDataType(1, s_wxluatag_wxImageHistogram); // call count ! returns = self->count(key); // push the result number lua_pushnumber(L, returns); --- 2609,2613 ---- wxImageHistogram * self = (wxImageHistogram *)wxlState.GetUserDataType(1, s_wxluatag_wxImageHistogram); // call count ! returns = (self->count(key)); // push the result number lua_pushnumber(L, returns); *************** *** 2627,2631 **** wxImageHistogram * self = (wxImageHistogram *)wxlState.GetUserDataType(1, s_wxluatag_wxImageHistogram); // call empty ! returns = self->empty(); // push the result flag lua_pushboolean(L, returns); --- 2627,2631 ---- wxImageHistogram * self = (wxImageHistogram *)wxlState.GetUserDataType(1, s_wxluatag_wxImageHistogram); // call empty ! returns = (self->empty()); // push the result flag lua_pushboolean(L, returns); *************** *** 2668,2672 **** wxImageHistogram * self = (wxImageHistogram *)wxlState.GetUserDataType(1, s_wxluatag_wxImageHistogram); // call erase ! returns = self->erase(key); // push the result number lua_pushnumber(L, returns); --- 2668,2672 ---- wxImageHistogram * self = (wxImageHistogram *)wxlState.GetUserDataType(1, s_wxluatag_wxImageHistogram); // call erase ! returns = (self->erase(key)); // push the result number lua_pushnumber(L, returns); *************** *** 2709,2713 **** wxImageHistogram * self = (wxImageHistogram *)wxlState.GetUserDataType(1, s_wxluatag_wxImageHistogram); // call size ! returns = self->size(); // push the result number lua_pushnumber(L, returns); --- 2709,2713 ---- wxImageHistogram * self = (wxImageHistogram *)wxlState.GetUserDataType(1, s_wxluatag_wxImageHistogram); // call size ! returns = (self->size()); // push the result number lua_pushnumber(L, returns); *************** *** 2775,2779 **** wxImageHandler * self = (wxImageHandler *)wxlState.GetUserDataType(1, s_wxluatag_wxImageHandler); // call GetExtension ! returns = self->GetExtension(); // push the result string wxlState.lua_PushString(returns); --- 2775,2779 ---- wxImageHandler * self = (wxImageHandler *)wxlState.GetUserDataType(1, s_wxluatag_wxImageHandler); // call GetExtension ! returns = (self->GetExtension()); // push the result string wxlState.lua_PushString(returns); *************** *** 2797,2801 **** wxImageHandler * self = (wxImageHandler *)wxlState.GetUserDataType(1, s_wxluatag_wxImageHandler); // call GetImageCount ! returns = self->GetImageCount(*stream); // push the result number lua_pushnumber(L, returns); --- 2797,2801 ---- wxImageHandler * self = (wxImageHandler *)wxlState.GetUserDataType(1, s_wxluatag_wxImageHandler); // call GetImageCount ! returns = (self->GetImageCount(*stream)); // push the result number lua_pushnumber(L, returns); *************** *** 2817,2821 **** wxImageHandler * self = (wxImageHandler *)wxlState.GetUserDataType(1, s_wxluatag_wxImageHandler); // call GetMimeType ! returns = self->GetMimeType(); // push the result string wxlState.lua_PushString(returns); --- 2817,2821 ---- wxImageHandler * self = (wxImageHandler *)wxlState.GetUserDataType(1, s_wxluatag_wxImageHandler); // call GetMimeType ! returns = (self->GetMimeType()); // push the result string wxlState.lua_PushString(returns); *************** *** 2835,2839 **** wxImageHandler * self = (wxImageHandler *)wxlState.GetUserDataType(1, s_wxluatag_wxImageHandler); // call GetName ! returns = self->GetName(); // push the result string wxlState.lua_PushString(returns); --- 2835,2839 ---- wxImageHandler * self = (wxImageHandler *)wxlState.GetUserDataType(1, s_wxluatag_wxImageHandler); // call GetName ! returns = (self->GetName()); // push the result string wxlState.lua_PushString(returns); *************** *** 2853,2857 **** wxImageHandler * self = (wxImageHandler *)wxlState.GetUserDataType(1, s_wxluatag_wxImageHandler); // call GetType ! returns = self->GetType(); // push the result number lua_pushnumber(L, returns); --- 2853,2857 ---- wxImageHandler * self = (wxImageHandler *)wxlState.GetUserDataType(1, s_wxluatag_wxImageHandler); // call GetType ! returns = (self->GetType()); // push the result number lua_pushnumber(L, returns); *************** *** 2883,2887 **** wxImageHandler * self = (wxImageHandler *)wxlState.GetUserDataType(1, s_wxluatag_wxImageHandler); // call LoadFile ! returns = self->LoadFile(image, *stream, verbose, index); // push the result flag lua_pushboolean(L, returns); --- 2883,2887 ---- wxImageHandler * self = (wxImageHandler *)wxlState.GetUserDataType(1, s_wxluatag_wxImageHandler); // call LoadFile ! returns = (self->LoadFile(image, *stream, verbose, index)); // push the result flag lua_pushboolean(L, returns); *************** *** 2905,2909 **** wxImageHandler * self = (wxImageHandler *)wxlState.GetUserDataType(1, s_wxluatag_wxImageHandler); // call SaveFile ! returns = self->SaveFile(image, *stream); // push the result flag lua_pushboolean(L, returns); --- 2905,2909 ---- wxImageHandler * self = (wxImageHandler *)wxlState.GetUserDataType(1, s_wxluatag_wxImageHandler); // call SaveFile ! returns = (self->SaveFile(image, *stream)); // push the result flag lua_pushboolean(L, returns); *************** *** 3585,3589 **** wxArtProvider * provider = (wxArtProvider *)wxlState.GetUserDataType(1, s_wxluatag_wxArtProvider); // call Delete ! returns = wxArtProvider::Delete(provider); // push the result flag lua_pushboolean(L, returns); --- 3585,3589 ---- wxArtProvider * provider = (wxArtProvider *)wxlState.GetUserDataType(1, s_wxluatag_wxArtProvider); // call Delete ! returns = (wxArtProvider::Delete(provider)); // push the result flag lua_pushboolean(L, returns); *************** *** 3708,3712 **** bool returns; // call Pop ! returns = wxArtProvider::Pop(); // push the result flag lua_pushboolean(L, returns); --- 3708,3712 ---- bool returns; // call Pop ! returns = (wxArtProvider::Pop()); // push the result flag lua_pushboolean(L, returns); *************** *** 3744,3748 **** wxArtProvider * provider = (wxArtProvider *)wxlState.GetUserDataType(1, s_wxluatag_wxArtProvider); // call Remove ! returns = wxArtProvider::Remove(provider); // push the result flag lua_pushboolean(L, returns); --- 3744,3748 ---- wxArtProvider * provider = (wxArtProvider *)wxlState.GetUserDataType(1, s_wxluatag_wxArtProvider); // call Remove ! returns = (wxArtProvider::Remove(provider)); // push the result flag lua_pushboolean(L, returns); Index: mdi.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/mdi.cpp,v retrieving revision 1.39 retrieving revision 1.40 diff -C2 -d -r1.39 -r1.40 *** mdi.cpp 13 Jun 2007 04:15:26 -0000 1.39 --- mdi.cpp 14 Jun 2007 23:59:45 -0000 1.40 *************** *** 144,148 **** wxMDIParentFrame * self = (wxMDIParentFrame *)wxlState.GetUserDataType(1, s_wxluatag_wxMDIParentFrame); // call Create ! returns = self->Create(parent, id, title, *pos, *size, style, name); // push the result flag lua_pushboolean(L, returns); --- 144,148 ---- wxMDIParentFrame * self = (wxMDIParentFrame *)wxlState.GetUserDataType(1, s_wxluatag_wxMDIParentFrame); // call Create ! returns = (self->Create(parent, id, title, *pos, *size, style, name)); // push the result flag lua_pushboolean(L, returns); *************** *** 415,419 **** wxMDIChildFrame * self = (wxMDIChildFrame *)wxlState.GetUserDataType(1, s_wxluatag_wxMDIChildFrame); // call Create ! returns = self->Create(parent, id, title, *pos, *size, style, name); // push the result flag lua_pushboolean(L, returns); --- 415,419 ---- wxMDIChildFrame * self = (wxMDIChildFrame *)wxlState.GetUserDataType(1, s_wxluatag_wxMDIChildFrame); // call Create ! returns = (self->Create(parent, id, title, *pos, *size, style, name)); // push the result flag lua_pushboolean(L, returns); *************** *** 828,832 **** wxDocManager * self = (wxDocManager *)wxlState.GetUserDataType(1, s_wxluatag_wxDocManager); // call CloseDocuments ! returns = self->CloseDocuments(force); // push the result flag lua_pushboolean(L, returns); --- 828,832 ---- wxDocManager * self = (wxDocManager *)wxlState.GetUserDataType(1, s_wxluatag_wxDocManager); // call CloseDocuments ! returns = (self->CloseDocuments(force)); // push the result flag lua_pushboolean(L, returns); *************** *** 1127,1131 **** wxDocManager * self = (wxDocManager *)wxlState.GetUserDataType(1, s_wxluatag_wxDocManager); // call GetHistoryFilesCount ! returns = self->GetHistoryFilesCount(); // push the result number lua_pushnumber(L, returns); --- 1127,1131 ---- wxDocManager * self = (wxDocManager *)wxlState.GetUserDataType(1, s_wxluatag_wxDocManager); // call GetHistoryFilesCount ! returns = (self->GetHistoryFilesCount()); // push the result number lua_pushnumber(L, returns); *************** *** 1147,1151 **** wxDocManager * self = (wxDocManager *)wxlState.GetUserDataType(1, s_wxluatag_wxDocManager); // call GetLastDirectory ! returns = self->GetLastDirectory(); // push the result string wxlState.lua_PushString(returns); --- 1147,1151 ---- wxDocManager * self = (wxDocManager *)wxlState.GetUserDataType(1, s_wxluatag_wxDocManager); // call GetLastDirectory ! returns = (self->GetLastDirectory()); // push the result string wxlState.lua_PushString(returns); *************** *** 1165,1169 **** wxDocManager * self = (wxDocManager *)wxlState.GetUserDataType(1, s_wxluatag_wxDocManager); // call GetMaxDocsOpen ! returns = self->GetMaxDocsOpen(); // push the result number lua_pushnumber(L, returns); --- 1165,1169 ---- wxDocManager * self = (wxDocManager *)wxlState.GetUserDataType(1, s_wxluatag_wxDocManager); // call GetMaxDocsOpen ! returns = (self->GetMaxDocsOpen()); // push the result number lua_pushnumber(L, returns); *************** *** 1185,1189 **** wxDocManager * self = (wxDocManager *)wxlState.GetUserDataType(1, s_wxluatag_wxDocManager); // call GetNoHistoryFiles ! returns = self->GetNoHistoryFiles(); // push the result number lua_pushnumber(L, returns); --- 1185,1189 ---- wxDocManager * self = (wxDocManager *)wxlState.GetUserDataType(1, s_wxluatag_wxDocManager); // call GetNoHistoryFiles ! returns = (self->GetNoHistoryFiles()); // push the result number lua_pushnumber(L, returns); *************** *** 1229,1233 **** wxDocManager * self = (wxDocManager *)wxlState.GetUserDataType(1, s_wxluatag_wxDocManager); // call Initialize ! returns = self->Initialize(); // push the result flag lua_pushboolean(L, returns); --- 1229,1233 ---- wxDocManager * self = (wxDocManager *)wxlState.GetUserDataType(1, s_wxluatag_wxDocManager); // call Initialize ! returns = (self->Initialize()); // push the result flag lua_pushboolean(L, returns); *************** *** 1747,1751 **** wxDocTemplate * self = (wxDocTemplate *)wxlState.GetUserDataType(1, s_wxluatag_wxDocTemplate); // call GetDefaultExtension ! returns = self->GetDefaultExtension(); // push the result string wxlState.lua_PushString(returns); --- 1747,1751 ---- wxDocTemplate * self = (wxDocTemplate *)wxlState.GetUserDataType(1, s_wxluatag_wxDocTemplate); // call GetDefaultExtension ! returns = (self->GetDefaultExtension()); // push the result string wxlState.lua_PushString(returns); *************** *** 1765,1769 **** wxDocTemplate * self = (wxDocTemplate *)wxlState.GetUserDataType(1, s_wxluatag_wxDocTemplate); // call GetDescription ! returns = self->GetDescription(); // push the result string wxlState.lua_PushString(returns); --- 1765,1769 ---- wxDocTemplate * self = (wxDocTemplate *)wxlState.GetUserDataType(1, s_wxluatag_wxDocTemplate); // call GetDescription ! returns = (self->GetDescription()); // push the result string wxlState.lua_PushString(returns); *************** *** 1783,1787 **** wxDocTemplate * self = (wxDocTemplate *)wxlState.GetUserDataType(1, s_wxluatag_wxDocTemplate); // call GetDirectory ! returns = self->GetDirectory(); // push the result string wxlState.lua_PushString(returns); --- 1783,1787 ---- wxDocTemplate * self = (wxDocTemplate *)wxlState.GetUserDataType(1, s_wxluatag_wxDocTemplate); // call GetDirectory ! returns = (self->GetDirectory()); // push the result string wxlState.lua_PushString(returns); *************** *** 1819,1823 **** wxDocTemplate * self = (wxDocTemplate *)wxlState.GetUserDataType(1, s_wxluatag_wxDocTemplate); // call GetDocumentName ! returns = self->GetDocumentName(); // push the result string wxlState.lua_PushString(returns); --- 1819,1823 ---- wxDocTemplate * self = (wxDocTemplate *)wxlState.GetUserDataType(1, s_wxluatag_wxDocTemplate); // call GetDocumentName ! returns = (self->GetDocumentName()); // push the result string wxlState.lua_PushString(returns); *************** *** 1837,1841 **** wxDocTemplate * self = (wxDocTemplate *)wxlState.GetUserDataType(1, s_wxluatag_wxDocTemplate); // call GetFileFilter ! returns = self->GetFileFilter(); // push the result string wxlState.lua_PushString(returns); --- 1837,1841 ---- wxDocTemplate * self = (wxDocTemplate *)wxlState.GetUserDataType(1, s_wxluatag_wxDocTemplate); // call GetFileFilter ! returns = (self->GetFileFilter()); // push the result string wxlState.lua_PushString(returns); *************** *** 1855,1859 **** wxDocTemplate * self = (wxDocTemplate *)wxlState.GetUserDataType(1, s_wxluatag_wxDocTemplate); // call GetFlags ! returns = self->GetFlags(); // push the result number lua_pushnumber(L, returns); --- 1855,1859 ---- wxDocTemplate * self = (wxDocTemplate *)wxlState.GetUserDataType(1, s_wxluatag_wxDocTemplate); // call GetFlags ! returns = (self->GetFlags()); // push the result number lua_pushnumber(L, returns); *************** *** 1873,1877 **** wxDocTemplate * self = (wxDocTemplate *)wxlState.GetUserDataType(1, s_wxluatag_wxDocTemplate); // call GetViewName ! returns = self->GetViewName(); // push the result string wxlState.lua_PushString(returns); --- 1873,1877 ---- wxDocTemplate * self = (wxDocTemplate *)wxlState.GetUserDataType(1, s_wxluatag_wxDocTemplate); // call GetViewName ! returns = (self->GetViewName()); // push the result string wxlState.lua_PushString(returns); *************** *** 1899,1903 **** wxDocTemplate * self = (wxDocTemplate *)wxlState.GetUserDataType(1, s_wxluatag_wxDocTemplate); // call InitDocument ! returns = self->InitDocument(doc, path, flags); // push the result flag lua_pushboolean(L, returns); --- 1899,1903 ---- wxDocTemplate * self = (wxDocTemplate *)wxlState.GetUserDataType(1, s_wxluatag_wxDocTemplate); // call InitDocument ! returns = (self->InitDocument(doc, path, flags)); // push the result flag lua_pushboolean(L, returns); *************** *** 1917,1921 **** wxDocTemplate * self = (wxDocTemplate *)wxlState.GetUserDataType(1, s_wxluatag_wxDocTemplate); // call IsVisible ! returns = self->IsVisible(); // push the result flag lua_pushboolean(L, returns); --- 1917,1921 ---- wxDocTemplate * self = (wxDocTemplate *)wxlState.GetUserDataType(1, s_wxluatag_wxDocTemplate); // call IsVisible ! returns = (self->IsVisible()); // push the result flag lua_pushboolean(L, returns); *************** *** 2127,2131 **** wxDocument * self = (wxDocument *)wxlState.GetUserDataType(1, s_wxluatag_wxDocument); // call AddView ! returns = self->AddView(view); // push the result flag lua_pushboolean(L, returns); --- 2127,2131 ---- wxDocument * self = (wxDocument *)wxlState.GetUserDataType(1, s_wxluatag_wxDocument); // call AddView ! returns = (self->AddView(view)); // push the result flag lua_pushboolean(L, returns); *************** *** 2145,2149 **** wxDocument * self = (wxDocument *)wxlState.GetUserDataType(1, s_wxluatag_wxDocument); // call Close ! returns = self->Close(); // push the result flag lua_pushboolean(L, returns); --- 2145,2149 ---- wxDocument * self = (wxDocument *)wxlState.GetUserDataType(1, s_wxluatag_wxDocument); // call Close ! returns = (self->Close()); // push the result flag lua_pushboolean(L, returns); *************** *** 2163,2167 **** wxDocument * self = (wxDocument *)wxlState.GetUserDataType(1, s_wxluatag_wxDocument); // call DeleteAllViews ! returns = self->DeleteAllViews(); // push the result flag lua_pushboolean(L, returns); --- 2163,2167 ---- wxDocument * self = (wxDocument *)wxlState.GetUserDataType(1, s_wxluatag_wxDocument); // call DeleteAllViews ! returns = (self->DeleteAllViews()); // push the result flag lua_pushboolean(L, returns); *************** *** 2221,2225 **** wxDocument * self = (wxDocument *)wxlState.GetUserDataType(1, s_wxluatag_wxDocument); // call GetDocumentName ! returns = self->GetDocumentName(); // push the result string wxlState.lua_PushString(returns); --- 2221,2225 ---- wxDocument * self = (wxDocument *)wxlState.GetUserDataType(1, s_wxluatag_wxDocument); // call GetDocumentName ! returns = (self->GetDocumentName()); // push the result string wxlState.lua_PushString(returns); *************** *** 2275,2279 **** wxDocument * self = (wxDocument *)wxlState.GetUserDataType(1, s_wxluatag_wxDocument); // call GetFilename ! returns = self->GetFilename(); // push the result string wxlState.lua_PushString(returns); --- 2275,2279 ---- wxDocument * self = (wxDocument *)wxlState.GetUserDataType(1, s_wxluatag_wxDocument); // call GetFilename ! returns = (self->GetFilename()); // push the result string wxlState.lua_PushString(returns); *************** *** 2331,2335 **** wxDocument * self = (wxDocument *)wxlState.GetUserDataType(1, s_wxluatag_wxDocument); // call GetTitle ! returns = self->GetTitle(); // push the result string wxlState.lua_PushString(returns); --- 2331,2335 ---- wxDocument * self = (wxDocument *)wxlState.GetUserDataType(1, s_wxluatag_wxDocument); // call GetTitle ! returns = (self->GetTitle()); // push the result string wxlState.lua_PushString(returns); *************** *** 2374,2378 **** wxDocument * self = (wxDocument *)wxlState.GetUserDataType(1, s_wxluatag_wxDocument); // call IsModified ! returns = self->IsModified(); // push the result flag lua_pushboolean(L, returns); --- 2374,2378 ---- wxDocument * self = (wxDocument *)wxlState.GetUserDataType(1, s_wxluatag_wxDocument); // call IsModified ! returns = (self->IsModified()); // push the result flag lua_pushboolean(L, returns); *************** *** 2424,2428 **** wxDocument * self = (wxDocument *)wxlState.GetUserDataType(1, s_wxluatag_wxDocument); // call OnCloseDocument ! returns = self->OnCloseDocument(); // push the result flag lua_pushboolean(L, returns); --- 2424,2428 ---- wxDocument * self = (wxDocument *)wxlState.GetUserDataType(1, s_wxluatag_wxDocument); // call OnCloseDocument ! returns = (self->OnCloseDocument()); // push the result flag lua_pushboolean(L, returns); *************** *** 2446,2450 **** wxDocument * self = (wxDocument *)wxlState.GetUserDataType(1, s_wxluatag_wxDocument); // call OnCreate ! returns = self->OnCreate(path, flags); // push the result flag lua_pushboolean(L, returns); --- 2446,2450 ---- wxDocument * self = (wxDocument *)wxlState.GetUserDataType(1, s_wxluatag_wxDocument); // call OnCreate ! returns = (self->OnCreate(path, flags)); // push the result flag lua_pushboolean(L, returns); *************** *** 2486,2490 **** wxDocument * self = (wxDocument *)wxlState.GetUserDataType(1, s_wxluatag_wxDocument); // call OnNewDocument ! returns = self->OnNewDocument(); // push the result flag lua_pushboolean(L, returns); --- 2486,2490 ---- wxDocument * self = (wxDocument *)wxlState.GetUserDataType(1, s_wxluatag_wxDocument); // call OnNewDocument ! returns = (self->OnNewDocument()); // push the result flag lua_pushboolean(L, returns); *************** *** 2506,2510 **** wxDocument * self = (wxDocument *)wxlState.GetUserDataType(1, s_wxluatag_wxDocument); // call OnOpenDocument ! returns = self->OnOpenDocument(filename); // push the result flag lua_pushboolean(L, returns); --- 2506,2510 ---- wxDocument * self = (wxDocument *)wxlState.GetUserDataType(1, s_wxluatag_wxDocument); // call OnOpenDocument ! returns = (self->OnOpenDocument(filename)); // push the result flag lua_pushboolean(L, returns); *************** *** 2526,2530 **** wxDocument * self = (wxDocument *)wxlState.GetUserDataType(1, s_wxluatag_wxDocument); // call OnSaveDocument ! returns = self->OnSaveDocument(filename); // push the result flag lua_pushboolean(L, returns); --- 2526,2530 ---- wxDocument * self = (wxDocument *)wxlState.GetUserDataType(1, s_wxluatag_wxDocument); // call OnSaveDocument ! returns = (self->OnSaveDocument(filename)); // push the result flag lua_pushboolean(L, returns); *************** *** 2544,2548 **** wxDocument * self = (wxDocument *)wxlState.GetUserDataTyp... [truncated message content] |