]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
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

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