Francesco Montorsi
1e247d6992
use WXDLLIMPEXP_CORE, not WXDLLIMPEXP_BASE for wxThreadEvent
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58660 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 19:25:09 +00:00
Francesco Montorsi
43c8c1f310
fix wxThreadEvent linking in shared builds
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58659 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 18:35:18 +00:00
Francesco Montorsi
a552d2c3f2
update to the latest version of the patch at #10320 the wxApp::DoYield implementation
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58658 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 18:02:03 +00:00
Jaakko Salli
5bc244b802
Added useful comment to a code sample snippet
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58656 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 17:54:31 +00:00
Francesco Montorsi
f6a3e0bad5
fix the new wxThreadEvent class adopting the new type-safe conventions for event classes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58655 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 17:49:22 +00:00
Francesco Montorsi
d48b06bd90
check in the 'selective yield' patch (see ticket #10320 ):
...
- implements YieldFor() with event filtering for wxMSW and wxGTK,
adds TODO markers in other ports;
- replaces wxYield() in GTK's clipboard code with a wxTheApp->YieldFor() call, thus fixing possible reentrancies
(and modifies clipboard sample to test synchronous IsSupported calls)
- replaces wxYieldIfNeeded() calls in wxProgressDialog with wxTheApp->YieldFor() calls, so that it processes only
UI/user-input events, thus fixing the race condition visible in the "thread" sample
- documents the new functions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58654 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 17:42:28 +00:00
Francesco Montorsi
a721fd82b7
in debug mode when clicking with the middle mouse button draw borders around all windows, not only those with a sizer; use different pen colours to distinguish among sizers, spacers and windows.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58653 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 16:55:28 +00:00
Francesco Montorsi
939dafa6d4
document new wxBLUE_PEN object; add some more details for standard object instances; cosmetic fixes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58652 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 16:49:32 +00:00
Jaakko Salli
2728c3bfe7
Added proper COW to wxPGChoices, moved wxPGChoices code from propgrid.cpp to property.cpp (to match header organization), removed some now-unneeded helper functions
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58651 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 16:45:23 +00:00
Francesco Montorsi
d818458781
add standard wxBLUE_PEN for coherency with the colours available for standard brushes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 16:30:27 +00:00
Vadim Zeitlin
c77c302300
fix MSVC warning about implicit int to bool conversion
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58649 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 14:40:47 +00:00
Francesco Montorsi
52f2299cdd
update list of classes supported by wxGenericValidator
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58647 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 12:41:43 +00:00
Vadim Zeitlin
040d3c2ebf
restore the default bitmap icons size to 16*15, making them larger if necessary is enough and doesn't result in having ugly 16*16 bitmaps in a 24*24 button rectangle
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58646 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 12:19:45 +00:00
Vadim Zeitlin
5d55031c21
compilation fixes for wxMSW/Univ
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58645 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 10:07:58 +00:00
Vadim Zeitlin
5d2d4a2ef2
move generic animation sources to ADVANCED_MSW_NATIVE_SRC/HDR from ADVANCED_MSW_SRC/HDR to avoid having duplicated entries in wxMSW/Univ build
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58644 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 10:02:48 +00:00
Vadim Zeitlin
cff6c9a81a
added back compatibility headers (apparently svn can't do move+add in a single commit)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58643 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 08:06:42 +00:00
Paul Cornett
0295d4483b
revert last commit, it re-introduces the first problem
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58642 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 08:01:58 +00:00
Paul Cornett
cdb7bf6671
fix bug introduced in last commit, contents not scrolling when selecting treectrl elements with up/down arrow keys
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58641 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-04 07:15:03 +00:00
Francesco Montorsi
58fa61dbad
Re-add support for multiple text validator styles but
...
1) catch some invalid configurations in SetStyle()
2) document the order of the checks in wxTextValidator
3) implement wxFILTER_EMPTY
4) rename wxFILTER_SIMPLE_NUMBER => wxFILTER_DIGITS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58637 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-03 21:21:47 +00:00
Vadim Zeitlin
77cc73a78e
added wxPersistentRegisterAndRestore() function to work around VC6 brokenness in debug DLL build
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58635 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-03 12:02:20 +00:00
Vadim Zeitlin
664e13143e
renamed wx/ptr_shrd.h to wx/sharedptr.h; split wx/ptr_scpd.h in wx/scopedptr.h and wx/scopedarray.h; extracted common parts into new wx/checkeddelete.h
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58634 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-03 12:01:46 +00:00
Robert Roebling
6143d648c8
Add space all around std buttons as per Apple HIG (and as the comment in the code says but the code didn't do)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58633 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-03 10:42:34 +00:00
Robert Roebling
69d32cafb0
Also report events from wxCollapsiblePane's label
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58632 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-03 09:53:33 +00:00
Robert Roebling
2e2e1bb254
Removed accidentally committed debug code
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58631 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-03 08:51:25 +00:00
Vadim Zeitlin
abb7d8a351
work around VC6 ICE in DLL build
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58629 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-02 21:44:36 +00:00
Vadim Zeitlin
f662a526eb
compilation fix for template Connect()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58628 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-02 21:40:53 +00:00
Vadim Zeitlin
361ba943f9
use explicit this-> with non-dependent names (compilation fix for standard-conforming compilers such as g++ 4)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58627 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-02 21:09:08 +00:00
Vadim Zeitlin
79935f61bf
use wxCommandEventHandler instead of manually writing several casts
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58626 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-02 20:46:33 +00:00
Vadim Zeitlin
f3ff831f3b
Changes to template Connect() to make it compile with MSVC7 and possible other
...
not quite up-to-date compilers, to reduce repetitions and to allow using
methods of non-wxEvtHandler-derived classes as event callbacks:
1. Don't rely on compiler ability to deduce template parameter from the type
of a parameter of a function used as another template parameter, at least
MSVC7 can't do this and it's probably not the only one.
2. Do rely on compiler support for partial specialization to make
wxEventFunctorMethod compile for non-wxEvtHandler-derived handlers while
still keeping the old functionality for the wxEvtHandler-derived ones.
3. Don't make any difference between functions and functors, both are callable
objects so use them as such, this allows to fold code for both cases.
4. Avoid the use of dynamic_cast<>.
5. Several naming changes:
a) wxTypedEventType -> wxEventTypeTag (because this is what it is)
b) Subscribe/Unsubscribe -> DoConnect/Disconnect (to follow the usual
convention of public Foo calling private DoFoo and to avoid using up
another name)
c) Derived -> ObjClass (because it's not clear what does Derived mean)
6. Extend the unit test to cover more cases.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58625 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-02 20:38:56 +00:00
Robert Roebling
4c509aecb6
Invalidate only the specified rectangle
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58623 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-02 14:05:46 +00:00
Robert Roebling
08bbdb0858
The recent change to ::Refresh() (strangely) fails to invalidate e.g. a wxTreeCtrl in a wxDialog, revert the relevant part
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58622 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-02 14:02:50 +00:00
Vadim Zeitlin
862c917dfb
compilation fix for new event types (this shouldn't be necessary but do it to temporarily fix the build)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58621 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-02 12:38:17 +00:00
Vadim Zeitlin
f57254320e
don't always disable new events code; leave it enabled for MSVC8+
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58620 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-02 11:39:48 +00:00
Chris Elliott
004b67a761
and a third fix from http://trac.wxwidgets.org/ticket/10457 fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58619 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-02 08:36:01 +00:00
Robert Roebling
51fbe4cc1d
Make wxCheckListBox call event.SetString() on all platforms, not just wxMSW. Mention again, that wxCommandEvent::IsChecked() cannot be used for it.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58616 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-01 23:43:59 +00:00
Vadim Zeitlin
4fc218c2a7
move evthandler.cpp to non-GUI test as it doesn't require the GUI
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58615 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-01 23:20:27 +00:00
Vadim Zeitlin
9b3ff3c04f
test that the connected event handler is really called; some naming changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58614 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-01 23:19:45 +00:00
Vadim Zeitlin
412fcdc105
remove WXDLLIMPEXP_BASE from template classes to fix linking of code using new events in DLL build using MSVC9
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58613 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-01 23:05:55 +00:00
Vadim Zeitlin
b3f76d404f
disable warning about using deprecated wxStripExtension() for MSVC
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58612 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-01 22:20:59 +00:00
Vadim Zeitlin
b2238cc315
add a unit test for new events (see #10000 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58611 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-01 22:12:12 +00:00
Vadim Zeitlin
111d41b2fa
no real changes, just add some comments
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58610 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-01 22:10:52 +00:00
Robert Roebling
302c73511a
The check column needs more space
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58609 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-01 21:33:43 +00:00
Robert Roebling
c084a1ac06
Enable the correct code making sure that subwindows will always receive a wxSizeEvent and can then relayout themselves
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58608 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-01 21:33:07 +00:00
Vadim Zeitlin
6c5e1aa764
emphasize that you need to specify eventSink when connecting to a different object method
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58607 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-01 21:15:50 +00:00
Francesco Montorsi
6dbf7a3750
blind fix for wxMac
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58606 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-01 20:59:03 +00:00
Francesco Montorsi
1e0e263e31
document as typedefs the various wxArray* classes so that doxygen links them and it's easier to visit wxArray<T> docs
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58605 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-01 20:34:13 +00:00
Francesco Montorsi
413eac73fd
remove implementations from interface headers
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58604 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-01 19:56:06 +00:00
Francesco Montorsi
03faec761d
fix a couple of typos
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58602 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-01 19:34:05 +00:00
Francesco Montorsi
d075fb7af6
add the abicheck.sh script for checking possible ABI violations
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58600 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-01 17:17:58 +00:00
Francesco Montorsi
7737e2fd00
add GetControlWidget() accessor to the generic wxCollapsiblePane
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58599 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-02-01 16:26:38 +00:00