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

14 years agoAttempt to correct mysterious MSVC6 compilation error.
Vadim Zeitlin [Tue, 6 Apr 2010 17:38:27 +0000 (17:38 +0000)] 
Attempt to correct mysterious MSVC6 compilation error.

For some reasons MSVC6 refuses to compile TestData struct initialization. Try
to work around it by not using wxULongLong as this looks like the only thing
which might be confusing it.

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

14 years agoFix more harmless warnings.
Vadim Zeitlin [Tue, 6 Apr 2010 17:38:23 +0000 (17:38 +0000)] 
Fix more harmless warnings.

Fix a warning about unused parameters and another about signed/unsigned
comparison during samples and tests compilation.

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

14 years agoadding clipboard events, fixes #11906
Stefan Csomor [Tue, 6 Apr 2010 16:51:12 +0000 (16:51 +0000)] 
adding clipboard events, fixes #11906

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

14 years agoRemove extra semicolons from NOTIFYICONDATA_V[12]_SIZE definitions.
Vadim Zeitlin [Tue, 6 Apr 2010 16:23:15 +0000 (16:23 +0000)] 
Remove extra semicolons from NOTIFYICONDATA_V[12]_SIZE definitions.

These semicolons prevented the code from compiling when using old SDK which
didn't provide these symbols itself.

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

14 years agoAdd support for IEC and SI size units to wxFileName::GetHumanReadableSize().
Vadim Zeitlin [Tue, 6 Apr 2010 14:53:04 +0000 (14:53 +0000)] 
Add support for IEC and SI size units to wxFileName::GetHumanReadableSize().

Allow choosing the multiplier to use (1000 or 1024) and the names of the units
(SI or IEC). By default, still use traditional convention, i.e. multiplier of
1024 but SI unit names. This will probably need to be changed to use IEC units
in the future.

Also added unit test for this function.

Closes #10673.

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

14 years agoAdd default constructor to wxGraphicsGradientStop.
Vadim Zeitlin [Tue, 6 Apr 2010 13:55:35 +0000 (13:55 +0000)] 
Add default constructor to wxGraphicsGradientStop.

It may be convenient to create wxGraphicsGradientStop first and initialize it
later so allow doing this by providing the default argument for constructor
parameters and thus allowing to use it as the default constructor.

See #11897.

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

14 years agoCorrect check for MSVC version in wxUSE_GRAPHICS_CONTEXT definition.
Vadim Zeitlin [Tue, 6 Apr 2010 13:55:30 +0000 (13:55 +0000)] 
Correct check for MSVC version in wxUSE_GRAPHICS_CONTEXT definition.

Set wxUSE_GRAPHICS_CONTEXT to 1 by default for MSVC 7.1+ and not 8+.

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

14 years agoUpdate OpenVMS compile support
Jouk Jansen [Tue, 6 Apr 2010 09:47:19 +0000 (09:47 +0000)] 
Update OpenVMS compile support

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

14 years agoCorrect checks for gradient stop position.
Vadim Zeitlin [Tue, 6 Apr 2010 00:17:16 +0000 (00:17 +0000)] 
Correct checks for gradient stop position.

It may be <= 1 in the final version and not < 1.

See #11897.

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

14 years agonon PCH compilation
Robert Roebling [Mon, 5 Apr 2010 17:52:05 +0000 (17:52 +0000)] 
non PCH compilation

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

14 years agoFix text input and completion in wxComboCtrl and wxOwnerDrawnComboBox.
Václav Slavík [Mon, 5 Apr 2010 17:19:04 +0000 (17:19 +0000)] 
Fix text input and completion in wxComboCtrl and wxOwnerDrawnComboBox.

Both wxEVT_KEY_DOWN and wxEVT_CHAR must be handled and only the latter
used for completion (or any characters input). Don't make incorrect
assumptions about wxEVT_CHAR keycodes either, it's only the Unicode
character and printability that matter.

Otherwise, completion in readonly controls wouldn't work correctly
for e.g. numbers on numpad or non-ASCII characters.

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

14 years agowxOwnerDrawnComboBox: handle Home and End keys as native control does.
Václav Slavík [Mon, 5 Apr 2010 17:18:58 +0000 (17:18 +0000)] 
wxOwnerDrawnComboBox: handle Home and End keys as native control does.

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

14 years agoPass events around with ProcessEvent(), not AddPendingEvent().
Václav Slavík [Mon, 5 Apr 2010 17:18:55 +0000 (17:18 +0000)] 
Pass events around with ProcessEvent(), not AddPendingEvent().

