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

14 years agoDiscard fully transparent alpha channel when loading bitmaps.
Vadim Zeitlin [Fri, 9 Apr 2010 13:15:25 +0000 (13:15 +0000)] 
Discard fully transparent alpha channel when loading bitmaps.

Some bitmap files declare themselves to be 32bpp, normally indicating that
they have an alpha channel, but have only zeroes in their alpha data. Hence
loading them used to create fully transparent images which wasn't the desired
effect.

Fix this by simply discarding the alpha channel entirely if it turns out that
all pixels were fully transparent.

Closes #10915.

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

14 years agoAdd wxImage::ClearAlpha().
Vadim Zeitlin [Fri, 9 Apr 2010 13:15:20 +0000 (13:15 +0000)] 
Add wxImage::ClearAlpha().

This simple method can be used to remove alpha channel from the image.

See #10915.

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

14 years agoreverting r57083 for OSX, fixes #11922
Stefan Csomor [Fri, 9 Apr 2010 08:10:31 +0000 (08:10 +0000)] 
reverting r57083 for OSX, fixes #11922

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

14 years agoAdd system libs in msvc/wx/setup.h too.
Václav Slavík [Fri, 9 Apr 2010 06:55:19 +0000 (06:55 +0000)] 
Add system libs in msvc/wx/setup.h too.

This makes it possible to use static build of wx from VC++ by just
including its headers. Even though it's common to have these libs in
your settings, it's not always the case.

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

14 years agoAdd initial config for TBITCWXBUILDBOT buildbot.
Michael Wetherell [Thu, 8 Apr 2010 21:46:58 +0000 (21:46 +0000)] 
Add initial config for TBITCWXBUILDBOT buildbot.

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

14 years agotrying to simplify and optimize font handling
Stefan Csomor [Thu, 8 Apr 2010 21:39:14 +0000 (21:39 +0000)] 
trying to simplify and optimize font handling

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

14 years agousing statically allocated font objects for speedup
Stefan Csomor [Thu, 8 Apr 2010 18:47:41 +0000 (18:47 +0000)] 
using statically allocated font objects for speedup

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

14 years agoallowing direct native tlw modal loops
Stefan Csomor [Thu, 8 Apr 2010 09:46:36 +0000 (09:46 +0000)] 
allowing direct native tlw modal loops

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

14 years agoswitching modal loop implementation, fixes #11921
Stefan Csomor [Thu, 8 Apr 2010 09:45:59 +0000 (09:45 +0000)] 
switching modal loop implementation, fixes #11921

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

14 years ago#include <algorithm>
Robin Dunn [Wed, 7 Apr 2010 22:23:45 +0000 (22:23 +0000)] 
#include <algorithm>
to fix problem in PCH-less STL builds

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

14 years agofixing NSFontDescriptor matching for font weights and styles, fixes #11910
Stefan Csomor [Wed, 7 Apr 2010 22:07:02 +0000 (22:07 +0000)] 
fixing NSFontDescriptor matching for font weights and styles, fixes #11910

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

14 years ago(blind) fix for buildbot breakage with MSVC 6
Robin Dunn [Wed, 7 Apr 2010 21:56:08 +0000 (21:56 +0000)] 
(blind) fix for buildbot breakage with MSVC 6

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

14 years agoDrop the Array class added in the last scintilla patch and switch to using wxVector...
Robin Dunn [Wed, 7 Apr 2010 20:40:32 +0000 (20:40 +0000)] 
Drop the Array class added in the last scintilla patch and switch to using wxVector instead.  Closes #11765.

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

14 years agoAdd wxVectorSort function for sorting wxVector<T> containers. Closes #11889
Robin Dunn [Wed, 7 Apr 2010 20:32:25 +0000 (20:32 +0000)] 
Add wxVectorSort function for sorting wxVector<T> containers.  Closes #11889

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

14 years agoTest m_dc before using it
Robin Dunn [Wed, 7 Apr 2010 20:29:08 +0000 (20:29 +0000)] 
Test m_dc before using it

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

14 years agofixing focus, fixes #11911
Stefan Csomor [Wed, 7 Apr 2010 20:27:17 +0000 (20:27 +0000)] 
fixing focus, fixes #11911

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

