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

14 years agochanging sequence of makeFirstResponder and makeKeyAndOrderFront
Stefan Csomor [Mon, 12 Apr 2010 12:18:33 +0000 (12:18 +0000)] 
changing sequence of makeFirstResponder and makeKeyAndOrderFront

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

14 years agochange grow box implementation - was incorrectly getting the focus in panels before
Stefan Csomor [Mon, 12 Apr 2010 11:59:47 +0000 (11:59 +0000)] 
change grow box implementation - was incorrectly getting the focus in panels before

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

14 years agoFix gcc warnings about testing undefined preprocessor symbol.
Vadim Zeitlin [Mon, 12 Apr 2010 11:21:45 +0000 (11:21 +0000)] 
Fix gcc warnings about testing undefined preprocessor symbol.

Use #ifdef instead of #if to test for __WXPALMOS[56]__.

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

14 years agoFix emulator compilation with wxX11 after GetMainWindow() renaming.
Vadim Zeitlin [Mon, 12 Apr 2010 11:21:41 +0000 (11:21 +0000)] 
Fix emulator compilation with wxX11 after GetMainWindow() renaming.

This function is now called X11GetMainWindow().

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

14 years agoFix string stream unit test compilation in non-Unicode build.
Vadim Zeitlin [Mon, 12 Apr 2010 11:21:37 +0000 (11:21 +0000)] 
Fix string stream unit test compilation in non-Unicode build.

wxScopedCharBuffer can't be constructed from char* string, just use
wxCharBuffer instead, we don't care about efficiency here.

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

14 years agoUpdate AUI pane resizable status even when it is floating.
Vadim Zeitlin [Mon, 12 Apr 2010 00:37:17 +0000 (00:37 +0000)] 
Update AUI pane resizable status even when it is floating.

Making a pane (e.g. a toolbar) [not] resizable didn't have any effect when it
was floating, fix this by explicitly updating its style to match the internal
state.

Closes #10638.

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

14 years agoFix over aggressive clipping in generic wxListCtrl header drawing.
Vadim Zeitlin [Mon, 12 Apr 2010 00:37:13 +0000 (00:37 +0000)] 
Fix over aggressive clipping in generic wxListCtrl header drawing.

Clipping out 4 pixels vertically resulted in truncating any letters with
descent (e.g. "g" or "q") under OS X where the native header size is just tall
enough to show the text.

Simply don't clip that much but use the entire header width.

Closes #11780.

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

14 years agoFix crash in wxListbook if image list is assigned after adding pages.
Vadim Zeitlin [Mon, 12 Apr 2010 00:37:08 +0000 (00:37 +0000)] 
Fix crash in wxListbook if image list is assigned after adding pages.

The generic wxListCtrl didn't properly support switching between report and
non-report modes without invalidating the control contents, the required in
non report view geometry info pointers were not allocated when the control was
switched to a, say, list mode and not created in it.

Fix this by updating all list control lines when the report mode changes.

Closes #11698.

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

14 years agoTranslate the label used by the font picker dialog.
Vadim Zeitlin [Mon, 12 Apr 2010 00:37:02 +0000 (00:37 +0000)] 
Translate the label used by the font picker dialog.

Simply use _() instead of wxT().

Closes #11935.

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

14 years agoRemove all obsolete release-generation scripts.
Vadim Zeitlin [Mon, 12 Apr 2010 00:36:52 +0000 (00:36 +0000)] 
Remove all obsolete release-generation scripts.

Only leave the files which are still used for the daily snapshots generation.

Also remove the obsolete release-making instructions.

See #11610.

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

14 years agoFix return value of wxList::insert() in non-STL builds.
Vadim Zeitlin [Mon, 12 Apr 2010 00:36:36 +0000 (00:36 +0000)] 
Fix return value of wxList::insert() in non-STL builds.

The returned value was the same as the iterator that was passed in which could
even be invalid when appending.

Fix the wrong use of postfix decrement instead of prefix one and handle the
case of appending correctly.

Closes #11808.

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

14 years agoFix compilation of wxIconBundle in some particular minimal builds.
Vadim Zeitlin [Mon, 12 Apr 2010 00:36:31 +0000 (00:36 +0000)] 
Fix compilation of wxIconBundle in some particular minimal builds.

Let the code compile when wxUSE_STREAMS==1 but wxUSE_FILE and wxUSE_FFILE are
both 0.

Closes #10900.

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

14 years agoUse string sort order with CompareString() in wxString::CmpNoCase().
Vadim Zeitlin [Mon, 12 Apr 2010 00:36:22 +0000 (00:36 +0000)] 
Use string sort order with CompareString() in wxString::CmpNoCase().

