Vadim Zeitlin
acad886cb4
Add support for thread-specific log targets.
...
A worker thread can now have its own log target which will be used directly
by the log functions instead of buffering log output in the main thread; the
GUI thread in the thread sample shows how it works.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61422 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-13 11:09:26 +00:00
Jouk Jansen
409aa9e1ef
OpenVMS compile support update
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61421 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-13 06:33:58 +00:00
Vadim Zeitlin
d5e7d2ec11
Make critical sections initialization really thread-safe.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61419 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-12 17:22:50 +00:00
Vadim Zeitlin
24723aa565
Removed another occurrence of previous log critical section (should have been
...
part of r61417).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61418 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-12 17:10:30 +00:00
Vadim Zeitlin
16b1f6fc50
Removed critical section protecting last repeat counter.
...
It is not needed any longer now that this is only used by
wxLog::OnLogInMainThreade() which is only called from the main thread.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61417 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-12 17:09:33 +00:00
Vadim Zeitlin
232addd1cd
Made wxLogXXX() functions thread-safe.
...
They can now be called from any thread and will buffer the messages until the
current log target is flushed from the main thread. This makes earlier code to
do the same thing specifically for wxLogWindow unnecessary and also allows to
use wxLogMessage() in the thread sample instead of using manual logging there.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61416 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-12 17:02:30 +00:00
Vadim Zeitlin
dbe0872fc8
Added wxVector::swap().
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61415 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-12 17:00:29 +00:00
Vadim Zeitlin
c602c59b6e
Add component-level filtering to wxLog.
...
Each log message is now associated with its component, "wx" by default for
messages generated by wxWidgets and wxLOG_COMPONENT in general (which is empty
by default). Each component may have its own log level and they are
hierarchical allowing fine configuration of what exactly is logged.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61414 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-12 14:56:23 +00:00
Jaakko Salli
fbbde24964
Yet another fix for the colour property 'Custom' entry (get drop-down list index directly from wxOwnerDrawnComboBox)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61412 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-12 09:59:26 +00:00
Michael Wetherell
bb276f53fc
Override email address for Jaakko Salli.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61411 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-12 08:51:55 +00:00
Stefan Csomor
795160b7f6
better surviving 0 width / height bitmap sizes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61409 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-12 08:24:53 +00:00
Vadim Zeitlin
e846dd57d7
correct translation of "in." (Isaac Marino Bavaresco)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-12 00:21:06 +00:00
Vadim Zeitlin
3cc631903f
compilation fix after last commit
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61407 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-11 21:15:58 +00:00
Vadim Zeitlin
f922638305
Added wxThread::GetMainId().
...
This is useful for checking if a message was logged from the main thread or not and also allows us to implement IsMain() by comparing GetCurrentId() with GetMainId() in all ports and avoid repetition.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61406 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-11 20:46:55 +00:00
Jaakko Salli
7dfede7b92
Added named section 'Property development funcions'
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61405 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-11 08:16:04 +00:00
Jaakko Salli
eddcc4b442
Added wxPropertyGrid::WasValueChangedInEvent(), added code to avoid showing colour picker dialog twice when 'Custom' colour was picked from drop-down list
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-11 07:59:59 +00:00
Jaakko Salli
858102d740
Fixed 'Custom' entry in the colour property combo boxes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61403 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-11 07:29:42 +00:00
Jaakko Salli
31329795c4
Made sorting case-insensitive (to match wxComboBox) and fixed sorting in general for combo box classes inheriting from wxOwnerDrawnComboBox
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61401 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-11 07:01:32 +00:00
Vadim Zeitlin
0758c46ee6
fix harmless warnings about uninitialized (not really) variables in MSVC release build
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61384 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-10 20:48:32 +00:00
Stefan Csomor
9e55f38df7
adapting to widgetimpl extensions and iPhone OS 3.0
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61383 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-10 19:19:36 +00:00
Stefan Csomor
2e1517a2e3
updating conditions for OSX
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61382 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-10 17:56:19 +00:00
Stefan Csomor
11fed901d1
adding #ifs for reflecting existing controls, fixing #ifdefs
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61381 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-10 17:53:56 +00:00
Stefan Csomor
cf4ce62c26
adapting init sequence for different osx platforms
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61380 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-10 17:46:05 +00:00
Stefan Csomor
d39292566b
committing current iphone state
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61379 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-10 17:41:13 +00:00
Stefan Csomor
9504069ea6
guarding for scrollbar use
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61378 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-10 17:38:36 +00:00
Stefan Csomor
4bea628d00
iPhone bitmap support
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61377 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-10 17:33:43 +00:00
Stefan Csomor
7af25c3a80
more iPhone types
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61376 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-10 17:31:57 +00:00
Stefan Csomor
e928fe1200
correcting to ifdef to if
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61375 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-10 17:29:21 +00:00
Stefan Csomor
52147d1c4b
guarding scrollbar
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61374 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-10 17:28:20 +00:00
Jaakko Salli
a1f2daa6d8
Do not disable some useful buttons when wxCB_SORT style is used in wxBitmapComboBox sample
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61372 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-10 14:50:00 +00:00
Jaakko Salli
befee9b713
Fixed wxCB_SORT for wxMSW and generic wxBitmapComboBox
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61371 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-10 14:47:58 +00:00
Stefan Csomor
65bd7f79c8
supporting SetFont(wxNullFont), fixes #10980
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61369 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-10 14:24:01 +00:00
Vadim Zeitlin
b356aa554a
don't mark GetTraceMask() deprecated as we use it in the same header which provokes warnings when including it from outside wx
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61367 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-09 22:00:30 +00:00
Vadim Zeitlin
34a083c928
remove scope-resolution operator from wxLogError() call: this doesn't work any more as it's a macro and not a function now; mention this in the docs
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61366 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-09 21:41:46 +00:00
Vadim Zeitlin
c279530ba9
fix MSVC compilation: as string literals are of non-const char* type with this compiler, they are implicitly convertible to void* resulting in overloading ambiguities with wxLogger::Log()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61365 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-09 21:39:29 +00:00
Vadim Zeitlin
ff2e9e2cc4
implement wxLogTrace(wxTraceMask, format, ...) overload too
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61364 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-09 20:30:27 +00:00
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
ca21a4e729
Reduce size of virtual list before sending out delete notification, fixes #10966 : wxDataViewVirtualListModel row deletion bug
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61361 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-09 18:26:47 +00:00
Vadim Zeitlin
76981461ce
disable VC6 warnings before warning(push), otherwise they're reenabled by warning(pop) in wx/afterstd.h
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61358 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-09 15:19:03 +00:00
Vadim Zeitlin
ae2070fb77
fix VC6 warnings about not enough parameters for wxDEPRECATED_BUT_USED_INTERNALLY_INLINE
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61357 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-09 15:13:52 +00:00
Stefan Csomor
60ebcb8a49
adding special case for Carbon DataBrowser Checkbox
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61356 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-09 14:47:51 +00:00
Vadim Zeitlin
f2a4f50e7d
make bitmap button background more visible
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61355 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-09 13:11:52 +00:00
Vadim Zeitlin
469c80265e
remove out of date bugs; mention VC8 and wxUSE_NO_MANIFEST
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61354 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-09 12:50:14 +00:00
Vadim Zeitlin
4855770182
disable MSVC deprecation warnings as we intentionally test deprecated methods in this test
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61353 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-09 12:22:37 +00:00
Vadim Zeitlin
fbbc4e8f80
compilation fix for !WXWIN_COMPATIBILITY_2_8 build
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61352 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-09 12:00:55 +00:00
Vadim Zeitlin
74e67db795
update IfaceCheckLog definition after wxLog::DoLogXXX() changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61349 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-08 16:06:46 +00:00
Vadim Zeitlin
ba3af1010d
added wxLog::IsLevelEnabled() helper; document it and a few related functions which were not, or poorly, documented
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61348 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-08 14:16:55 +00:00
Vadim Zeitlin
f54277629a
update LboxLogger definition after the previous revision changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61347 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-08 13:53:36 +00:00
Vadim Zeitlin
bc73d5aec8
Changed wxLog DoLogXXX() callbacks and introduced wxLogRecordInfo.
...
The main logging callback is now DoLogRecord() with DoLogTextAtLevel() and
DoLogText() provided for convenience. The old DoLog() and DoLogString() are
still called but deprecated and their overloads taking wxString which were
only added in 2.9.0 are removed.
wxLogRecordInfo allows associating more information than just the time stamp
with the log record; for now only the logging thread id was added but more
fields will make their appearance soon.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61346 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-08 13:47:33 +00:00
Jaakko Salli
5f7c24e2ff
Further fixes to colour properties that use wxPG_COLOUR_ALLOW_CUSTOM attribute
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61344 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-07 15:23:26 +00:00