]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
14 years agowxRTC: fixed style selection reset after editing a style.
Julian Smart [Tue, 27 Apr 2010 16:09:22 +0000 (16:09 +0000)] 
wxRTC: fixed style selection reset after editing a style.
wxRTC: can now edit line spacing in .1 increments from 1 to 2.

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

14 years agoFont output fix
Julian Smart [Tue, 27 Apr 2010 16:07:38 +0000 (16:07 +0000)] 
Font output fix

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

14 years agoSafeguard against redundant registration of the same wxAnyValueType instance (by...
Jaakko Salli [Tue, 27 Apr 2010 13:26:45 +0000 (13:26 +0000)] 
Safeguard against redundant registration of the same wxAnyValueType instance (by storing pointers in a set instead of a vector)

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

14 years agoUse '+' in accelerators, not '-'.
Václav Slavík [Tue, 27 Apr 2010 09:38:17 +0000 (09:38 +0000)] 
Use '+' in accelerators, not '-'.

This was always GTK+ standard and even Windows uses it now, see the
UX Guide.

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

14 years agoAdd support for storing translations in win32 resources.
Václav Slavík [Mon, 26 Apr 2010 20:51:22 +0000 (20:51 +0000)] 
Add support for storing translations in win32 resources.

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

14 years agoShorten lang names in wxTranslations, not wxFileTranslationsLoader.
Václav Slavík [Mon, 26 Apr 2010 20:51:16 +0000 (20:51 +0000)] 
Shorten lang names in wxTranslations, not wxFileTranslationsLoader.

If a catalog with full language name ("fr_BE") doesn't exist,
wxFileTranslationsLoader tries to look for just the base language ("fr")
too. This isn't something specific to wxFileTranslationsLoader, it makes
sense to do it regardless of the loader.

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

14 years agoAdd wxMemoryBuffer::release().
Václav Slavík [Mon, 26 Apr 2010 20:51:07 +0000 (20:51 +0000)] 
Add wxMemoryBuffer::release().

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

14 years agoAdd instance argument to wxLoadUserResource().
Václav Slavík [Mon, 26 Apr 2010 20:51:02 +0000 (20:51 +0000)] 
Add instance argument to wxLoadUserResource().

This makes it possible to load resources from other modules than the
main executable.

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

14 years agoMake wxLoadUserResource() declaration available to wxBase too.
Václav Slavík [Mon, 26 Apr 2010 20:50:57 +0000 (20:50 +0000)] 
Make wxLoadUserResource() declaration available to wxBase too.

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

14 years agoAdd wxLoadUserResource() overload not copying the resource data.
Vadim Zeitlin [Mon, 26 Apr 2010 16:53:21 +0000 (16:53 +0000)] 
Add wxLoadUserResource() overload not copying the resource data.

The existing wxLoadUserResource() copies the resource data which is often
unnecessary. Add another overload which just returns the pointer directly to
the resource data.

Also move the function into base from core as it can be useful for the console
applications as well.

Finally, define wxUserResourceStr used by this function only in the same file
where the function itself is defined instead of datacmn.cpp.

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

14 years agoRemove a harmless unused parameter warning in wxOSX/Carbon.
Vadim Zeitlin [Mon, 26 Apr 2010 16:23:42 +0000 (16:23 +0000)] 
Remove a harmless unused parameter warning in wxOSX/Carbon.

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

14 years agoFix wxGTK1 event loop definition mismatch between base/GUI.
Vadim Zeitlin [Mon, 26 Apr 2010 14:19:31 +0000 (14:19 +0000)] 
Fix wxGTK1 event loop definition mismatch between base/GUI.

We must define wxEventLoopBase in the same way in base and GUI code,
otherwise, even though we fool the compiler into accepting our code, it
crashes or behaves otherwise weirdly during run-time because of vtbl mismatch.

This fixes wxGTK1 which was crashing on startup since the FSWATCHER branch
merge in r62474 and associated changes to support the event loop sources.

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

14 years agoUse wxMenuBar::Attach/Detach() instead of SetInvokingWindow() in wxGTK1.
Vadim Zeitlin [Mon, 26 Apr 2010 14:19:26 +0000 (14:19 +0000)] 
Use wxMenuBar::Attach/Detach() instead of SetInvokingWindow() in wxGTK1.

This is the same as r64127 for wxGTK.

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

14 years agoFix wxGTK1 link after toolbar files renaming.
Vadim Zeitlin [Mon, 26 Apr 2010 14:19:22 +0000 (14:19 +0000)] 
Fix wxGTK1 link after toolbar files renaming.

Fix a typo in r62849: tooltip.cpp was used instead of toolbar.cpp resulting in
linking errors for the duplicate symbols in the former and undefined symbols
in the latter.

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

14 years agoSet popup menu invoking window in wxWindowBase and not in all ports.
Vadim Zeitlin [Mon, 26 Apr 2010 14:19:17 +0000 (14:19 +0000)] 
Set popup menu invoking window in wxWindowBase and not in all ports.

Don't duplicate the code for setting (and unsetting, which was forgotten by at
least wxGTK) the popup menu invoking window in all ports but do it in the base
class PopupMenu() itself.

