From: John L. <jr...@us...> - 2007-12-05 00:34:51
|
Update of /cvsroot/wxlua/wxLua/modules/wxluadebug/src In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv21421/wxLua/modules/wxluadebug/src Modified Files: wxldebug.cpp wxlstack.cpp Log Message: Removed the rest of "UnregisterBinding" functions since they did nothing useful Moved binding base class linking code to wxLuaBinding::InitAllBindings from wxLuaState::RegisterBindings Removed wxLuaStateData::m_winDestroyCallbackList and wxLuaStateData::m_callbackList and added two registry tables for their values. Should be faster and easier to verify operation. Fix searching in the wxLuaStackDialog. Index: wxlstack.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxluadebug/src/wxlstack.cpp,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** wxlstack.cpp 4 Dec 2007 16:26:11 -0000 1.23 --- wxlstack.cpp 5 Dec 2007 00:34:46 -0000 1.24 *************** *** 676,683 **** wxCHECK_RET(wxlState.Ok(), wxT("Invalid wxLuaState")); ! int trackedCount = wxlState.GetTrackedObjects()->size(); ! int callbackCount = wxlState.GetTrackedCallbackList()->GetCount(); ! int windowCount = wxlState.GetLuaStateData()->m_windowList.GetCount(); ! int destroyCount = wxlState.GetTrackedWinDestroyCallbackList()->GetCount(); // note: don't have spaces here since we use them to mark expanded levels --- 676,683 ---- wxCHECK_RET(wxlState.Ok(), wxT("Invalid wxLuaState")); ! int trackedCount = wxlState.GetTrackedObjectStrings().GetCount(); ! int callbackCount = wxlState.GetTrackedCallbackStrings().GetCount(); ! int windowCount = wxlState.GetTrackedWindowStrings().GetCount(); ! int destroyCount = wxlState.GetTrackedWinDestroyCallbackStrings().GetCount(); // note: don't have spaces here since we use them to mark expanded levels *************** *** 874,878 **** if (start_item < 0) { ! i = direction > 0 ? 0 : list_count - 1; wrap_count++; // we're looking at all the elements } --- 874,878 ---- if (start_item < 0) { ! i = (direction > 0) ? 0 : list_count - 1; wrap_count++; // we're looking at all the elements } *************** *** 885,889 **** else { ! i = direction > 0 ? 0 : list_count - 1; } --- 885,889 ---- else { ! i = (direction > 0) ? 0 : list_count - 1; } *************** *** 895,899 **** txt = GetItemText(i, col, true); ! if (match_case) txt.MakeLower(); if ((whole_string && (txt == findStr)) || --- 895,899 ---- txt = GetItemText(i, col, true); ! if (!match_case) txt.MakeLower(); if ((whole_string && (txt == findStr)) || *************** *** 1092,1096 **** { wxLuaDebugItem *item = new wxLuaDebugItem(strArr[n].BeforeLast(wxT(' ')), WXLUAARG_None, ! wxT("Count ")+strArr[n].AfterLast(wxT(' ')), WXLUAARG_None, wxT(""), LUA_NOREF, debugItem->GetIndex() + 1); dataArr.Add(item); --- 1092,1096 ---- { wxLuaDebugItem *item = new wxLuaDebugItem(strArr[n].BeforeLast(wxT(' ')), WXLUAARG_None, ! strArr[n].AfterLast(wxT(' ')), WXLUAARG_None, wxT(""), LUA_NOREF, debugItem->GetIndex() + 1); dataArr.Add(item); Index: wxldebug.cpp =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxluadebug/src/wxldebug.cpp,v retrieving revision 1.54 retrieving revision 1.55 diff -C2 -d -r1.54 -r1.55 *** wxldebug.cpp 4 Dec 2007 05:20:29 -0000 1.54 --- wxldebug.cpp 5 Dec 2007 00:34:46 -0000 1.55 *************** *** 463,468 **** (udata == &wxlua_lreg_derivedmethods_key) || (udata == &wxlua_lreg_wxluastate_key) || - (udata == &wxlua_lreg_callbaseclassfunc_key) || (udata == &wxlua_lreg_objects_key) || (udata == &wxlua_metatable_tag_key) || (udata == &wxlua_metatable_wxluabindclass_key)) --- 463,470 ---- (udata == &wxlua_lreg_derivedmethods_key) || (udata == &wxlua_lreg_wxluastate_key) || (udata == &wxlua_lreg_objects_key) || + (udata == &wxlua_lreg_evtcallbacks_key) || + (udata == &wxlua_lreg_windestroycallbacks_key) || + (udata == &wxlua_lreg_callbaseclassfunc_key) || (udata == &wxlua_metatable_tag_key) || (udata == &wxlua_metatable_wxluabindclass_key)) |