From: John L. <jr...@us...> - 2007-11-30 06:23:42
|
Update of /cvsroot/wxlua/wxLua/modules/wxluadebug/include In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv6752/wxLua/modules/wxluadebug/include Modified Files: wxldebug.h wxlstack.h Log Message: Make the wxLuaStackDialog run a little faster Index: wxldebug.h =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxluadebug/include/wxldebug.h,v retrieving revision 1.43 retrieving revision 1.44 diff -C2 -d -r1.43 -r1.44 *** wxldebug.h 28 Nov 2007 22:55:01 -0000 1.43 --- wxldebug.h 30 Nov 2007 06:23:39 -0000 1.44 *************** *** 71,76 **** { return wxString::Format(wxT("Key: '%s' KeyType: %d '%s' Value: '%s' ValueType: %d '%s' Ref: %d Idx: %d Flag: %d HasSrc: %d"), ! m_itemKey.c_str(), m_itemKeyType, GetKeyTypeString().c_str(), ! m_itemValue.c_str(), m_itemValueType, GetValueTypeString().c_str(), m_lua_ref, m_index, m_flag, (int)!m_itemSource.IsEmpty()); } --- 71,76 ---- { return wxString::Format(wxT("Key: '%s' KeyType: %d '%s' Value: '%s' ValueType: %d '%s' Ref: %d Idx: %d Flag: %d HasSrc: %d"), ! m_itemKey.c_str(), m_itemKeyType, GetKeyTypeString().c_str(), ! m_itemValue.c_str(), m_itemValueType, GetValueTypeString().c_str(), m_lua_ref, m_index, m_flag, (int)!m_itemSource.IsEmpty()); } *************** *** 140,150 **** // give a consistent feel to the display of Lua values. ! // Get information about the item at the 'stack_idx'. Returns the lua_type(L, stack_idx), // fills 'wxl_type' with the WXLUAARG_XXX type and 'value' with a human readable value. static int GetTypeValue(const wxLuaState& wxlState, int stack_idx, int* wxl_type, wxString& value); - // Write the input number as either an int, uint, or as a double - static wxString MakeNumber(double dnum); - // Convert the number to either "true" or "false" (eg !0 or 0) - static wxString MakeBoolean(int num); // Get a wxString description about the table at the stack_idx in the Lua stack static wxString GetTableInfo(const wxLuaState& wxlState, int stack_idx); --- 140,146 ---- // give a consistent feel to the display of Lua values. ! // Get information about the item at the 'stack_idx'. Returns the lua_type(L, stack_idx), // fills 'wxl_type' with the WXLUAARG_XXX type and 'value' with a human readable value. static int GetTypeValue(const wxLuaState& wxlState, int stack_idx, int* wxl_type, wxString& value); // Get a wxString description about the table at the stack_idx in the Lua stack static wxString GetTableInfo(const wxLuaState& wxlState, int stack_idx); *************** *** 186,190 **** public: // Create a instance, remembers lua_gettop(), 'msg' can be used to add ! // information about where or why this was created. // If 'print_to_console' then all functions below that return a string will also // print to the console as well. --- 182,186 ---- public: // Create a instance, remembers lua_gettop(), 'msg' can be used to add ! // information about where or why this was created. // If 'print_to_console' then all functions below that return a string will also // print to the console as well. *************** *** 198,202 **** // Returns a string of the current items on the stack with their types. wxString DumpStack(const wxString& msg = wxEmptyString); ! // Returns a string of all of the global variables and subtables with additional msg. wxString DumpGlobals(const wxString& msg = wxEmptyString); --- 194,198 ---- // Returns a string of the current items on the stack with their types. wxString DumpStack(const wxString& msg = wxEmptyString); ! // Returns a string of all of the global variables and subtables with additional msg. wxString DumpGlobals(const wxString& msg = wxEmptyString); Index: wxlstack.h =================================================================== RCS file: /cvsroot/wxlua/wxLua/modules/wxluadebug/include/wxlstack.h,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** wxlstack.h 29 Nov 2007 23:35:53 -0000 1.9 --- wxlstack.h 30 Nov 2007 06:23:39 -0000 1.10 *************** *** 106,110 **** const wxString& title = wxT("wxLua Stack"), const wxPoint& pos = wxDefaultPosition, ! const wxSize& size = wxDefaultSize) { Init(); --- 106,110 ---- const wxString& title = wxT("wxLua Stack"), const wxPoint& pos = wxDefaultPosition, ! const wxSize& size = wxDefaultSize) { Init(); *************** *** 224,227 **** --- 224,228 ---- bool m_show_dup_expand_msg; int m_batch_count; + bool m_skip_tree_event; wxLongToLongHashMap m_expandedItems; |