Also add a helper wxMenuInvokingWindowSetter class which ensures that the
invoking window will be unset in any case.

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

14 years agoDon't set invoking window recursively in wxGTK wxWindow::PopupMenu().
Vadim Zeitlin [Mon, 26 Apr 2010 14:19:10 +0000 (14:19 +0000)] 
Don't set invoking window recursively in wxGTK wxWindow::PopupMenu().

Setting the invoking window for all submenus is unnecessary as
wxMenu::GetWindow() recurses upwards anyhow and results in assert failures
after recent menu code changes.

Simply don't do this.

OTOH do reset the invoking window to NULL after the menu is dismissed to avoid
storing a dangling pointer in the menu.

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

14 years agono real change: just fix RCS-ID so that it reflects the current revision number
Francesco Montorsi [Sun, 25 Apr 2010 21:33:16 +0000 (21:33 +0000)] 
no real change: just fix RCS-ID so that it reflects the current revision number

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

14 years agoDon't include wx/msw/private.h from dynlib.h.
Václav Slavík [Sun, 25 Apr 2010 12:07:37 +0000 (12:07 +0000)] 
Don't include wx/msw/private.h from dynlib.h.

Because it's private header and introduces dependency on window.h.

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

14 years agoDeclare various WXH* handles compatibly with SDK.
Václav Slavík [Sun, 25 Apr 2010 12:07:30 +0000 (12:07 +0000)] 
Declare various WXH* handles compatibly with SDK.

It is no longer necessary to cast between e.g. HINSTANCE and
WXHINSTANCE, they are now declared as the same type (without including
Windows SDK header).

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

14 years agoRemove unnecessary duplicate code dealing with invoking window from wxOSX.
Vadim Zeitlin [Sat, 24 Apr 2010 20:39:44 +0000 (20:39 +0000)] 
Remove unnecessary duplicate code dealing with invoking window from wxOSX.

This is roughly the same as r64127 for wxGTK but for wxOSX: don't duplicate
the functionality already present in the base class in Mac-specific way. Just
use wxMenu::GetWindow() instead of painstakingly propagating invoking window
changes via the entire menu hierarchy.

Also attach the root menu used in wxOSX to the menu bar to ensure that the
correct window can be found for all its menus.

Closes #11990.

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

14 years agoRecurse upwards the menu hierarchy in wxMenu::GetWindow().
Vadim Zeitlin [Sat, 24 Apr 2010 20:39:39 +0000 (20:39 +0000)] 
Recurse upwards the menu hierarchy in wxMenu::GetWindow().

Only the top level menus have non-NULL wxMenuBar pointer too, so recurse
upwards the menu hierarchy in GetWindow() and not (just) GetInvokingWindow().

This fixes event processing for submenus broken by the recent changes.

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

14 years agoDisable ImageTestCase::LoadFromFile() on build slaves.
Vadim Zeitlin [Sat, 24 Apr 2010 17:52:27 +0000 (17:52 +0000)] 
Disable ImageTestCase::LoadFromFile() on build slaves.

This test case keeps failing erratically resulting in too many bogus build
breakage notifications. Disable it until someone has time to fix it properly.

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

14 years agoA slightly better compilation fix after PCH-less build breakage in r64126.
Vadim Zeitlin [Sat, 24 Apr 2010 16:59:09 +0000 (16:59 +0000)] 
A slightly better compilation fix after PCH-less build breakage in r64126.

