Update of /cvsroot/wxlua/wxLua/modules/wxbind/src In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv12639/wxLua/modules/wxbind/src Modified Files: Makefile 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 html.cpp image.cpp menutool.cpp print.cpp regex.cpp sizer.cpp wave.cpp windows.cpp wx_bind.cpp xml.cpp Added Files: picker.cpp Log Message: Add picker.i for all of the wxPicker controls Change WXLUA_DECLARE_ENCAPSULATION to prepend wxLua_ to it for clarity. Index: xml.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/xml.cpp,v retrieving revision 1.39 retrieving revision 1.40 diff -C2 -d -r1.39 -r1.40 *** xml.cpp 14 Jun 2007 23:59:47 -0000 1.39 --- xml.cpp 17 Jun 2007 18:36:27 -0000 1.40 *************** *** 501,505 **** returns = new wxXmlNode(parent, type, name, content, props, next); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxXmlNode((wxXmlNode *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxXmlNode, returns); --- 501,505 ---- returns = new wxXmlNode(parent, type, name, content, props, next); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxXmlNode((wxXmlNode *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxXmlNode, returns); *************** *** 528,532 **** returns = new wxXmlNode(type, name, content); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxXmlNode((wxXmlNode *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxXmlNode, returns); --- 528,532 ---- returns = new wxXmlNode(type, name, content); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxXmlNode((wxXmlNode *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxXmlNode, returns); *************** *** 546,550 **** returns = new wxXmlNode(); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxXmlNode((wxXmlNode *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxXmlNode, returns); --- 546,550 ---- returns = new wxXmlNode(); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxXmlNode((wxXmlNode *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxXmlNode, returns); *************** *** 803,807 **** returns = new wxXmlProperty(name, value, next); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxXmlProperty((wxXmlProperty *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxXmlProperty, returns); --- 803,807 ---- returns = new wxXmlProperty(name, value, next); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxXmlProperty((wxXmlProperty *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxXmlProperty, returns); *************** *** 821,825 **** returns = new wxXmlProperty(); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxXmlProperty((wxXmlProperty *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxXmlProperty, returns); --- 821,825 ---- returns = new wxXmlProperty(); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxXmlProperty((wxXmlProperty *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxXmlProperty, returns); Index: Makefile =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/Makefile,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** Makefile 12 Jun 2007 05:03:16 -0000 1.14 --- Makefile 17 Jun 2007 18:36:13 -0000 1.15 *************** *** 78,81 **** --- 78,82 ---- ../../../modules/wxbind/src/mdi.cpp \ ../../../modules/wxbind/src/menutool.cpp \ + ../../../modules/wxbind/src/picker.cpp \ ../../../modules/wxbind/src/print.cpp \ ../../../modules/wxbind/src/regex.cpp \ Index: defsutil.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/defsutil.cpp,v retrieving revision 1.41 retrieving revision 1.42 diff -C2 -d -r1.41 -r1.42 *** defsutil.cpp 14 Jun 2007 23:59:43 -0000 1.41 --- defsutil.cpp 17 Jun 2007 18:36:17 -0000 1.42 *************** *** 337,341 **** returns = new wxProcess(parent, nId); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxProcess((wxProcess *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxProcess, returns); --- 337,341 ---- returns = new wxProcess(parent, nId); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxProcess((wxProcess *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxProcess, returns); *************** *** 756,760 **** returns = new wxMouseState(); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxMouseState((wxMouseState *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxMouseState, returns); --- 756,760 ---- returns = new wxMouseState(); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxMouseState((wxMouseState *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxMouseState, returns); *************** *** 843,847 **** returns = new wxBusyCursor(cursor); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxBusyCursor((wxBusyCursor *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxBusyCursor, returns); --- 843,847 ---- returns = new wxBusyCursor(cursor); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxBusyCursor((wxBusyCursor *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxBusyCursor, returns); Index: image.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/image.cpp,v retrieving revision 1.45 retrieving revision 1.46 diff -C2 -d -r1.45 -r1.46 *** image.cpp 14 Jun 2007 23:59:45 -0000 1.45 --- image.cpp 17 Jun 2007 18:36:24 -0000 1.46 *************** *** 2574,2578 **** returns = new wxImageHistogram::iterator(self->begin()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxImageHistogram_iterator((wxImageHistogram::iterator *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxImageHistogram_iterator, returns); --- 2574,2578 ---- returns = new wxImageHistogram::iterator(self->begin()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxImageHistogram_iterator((wxImageHistogram::iterator *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxImageHistogram_iterator, returns); *************** *** 2648,2652 **** returns = new wxImageHistogram::iterator(self->end()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxImageHistogram_iterator((wxImageHistogram::iterator *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxImageHistogram_iterator, returns); --- 2648,2652 ---- returns = new wxImageHistogram::iterator(self->end()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxImageHistogram_iterator((wxImageHistogram::iterator *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxImageHistogram_iterator, returns); *************** *** 2691,2695 **** returns = new wxImageHistogram::iterator(self->find(key)); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxImageHistogram_iterator((wxImageHistogram::iterator *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxImageHistogram_iterator, returns); --- 2691,2695 ---- returns = new wxImageHistogram::iterator(self->find(key)); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxImageHistogram_iterator((wxImageHistogram::iterator *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxImageHistogram_iterator, returns); *************** *** 3673,3677 **** returns = new wxSize(wxArtProvider::GetSizeHint(client, platform_dependent)); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxSize((wxSize *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxSize, returns); --- 3673,3677 ---- returns = new wxSize(wxArtProvider::GetSizeHint(client, platform_dependent)); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxSize((wxSize *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxSize, returns); --- NEW FILE: picker.cpp --- // --------------------------------------------------------------------------- // This file was generated by genwxbind.lua // // Any changes made to this file may be lost when file is regenerated. // --------------------------------------------------------------------------- #ifdef __BORLANDC__ #pragma hdrstop #endif #include "wx/wxprec.h" #ifndef WX_PRECOMP #include "wx/wx.h" #endif #include "wxlua/include/wxlstate.h" #include "wxbind/include/wxbind.h" [...1432 lines suppressed...] // Map Lua Class Methods to C Binding Functions wxLuaBindMethod wxFontPickerEvent_methods[] = { #if ((wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL) && (wxchkver_2_8 && wxLUA_USE_wxPicker)) && (wxLUA_USE_wxFont) { "GetFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontPickerEvent_GetFont, 1, NULL }, { "SetFont", WXLUAMETHOD_METHOD, s_wxluafunc_wxLua_wxFontPickerEvent_SetFont, 1, NULL }, #endif // ((wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL) && (wxchkver_2_8 && wxLUA_USE_wxPicker)) && (wxLUA_USE_wxFont) { "delete", WXLUAMETHOD_METHOD|WXLUAMETHOD_DELETE, s_wxluafunc_wxLua_wxFontPickerEvent_delete, 1, NULL }, #if ((wxLUA_USE_wxFont) && (wxLUA_USE_wxObject)) && ((wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL) && (wxchkver_2_8 && wxLUA_USE_wxPicker)) { "wxFontPickerEvent", WXLUAMETHOD_CONSTRUCTOR, s_wxluafunc_wxLua_wxFontPickerEvent_constructor, 1, NULL }, #endif // ((wxLUA_USE_wxFont) && (wxLUA_USE_wxObject)) && ((wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL) && (wxchkver_2_8 && wxLUA_USE_wxPicker)) { 0, 0, 0, 0 }, }; int wxFontPickerEvent_methodCount = sizeof(wxFontPickerEvent_methods)/sizeof(wxLuaBindMethod) - 1; #endif // (wxLUA_USE_wxFontPickerCtrl && wxUSE_FONTPICKERCTRL) && (wxchkver_2_8 && wxLUA_USE_wxPicker) Index: windows.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/windows.cpp,v retrieving revision 1.61 retrieving revision 1.62 diff -C2 -d -r1.61 -r1.62 *** windows.cpp 16 Jun 2007 06:21:45 -0000 1.61 --- windows.cpp 17 Jun 2007 18:36:26 -0000 1.62 *************** *** 65,69 **** returns = new wxWindowDisabler(winToSkip); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxWindowDisabler((wxWindowDisabler *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxWindowDisabler, returns); --- 65,69 ---- returns = new wxWindowDisabler(winToSkip); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxWindowDisabler((wxWindowDisabler *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxWindowDisabler, returns); *************** *** 452,456 **** returns = new wxPoint(self->ClientToScreen(*pt)); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxPoint((wxPoint *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxPoint, returns); --- 452,456 ---- returns = new wxPoint(self->ClientToScreen(*pt)); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxPoint((wxPoint *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxPoint, returns); *************** *** 523,527 **** returns = new wxSize(self->ConvertDialogToPixels(*sz)); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxSize((wxSize *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxSize, returns); --- 523,527 ---- returns = new wxSize(self->ConvertDialogToPixels(*sz)); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxSize((wxSize *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxSize, returns); *************** *** 546,550 **** returns = new wxPoint(self->ConvertDialogToPixels(*pt)); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxPoint((wxPoint *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxPoint, returns); --- 546,550 ---- returns = new wxPoint(self->ConvertDialogToPixels(*pt)); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxPoint((wxPoint *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxPoint, returns); *************** *** 569,573 **** returns = new wxSize(self->ConvertPixelsToDialog(*sz)); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxSize((wxSize *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxSize, returns); --- 569,573 ---- returns = new wxSize(self->ConvertPixelsToDialog(*sz)); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxSize((wxSize *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxSize, returns); *************** *** 592,596 **** returns = new wxPoint(self->ConvertPixelsToDialog(*pt)); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxPoint((wxPoint *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxPoint, returns); --- 592,596 ---- returns = new wxPoint(self->ConvertPixelsToDialog(*pt)); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxPoint((wxPoint *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxPoint, returns); *************** *** 925,929 **** returns = new wxSize(self->GetAdjustedBestSize()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxSize((wxSize *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxSize, returns); --- 925,929 ---- returns = new wxSize(self->GetAdjustedBestSize()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxSize((wxSize *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxSize, returns); *************** *** 992,996 **** returns = new wxSize(self->GetBestFittingSize()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxSize((wxSize *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxSize, returns); --- 992,996 ---- returns = new wxSize(self->GetBestFittingSize()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxSize((wxSize *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxSize, returns); *************** *** 1013,1017 **** returns = new wxSize(self->GetBestSize()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxSize((wxSize *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxSize, returns); --- 1013,1017 ---- returns = new wxSize(self->GetBestSize()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxSize((wxSize *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxSize, returns); *************** *** 1132,1136 **** returns = new wxSize(self->GetClientSize()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxSize((wxSize *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxSize, returns); --- 1132,1136 ---- returns = new wxSize(self->GetClientSize()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxSize((wxSize *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxSize, returns); *************** *** 1460,1464 **** returns = new wxSize(self->GetMaxSize()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxSize((wxSize *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxSize, returns); --- 1460,1464 ---- returns = new wxSize(self->GetMaxSize()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxSize((wxSize *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxSize, returns); *************** *** 1481,1485 **** returns = new wxSize(self->GetMinSize()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxSize((wxSize *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxSize, returns); --- 1481,1485 ---- returns = new wxSize(self->GetMinSize()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxSize((wxSize *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxSize, returns); *************** *** 1542,1546 **** returns = new wxPoint(self->GetPosition()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxPoint((wxPoint *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxPoint, returns); --- 1542,1546 ---- returns = new wxPoint(self->GetPosition()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxPoint((wxPoint *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxPoint, returns); *************** *** 1589,1593 **** returns = new wxRect(self->GetRect()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxRect((wxRect *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxRect, returns); --- 1589,1593 ---- returns = new wxRect(self->GetRect()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxRect((wxRect *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxRect, returns); *************** *** 1610,1614 **** returns = new wxPoint(self->GetScreenPosition()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxPoint((wxPoint *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxPoint, returns); --- 1610,1614 ---- returns = new wxPoint(self->GetScreenPosition()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxPoint((wxPoint *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxPoint, returns); *************** *** 1657,1661 **** returns = new wxRect(self->GetScreenRect()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxRect((wxRect *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxRect, returns); --- 1657,1661 ---- returns = new wxRect(self->GetScreenRect()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxRect((wxRect *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxRect, returns); *************** *** 1742,1746 **** returns = new wxSize(self->GetSize()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxSize((wxSize *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxSize, returns); --- 1742,1746 ---- returns = new wxSize(self->GetSize()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxSize((wxSize *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxSize, returns); *************** *** 1931,1935 **** returns = new wxSize(self->GetVirtualSize()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxSize((wxSize *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxSize, returns); --- 1931,1935 ---- returns = new wxSize(self->GetVirtualSize()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxSize((wxSize *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxSize, returns); *************** *** 2652,2656 **** returns = new wxPoint(self->ScreenToClient(*pt)); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxPoint((wxPoint *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxPoint, returns); --- 2652,2656 ---- returns = new wxPoint(self->ScreenToClient(*pt)); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxPoint((wxPoint *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxPoint, returns); *************** *** 5149,5153 **** returns = new wxSize(self->CalcSizeFromPage(*sizePage)); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxSize((wxSize *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxSize, returns); --- 5149,5153 ---- returns = new wxSize(self->CalcSizeFromPage(*sizePage)); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxSize((wxSize *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxSize, returns); *************** *** 8161,8165 **** returns = new wxSize(self->GetSize()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxSize((wxSize *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxSize, returns); --- 8161,8165 ---- returns = new wxSize(self->GetSize()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxSize((wxSize *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxSize, returns); *************** *** 8374,8378 **** returns = new wxRect(self->GetRect()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxRect((wxRect *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxRect, returns); --- 8374,8378 ---- returns = new wxRect(self->GetRect()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxRect((wxRect *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxRect, returns); *************** *** 8511,8515 **** returns = new wxRect(self->GetDragRect()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxRect((wxRect *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxRect, returns); --- 8511,8515 ---- returns = new wxRect(self->GetDragRect()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxRect((wxRect *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxRect, returns); Index: grid.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/grid.cpp,v retrieving revision 1.43 retrieving revision 1.44 diff -C2 -d -r1.43 -r1.44 *** grid.cpp 14 Jun 2007 23:59:45 -0000 1.43 --- grid.cpp 17 Jun 2007 18:36:20 -0000 1.44 *************** *** 132,136 **** returns = new wxSize(self->GetBestSize(*grid, *attr, *dc, row, col)); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxSize((wxSize *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxSize, returns); --- 132,136 ---- returns = new wxSize(self->GetBestSize(*grid, *attr, *dc, row, col)); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxSize((wxSize *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxSize, returns); *************** *** 3569,3573 **** returns = new wxRect(self->BlockToDeviceRect(*topLeft, *bottomRight)); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxRect((wxRect *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxRect, returns); --- 3569,3573 ---- returns = new wxRect(self->BlockToDeviceRect(*topLeft, *bottomRight)); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxRect((wxRect *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxRect, returns); *************** *** 3688,3692 **** returns = new wxRect(self->CellToRect(row, col)); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxRect((wxRect *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxRect, returns); --- 3688,3692 ---- returns = new wxRect(self->CellToRect(row, col)); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxRect((wxRect *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxRect, returns); *************** *** 7505,7509 **** returns = new wxPoint(self->GetPosition()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxPoint((wxPoint *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxPoint, returns); --- 7505,7509 ---- returns = new wxPoint(self->GetPosition()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxPoint((wxPoint *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxPoint, returns); *************** *** 7741,7745 **** returns = new wxPoint(self->GetPosition()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxPoint((wxPoint *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxPoint, returns); --- 7741,7745 ---- returns = new wxPoint(self->GetPosition()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxPoint((wxPoint *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxPoint, returns); *************** *** 7934,7938 **** returns = new wxGridCellCoords(self->GetBottomRightCoords()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxGridCellCoords((wxGridCellCoords *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxGridCellCoords, returns); --- 7934,7938 ---- returns = new wxGridCellCoords(self->GetBottomRightCoords()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxGridCellCoords((wxGridCellCoords *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxGridCellCoords, returns); *************** *** 8009,8013 **** returns = new wxGridCellCoords(self->GetTopLeftCoords()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxGridCellCoords((wxGridCellCoords *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxGridCellCoords, returns); --- 8009,8013 ---- returns = new wxGridCellCoords(self->GetTopLeftCoords()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxGridCellCoords((wxGridCellCoords *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxGridCellCoords, returns); Index: file.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/file.cpp,v retrieving revision 1.52 retrieving revision 1.53 diff -C2 -d -r1.52 -r1.53 *** file.cpp 14 Jun 2007 23:59:44 -0000 1.52 --- file.cpp 17 Jun 2007 18:36:19 -0000 1.53 *************** *** 224,228 **** returns = new wxPathList(); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxPathList((wxPathList *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxPathList, returns); --- 224,228 ---- returns = new wxPathList(); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxPathList((wxPathList *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxPathList, returns); *************** *** 627,631 **** returns = new wxFileName(wxFileName::DirName(dir)); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxFileName((wxFileName *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxFileName, returns); --- 627,631 ---- returns = new wxFileName(wxFileName::DirName(dir)); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxFileName((wxFileName *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxFileName, returns); *************** *** 684,688 **** returns = new wxFileName(wxFileName::FileName(file)); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxFileName((wxFileName *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxFileName, returns); --- 684,688 ---- returns = new wxFileName(wxFileName::FileName(file)); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxFileName((wxFileName *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxFileName, returns); *************** *** 927,931 **** returns = new wxDateTime(self->GetModificationTime()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxDateTime((wxDateTime *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxDateTime, returns); --- 927,931 ---- returns = new wxDateTime(self->GetModificationTime()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxDateTime((wxDateTime *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxDateTime, returns); *************** *** 1071,1075 **** returns = new wxULongLong(self->GetSize()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxULongLong((wxULongLong *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxULongLong, returns); --- 1071,1075 ---- returns = new wxULongLong(self->GetSize()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxULongLong((wxULongLong *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxULongLong, returns); *************** *** 1097,1103 **** returns = self->GetTimes(dtAccess, dtMod, dtCreate); // add to tracked memory list ! wxlState.AddTrackedObject((long)dtAccess, new wxObject_wxDateTime(dtAccess)); ! wxlState.AddTrackedObject((long)dtMod, new wxObject_wxDateTime(dtMod)); ! wxlState.AddTrackedObject((long)dtCreate, new wxObject_wxDateTime(dtCreate)); // push the constructed class pointers wxlState.PushUserDataType(s_wxluatag_wxDateTime, dtAccess); --- 1097,1103 ---- returns = self->GetTimes(dtAccess, dtMod, dtCreate); // add to tracked memory list ! wxlState.AddTrackedObject((long)dtAccess, new wxLua_wxObject_wxDateTime(dtAccess)); ! wxlState.AddTrackedObject((long)dtMod, new wxLua_wxObject_wxDateTime(dtMod)); ! wxlState.AddTrackedObject((long)dtCreate, new wxLua_wxObject_wxDateTime(dtCreate)); // push the constructed class pointers wxlState.PushUserDataType(s_wxluatag_wxDateTime, dtAccess); *************** *** 1981,1985 **** returns = new wxFileName(volume, path, name, ext, format); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxFileName((wxFileName *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxFileName, returns); --- 1981,1985 ---- returns = new wxFileName(volume, path, name, ext, format); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxFileName((wxFileName *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxFileName, returns); *************** *** 2008,2012 **** returns = new wxFileName(path, name, format); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxFileName((wxFileName *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxFileName, returns); --- 2008,2012 ---- returns = new wxFileName(path, name, format); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxFileName((wxFileName *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxFileName, returns); *************** *** 2033,2037 **** returns = new wxFileName(fullpath, format); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxFileName((wxFileName *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxFileName, returns); --- 2033,2037 ---- returns = new wxFileName(fullpath, format); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxFileName((wxFileName *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxFileName, returns); *************** *** 2054,2058 **** returns = new wxFileName(*filename); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxFileName((wxFileName *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxFileName, returns); --- 2054,2058 ---- returns = new wxFileName(*filename); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxFileName((wxFileName *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxFileName, returns); *************** *** 2072,2076 **** returns = new wxFileName(); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxFileName((wxFileName *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxFileName, returns); --- 2072,2076 ---- returns = new wxFileName(); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxFileName((wxFileName *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxFileName, returns); *************** *** 2806,2810 **** returns = new wxFile(filename, mode); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxFile((wxFile *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxFile, returns); --- 2806,2810 ---- returns = new wxFile(filename, mode); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxFile((wxFile *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxFile, returns); *************** *** 2824,2828 **** returns = new wxFile(); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxFile((wxFile *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxFile, returns); --- 2824,2828 ---- returns = new wxFile(); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxFile((wxFile *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxFile, returns); *************** *** 3114,3118 **** returns = new wxTempFile(strName); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxTempFile((wxTempFile *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxTempFile, returns); --- 3114,3118 ---- returns = new wxTempFile(strName); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxTempFile((wxTempFile *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxTempFile, returns); *************** *** 3132,3136 **** returns = new wxTempFile(); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxTempFile((wxTempFile *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxTempFile, returns); --- 3132,3136 ---- returns = new wxTempFile(); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxTempFile((wxTempFile *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxTempFile, returns); *************** *** 3355,3359 **** returns = new wxULongLong(wxDir::GetTotalSize(dir)); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxULongLong((wxULongLong *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxULongLong, returns); --- 3355,3359 ---- returns = new wxULongLong(wxDir::GetTotalSize(dir)); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxULongLong((wxULongLong *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxULongLong, returns); *************** *** 3476,3480 **** returns = new wxDir(dir); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxDir((wxDir *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxDir, returns); --- 3476,3480 ---- returns = new wxDir(dir); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxDir((wxDir *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxDir, returns); *************** *** 3494,3498 **** returns = new wxDir(); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxDir((wxDir *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxDir, returns); --- 3494,3498 ---- returns = new wxDir(); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxDir((wxDir *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxDir, returns); Index: data.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/data.cpp,v retrieving revision 1.52 retrieving revision 1.53 diff -C2 -d -r1.52 -r1.53 *** data.cpp 14 Jun 2007 23:59:43 -0000 1.52 --- data.cpp 17 Jun 2007 18:36:15 -0000 1.53 *************** *** 68,72 **** returns = new wxString(str); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxString(returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxString, returns); --- 68,72 ---- returns = new wxString(str); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxString(returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxString, returns); *************** *** 2288,2292 **** returns = new wxArrayInt(array); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxArrayInt((wxArrayInt *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxArrayInt, returns); --- 2288,2292 ---- returns = new wxArrayInt(array); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxArrayInt((wxArrayInt *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxArrayInt, returns); *************** *** 2306,2310 **** returns = new wxArrayInt(); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxArrayInt((wxArrayInt *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxArrayInt, returns); --- 2306,2310 ---- returns = new wxArrayInt(); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxArrayInt((wxArrayInt *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxArrayInt, returns); *************** *** 2683,2687 **** returns = new wxArrayString(array); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxArrayString((wxArrayString *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxArrayString, returns); --- 2683,2687 ---- returns = new wxArrayString(array); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxArrayString((wxArrayString *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxArrayString, returns); *************** *** 2701,2705 **** returns = new wxArrayString(); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxArrayString((wxArrayString *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxArrayString, returns); --- 2701,2705 ---- returns = new wxArrayString(); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxArrayString((wxArrayString *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxArrayString, returns); *************** *** 2800,2804 **** returns = new wxSortedArrayString(src); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxSortedArrayString((wxSortedArrayString *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxSortedArrayString, returns); --- 2800,2804 ---- returns = new wxSortedArrayString(src); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxSortedArrayString((wxSortedArrayString *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxSortedArrayString, returns); *************** *** 2821,2825 **** returns = new wxSortedArrayString(src); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxSortedArrayString((wxSortedArrayString *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxSortedArrayString, returns); --- 2821,2825 ---- returns = new wxSortedArrayString(src); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxSortedArrayString((wxSortedArrayString *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxSortedArrayString, returns); *************** *** 2839,2843 **** returns = new wxSortedArrayString(); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxSortedArrayString((wxSortedArrayString *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxSortedArrayString, returns); --- 2839,2843 ---- returns = new wxSortedArrayString(); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxSortedArrayString((wxSortedArrayString *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxSortedArrayString, returns); *************** *** 2908,2912 **** returns = new wxLongLong(self->Abs()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxLongLong((wxLongLong *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxLongLong, returns); --- 2908,2912 ---- returns = new wxLongLong(self->Abs()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxLongLong((wxLongLong *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxLongLong, returns); *************** *** 3059,3063 **** returns = new wxLongLong(hi, lo); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxLongLong((wxLongLong *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxLongLong, returns); --- 3059,3063 ---- returns = new wxLongLong(hi, lo); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxLongLong((wxLongLong *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxLongLong, returns); *************** *** 3203,3207 **** returns = new wxULongLong(hi, lo); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxULongLong((wxULongLong *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxULongLong, returns); --- 3203,3207 ---- returns = new wxULongLong(hi, lo); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxULongLong((wxULongLong *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxULongLong, returns); Index: controls.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxbind/src/controls.cpp,v retrieving revision 1.66 retrieving revision 1.67 diff -C2 -d -r1.66 -r1.67 *** controls.cpp 16 Jun 2007 06:21:43 -0000 1.66 --- controls.cpp 17 Jun 2007 18:36:15 -0000 1.67 *************** *** 86,90 **** returns = new wxSize(wxButton::GetDefaultSize()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxSize((wxSize *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxSize, returns); --- 86,90 ---- returns = new wxSize(wxButton::GetDefaultSize()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxSize((wxSize *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxSize, returns); *************** *** 3778,3782 **** returns = new wxSize(self->GetItemSpacing()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxSize((wxSize *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxSize, returns); --- 3778,3782 ---- returns = new wxSize(self->GetItemSpacing()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxSize((wxSize *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxSize, returns); *************** *** 3955,3959 **** returns = new wxRect(self->GetViewRect()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxRect((wxRect *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxRect, returns); --- 3955,3959 ---- returns = new wxRect(self->GetViewRect()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxRect((wxRect *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxRect, returns); *************** *** 5125,5129 **** returns = new wxListItemAttr(*colText, *colBack, *font); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxListItemAttr((wxListItemAttr *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxListItemAttr, returns); --- 5125,5129 ---- returns = new wxListItemAttr(*colText, *colBack, *font); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxListItemAttr((wxListItemAttr *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxListItemAttr, returns); *************** *** 6043,6047 **** returns = new wxPoint(self->GetPoint()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxPoint((wxPoint *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxPoint, returns); --- 6043,6047 ---- returns = new wxPoint(self->GetPoint()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxPoint((wxPoint *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxPoint, returns); *************** *** 10192,10196 **** returns = new wxTextAttr(*colText, *colBack, *font, alignment); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxTextAttr((wxTextAttr *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxTextAttr, returns); --- 10192,10196 ---- returns = new wxTextAttr(*colText, *colBack, *font, alignment); // add to tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxTextAttr((wxTextAttr *)returns)); // push the constructed class pointer wxlState.PushUserDataType(s_wxluatag_wxTextAttr, returns); *************** *** 10307,10311 **** returns = new wxTreeItemId(self->AddRoot(text, image, selImage, data)); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxTreeItemId((wxTreeItemId *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxTreeItemId, returns); --- 10307,10311 ---- returns = new wxTreeItemId(self->AddRoot(text, image, selImage, data)); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxTreeItemId((wxTreeItemId *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxTreeItemId, returns); *************** *** 10340,10344 **** returns = new wxTreeItemId(self->AppendItem(*parent, text, image, selImage, data)); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxTreeItemId((wxTreeItemId *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxTreeItemId, returns); --- 10340,10344 ---- returns = new wxTreeItemId(self->AppendItem(*parent, text, image, selImage, data)); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxTreeItemId((wxTreeItemId *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxTreeItemId, returns); *************** *** 10677,10681 **** returns = new wxTreeItemId(self->GetFirstChild(*item, cookie)); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxTreeItemId(returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxTreeItemId, returns); --- 10677,10681 ---- returns = new wxTreeItemId(self->GetFirstChild(*item, cookie)); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxTreeItemId(returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxTreeItemId, returns); *************** *** 10705,10709 **** returns = new wxTreeItemId(self->GetFirstVisibleItem()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxTreeItemId((wxTreeItemId *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxTreeItemId, returns); --- 10705,10709 ---- returns = new wxTreeItemId(self->GetFirstVisibleItem()); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxTreeItemId((wxTreeItemId *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxTreeItemId, returns); *************** *** 10868,10872 **** returns = new wxTreeItemId(self->GetItemParent(*item)); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxTreeItemId((wxTreeItemId *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxTreeItemId, returns); --- 10868,10872 ---- returns = new wxTreeItemId(self->GetItemParent(*item)); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxTreeItemId((wxTreeItemId *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxTreeItemId, returns); *************** *** 10940,10944 **** returns = new wxTreeItemId(self->GetLastChild(*item)); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxTreeItemId((wxTreeItemId *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxTreeItemId, returns); --- 10940,10944 ---- returns = new wxTreeItemId(self->GetLastChild(*item)); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxLua_wxObject_wxTreeItemId((wxTreeItemId *)returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxTreeItemId, returns); *************** *** 10971,10975 **** returns = new wxTreeItemId(self->GetNextChild(*item, cookie)); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxObject_wxTreeItemId(returns)); // push the result datatype wxlState.PushUserDataType(s_wxluatag_wxTreeItemId, returns); --- 10971,10975 ---- returns = new wxTreeItemId(self->GetNextChild(*item, cookie)); // add the new object to the tracked memory list ! wxlState.AddTrackedObject((long)returns, new wxL... [truncated message content] |