Vadim Zeitlin
af58844636
Add information about the log message generation location to wxLog.
...
This means that wxLog::DoLogRecord() can now retrieve the file name, line
number and the function where the message was logged.
An unfortunate consequence of this change is that now
if ( condition )
wxLogError("Whatever");
results in a warning from g++ 4.x with -Wparentehses, so extra parentheses had
to be added in many places.
Finally, also allow storing arbitrary attributes in wxLogRecordInfo. This had
to be added to implement our own overloaded wxLogStatus() and wxLogSysError()
and will probably be useful for the others as well.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61363 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-09 20:26:34 +00:00
Robert Roebling
dc874fb4ce
Use t_str() instead of c_str()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54485 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-04 14:05:16 +00:00
Robert Roebling
c6867dcd51
Make wxMSW wxBase compile in UTF-8 mode
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54481 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-03 20:34:51 +00:00
Vadim Zeitlin
7f173c3349
don't forget to output new line in wxMessageOutputStderr::Output() even if conversion to multibyte fails
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54373 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-06-26 11:49:25 +00:00
Chris Elliott
997c7e4616
Borland still hates ternary ?
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53734 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-24 17:24:38 +00:00
Vadim Zeitlin
784ee7d511
improve wxMessageOutputBest console output under Windows (closes 9146)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53730 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-23 23:28:13 +00:00
Stefan Csomor
c8e2c7d7b3
cleaning up common OSX code
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52375 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-07 16:53:07 +00:00
Stefan Csomor
0ad76eea22
cleanup mac
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50155 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-11-22 14:21:36 +00:00
Vadim Zeitlin
9cf3d21870
added wxApp::Set/GetAppDisplayName() (patch 1780414)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48623 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-09-09 23:26:18 +00:00
Vadim Zeitlin
fae8664187
compilation fixes for wxUSE_MSGDLG==0
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47325 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-11 00:02:51 +00:00
Václav Slavík
d45127a543
removed executable bit on files that aren't executables
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46936 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-25 14:04:34 +00:00
Václav Slavík
e0a050e347
more changes to make wx compile without implicit wxString->char* conversion (for STL build)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46553 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-20 07:44:45 +00:00
Václav Slavík
d1f6e2cfe2
fixed vararg functions with format argument to not use wxString or reference argument (the latter is invalid C++, the former doesn't work with Watcom and produces at least warnings with GCC 3.3)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45781 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-05-03 10:50:25 +00:00
Václav Slavík
2523e9b700
use UTF8-encoded char* strings in UTF8 build instead of wchar_t* if the current locale uses UTF8;
...
fall back to widechar CRT functions in the locale is not UTF8
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45663 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-26 11:40:04 +00:00
Václav Slavík
b553626907
fixed DLL linking of wxMessageOutput class
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45526 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-18 09:34:35 +00:00
Václav Slavík
8237a1c052
VC6 compilation fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45465 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-14 16:06:50 +00:00
Václav Slavík
5b077ec744
moved vararg handling code in wxMessageOutput to single method and added simple Output(wxString) virtual method instead of DoPrintf(format,...)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45432 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-12 21:13:05 +00:00
Václav Slavík
c9f7896861
first phase of transition to unified Unicode build:
...
1. changed c_str() to return wxCStrData (implicitly convertible to wxChar*)
2. added template type-safe wrappers for vararg functions
3. added wxUniChar class representing single Unicode character
4. changed wxString::operator[] and wxString::iterator to return wxUniChar
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44865 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-17 10:26:10 +00:00
Włodzimierz Skiba
e4db172a3b
Include wx/log.h according to precompiled headers of wx/wx.h (with other minor cleaning).
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38920 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-26 08:21:31 +00:00
Mart Raudsepp
8907154c1a
Nuke #pragma implementation/interface's
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-23 12:56:45 +00:00
Vadim Zeitlin
858cab30be
WinCE compilation fixes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34662 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-15 22:04:53 +00:00
Włodzimierz Skiba
532d575bd9
Allow MSW Base be usable in other ports than wxMSW (ie. wxTVision in windows console). Adjustements for limited setup.h (as in wxTV) and minor source cleaning.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34632 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-10 17:53:19 +00:00
Vadim Zeitlin
9d03b4eee2
use stderr in wxMessageOutputBest::Printf() even under Windows if it's available (patch 1216159)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34564 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-07 12:06:44 +00:00
Vadim Zeitlin
e12a951e75
added wxMessageOutputBest which tries to show the message to the user in the best possible way
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34555 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-06 23:34:24 +00:00
Włodzimierz Skiba
82ef81ed9c
Final MSW/PalmOS split. Remove dump copies of MSW specific code.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31114 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-22 07:22:25 +00:00
Włodzimierz Skiba
4055ed8281
Use __WXPALMOS__ for PalmOS port which fits __WX$(TOOLKIT)__ of bakefiles. Do not depend on MSW macros in PalmOS port. Source cleaning.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31087 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-20 12:44:22 +00:00
Julian Smart
ffecfa5aeb
Committed William Osborne's wxPalmOS port
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29996 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-10-19 13:40:30 +00:00
Włodzimierz Skiba
4e32eea148
Source cleaning: whitespaces, tabs, -1/wxDefaultCoord/wxID_ANY/wxNOT_FOUND, TRUE/true, FALSE/false.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29185 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-17 22:23:59 +00:00
Vadim Zeitlin
d6e6a35c80
use wxFputs(), not fputs(), in Unicode mode under Unix too (modified patch 1017940)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29168 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-09-16 22:31:18 +00:00
Stefan Csomor
7873ca3191
message output for darwin into console, cannot use the normal converters as these are already in destruction
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27688 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-06-08 14:44:34 +00:00
Julian Smart
655719367a
Use old licence name
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 20:53:33 +00:00
Julian Smart
77ffb5937e
Name and version changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 14:56:36 +00:00
Václav Slavík
7e6f48d18c
we need to output \r\n on MSW
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26249 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-17 22:51:41 +00:00
Václav Slavík
d638e2fc75
don't add \n, it's supposed to be part of the input
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26242 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-03-17 11:53:14 +00:00
Stefan Neis
e484468721
Fixed #pragma interface/implementation handling for old compilers.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23175 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-24 16:38:02 +00:00
Václav Slavík
14f355c2b5
added support for gcc precompiled headers
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22723 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-09 12:46:53 +00:00
Stefan Csomor
0ff5799aca
debug output for CW corrections
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21648 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-04 19:53:21 +00:00
Mattia Barbon
7219fc4f39
Borland (5.5) compilation fix.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21589 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-02 21:39:49 +00:00
Mattia Barbon
dc6d5e38c0
More COMPATIBILITY_2_4 fixes.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21582 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-02 17:18:13 +00:00
Václav Slavík
e6b02f3f26
another compilation fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21441 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-27 09:59:00 +00:00
Vadim Zeitlin
ec67cff1f6
__WXBASE__ -> wxUSE_BASE
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21435 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-26 23:46:00 +00:00
Vadim Zeitlin
46446cc2aa
compilation fix for wxGTK
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21345 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-24 01:31:22 +00:00
Vadim Zeitlin
e2478fde62
wxBase/GUI separation: 1st step, wxMSW should build, all the rest is broken
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21342 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-06-24 00:56:19 +00:00
Vadim Zeitlin
a90253f00d
correct compilation fix for the previous commit
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17065 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-08 00:29:08 +00:00
Robin Dunn
7d55cdc033
Compilation fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17062 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-07 23:34:28 +00:00
Vadim Zeitlin
311da78ab0
show the app name in the title of wxMsgOut message boxes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@17056 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-07 20:25:43 +00:00
Vadim Zeitlin
f7a75af18d
no changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16920 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-09-01 20:00:57 +00:00
Chris Elliott
1303a240dd
lost log.h fixed
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16866 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-30 13:57:04 +00:00
Vadim Zeitlin
a69be60b0f
removed wxApp::DoInit(); added wxApp::CreateMessageOutput(); fixed wxMsgOutput memory leak
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16859 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-30 00:58:34 +00:00
Robert Roebling
8887e2341a
Compile fix for Unicode.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16392 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-07 17:34:19 +00:00