Include wx/frame.h header instead of casting wxFrame to wxWindow using C style
cast. Although this does work now and probably will work later too it seems
better to not use the cast nevertheless.

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

14 years agoAdded missing @since tags to wxTranslationsLoader classes.
Václav Slavík [Sat, 24 Apr 2010 16:10:30 +0000 (16:10 +0000)] 
Added missing @since tags to wxTranslationsLoader classes.

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

14 years agonon-pch build fix
Paul Cornett [Sat, 24 Apr 2010 14:40:58 +0000 (14:40 +0000)] 
non-pch build fix

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

14 years agoDon't use invoking window in wxGTK wxMenuBar implementation.
Vadim Zeitlin [Sat, 24 Apr 2010 15:08:00 +0000 (15:08 +0000)] 
Don't use invoking window in wxGTK wxMenuBar implementation.

wxGTK wxMenuBar used its own SetInvokingWindow/UnsetInvokingWindow() and
related functions instead of reusing the base class Attach/Detach() which
exist for exactly the same purpose. This resulted in unnecessary code
duplication and confusion and, since the changes of r64104, resulted in
asserts due to use of SetInvokingWindow() for non-popup menus.

Fix this by removing the wxGTK-specific functions and doing the work they used
to do in (now overridden) Attach() and Detach(). Also call Attach/Detach()
instead of these functions from wxGTK wxFrame and wxMDIParentFrame code.

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

14 years agoUse wxMenu::GetWindow() instead of GetInvokingWindow() in SendEvent().
Vadim Zeitlin [Sat, 24 Apr 2010 15:07:55 +0000 (15:07 +0000)] 
Use wxMenu::GetWindow() instead of GetInvokingWindow() in SendEvent().

This simplifies the code as we don't need to walk the menu hierarchy upwards
any more (GetInvokingWindow() does it now) and also makes it work for all
menus, not just the popup ones.

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

14 years agoAvoid code duplication in wxGTK menu events generation code.
Vadim Zeitlin [Sat, 24 Apr 2010 15:07:51 +0000 (15:07 +0000)] 
Avoid code duplication in wxGTK menu events generation code.

Reuse the existing DoCommonMenuCallbackCode() function instead of duplicating
its code in menuitem_select() and menuitem_deselect() GTK callbacks.

No changes in behaviour.

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

14 years agoNo real changes, just remove empty wxMenuBar dtor in wxGTK.
Vadim Zeitlin [Sat, 24 Apr 2010 15:07:47 +0000 (15:07 +0000)] 
No real changes, just remove empty wxMenuBar dtor in wxGTK.

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

14 years agoMove wxMSW wxMenu::GetWindow() down to wxMenuBase.
Vadim Zeitlin [Sat, 24 Apr 2010 15:07:39 +0000 (15:07 +0000)] 
Move wxMSW wxMenu::GetWindow() down to wxMenuBase.

GetInvokingWindow() can only be used for the popup menus which have the
invoking window, so add a new function which can be used to get the window
associated with any kind of menu in all ports -- it already existed in wxMSW
but is needed elsewhere too.

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

