]> git.saurik.com Git - wxWidgets.git/commitdiff
Mention wxMessageOutput in changes.txt
authorMattia Barbon <mbarbon@cpan.org>
Sat, 3 Aug 2002 23:30:55 +0000 (23:30 +0000)
committerMattia Barbon <mbarbon@cpan.org>
Sat, 3 Aug 2002 23:30:55 +0000 (23:30 +0000)
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
include/wx/msgout.h
src/common/msgout.cpp

index 9894aa91b4d80df8f5c8d9574193c7a08f447f29..bd59434497102daf6d920b4d23c980db3b18c745 100644 (file)
@@ -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 <wx/msgout.h>)
 
 wxMSW:
 
index 2576f194464d209a17a3d32b5fe6301e34f12bb7..b1e2aa118f785f395b9c3ef150e364f2a5194c12 100755 (executable)
@@ -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_
index 512c9b62684f7072c85e61438113661453487b41..30e50e906b7f998ffb08f23d0e7137f8c28ff2b7 100755 (executable)
@@ -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