]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
14 years agoReturn correct invoking window for submenus of a popup menu.
Vadim Zeitlin [Thu, 22 Apr 2010 11:21:35 +0000 (11:21 +0000)] 
Return correct invoking window for submenus of a popup menu.

SetInvokingWindow() is only called for the top menu being popped up itself but
the invoking window should also be associated with its submenus.

Modify GetInvokingWindow() to return the parents invoking window for submenus.

This fixes a crash due to returning NULL from wxMenu::GetWindow() in wxMSW
owner-drawn code.

And it also makes redundant some code in wxUniversal wxMenu implementation
which can now simply use GetInvokingWindow() in all cases.

Closes #11957.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64104 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoUse symbolic names for popup menu ids in wxEVT_MENU_HIGHLIGHT events in wxMSW.
Vadim Zeitlin [Thu, 22 Apr 2010 11:21:30 +0000 (11:21 +0000)] 
Use symbolic names for popup menu ids in wxEVT_MENU_HIGHLIGHT events in wxMSW.

No real changes, just use wxID_NONE instead of hardcoded -1 (in one place) and
-3 (in another one). Hardcoding them not only made the code less readable but
also resulted in two numbers actually becoming different when they almost
certainly were meant to be the same.

This shouldn't result in any changes in the user-visible behaviour but we now
avoid searching the menu bar for menu items with id of -1 needlessly.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64103 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoFix bug with using incorrect negative ids in wxEVT_MENU_HIGHLIGHT events.
Vadim Zeitlin [Thu, 22 Apr 2010 11:21:25 +0000 (11:21 +0000)] 
Fix bug with using incorrect negative ids in wxEVT_MENU_HIGHLIGHT events.

wxMSW code implicitly cast ids carried by wxEVT_MENU_HIGHLIGHT events to
unsigned short so that they didn't compare equal to the (signed, negative) ids
of the real menu items. Because of this menu help strings were not shown for
any items with negative ids, i.e. those created using wxID_ANY.

Closes #11977.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64102 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoOverride wxWindow::MSWGetCreateWindowCoords() in wxTopLevelWindow.
Vadim Zeitlin [Thu, 22 Apr 2010 11:21:21 +0000 (11:21 +0000)] 
Override wxWindow::MSWGetCreateWindowCoords() in wxTopLevelWindow.

The old code was messy because it handled both top level and child windows at
wxWindow level when they need quite different treatment. This resulted in
several errors: first, wxWindow versions of WidthDefault and HeightDefault
were used to determine the initial size even of top level windows which was
clearly wrong as it created tiny windows (20*20). Second, CW_USEDEFAULT could
be used for child window for which this shouldn't be done.

Fix this by making MSWGetCreateWindowCoords() virtual and overriding it in
wxTopLevelWindow. This makes the code much simpler and more obviously correct.

Also make MSWGetCreateWindowCoords() void, as nobody was using its return
value anyhow (and the old version also had a bug in it and wrongly returned
true when default size was passed to it).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64101 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAdd documentation for several grid cell renderer/editor classes.
Vadim Zeitlin [Thu, 22 Apr 2010 11:20:50 +0000 (11:20 +0000)] 
Add documentation for several grid cell renderer/editor classes.

Document the previously undocumented renderers and editors.

Closes #11965.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64100 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoClarify that Raise() is only a request to raise the window.
Vadim Zeitlin [Thu, 22 Apr 2010 11:20:45 +0000 (11:20 +0000)] 
Clarify that Raise() is only a request to raise the window.

Calling Raise() doesn't guarantee that the window will be raised.

Closes #11974.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64099 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoFix fatal bug in ArgsArray(wchar_t**) ctor.
Vadim Zeitlin [Thu, 22 Apr 2010 11:20:37 +0000 (11:20 +0000)] 
Fix fatal bug in ArgsArray(wchar_t**) ctor.

The input pointer was modified before being used again leading to out of bound
array access.

