X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/36bd690299dc72d49c4a945fa467ac7ce2342019..6e264973e636cc41915d166cb7eddf2a7e72cf9b:/include/wx/log.h?ds=sidebyside diff --git a/include/wx/log.h b/include/wx/log.h index 43fae9c89e..db1f30d5d1 100644 --- a/include/wx/log.h +++ b/include/wx/log.h @@ -251,14 +251,14 @@ class WXDLLEXPORT wxLogStream : public wxLog { public: // redirect log output to an ostream - wxLogStream(ostream *ostr = (ostream *) NULL); + wxLogStream(wxSTD ostream *ostr = (wxSTD ostream *) NULL); protected: // implement sink function virtual void DoLogString(const wxChar *szString, time_t t); // using ptr here to avoid including from this file - ostream *m_ostr; + wxSTD ostream *m_ostr; }; #endif @@ -268,6 +268,8 @@ protected: #if wxUSE_GUI +#if wxUSE_TEXTCTRL + // log everything to a text window (GUI only of course) class WXDLLEXPORT wxLogTextCtrl : public wxLog { @@ -282,9 +284,14 @@ private: wxTextCtrl *m_pTextCtrl; }; +#endif // wxUSE_TEXTCTRL + // ---------------------------------------------------------------------------- // GUI log target, the default one for wxWindows programs // ---------------------------------------------------------------------------- + +#if wxUSE_LOGGUI + class WXDLLEXPORT wxLogGui : public wxLog { public: @@ -307,12 +314,17 @@ protected: m_bWarnings; // any warnings? }; +#endif // wxUSE_LOGGUI + // ---------------------------------------------------------------------------- // (background) log window: this class forwards all log messages to the log // target which was active when it was instantiated, but also collects them // to the log window. This window has it's own menu which allows the user to // close it, clear the log contents or save it to the file. // ---------------------------------------------------------------------------- + +#if wxUSE_LOGWINDOW + class WXDLLEXPORT wxLogWindow : public wxLog { public: @@ -366,6 +378,8 @@ private: wxLogFrame *m_pLogFrame; // the log frame }; +#endif // wxUSE_LOGWINDOW + #endif // wxUSE_GUI // ----------------------------------------------------------------------------