X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6e6b35578d9be94739e1f9ebadcb57d9a483db6a..32485259c1342115488d219776dfebeb3d4d81b1:/wxPython/src/_log.i?ds=sidebyside diff --git a/wxPython/src/_log.i b/wxPython/src/_log.i index 4797f9fe7d..8084857b0a 100644 --- a/wxPython/src/_log.i +++ b/wxPython/src/_log.i @@ -202,6 +202,20 @@ public: wxLog *GetOldLog(); }; +// log everything to a buffer +class wxLogBuffer : public wxLog +{ +public: + wxLogBuffer(); + + // get the string contents with all messages logged + const wxString& GetBuffer() const { return m_str; } + + // show the buffer contents to the user in the best possible way (this uses + // wxMessageOutputMessageBox) and clear it + virtual void Flush(); +}; + //---------------------------------------------------------------------------