Added wx.LogBuffer
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34611 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
cde6d2e7d8
commit
93649c2c50
@ -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();
|
||||
};
|
||||
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user