Closes #11979.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64098 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agomissed in r64093
Stefan Csomor [Thu, 22 Apr 2010 07:00:32 +0000 (07:00 +0000)] 
missed in r64093

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64097 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoswitching to correct hit-testing
Stefan Csomor [Thu, 22 Apr 2010 06:46:02 +0000 (06:46 +0000)] 
switching to correct hit-testing

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64096 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agosimpler code
Stefan Csomor [Thu, 22 Apr 2010 06:23:57 +0000 (06:23 +0000)] 
simpler code

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64095 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoshutdown sequence routing to EndSession calls
Stefan Csomor [Thu, 22 Apr 2010 06:18:15 +0000 (06:18 +0000)] 
shutdown sequence routing to EndSession calls

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64094 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agooverriding the cfrunloop accessor, during booting cocoa has to create a NSRunLoop...
Stefan Csomor [Thu, 22 Apr 2010 06:16:34 +0000 (06:16 +0000)] 
overriding the cfrunloop accessor, during booting cocoa has to create a NSRunLoop earlier

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64093 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agomsgIdCharset is only needed in ANSI build.
Václav Slavík [Wed, 21 Apr 2010 16:46:05 +0000 (16:46 +0000)] 
msgIdCharset is only needed in ANSI build.

In Unicode build, there's no need to create wxCSConv object for every
loaded catalog when it won't be used for anything.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64090 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoNo real changes, just fix typos in the ownerdrw sample.
Vadim Zeitlin [Wed, 21 Apr 2010 14:40:42 +0000 (14:40 +0000)] 
No real changes, just fix typos in the ownerdrw sample.

s/Cheked/Checked/g

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64089 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoRemove the extra margins when checking owner drawn menu icons size.
Vadim Zeitlin [Wed, 21 Apr 2010 14:40:28 +0000 (14:40 +0000)] 
Remove the extra margins when checking owner drawn menu icons size.

The extra +4 in IsLessThanStdSize() functions resulted in assert failures
under Windows XP after the ownerdraw drawing changes so remove it as nobody
knew why was it there anyhow.

Also replace IsLessThanStdSize() with IsGreaterThanStdSize() to allow using it
directly instead of always testing for !IsLessThanStdSize().

See #11657.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64088 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agonon precomp build fix
Stefan Csomor [Wed, 21 Apr 2010 04:13:56 +0000 (04:13 +0000)] 
non precomp build fix

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64087 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoavoiding full resize-invalidate and refresh
Stefan Csomor [Tue, 20 Apr 2010 20:48:49 +0000 (20:48 +0000)] 
avoiding full resize-invalidate and refresh

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64081 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agorestoring special handling for carbon system menu items, fixes #11819
Stefan Csomor [Tue, 20 Apr 2010 20:29:22 +0000 (20:29 +0000)] 
restoring special handling for carbon system menu items, fixes #11819

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64079 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agotracking open modal dialogs
Stefan Csomor [Tue, 20 Apr 2010 19:09:38 +0000 (19:09 +0000)] 
tracking open modal dialogs

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64068 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agocurrently avoid problems when releasing the capture during drag on osx_cocoa
Stefan Csomor [Tue, 20 Apr 2010 19:07:42 +0000 (19:07 +0000)] 
currently avoid problems when releasing the capture during drag on osx_cocoa

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64067 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agobetter layout for simple one param messages, closes #11810
Stefan Csomor [Tue, 20 Apr 2010 16:02:32 +0000 (16:02 +0000)] 
better layout for simple one param messages, closes #11810

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64066 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agohaving common API for mapping between native and wx tlw type
Stefan Csomor [Tue, 20 Apr 2010 14:55:42 +0000 (14:55 +0000)] 
having common API for mapping between native and wx tlw type

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64065 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agotype of wrapped window can be any NSWindow, not only our own classes
Stefan Csomor [Tue, 20 Apr 2010 14:55:10 +0000 (14:55 +0000)] 
type of wrapped window can be any NSWindow, not only our own classes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64064 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoTODO done
Stefan Csomor [Tue, 20 Apr 2010 14:54:32 +0000 (14:54 +0000)] 
TODO done

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64063 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agouse new call
Stefan Csomor [Tue, 20 Apr 2010 14:53:36 +0000 (14:53 +0000)] 
use new call

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64062 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agowrap native TLWs so that they also appear in the tlw list
Stefan Csomor [Tue, 20 Apr 2010 14:51:54 +0000 (14:51 +0000)] 
wrap native TLWs so that they also appear in the tlw list

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64061 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agosupport for capturing, use categories instead of member vars for the implementation...
Stefan Csomor [Tue, 20 Apr 2010 14:50:27 +0000 (14:50 +0000)] 
support for capturing, use categories instead of member vars for the implementation mapping, so that we can wrap native NSWindow instances as well

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64060 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoFix VC6 compilation by changing the order of assignment operators in wxAny
Jaakko Salli [Tue, 20 Apr 2010 12:55:34 +0000 (12:55 +0000)] 
Fix VC6 compilation by changing the order of assignment operators in wxAny

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64059 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoCheck for menu title being non-empty when appending it to the menu bar.
Vadim Zeitlin [Tue, 20 Apr 2010 11:59:46 +0000 (11:59 +0000)] 
Check for menu title being non-empty when appending it to the menu bar.

