From: John L. <jr...@us...> - 2005-12-07 05:53:40
|
Update of /cvsroot/wxlua/wxLua/modules/wxluadebug/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2986/wxLua/modules/wxluadebug/src Modified Files: staktree.cpp Log Message: add getters for tracked events and destroy events make luastaterefdata lists not pointers Index: staktree.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxluadebug/src/staktree.cpp,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** staktree.cpp 5 Dec 2005 06:11:15 -0000 1.11 --- staktree.cpp 7 Dec 2005 05:53:30 -0000 1.12 *************** *** 400,419 **** int derivedCount = 0, trackedCount = 0, ! appHandlerCount = 0, windowCount = 0; ! if (wxlState.GetLuaStateRefData()->m_pDerivedList) // FIXME add accessor functions or something derivedCount = wxlState.GetLuaStateRefData()->m_pDerivedList->GetCount(); if (wxlState.GetLuaStateRefData()->m_pTrackedList) trackedCount = wxlState.GetLuaStateRefData()->m_pTrackedList->GetCount(); - if (wxlState.GetLuaStateRefData()->m_pAppHandlerList) - appHandlerCount = wxlState.GetLuaStateRefData()->m_pAppHandlerList->GetCount(); - if (wxlState.GetLuaStateRefData()->m_pWindowList) - windowCount = wxlState.GetLuaStateRefData()->m_pWindowList->GetCount(); ! treeControl->AppendItem (rootItem, wxT("Derived List"), 1, 1, new wxLuaDebugDataItem(_("Derived List"), wxT("wxLuaData"), wxT(""), wxString::Format(wxT("%d"), derivedCount), LUA_NOREF, 0)); ! treeControl->AppendItem (rootItem, wxT("Tracked List"), 1, 1, new wxLuaDebugDataItem(_("Tracked List"), wxT("wxLuaData"), wxT(""), wxString::Format(wxT("%d"), trackedCount), LUA_NOREF, 0)); ! treeControl->AppendItem (rootItem, wxT("AppHandler List"), 1, 1, new wxLuaDebugDataItem(_("AppHandler List"), wxT("wxLuaData"), wxT(""), wxString::Format(wxT("%d"), appHandlerCount), LUA_NOREF, 0)); ! treeControl->AppendItem (rootItem, wxT("wxWindow List"), 1, 1, new wxLuaDebugDataItem(_("wxWindow List"), wxT("wxLuaData"), wxT(""), wxString::Format(wxT("%d"), windowCount), LUA_NOREF, 0)); } --- 400,418 ---- int derivedCount = 0, trackedCount = 0, ! eventHandlerCount = 0, windowCount = 0; ! if (wxlState.GetLuaStateRefData()->m_pDerivedList) derivedCount = wxlState.GetLuaStateRefData()->m_pDerivedList->GetCount(); if (wxlState.GetLuaStateRefData()->m_pTrackedList) trackedCount = wxlState.GetLuaStateRefData()->m_pTrackedList->GetCount(); ! eventHandlerCount = wxlState.GetLuaStateRefData()->m_eventHandlerList.GetCount(); ! windowCount = wxlState.GetLuaStateRefData()->m_windowList.GetCount(); ! ! treeControl->AppendItem(rootItem, wxT("Derived List"), 1, 1, new wxLuaDebugDataItem(_("Derived List"), wxT("wxLuaData"), wxT(""), wxString::Format(wxT("%d"), derivedCount), LUA_NOREF, 0)); ! treeControl->AppendItem(rootItem, wxT("Tracked List"), 1, 1, new wxLuaDebugDataItem(_("Tracked List"), wxT("wxLuaData"), wxT(""), wxString::Format(wxT("%d"), trackedCount), LUA_NOREF, 0)); ! treeControl->AppendItem(rootItem, wxT("Event Handler List"), 1, 1, new wxLuaDebugDataItem(_("Event Handler List"), wxT("wxLuaData"), wxT(""), wxString::Format(wxT("%d"), eventHandlerCount), LUA_NOREF, 0)); ! treeControl->AppendItem(rootItem, wxT("wxWindow List"), 1, 1, new wxLuaDebugDataItem(_("wxWindow List"), wxT("wxLuaData"), wxT(""), wxString::Format(wxT("%d"), windowCount), LUA_NOREF, 0)); } |