Robert Roebling
63574b81fa
Make GetWxObjectPtr() const.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41470 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-26 20:16:24 +00:00
Robin Dunn
f09df8b2ea
If a TLW's default item is not an immediate child then it can be left
...
with a dangling pointer when the child is deleted, so check for it in
the child's dtor.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41469 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-26 19:52:32 +00:00
Julian Smart
64c47f48c3
Converts DOS line endings to Unix if necessary
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41467 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-26 19:18:46 +00:00
Stefan Csomor
fe8712b53e
removing the old style code cases
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41465 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-26 14:51:04 +00:00
Václav Slavík
4eb124f5bd
fix client area computations and borders rendering if the scrollbars are not inside the border rect
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41464 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-26 13:58:54 +00:00
Václav Slavík
754273b697
fixed crash when using GTK theme
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41463 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-26 13:03:35 +00:00
Włodzimierz Skiba
9969fdfeea
Warning fix.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41461 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-26 12:21:25 +00:00
Robert Roebling
a2634d8140
[ 1557102 ] wxCombobox + keyboard selection + TEXT_ENTER Event
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41458 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-26 09:16:13 +00:00
Robert Roebling
1fc1e6af05
[ 1565385 ] wxImage scaling fix - apply mask when scaling
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41455 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-26 08:19:10 +00:00
Vadim Zeitlin
df63b2a48f
let the control process WM_RBUTTONDOWN finally, trying to do it ourselves doesn't look right and results in some weird events (see bug 1541148), it's easier to generate WM_CONTEXTMENU manually instead
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41453 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-26 00:58:49 +00:00
Robert Roebling
4627af27d4
Implement most of AppendRow(), PrependRow(), InsertRow(),
...
DeleteRow() for GTK+ version and sorted model.
Added tests for these.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41450 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-25 21:11:14 +00:00
Václav Slavík
f87d0500fa
added assert to check for not-yet-implemented behavior of SetClippingRegion
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41446 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-25 19:08:54 +00:00
Vadim Zeitlin
972719407b
compilation fixes after recent changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41444 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-25 18:18:26 +00:00
Vadim Zeitlin
325125ba4f
fix undefined behaviour due to using shift variable twice in the same expression
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41443 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-25 18:15:39 +00:00
Vadim Zeitlin
e330eb4619
fixed warnings, reformatted braces
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41441 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-25 17:34:30 +00:00
Vadim Zeitlin
22143f7164
compilation fix after last change
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41440 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-25 17:30:48 +00:00
Włodzimierz Skiba
566177181a
Corrections after The Great wxRegion Refactoring.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41438 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-25 16:17:12 +00:00
Václav Slavík
74750ae4e6
compilation fix (missing void)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41437 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-25 14:35:16 +00:00
Vadim Zeitlin
d5dc103fd4
added wxUSE_VARIANT guards
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41433 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-25 12:55:25 +00:00
Włodzimierz Skiba
888355224c
Warning fixes.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41432 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-25 12:42:18 +00:00
Vadim Zeitlin
012967ef1b
rename OnResize() to OnSize() to avoid conflict with base class OnResize(void) virtual
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41431 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-25 12:40:37 +00:00
Vadim Zeitlin
c57cdbd8d6
use _snprintf() in system_sprintf() for the compilers which have it; really fix warning about unused maxlen in wxPrintfConvSpec::ReplaceAsteriskWith()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41430 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-25 12:27:26 +00:00
Vadim Zeitlin
8a16d7370e
The Great wxRegion Refactoring:
...
1. added wxRegionBase class and derive all wxRegions from it
2. also added wxRegionWithCombine for the ports providing Combine() method
(MSW, OS2 and Mac) to reduce code duplication further
3. made sure region comparison works the same way in all ports (except those
not implementing it) and added IsEqual() method
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41429 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-25 11:47:23 +00:00
Vadim Zeitlin
b48f51ca74
add wxTLW::UseNativeDecorations[ByDefault]() to allow the programmer to control whether windows use native or custom decorations
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41428 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-25 11:46:58 +00:00
Vadim Zeitlin
b13862ee62
fix TLW borders width in mono theme
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41427 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-25 11:24:42 +00:00
Václav Slavík
7e2baeb413
don't allocate backbuffer for dummy surfaces
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41426 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-25 08:01:36 +00:00
Václav Slavík
93259e592b
reduce the number of repaintings by repaiting (rect) union of all invalidated areas instead of iterating over every Refresh() request including duplicate ones
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41425 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-25 07:55:51 +00:00
Julian Smart
cf1aac89dd
Fixed LoadFile typo
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41424 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-25 07:11:59 +00:00
Vadim Zeitlin
75afdc2d72
oops, restored accidentally deleted functions in last commit
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41422 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-24 15:39:19 +00:00
Vadim Zeitlin
13229d3539
get rid of wxUSE_CHECKBOXES_IN_MULTI_SEL_TREE code, it's never used and just makes the code which is used more difficult to read
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41421 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-24 15:31:19 +00:00
Michael Wetherell
076e07b60b
Improve the error messages slightly.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41419 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-24 13:59:57 +00:00
Vadim Zeitlin
30f27c00d6
1. fixed many warnings about implicit double to int conversions in newly
...
checked in "advanced" image manipulation stuff
(could we please avoid checking in the code with warnings?)
2. tried to simplify the new code a little, but much remains to be done,
in particular it seems obvious that BlurVertical/Horizontal() must be
refactored to avoid duplicating each other
3. reformatted (avoid jumbo lines, removed unnecessary double casts, declare
the variables at the point of use, ...)
Hope this didn't break anything but as there are no tests it's really hard to
find out how was this supposed to behave.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41418 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-24 13:58:52 +00:00
Vadim Zeitlin
ca5c6ac3f4
Added wxUSE_VARIANT and the related checks, also added wxUSE_OLE_AUTOMATION
...
to guard wxAutomationObject code which depends on wxVariant
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41416 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-24 13:12:56 +00:00
Vadim Zeitlin
19883268f1
use wxRect::Contains(), not Inside() (fixes compilation for WXWIN_COMPATIBILITY_2_6==0
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41415 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-24 13:09:46 +00:00
Robert Roebling
07aaa1a4b8
[ 1537065 ] wxImage: Higher quality scaling/sampling
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41412 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-24 12:47:16 +00:00
Julian Smart
3306aec124
Added DoLoadFile, DoSaveFile to wxTextCtrlBase
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41410 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-24 11:40:33 +00:00
Robert Roebling
57b5c44a4f
Fixed [ 1561693 ] wxGIFDecoder creates incorrect wxPalette
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41406 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-24 10:54:12 +00:00
Robert Roebling
df816ad92f
Updated wxPallete information.
...
Added GetColourCount() implementation to Carbon (I wonder
why it doesnt just use the generic implementation).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41405 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-24 10:27:12 +00:00
Robert Roebling
b9d880d638
[ 1563875 ] wxTreeCtrl::FindItem asserts when item not found
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-24 10:06:02 +00:00
Kevin Ollivier
4e78e1738e
kDataBrowserListViewNoGapForIconInHeaderButton not defined on Panther.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41402 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-24 04:18:00 +00:00
Robin Dunn
9e15c718b3
remove superfluous assert
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41401 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-24 00:39:49 +00:00
Robin Dunn
e17b6377be
More bakfile changes needed for bmpcbox. Rebaked.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41399 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-23 22:54:16 +00:00
Vadim Zeitlin
571d2e0f23
1. deprecate redundantly sounding wxArtProvider::FooProvider() to just Foo()
...
2. wxArtProvider::Remove() now really only removes the provider without
deleting it, Delete() does delete it
3. moreover, ~wxArtProvider removes the provider as well so there is almost
no need to call Delete() explicitly any more
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41398 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-23 20:16:18 +00:00
Václav Slavík
43e995b6e3
changed the catalogs lookup back to the old behaviour of searching LC_MESSAGES subdirectory on all platforms: the change that made this Unix-only (rev.180) silently broke old applications
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41397 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-23 18:44:23 +00:00
Václav Slavík
b5297239e4
renamed GetMsgCatalogSubdir to *Subdirs to make it clear it may return more than one path and documented this in its comment
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41396 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-23 18:39:28 +00:00
Václav Slavík
6f7eb299f0
fixed client<->window coords translations in DoMoveWindow and DoSetSize
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41394 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-23 17:23:25 +00:00
Robert Roebling
7962f85aae
[ 1564062 ] wxComboCtrl popup height fix
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41390 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-23 16:17:45 +00:00
Robert Roebling
d72f87f60b
Implememt GetColoursCount() in the generic wxPalette.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41387 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-23 09:54:11 +00:00
Robert Roebling
84140dc956
Compilo.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41386 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-23 09:47:14 +00:00
Robert Roebling
5633b968f5
[ 1557935 ] wxPalette::GetColoursCount implementation
...
I commited the version which MSDN claims to be
available since Windows 95. No idea why MFC
doesn't use it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41385 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-09-23 09:35:09 +00:00