It doesn't make sense to add a menu with empty title to the menu bar so assert
that the title is not empty and fail to add the menu if it is.

See r64033 in wxQT branch.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64058 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAdd wxProgressDialog::Was{Cancelled,Skipped}() convenience methods.
Vadim Zeitlin [Tue, 20 Apr 2010 11:10:33 +0000 (11:10 +0000)] 
Add wxProgressDialog::Was{Cancelled,Skipped}() convenience methods.

Although the information about "Cancel" and "Skip" buttons presses is returned
from Update(), sometimes it may be more convenient to ask the dialog about
whether it was cancelled or skipped instead of storing it in the program
itself.

Add the methods which allow to check for this.

Closes #10903.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64057 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agocorrecting error in OpenVMS makefile
Jouk Jansen [Tue, 20 Apr 2010 07:28:33 +0000 (07:28 +0000)] 
correcting error in OpenVMS makefile

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64056 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoif we have wxBG_STYLE_PAINT, we must clear the background ourselves, since on OSX...
Stefan Csomor [Tue, 20 Apr 2010 05:01:39 +0000 (05:01 +0000)] 
if we have wxBG_STYLE_PAINT, we must clear the background ourselves, since on OSX there might be transparent subpanels, fixes #11958

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64055 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agominor additions and clarifications
Francesco Montorsi [Mon, 19 Apr 2010 18:54:26 +0000 (18:54 +0000)] 
minor additions and clarifications

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64053 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agore-adding script that is needed for xcode builds
Stefan Csomor [Mon, 19 Apr 2010 14:44:24 +0000 (14:44 +0000)] 
re-adding script that is needed for xcode builds

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64052 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoor -> || (how did that compile on GCC anyway?)
Jaakko Salli [Mon, 19 Apr 2010 14:33:02 +0000 (14:33 +0000)] 
or -> || (how did that compile on GCC anyway?)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64051 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoWhen deciding whether to convert wxAny to 'long' or 'longlong' wxVariant, use wxINT32...
Jaakko Salli [Mon, 19 Apr 2010 14:25:41 +0000 (14:25 +0000)] 
When deciding whether to convert wxAny to 'long' or 'longlong' wxVariant, use wxINT32_MAX instead of LONG_MAX (for more consistent results across builds)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64050 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoImprove wxAny<->wxVariant conversion 64-bit integer tests
Jaakko Salli [Mon, 19 Apr 2010 14:23:49 +0000 (14:23 +0000)] 
Improve wxAny<->wxVariant conversion 64-bit integer tests

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64049 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agomissing return value
Stefan Csomor [Mon, 19 Apr 2010 13:36:27 +0000 (13:36 +0000)] 
missing return value

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64048 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoupdate OpenVMS compile support
Jouk Jansen [Mon, 19 Apr 2010 12:39:45 +0000 (12:39 +0000)] 
update OpenVMS compile support

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64047 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoUse "monospace" face name for all Unix systems, hopefully it should work.
Vadim Zeitlin [Sun, 18 Apr 2010 22:15:53 +0000 (22:15 +0000)] 
Use "monospace" face name for all Unix systems, hopefully it should work.