14 years agoAllow wxPGProperty::Hide() to be called on unattached property (see #11987)
Jaakko Salli [Sat, 24 Apr 2010 10:13:22 +0000 (10:13 +0000)] 
Allow wxPGProperty::Hide() to be called on unattached property (see #11987)

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

14 years agoIn wxPropertyGrid::DoPropertyChanged(), call GetEditorControl() as late as possible...
Jaakko Salli [Sat, 24 Apr 2010 10:02:25 +0000 (10:02 +0000)] 
In wxPropertyGrid::DoPropertyChanged(), call GetEditorControl() as late as possible so that editor can be changed in wxPGProperty::OnSetValue() (fixes #11987)

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

14 years agowxLocale::InitLanguagesDB() doesn't use wxStringTokenizer, remove it.
Václav Slavík [Sat, 24 Apr 2010 07:06:38 +0000 (07:06 +0000)] 
wxLocale::InitLanguagesDB() doesn't use wxStringTokenizer, remove it.

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

14 years agoSplit intl.h into intl.h, language.h and translation.h.
Václav Slavík [Sat, 24 Apr 2010 07:06:32 +0000 (07:06 +0000)] 
Split intl.h into intl.h, language.h and translation.h.

To make the code more manageable, intl.h now contains wxLocale and
translation.h all translations-related stuff (wxTranslations, _() etc.).
Code generated by genlang.py was moved into its own files (language.h,
languageinfo.cpp).

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

14 years agoSplit wxLocale into wxLocale and wxTranslations.
Václav Slavík [Sat, 24 Apr 2010 07:06:18 +0000 (07:06 +0000)] 
Split wxLocale into wxLocale and wxTranslations.

wxTranslations is for handling gettext translations. wxLocale manages
locale and provides compatiblity API for translations. Separating these
two loosely related tasks makes it possible to use translations into
languages not known by Windows or using localized GUI without all the
locales compilations.

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

14 years agoFix typo in internat sample.
Václav Slavík [Sat, 24 Apr 2010 07:06:11 +0000 (07:06 +0000)] 
Fix typo in internat sample.

Catalog should be added with domain name ("wxstd"), not file name
("wxstd.mo").

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

14 years agoWork around wrong client size computation for not yet shown maximized windows.
Vadim Zeitlin [Fri, 23 Apr 2010 19:34:36 +0000 (19:34 +0000)] 
Work around wrong client size computation for not yet shown maximized windows.

The client size of maximized windows which hadn't been shown yet isn't
computed correctly by wxMSW because WM_NCCALCSIZE returns too small values for
some reason. Attempts to fix this were unsuccessful so just ensure that the
window is re-laid out using the right size from WM_SIZE it receives when it is
shown instead of using the wrong pending size.

Closes #11762.

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

14 years agoFixed (correct) warning about uninitialized inputConv.
Václav Slavík [Thu, 22 Apr 2010 14:57:18 +0000 (14:57 +0000)] 
Fixed (correct) warning about uninitialized inputConv.

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

14 years agoFix harmless warning about a possibly uninitialized variable.
Vadim Zeitlin [Thu, 22 Apr 2010 14:16:26 +0000 (14:16 +0000)] 
Fix harmless warning about a possibly uninitialized variable.

gcc complained about possibly uninitialized variable in QueueTestCase in
optimized build, just initialize it to suppress this warning.

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

14 years agoDon't test possibly uninitialized variable in wxGCDC::SetLogicalFunction().
Vadim Zeitlin [Thu, 22 Apr 2010 14:16:22 +0000 (14:16 +0000)] 
Don't test possibly uninitialized variable in wxGCDC::SetLogicalFunction().

The variable "mode" is not filled by TranslateRasterOp() function if the input
function is not supported, so don't compare it with wxCOMPOSITION_XOR later.
Just compare "function" itself with wxXOR as this works in any case.

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

14 years agoFix harmless g++ 4.3 warning about suggested parentheses.
Vadim Zeitlin [Thu, 22 Apr 2010 14:16:18 +0000 (14:16 +0000)] 
Fix harmless g++ 4.3 warning about suggested parentheses.

Add parentheses around && within ||.

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

14 years agoDefine wxStrto{d,l,ul}_l() functions in non-Unicode build too.
Vadim Zeitlin [Thu, 22 Apr 2010 14:16:12 +0000 (14:16 +0000)] 
Define wxStrto{d,l,ul}_l() functions in non-Unicode build too.

This fixes the unit test compilation in ANSI build.

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

14 years agoAdded parenthesis around macro arguments
Jaakko Salli [Thu, 22 Apr 2010 14:06:00 +0000 (14:06 +0000)] 
Added parenthesis around macro arguments

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

14 years agoAllow wxAny to contain 'const char*' or 'const wchar_t*'. This was previously not...
Jaakko Salli [Thu, 22 Apr 2010 13:51:38 +0000 (13:51 +0000)] 
Allow wxAny to contain 'const char*' or 'const wchar_t*'. This was previously not possible since these pointers were converted to wxString, as convenient means to work with string literals. Now pointers (to string literals) are stored instead, and As<wxString>(), comparison operators do the type conversion.

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

14 years agoFix off by one error in wxFTP::GetFileSize().
Vadim Zeitlin [Thu, 22 Apr 2010 12:08:16 +0000 (12:08 +0000)] 
Fix off by one error in wxFTP::GetFileSize().

We incremented the index once more even after finding the line we were looking
for in the array which meant that we accessed a wrong array element in any
case and could even attempt to access an out of bound one if the file was
found in the last line.

Closes #11964.

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

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