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:
@@ -202,6 +202,20 @@ public:
|
|||||||
wxLog *GetOldLog();
|
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();
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user