This fixes failures of several build bot slaves (all running Debian or
Ubuntu) which were due to using "Fixed" under these Linux distributions.

Unfortunately "Fixed" didn't work as Pango doesn't seem to recognize it as a
valid face name. "DejaVu Sans" should probably work on most current Linux
systems but "Monospace" should hopefully be available on other Unix systems as
well.

We could also just take whatever wxFontEnumerator returns which should
probably be even more fool-proof.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64041 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agorender characters on OSX one by one as fractional widths leads to errors otherwise
Stefan Csomor [Sun, 18 Apr 2010 18:49:21 +0000 (18:49 +0000)] 
render characters on OSX one by one as fractional widths leads to errors otherwise

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoconcatenation must use prepend mode on osx as well
Stefan Csomor [Sun, 18 Apr 2010 18:38:49 +0000 (18:38 +0000)] 
concatenation must use prepend mode on osx as well

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64039 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoTry to provide backtraces on unix buildbots if the test program crashes.
Michael Wetherell [Sun, 18 Apr 2010 17:19:06 +0000 (17:19 +0000)] 
Try to provide backtraces on unix buildbots if the test program crashes.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64034 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoUse const_cast<> to get 'wxAnyValueType*' from 'const wxAnyValueType*'
Jaakko Salli [Sun, 18 Apr 2010 16:18:46 +0000 (16:18 +0000)] 
Use const_cast<> to get 'wxAnyValueType*' from 'const wxAnyValueType*'

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64031 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agofixing coordinate conversions for captured windows
Stefan Csomor [Sun, 18 Apr 2010 13:29:06 +0000 (13:29 +0000)] 
fixing coordinate conversions for captured windows

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64029 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agousing same API
Stefan Csomor [Sun, 18 Apr 2010 13:18:27 +0000 (13:18 +0000)] 
using same API

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64028 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agostreamlining code for extra controls
Stefan Csomor [Sun, 18 Apr 2010 13:17:16 +0000 (13:17 +0000)] 
streamlining code for extra controls

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64027 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agopainting background of splitter as well, fixes #11958
Stefan Csomor [Sun, 18 Apr 2010 13:15:56 +0000 (13:15 +0000)] 
painting background of splitter as well, fixes #11958

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64026 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoFix STL build
Jaakko Salli [Sun, 18 Apr 2010 11:54:53 +0000 (11:54 +0000)] 
Fix STL build

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64025 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoFix wxAny for VC6 by removing 'wxAny& operator=(const wxVariant &variant)' for it...
Jaakko Salli [Sun, 18 Apr 2010 11:15:26 +0000 (11:15 +0000)] 
Fix wxAny for VC6 by removing 'wxAny& operator=(const wxVariant &variant)' for it. This will break some cases of implicit wxVariant->wxAny conversion (for VC6).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64022 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoCorrectly use wxANY_AS() instead of wxAny::As<>(), for VC6 compatibility
Jaakko Salli [Sun, 18 Apr 2010 10:19:35 +0000 (10:19 +0000)] 
Correctly use wxANY_AS() instead of wxAny::As<>(), for VC6 compatibility

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64021 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agonormal windows also have transparent corners, so don't ever set it to non transparent ...
Stefan Csomor [Sun, 18 Apr 2010 09:49:06 +0000 (09:49 +0000)] 
normal windows also have transparent corners, so don't ever set it to non transparent ...

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64020 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoFix bug with using uninitialized flags in GetParentForModalDialog().
Vadim Zeitlin [Sun, 18 Apr 2010 00:05:37 +0000 (00:05 +0000)] 
Fix bug with using uninitialized flags in GetParentForModalDialog().

