From ef357cdac22a9386c396b872e894d6818e05243a Mon Sep 17 00:00:00 2001 From: Mattia Barbon Date: Sat, 3 Aug 2002 23:30:55 +0000 Subject: [PATCH] Mention wxMessageOutput in changes.txt wxMessageOutputLog now available in all ports git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16357 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- docs/changes.txt | 4 ++++ include/wx/msgout.h | 8 +------- src/common/msgout.cpp | 4 ---- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/docs/changes.txt b/docs/changes.txt index 9894aa91b4..bd59434497 100644 --- a/docs/changes.txt +++ b/docs/changes.txt @@ -96,6 +96,10 @@ All (GUI): for example, use wxScrolledWindow::GetViewStart() now instead of ViewStart() and GetCount() instead of Number() in many classes +- wxCmdLineParser does not use wxLog to output messages anymore. + to obtain the previous behaviour, add + wxMessageOutput::Set(new wxMessageOutputLog); to your program + (you will need to #include ) wxMSW: diff --git a/include/wx/msgout.h b/include/wx/msgout.h index 2576f19446..b1e2aa118f 100755 --- a/include/wx/msgout.h +++ b/include/wx/msgout.h @@ -58,10 +58,8 @@ public: virtual void Printf(const wxChar* format, ...) ATTRIBUTE_PRINTF_2; }; -#ifdef __WXMOTIF__ +#endif // wxUSE_GUI -// use wxLog; this is only required for wxMotif, so we put this code -// inside wxUSE_GUI; it will work even without GUI class WXDLLEXPORT wxMessageOutputLog : public wxMessageOutput { public: @@ -70,9 +68,5 @@ public: virtual void Printf(const wxChar* format, ...) ATTRIBUTE_PRINTF_2; }; -#endif // __WXMOTIF__ - -#endif // wxUSE_GUI - #endif // _WX_MSGOUT_H_ diff --git a/src/common/msgout.cpp b/src/common/msgout.cpp index 512c9b6268..30e50e906b 100755 --- a/src/common/msgout.cpp +++ b/src/common/msgout.cpp @@ -113,8 +113,6 @@ void wxMessageOutputMessageBox::Printf(const wxChar* format, ...) // wxMessageOutputLog // ---------------------------------------------------------------------------- -#if wxUSE_GUI && defined(__WXMOTIF__) - void wxMessageOutputLog::Printf(const wxChar* format, ...) { va_list args; @@ -129,5 +127,3 @@ void wxMessageOutputLog::Printf(const wxChar* format, ...) // wxLog, which is better than nothing ::wxLogMessage("%s", out.c_str()); } - -#endif // wxUSE_GUI -- 2.45.2