The latter adds the event for later processing. As a result, the event
appears to be processed to the caller, even if the handled it was passed
to called Skip() on it. ProcessEvent() doesn't suffer from this problem,
it may modify the event as expected.

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

14 years agowxOwnerDrawnComboBox: handle numpad navigation keys.
Václav Slavík [Mon, 5 Apr 2010 17:18:50 +0000 (17:18 +0000)] 
wxOwnerDrawnComboBox: handle numpad navigation keys.

For consitency with the native control, up/down/pgup/pgdown keys should
be handled even when pressed on the numpad.

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

14 years agoImplement native mousewheel behaviour in wxOwnerDrawnComboBox.
Václav Slavík [Mon, 5 Apr 2010 17:18:46 +0000 (17:18 +0000)] 
Implement native mousewheel behaviour in wxOwnerDrawnComboBox.

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

14 years agoIn wxPopupFocusHandler, watch for EVT_CHAR, not EVT_KEY_DOWN.
Václav Slavík [Mon, 5 Apr 2010 17:18:41 +0000 (17:18 +0000)] 
In wxPopupFocusHandler, watch for EVT_CHAR, not EVT_KEY_DOWN.

We should close the popup only if neither of these events was processed;
previously, EVT_CHAR would never reach the popup in open state, as it
would be closed automatically.

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

14 years agomoving OnInit back
Stefan Csomor [Mon, 5 Apr 2010 12:44:31 +0000 (12:44 +0000)] 
moving OnInit back

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

14 years agoAdd support for gradient stops to wxGraphicsContext.
Vadim Zeitlin [Mon, 5 Apr 2010 12:15:11 +0000 (12:15 +0000)] 
Add support for gradient stops to wxGraphicsContext.

Allow specifying a set of gradient stops instead of just the beginning and
ending colours. Add the new wxGraphicsGradientStop(s) classes and new
wxGraphicsContext::Create{Linear,Radial}GradientBrush() overloads. Also change
the same methods of wxGraphicsRenderer to take wxGraphicsGradientStops instead
of a pair of colours.

Implement the new API for MSW and Cairo. OS X still uses just the two colours
for now.

Closes #11897.

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

14 years agoAdd wxTransparentColour global pseudo-variable.
Vadim Zeitlin [Mon, 5 Apr 2010 11:44:33 +0000 (11:44 +0000)] 
Add wxTransparentColour global pseudo-variable.

Introduce a symbolic name for a fully transparent colour.

See #11897.

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

14 years agoUse helper wxColourToColor function in wxMSW wxGraphicsContext code.
Vadim Zeitlin [Mon, 5 Apr 2010 11:44:28 +0000 (11:44 +0000)] 
Use helper wxColourToColor function in wxMSW wxGraphicsContext code.

Don't repeat Color ctor from wxColour all the time.

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

14 years agoavoid setting negative window size
Paul Cornett [Mon, 5 Apr 2010 01:07:24 +0000 (01:07 +0000)] 
avoid setting negative window size

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

14 years agofreeze whole window for TLW
Paul Cornett [Mon, 5 Apr 2010 01:06:39 +0000 (01:06 +0000)] 
freeze whole window for TLW

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

14 years agoavoid permanently frozen TLW when frozen child is destroyed with GTK+ 2.18
Paul Cornett [Mon, 5 Apr 2010 00:45:21 +0000 (00:45 +0000)] 
avoid permanently frozen TLW when frozen child is destroyed with GTK+ 2.18

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

14 years agoResolve GCC's 'type-punned pointer will break strict-aliasing rules' warning by break...
Jaakko Salli [Sun, 4 Apr 2010 15:22:43 +0000 (15:22 +0000)] 
Resolve GCC's 'type-punned pointer will break strict-aliasing rules' warning by breaking up code in wxAny GetValue() and SetValue() functions into several lines (fixes #11865)

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

14 years agoFix wxTaskBarIcon to work under all Windows versions.
Vadim Zeitlin [Sun, 4 Apr 2010 13:19:58 +0000 (13:19 +0000)] 
Fix wxTaskBarIcon to work under all Windows versions.

When the code was compiled using a new SDK, creating wxTaskBarIcon failed
under older Windows systems because of a too big NOTIFYICONDATA size specified
by the program.

Fix this by using the fixed NOTIFYICONDATA_V2_SIZE to get old version of the
struct which nevertheless contains everything we need and even fall back to
NOTIFYICONDATA_V1_SIZE for Win9x if needed.