14 years agoFixed wxFileSystem::FileNameToURL() regression with UNC paths.
Václav Slavík [Wed, 7 Apr 2010 18:59:51 +0000 (18:59 +0000)] 
Fixed wxFileSystem::FileNameToURL() regression with UNC paths.

We cannot use wxURI to do the escaping, because wxFileSystem depends on
use of nonstandard escaping and prefixes (wxURI eats away
file:// prefix, while wxFileSystem uses it to signify UNC paths;
wxFileSystem needs to escape #,: as well).

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

14 years agoborders might have to be drawn differently
Stefan Csomor [Wed, 7 Apr 2010 18:42:08 +0000 (18:42 +0000)] 
borders might have to be drawn differently

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

14 years agoFix harmless MSVC warning about int to bool conversion in Scintilla.
Vadim Zeitlin [Wed, 7 Apr 2010 12:55:21 +0000 (12:55 +0000)] 
Fix harmless MSVC warning about int to bool conversion in Scintilla.

The warning is harmless but prevents buildbot from reporting any new warnings
during the library compilation step so suppress it.

Notice that it might be better if ViewStyle::extraFontFlag was bool and not
int to begin with.

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

14 years agoSuppress dummy gcc warnings in regex library code.
Vadim Zeitlin [Wed, 7 Apr 2010 12:52:31 +0000 (12:52 +0000)] 
Suppress dummy gcc warnings in regex library code.

These warnings are harmless (variables are always initialized when they are
used) but they unfortunately prevent buildbot from reporting any new warnings
(which may not be harmless) during the library compilation step so suppress
them in the least intrusive way possible.

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

14 years agoWork around "possibly uninitialized variable" warning in wxFileName.
Vadim Zeitlin [Wed, 7 Apr 2010 12:43:29 +0000 (12:43 +0000)] 
Work around "possibly uninitialized variable" warning in wxFileName.

Initialize multiplier to its default value in GetHumanReadableSize() to avoid
a "warning: 'multiplier' may be used uninitialized in this function" from g++.

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

14 years agoRename the rest of wxSIZE_CONV_TRADIONAL to wxSIZE_CONV_TRADITIONAL.
Vadim Zeitlin [Wed, 7 Apr 2010 10:50:41 +0000 (10:50 +0000)] 
Rename the rest of wxSIZE_CONV_TRADIONAL to wxSIZE_CONV_TRADITIONAL.

Fix tests compilation after r63886.

See #10673.

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

14 years agoCorrect documentation of wxSizeConvention elements.
Vadim Zeitlin [Wed, 7 Apr 2010 10:50:37 +0000 (10:50 +0000)] 
Correct documentation of wxSizeConvention elements.

1KiB is 1024 bytes, not 1000. Also put the elements in the correct order (same
as in the real header).

See #10673.

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

14 years agoswitching loop mode for idle processing, fixes #11912 (left is a redraw issue, textfi...
Stefan Csomor [Wed, 7 Apr 2010 09:05:26 +0000 (09:05 +0000)] 
switching loop mode for idle processing, fixes #11912 (left is a redraw issue, textfield borders are not repainted correctly when enabling)

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

14 years agomoving static box construction - z Order makes checkboxes nonresponsive otherwise...
Stefan Csomor [Wed, 7 Apr 2010 07:22:30 +0000 (07:22 +0000)] 
moving static box construction - z Order makes checkboxes nonresponsive otherwise on OSX

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

14 years agoFix wxGTK compilation after r63880.
Vadim Zeitlin [Tue, 6 Apr 2010 23:51:13 +0000 (23:51 +0000)] 
Fix wxGTK compilation after r63880.

SendTextUpdatedEvent() needs to be public as it's called from GTK callback.

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

14 years agofix typos introduced by error in r63870 (see #10673)
Francesco Montorsi [Tue, 6 Apr 2010 22:51:11 +0000 (22:51 +0000)] 
fix typos introduced by error in r63870 (see #10673)

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

14 years agomaking gradients working again
Stefan Csomor [Tue, 6 Apr 2010 22:43:49 +0000 (22:43 +0000)] 
making gradients working again

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

14 years agosupporting text foreground color, fixes #11903
Stefan Csomor [Tue, 6 Apr 2010 21:17:59 +0000 (21:17 +0000)] 
supporting text foreground color, fixes #11903

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

14 years agofixing warnings
Stefan Csomor [Tue, 6 Apr 2010 18:57:35 +0000 (18:57 +0000)] 
fixing warnings

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

14 years agoAdd wxTextEntryBase::ForwardEnableTextChangedEvents().
Vadim Zeitlin [Tue, 6 Apr 2010 18:46:35 +0000 (18:46 +0000)] 
Add wxTextEntryBase::ForwardEnableTextChangedEvents().

Use this method to forward the status of text events in the implementation of
wxComboBox in wxOSX/Carbon. This ensures that the events are correctly [not]
generated when various wxComboBox methods are called.

The unit tests now also pass with wxOSX/Carbon.

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

14 years agoFix text text changed events sending in OS X combo box and text control.
Vadim Zeitlin [Tue, 6 Apr 2010 18:46:29 +0000 (18:46 +0000)] 
Fix text text changed events sending in OS X combo box and text control.

Don't duplicate needlessly wxTextEntry functionality in wxTextCtrl.

Don't clear the combobox text entry part twice in wxComboBox::DoClear(), it is
supposed to only clear the item container contents as the base class Clear()
already calls wxTextEntry::Clear().

Do send text updated events from wxTextEntry itself as it applies to
wxComboBox just as well as to wxTextCtrl.

The unit tests now pass under wxOSX/Cocoa, not breaking them again would be
appreciated.

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

14 years agoMove SendTextUpdatedEvent() down to wxTextEntryBase from wxTextCtrlBase.
Vadim Zeitlin [Tue, 6 Apr 2010 18:46:24 +0000 (18:46 +0000)] 
Move SendTextUpdatedEvent() down to wxTextEntryBase from wxTextCtrlBase.

This will allow reusing it in wxComboBox implementation as well.

Also add SendTextUpdatedEventIfAllowed() which can be used to only send the
events if they were not blocked at wxTextEntry level.

No real changes otherwise.

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

14 years agoImplement support for gradient stops for OS X.
Vadim Zeitlin [Tue, 6 Apr 2010 18:46:18 +0000 (18:46 +0000)] 
Implement support for gradient stops for OS X.

Currently the code still doesn't work but OTOH it's not any worse than what it
was before.

See #11904.

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

14 years agoRemove duplicated GetTextPeer() definitions from derived classes.
Vadim Zeitlin [Tue, 6 Apr 2010 18:46:14 +0000 (18:46 +0000)] 
Remove duplicated GetTextPeer() definitions from derived classes.

GetTextPeer() may be implemented directly in wxTextEntry under OS X, there is
no need to define it (identically) in wxTextCtrl and wxComboBox.

Also just call this method instead of duplicating its code in wxOSX
wxTextCtrl.

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

14 years agoSet the value passed to wxComboBox ctor in wxOSX/Cocoa.
Vadim Zeitlin [Tue, 6 Apr 2010 18:46:09 +0000 (18:46 +0000)] 
Set the value passed to wxComboBox ctor in wxOSX/Cocoa.

The initial value was simply ignored, do use it now if it's specified, i.e.
non empty.

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

14 years agoSuppress a harmless signed/unsigned comparison warning.
Vadim Zeitlin [Tue, 6 Apr 2010 18:46:05 +0000 (18:46 +0000)] 
Suppress a harmless signed/unsigned comparison warning.

wxComboBox::FindString() used int loop index, change it to unsigned one.

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

14 years agoSuppress unused parameter warnings.
Vadim Zeitlin [Tue, 6 Apr 2010 18:46:00 +0000 (18:46 +0000)] 
Suppress unused parameter warnings.

observer argument of wxCFEventLoop::ObserverCallBack() and timestampsec one of
wxComboBox::OSXHandleClicked() were unused and generated gcc warnings.

wxComboBox::EnableTextChangedEvents() needs to be implemented but as there is
already a wxFAIL in it an extra warning is not really useful.

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