Using the default word sort order may fail to define a strict weak order using
this function, thus breaking algorithms such as std::sort which rely on its
properties. It's also more consistent with the fallback manual implementation.

Closes #10375.

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

14 years agoUse template class instead of template function in wxVectorSort().
Vadim Zeitlin [Sun, 11 Apr 2010 17:38:01 +0000 (17:38 +0000)] 
Use template class instead of template function in wxVectorSort().

This allows the code to compile with VC6 which has trouble with explicit
specification of the template functions instantiation.

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

14 years agoFixed typo in documentation string
Jaakko Salli [Sun, 11 Apr 2010 13:20:10 +0000 (13:20 +0000)] 
Fixed typo in documentation string

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

14 years agoAdd wxString::ToStdString() and ToStdWstring().
Vadim Zeitlin [Sun, 11 Apr 2010 11:08:49 +0000 (11:08 +0000)] 
Add wxString::ToStdString() and ToStdWstring().

These trivial helper functions are available in all builds (provided that
wxUSE_STD_STRING is not explicitly set to non-default 0 value) unlike implicit
conversions to std::[w]string which are only available when wxUSE_STL==1.

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

14 years agococoa implementation for overlay
Stefan Csomor [Sun, 11 Apr 2010 09:26:31 +0000 (09:26 +0000)] 
cocoa implementation for overlay

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

14 years agoDon't crash if wxMimeTypesManager is used before wxApp creation.
Vadim Zeitlin [Sat, 10 Apr 2010 18:13:34 +0000 (18:13 +0000)] 
Don't crash if wxMimeTypesManager is used before wxApp creation.

This is arguably not a supported use case but this apparently used to work
before and so it's probably not a good idea to break it now.

Closes #11927.

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

14 years agoAdd non-template wxWeakRef<T> constructor from T*.
Vadim Zeitlin [Sat, 10 Apr 2010 18:13:29 +0000 (18:13 +0000)] 
Add non-template wxWeakRef<T> constructor from T*.

We need a non-template ctor to make the code initializing wxWeakRef with
literal NULL to compile.

Closes #11916.

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

14 years agoAdd wxWeakRef::element_type, remove unnecessary assignment operator.
Vadim Zeitlin [Sat, 10 Apr 2010 18:13:23 +0000 (18:13 +0000)] 
Add wxWeakRef::element_type, remove unnecessary assignment operator.

Define element_type for consistency with other classes (wxSharedPtr, weak_ptr)
and to allow accessing the type from the template code.

Also remove the apparently unnecessary template assignment operator:
assignment from an expression convertible to type T* works even without it and
while assigning something implicitly convertible to T* wouldn't work now, it's
for the best as we don't want to rely on such implicit conversions.

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

14 years agoflushing upon destruction, hope this won't redraw congestion in old code, see #11930
Stefan Csomor [Sat, 10 Apr 2010 17:47:29 +0000 (17:47 +0000)] 
flushing upon destruction, hope this won't redraw congestion in old code, see #11930

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

14 years agonote for future implementation using a former private API
Stefan Csomor [Sat, 10 Apr 2010 17:46:31 +0000 (17:46 +0000)] 
note for future implementation using a former private API

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

14 years agoCorrections for the buildbot configs.
Michael Wetherell [Fri, 9 Apr 2010 23:18:57 +0000 (23:18 +0000)] 
Corrections for the buildbot configs.

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

14 years agoAdd wxDFB to buildbot.
Michael Wetherell [Fri, 9 Apr 2010 23:04:43 +0000 (23:04 +0000)] 
Add wxDFB to buildbot.

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

14 years agoTypos.
Michael Wetherell [Fri, 9 Apr 2010 22:20:59 +0000 (22:20 +0000)] 
Typos.

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

14 years agoUpdate configuration of linux buildbots.
Michael Wetherell [Fri, 9 Apr 2010 22:04:59 +0000 (22:04 +0000)] 
Update configuration of linux buildbots.

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

14 years agoRegenerated makefiles after removing USE_GDIPLUS.
Václav Slavík [Fri, 9 Apr 2010 14:14:26 +0000 (14:14 +0000)] 
Regenerated makefiles after removing USE_GDIPLUS.

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

14 years agoRemove USE_GDIPLUS setting from bakefiles.
Václav Slavík [Fri, 9 Apr 2010 14:12:08 +0000 (14:12 +0000)] 
Remove USE_GDIPLUS setting from bakefiles.

GDI+ DLL is always loaded dynamically at runtime, so there's no reason
to link against it anymore.

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