Closes #11886.

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

14 years agoCorrect compilation breakage of r63832.
Vadim Zeitlin [Sat, 3 Apr 2010 12:25:52 +0000 (12:25 +0000)] 
Correct compilation breakage of r63832.

wx/setup.h can't use wxCHECK_VISUALC_VERSION() which is defined in
wx/platform.h _after_ wx/setup.h inclusion.

Replace wxCHECK_VISUALC_VERSION() with manual tests for _MSC_VER.

Also add more comments to explain what's going on.

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

14 years agoshuffling code back from eventloop to common app utils
Stefan Csomor [Sat, 3 Apr 2010 09:58:19 +0000 (09:58 +0000)] 
shuffling code back from eventloop to common app utils

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

14 years agono special casing for iphone necessary
Stefan Csomor [Sat, 3 Apr 2010 09:49:10 +0000 (09:49 +0000)] 
no special casing for iphone necessary

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

14 years agofixing wrong version commit
Stefan Csomor [Sat, 3 Apr 2010 09:43:30 +0000 (09:43 +0000)] 
fixing wrong version commit

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

14 years agosupport for toggle bitmap button
Stefan Csomor [Sat, 3 Apr 2010 09:10:38 +0000 (09:10 +0000)] 
support for toggle bitmap button

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

14 years agofixing multilib build
Stefan Csomor [Sat, 3 Apr 2010 06:59:33 +0000 (06:59 +0000)] 
fixing multilib build

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

14 years agoCorrect typo in configure introduced in r63832.
Vadim Zeitlin [Fri, 2 Apr 2010 21:30:46 +0000 (21:30 +0000)] 
Correct typo in configure introduced in r63832.

See #11892.

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

14 years agoAllow using wxGraphicsContext with MinGW if gdiplus.h is available.
Vadim Zeitlin [Fri, 2 Apr 2010 19:30:41 +0000 (19:30 +0000)] 
Allow using wxGraphicsContext with MinGW if gdiplus.h is available.

MinGW doesn't include gdiplus.h but it can be installed independently by the
user. Allow to use it if it's available:

- Include windows.h when checking for it in configure as this is apparently
  needed for its compilation.
- Don't reset wxUSE_GRAPHICS_CONTEXT to 0 for non-Microsoft compilers, instead
  just define it as 0 by default for them, allowing the user to simply change
  the definition in wx/msw/setup.h.

Closes #11892.

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

14 years agoFix crash in wxMediaCtrl::GetDownloadProgress() with ActiveMovie backend.
Vadim Zeitlin [Fri, 2 Apr 2010 19:30:34 +0000 (19:30 +0000)] 
Fix crash in wxMediaCtrl::GetDownloadProgress() with ActiveMovie backend.

IActiveMovie::get_FilterGraph() may return S_FALSE, i.e. succeed, while
leaving the output pointer NULL. Check for this and don't dereference the
pointer before checking for its validity.

Also do it for the other call in this function just in case. And rearrange the
code to be slightly more readable.

Closes #11894.

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

14 years agoShow labels for controls in wxOSX/Carbon toolbars.
Vadim Zeitlin [Fri, 2 Apr 2010 19:30:29 +0000 (19:30 +0000)] 
Show labels for controls in wxOSX/Carbon toolbars.

Add a call to HIToolbarItemSetLabel().

Closes #11885.

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

14 years agokeeping m_labelOrig untouched, solves test failures (FM)
Stefan Csomor [Fri, 2 Apr 2010 18:19:03 +0000 (18:19 +0000)] 
keeping m_labelOrig untouched, solves test failures (FM)

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

14 years agosimplifying modal event loop handling
Stefan Csomor [Fri, 2 Apr 2010 14:52:08 +0000 (14:52 +0000)] 
simplifying modal event loop handling

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

14 years agomoving OnInit to a later stage to avoid Carbon Emulation artifacts by the OS, fixes...
Stefan Csomor [Fri, 2 Apr 2010 12:27:39 +0000 (12:27 +0000)] 
moving OnInit to a later stage to avoid Carbon Emulation artifacts by the OS, fixes #11839

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

14 years agomove everything inside wxUSE_RIBBON wrapper
Paul Cornett [Thu, 1 Apr 2010 17:16:57 +0000 (17:16 +0000)] 
move everything inside wxUSE_RIBBON wrapper

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

14 years agoavoid setting negative window sizes
Paul Cornett [Thu, 1 Apr 2010 17:00:44 +0000 (17:00 +0000)] 
avoid setting negative window sizes

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

