Commit Graph

49207 Commits

Author SHA1 Message Date
Vadim Zeitlin
461cd115f2 Correct obsolete information: SetYesNoLabels() is not Mac-only any more.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61452 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-18 12:15:25 +00:00
Vadim Zeitlin
55b24eb8cd Do our best to show messages logged during program startup/shutdown.
Use wxMessageOutputBest to show them even under Windows where programs usually don't have stderr at all and also don't disable log target auto-creation during shutdown as it's arguably better to leak memory (which shouldn't matter much when the program is about to exit anyhow) than to not show possibly important messages.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61450 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-18 11:56:44 +00:00
Vadim Zeitlin
e55919d892 No changes, just fix a typo: wxGuiLog was used instead of wxLogGui.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61449 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-18 11:18:21 +00:00
Jaakko Salli
c90e98dcb6 Added wxGTK wxBitmapComboBox::DoGetBestSize() implementation that takes bitmap size into acccount.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61448 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-18 08:33:55 +00:00
Jaakko Salli
41ce9ae1b0 Added wxMSW wxBitmapComboBox::DoGetBestSize(), which takes bitmap size into account.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61447 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-18 07:31:09 +00:00
Kevin Ollivier
6a1df26215 Typo in a bug fix I made.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61446 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-17 18:42:15 +00:00
Kevin Ollivier
1013a78945 Adding preliminary code for C bindings, thanks to Luke A. Guest.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61445 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-17 18:39:26 +00:00
Kevin Ollivier
edaadd8cd2 Add an underscore before the generated output names.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61444 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-17 18:37:02 +00:00
Kevin Ollivier
e2075bf002 Only load/parse options when run as the main script.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61443 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-17 18:30:24 +00:00
Vadim Zeitlin
2a392e2d16 No real changes, just made wxEventLoopManual uncopyable.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61442 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-17 16:55:55 +00:00
Vadim Zeitlin
a758f601dd No real changes, just refactor wxEventLoop/wxApp::ProcessIdle().
Old code called wxApp::ProcessIdle() from wxEventLoopManualRun::Run() which called wxEventLoop::ProcessIdle() which called wxApp methods from it. In the new version wxEventLoopManualRun::Run() calls wxEventLoopManualRun::ProcessIdle() which calls wxApp::ProcessIdle() which calls other wxApp methods which seems to make more sense and also allows overriding ProcessIdle() in either wxEventLoopManual or wxApp-derived classes.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61441 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-17 16:52:43 +00:00
Vadim Zeitlin
58dcd1ae52 added wxLB_NO_SB style and implementation for wxMSW (closes #10991)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61440 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-17 14:36:30 +00:00
Vadim Zeitlin
53cda845db use the currently active event loop instead of the main one in WakeUpIdle()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61439 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-17 14:33:39 +00:00
Vadim Zeitlin
80ccb34688 document wxDCMemory(wxDC*) ctor
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61436 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-16 12:06:54 +00:00
Vadim Zeitlin
5d7526b0b8 fix log target auto creation broken by recent changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61432 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-15 12:36:09 +00:00
Jouk Jansen
94370e7670 OpenVMS compile support update
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61429 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-14 07:18:19 +00:00
Michael Wetherell
39e8da1939 Update email addresses.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61428 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-14 07:14:15 +00:00
Vadim Zeitlin
bc1e0d4dab Ensure that component levels map is initialized before it's used (closes #10990).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61424 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-13 13:40:31 +00:00
Vadim Zeitlin
53ff8df7d5 Make wxLog::EnableLogging() and wxLogNull thread-specific.
Disabling logging in a single thread (even the main one) shouldn't disable
logs from the background threads which should disable their logging themselves
as/if needed.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61423 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-13 13:21:52 +00:00
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