GetParentForModalDialog() was called from the ctor initialized list before
m_windowStyle could be initialized by the base class ctor in several different
places, meaning that the check for wxDIALOG_NO_PARENT in this function was
using uninitialized variable.

Fix this by passing the style parameter explicitly to this function to allow
using it from derived class ctors. Still keep an overload which uses the
actual window parent and flags which is simpler to use for later calls to this
function.

Thanks valgrind for finding this one.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64019 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoDon't return invalid size from wxDir::GetTotalSize() for empty dirs.
Vadim Zeitlin [Sat, 17 Apr 2010 14:15:34 +0000 (14:15 +0000)] 
Don't return invalid size from wxDir::GetTotalSize() for empty dirs.

wxDirTraverserSumSize::GetTotalSize() may, and will, return 0 for empty
directories, this is not an error and so don't treat it as such.

Closes #11937.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64018 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoNo real changes, just some minor cleanup of wxDirTraverserSumSize.
Vadim Zeitlin [Sat, 17 Apr 2010 14:15:27 +0000 (14:15 +0000)] 
No real changes, just some minor cleanup of wxDirTraverserSumSize.

Put the comment before the code it comments on, not after.

Return const reference from an accessor.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64017 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAdded virtual destructor
Robert Roebling [Sat, 17 Apr 2010 12:34:32 +0000 (12:34 +0000)] 
Added virtual destructor

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64016 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoRemoved two instances of 'template<>' - looks like VC6 did not need it after all...
Jaakko Salli [Sat, 17 Apr 2010 12:03:18 +0000 (12:03 +0000)] 
Removed two instances of 'template<>' - looks like VC6 did not need it after all, but was just really picky about the order of constructors

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64015 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoSuppressed some harmless VC6 warnings
Jaakko Salli [Sat, 17 Apr 2010 09:00:28 +0000 (09:00 +0000)] 
Suppressed some harmless VC6 warnings

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64012 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoFixed VC6 compilation - wxAny(const wxVariant&) ctor required a specific 'template<>')
Jaakko Salli [Sat, 17 Apr 2010 08:59:13 +0000 (08:59 +0000)] 
Fixed VC6 compilation - wxAny(const wxVariant&) ctor required a specific 'template<>')

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64011 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoRevert change to add -t to buildbot test runs as some branches don't have it.
Michael Wetherell [Sat, 17 Apr 2010 08:50:35 +0000 (08:50 +0000)] 
Revert change to add -t to buildbot test runs as some branches don't have it.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64010 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoUse -t on buildbot test runs.
Michael Wetherell [Fri, 16 Apr 2010 22:14:26 +0000 (22:14 +0000)] 
Use -t on buildbot test runs.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64006 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoDon't define wxADJUST_MINSIZE if it had been already defined.
Vadim Zeitlin [Fri, 16 Apr 2010 20:52:59 +0000 (20:52 +0000)] 
Don't define wxADJUST_MINSIZE if it had been already defined.

Defining wxADJUST_MINSIZE as 0 may be a simple way to make the old code to
compile and while it works without WXWIN_COMPATIBILITY_2_8 it paradoxically
doesn't work with it because this results in errors when wxADJUST_MINSIZE is
defined as 0 by wx itself.

Avoid this problem by only defining wxADJUST_MINSIZE ourselves if it hadn't
been defined yet.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64005 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAdd wxToolBar::GetToolByPos() method to access tools by their index.
Vadim Zeitlin [Fri, 16 Apr 2010 20:52:53 +0000 (20:52 +0000)] 
Add wxToolBar::GetToolByPos() method to access tools by their index.