14 years agodon't try to create a color named "Default"
Paul Cornett [Thu, 1 Apr 2010 16:59:34 +0000 (16:59 +0000)] 
don't try to create a color named "Default"

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

14 years agoFix OpenVMS compile support for new version in src/stc
Jouk Jansen [Thu, 1 Apr 2010 09:59:19 +0000 (09:59 +0000)] 
Fix OpenVMS compile support for new version in src/stc

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

14 years agoCommitting modified version of jwiesemann's patch (see #11223):
Francesco Montorsi [Tue, 30 Mar 2010 21:38:31 +0000 (21:38 +0000)] 
Committing modified version of jwiesemann's patch (see #11223):
Fix wxURL copy ctor and assignment: the default ones provided by the compiler are wrong because wxURL uses pointers internally.
Also add a test for copy & assignment in URLTestCase.

Closes #11223

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

14 years agoRemove unnecessary declarations.
Paul Cornett [Tue, 30 Mar 2010 16:14:11 +0000 (16:14 +0000)] 
Remove unnecessary declarations.
Contrary to the comment, they are not used often, in fact only once each
and in the same file.

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

14 years agocorrecting typo in commit 63803
Jouk Jansen [Tue, 30 Mar 2010 12:02:16 +0000 (12:02 +0000)] 
correcting typo in commit 63803

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

14 years agoDefining wxCOMPILE_TIME_ASSERT for OpenVMS
Jouk Jansen [Tue, 30 Mar 2010 11:54:37 +0000 (11:54 +0000)] 
Defining wxCOMPILE_TIME_ASSERT for OpenVMS

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

14 years agoApply patch (plus some additional changes) upgrading Scintilla to version 2.03. ...
Robin Dunn [Tue, 30 Mar 2010 03:50:06 +0000 (03:50 +0000)] 
Apply patch (plus some additional changes) upgrading Scintilla to version 2.03.  Closes #11765, #11748, #11346

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

14 years agobetter docs for Get/SetLabel methods
Francesco Montorsi [Mon, 29 Mar 2010 21:31:27 +0000 (21:31 +0000)] 
better docs for Get/SetLabel methods

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

14 years agoFix compilation breakage in r63783.
Vadim Zeitlin [Mon, 29 Mar 2010 21:24:44 +0000 (21:24 +0000)] 
Fix compilation breakage in r63783.

Added missing #endif.

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

14 years agoOnly allow opening existing files in docview framework.
Vadim Zeitlin [Mon, 29 Mar 2010 21:24:39 +0000 (21:24 +0000)] 
Only allow opening existing files in docview framework.

Use wxFD_FILE_MUST_EXIST when asking the user for the name of the file to
open.

Closes #11866.

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

14 years agoAdd wxUSE_FSWATCHER dependency on wxUSE_THREADS for wxMSW.
Vadim Zeitlin [Mon, 29 Mar 2010 20:57:41 +0000 (20:57 +0000)] 
Add wxUSE_FSWATCHER dependency on wxUSE_THREADS for wxMSW.

wxFileSystemWatcher implementation uses threads under MSW and can't be
compiled when wxUSE_THREADS==0.

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

14 years agoFor better support of wxValidators, invoke wxValidator::Validate() directly. Also...
Jaakko Salli [Mon, 29 Mar 2010 18:17:55 +0000 (18:17 +0000)] 
For better support of wxValidators, invoke wxValidator::Validate() directly. Also remove obsolete flag wxPG_FL_VALIDATION_FAILED and make wxPropertyGrid::DoEditorValidate() virtual.

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

14 years agoUse fixed screen DPI of 96 when printing HTML.
Václav Slavík [Mon, 29 Mar 2010 14:19:06 +0000 (14:19 +0000)] 
Use fixed screen DPI of 96 when printing HTML.

Unlike font sizes, which depend on screen resolution because of weird
wxFont API, pixel sizes used elsewhere (and in particular, for images)
shouldn't depend on screen DPI.

This finally makes the output independent of screen size.

Fixes #10942.

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

14 years agoRemoved useless wxDisplaySize() calls from wxHtmlPrintout.
Václav Slavík [Mon, 29 Mar 2010 14:18:58 +0000 (14:18 +0000)] 
Removed useless wxDisplaySize() calls from wxHtmlPrintout.

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

14 years agoAdd wxBitmap unit test.
Vadim Zeitlin [Mon, 29 Mar 2010 09:59:05 +0000 (09:59 +0000)] 
Add wxBitmap unit test.

This should have been part of r63774.

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