// ----------------------------------------------------------------------------
wxLogTextCtrl::wxLogTextCtrl(wxTextCtrl *pTextCtrl)
// @@@ TODO: in wxGTK wxTextCtrl doesn't derive from streambuf
-#ifndef __WXGTK__
: wxLogStream(new ostream(pTextCtrl))
-#endif //GTK
{
}
wxLogTextCtrl::~wxLogTextCtrl()
{
- #ifndef __WXGTK__
- delete m_ostr;
- #endif //GTK
+ delete m_ostr;
}
// ----------------------------------------------------------------------------
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