This is a trivial accessor which somehow was never added before even though we
had GetToolsCount() and even DeleteToolByPos().

Closes #11120.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64004 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoFix build breakage caused by bConvertEncoding deprecation.
Václav Slavík [Fri, 16 Apr 2010 20:09:00 +0000 (20:09 +0000)] 
Fix build breakage caused by bConvertEncoding deprecation.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64003 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoTry a blind fix for VC6 compilation issues (wxAny ctor has become too ambiguous now...
Jaakko Salli [Fri, 16 Apr 2010 15:34:46 +0000 (15:34 +0000)] 
Try a blind fix for VC6 compilation issues (wxAny ctor has become too ambiguous now that it has a form that takes wxVariant reference)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64002 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAdapted wxPropertyGrid documentation, samples, tests, and wxVariantData-macros to...
Jaakko Salli [Fri, 16 Apr 2010 14:36:32 +0000 (14:36 +0000)] 
Adapted wxPropertyGrid documentation, samples, tests, and wxVariantData-macros to the new wxAny<->wxVariant conversions

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64001 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agowxVariant <-> wxAny conversion functionality. Includes implicit construction of wxAny...
Jaakko Salli [Fri, 16 Apr 2010 14:33:52 +0000 (14:33 +0000)] 
wxVariant <-> wxAny conversion functionality. Includes implicit construction of wxAny from wxVariant, and vice versa. wxVariant->wxAny conversion is implemented by adding new virtual member function into wxVariantData. wxAny->wxVariant conversion is implemented by associating wxAnyValueTypes with functions that generate wxVariantData instances (using a hash map).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64000 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoMinor corrections to the documentations.
Vadim Zeitlin [Fri, 16 Apr 2010 12:47:31 +0000 (12:47 +0000)] 
Minor corrections to the documentations.

Use the correct "override" instead of "overload". Remove unnecessary "virtual"
keyword occurrences.

Closes #11949.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63998 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoCorrect the case of wxHyperlinkCtrl in the documentation.
Vadim Zeitlin [Fri, 16 Apr 2010 12:47:27 +0000 (12:47 +0000)] 
Correct the case of wxHyperlinkCtrl in the documentation.

Closes #11814.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63997 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoDocument wxWindow::DoCentre() and wxCENTRE_ON_SCREEN flag.
Vadim Zeitlin [Fri, 16 Apr 2010 12:47:21 +0000 (12:47 +0000)] 
Document wxWindow::DoCentre() and wxCENTRE_ON_SCREEN flag.

See #11949.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63996 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoDon't rely on __GXX_RTTI being defined with g++ < 4.3.
Vadim Zeitlin [Fri, 16 Apr 2010 12:44:30 +0000 (12:44 +0000)] 
Don't rely on __GXX_RTTI being defined with g++ < 4.3.

__GXX_RTTI is only defined since g++ 4.3.2 and so we can't rely on its absence
as indicating the use of -fno-rtti switch with the older versions of the
compiler, only do this for g++ 4.3+.

Also define wxNO_RTTI from configure if --enable-no_rtti was used as we can't
always detect it automatically.

Closes #11955.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63995 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoRemove wxLOCALE_CONV_ENCODING flag.
Václav Slavík [Fri, 16 Apr 2010 11:29:22 +0000 (11:29 +0000)] 
Remove wxLOCALE_CONV_ENCODING flag.

This doesn't affect Unicode builds, only the legacy ANSI one.

PO files are now always converted to the appropriate charset according
to current locale. This was the default behavior for long time; not
doing the conversion was always a fragile hack that didn't work well.
Removing this flag simplifies wxLocale code.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63993 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAdd wxLOCALE_DONT_LOAD_DEFAULT (=0) for clarity.
Václav Slavík [Fri, 16 Apr 2010 11:29:09 +0000 (11:29 +0000)] 
Add wxLOCALE_DONT_LOAD_DEFAULT (=0) for clarity.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63992 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoRemove wxUSE_WCHAR_T checks.
Václav Slavík [Fri, 16 Apr 2010 10:43:18 +0000 (10:43 +0000)] 
Remove wxUSE_WCHAR_T checks.

wxWidgets requires wchar_t for some time now; wx/chartype.h has a check
to fail complation without it. Simplify code by removing now-dead code
for the !wxUSE_WCHAR_T case.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63991 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoMark wx apps as DPI aware on Windows 7/Vista.
Václav Slavík [Fri, 16 Apr 2010 10:22:45 +0000 (10:22 +0000)] 
Mark wx apps as DPI aware on Windows 7/Vista.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63990 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agosynchronizing setup.h_vms with setup_h.in
Jouk Jansen [Fri, 16 Apr 2010 09:15:32 +0000 (09:15 +0000)] 
synchronizing setup.h_vms with setup_h.in

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63989 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agotranslating background style BG_PAINT into opaqueness for speed-up of OS redraws...
Stefan Csomor [Fri, 16 Apr 2010 06:18:16 +0000 (06:18 +0000)] 
translating background style BG_PAINT into opaqueness for speed-up of OS redraws, supporting positioning for native carbon controls also on non-composited windows (custom pane in navservices dialogs)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63988 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoFix using weak references to incomplete classes.
Vadim Zeitlin [Thu, 15 Apr 2010 22:47:37 +0000 (22:47 +0000)] 
Fix using weak references to incomplete classes.

wxWeakRef can work with forward-declared classes provided dynamic_cast<> is
available but this wasn't detected as being the case due to the use of the
obsolete HAVE_DYNAMIC_CAST in its code.

Replace HAVE_DYNAMIC_CAST with !wxNO_RTTI to fix this.

Also add a unit test checking that this does work.

Closes #11916.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63986 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agosupporting switching back background style from transparent on tlws
Stefan Csomor [Thu, 15 Apr 2010 20:04:37 +0000 (20:04 +0000)] 
supporting switching back background style from transparent on tlws

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63985 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agofixing build
Stefan Csomor [Wed, 14 Apr 2010 17:06:53 +0000 (17:06 +0000)] 
fixing build

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63979 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agomake sure log output on the iphone goes to the console by default
Stefan Csomor [Wed, 14 Apr 2010 16:46:45 +0000 (16:46 +0000)] 
make sure log output on the iphone goes to the console by default

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63978 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agofixing layout of custom controls during resize, cleanup of member variables naming
Stefan Csomor [Wed, 14 Apr 2010 12:34:33 +0000 (12:34 +0000)] 
fixing layout of custom controls during resize, cleanup of member variables naming

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63977 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agofixing constants to be of the expected parameter type (float instead of double)
Stefan Csomor [Wed, 14 Apr 2010 12:16:42 +0000 (12:16 +0000)] 
fixing constants to be of the expected parameter type (float instead of double)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63976 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoUpdate buildbot config.
Michael Wetherell [Wed, 14 Apr 2010 07:21:44 +0000 (07:21 +0000)] 
Update buildbot config.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63975 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoAdd builds to the buildbot.
Michael Wetherell [Wed, 14 Apr 2010 05:55:00 +0000 (05:55 +0000)] 
Add builds to the buildbot.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63974 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoadding support for extraControl on osx_carbon
Stefan Csomor [Tue, 13 Apr 2010 20:27:04 +0000 (20:27 +0000)] 
adding support for extraControl on osx_carbon

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63970 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoadding wrapping possibility for native tlws
Stefan Csomor [Tue, 13 Apr 2010 20:24:59 +0000 (20:24 +0000)] 
adding wrapping possibility for native tlws

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63969 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoMake the gui test still run on the buildbot when the non-gui tests fail.
Michael Wetherell [Tue, 13 Apr 2010 20:22:53 +0000 (20:22 +0000)] 
Make the gui test still run on the buildbot when the non-gui tests fail.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63968 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoPut the buildbot's default configure arguments before the optional ones so they can...
Michael Wetherell [Tue, 13 Apr 2010 20:22:13 +0000 (20:22 +0000)] 
Put the buildbot's default configure arguments before the optional ones so they can be overridden.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63967 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoExclude wxWeakRef tests not compiling with VC6 from compilation.
Vadim Zeitlin [Tue, 13 Apr 2010 16:38:18 +0000 (16:38 +0000)] 
Exclude wxWeakRef tests not compiling with VC6 from compilation.

The ctor used by these tests can't be enabled for VC6 (see r63955), simply
disable them to allow the rest to compile.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63965 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agomaking sure calls don't crash for fully native dialogs which don't have a nowpeer...
Stefan Csomor [Tue, 13 Apr 2010 15:07:40 +0000 (15:07 +0000)] 
making sure calls don't crash for fully native dialogs which don't have a nowpeer like filedialog

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63964 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoadding fallbacks for non-native font variants, fixes #11938
Stefan Csomor [Tue, 13 Apr 2010 12:08:51 +0000 (12:08 +0000)] 
adding fallbacks for non-native font variants, fixes #11938

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63963 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agofixing non-precomp build, fixes #10985
Stefan Csomor [Tue, 13 Apr 2010 06:42:02 +0000 (06:42 +0000)] 
fixing non-precomp build, fixes #10985

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63962 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agocorrecting alpha and removing window shadow for overlay
Stefan Csomor [Mon, 12 Apr 2010 20:39:51 +0000 (20:39 +0000)] 
correcting alpha and removing window shadow for overlay

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63961 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agocorrecting alpha and removing window shadow for overlay
Stefan Csomor [Mon, 12 Apr 2010 20:25:46 +0000 (20:25 +0000)] 
correcting alpha and removing window shadow for overlay

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63960 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agofixing copy/paste error from carbon version, fixes #11540
Stefan Csomor [Mon, 12 Apr 2010 16:47:30 +0000 (16:47 +0000)] 
fixing copy/paste error from carbon version, fixes #11540

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63959 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoname change to correctly reflect the autorelease nature of the methods, removing...
Stefan Csomor [Mon, 12 Apr 2010 16:29:35 +0000 (16:29 +0000)] 
name change to correctly reflect the autorelease nature of the methods, removing double release, fixes #11547, fixes #11760

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63958 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agocopying native cursor under cocoa
Stefan Csomor [Mon, 12 Apr 2010 16:26:16 +0000 (16:26 +0000)] 
copying native cursor under cocoa

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63957 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agofixing some warnings, adding proper OnChar support for special keys
Stefan Csomor [Mon, 12 Apr 2010 13:38:41 +0000 (13:38 +0000)] 
fixing some warnings, adding proper OnChar support for special keys

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63956 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

14 years agoFix VC6 compilation which was somehow broken by adding wxWeakRef ctor.
Vadim Zeitlin [Mon, 12 Apr 2010 13:08:01 +0000 (13:08 +0000)] 
Fix VC6 compilation which was somehow broken by adding wxWeakRef ctor.

For some mysterious reason, adding non-template wxWeakRef ctor breaks VC6
build with the apparently completely unrelated errors:

include\wx/toplevel.h(223) : error C2679: binary '=' : no operator defined which takes a right-hand operand of type 'class wxWindow *' (or there is no acceptable conversion)
include\wx/toplevel.h(231) : error C2679: binary '=' : no operator defined which takes a right-hand operand of type 'class wxWindow *' (or there is no acceptable conversion)
src\common\dummy.cpp(27) : error C2856: #pragma hdrstop cannot be inside an #if block

Simply don't define it for VC6 to at least allow the code not using wxWeakRef
to compile.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63955 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775