added wxLogWindow::GetFrame()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@434 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -16,6 +16,8 @@
|
||||
#pragma interface "log.h"
|
||||
#endif
|
||||
|
||||
#include "wx/intl.h"
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// constants
|
||||
// ----------------------------------------------------------------------------
|
||||
@@ -197,14 +199,18 @@ protected:
|
||||
// close it, clear the log contents or save it to the file.
|
||||
// ----------------------------------------------------------------------------
|
||||
class wxLogFrame;
|
||||
class wxFrame;
|
||||
class WXDLLEXPORT wxLogWindow : public wxLog
|
||||
{
|
||||
public:
|
||||
wxLogWindow(const char *szTitle, bool bShow = TRUE);
|
||||
~wxLogWindow();
|
||||
|
||||
// window operations
|
||||
// show/hide the log window
|
||||
void Show(bool bShow = TRUE);
|
||||
// get the frame pointer (you shouldn't close it!)
|
||||
wxFrame *GetFrame() const;
|
||||
|
||||
// accessors
|
||||
wxLog *GetOldLog() const { return m_pOldLog; }
|
||||
|
@@ -655,6 +655,11 @@ void wxLogWindow::Show(bool bShow)
|
||||
m_pLogFrame->Show(bShow);
|
||||
}
|
||||
|
||||
wxFrame *wxLogWindow::GetFrame() const
|
||||
{
|
||||
return m_pLogFrame;
|
||||
}
|
||||
|
||||
void wxLogWindow::DoLog(wxLogLevel level, const char *szString)
|
||||
{
|
||||
// first let the previous logger show it
|
||||
|
Reference in New Issue
Block a user