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

14 years agobuild fix for IRIX
Paul Cornett [Mon, 29 Mar 2010 06:45:00 +0000 (06:45 +0000)] 
build fix for IRIX

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

14 years agonon-pch build fix
Paul Cornett [Mon, 29 Mar 2010 06:44:16 +0000 (06:44 +0000)] 
non-pch build fix

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

14 years agoReverse hierarchy of wxPizza GdkWindows
Paul Cornett [Mon, 29 Mar 2010 01:16:06 +0000 (01:16 +0000)] 
Reverse hierarchy of wxPizza GdkWindows
widget->window must be topmost in order for GTK+ to calculate DND drop coordinates correctly
fixes #11834

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

14 years agoImplement wxMask copy ctor for wxGTK.
Vadim Zeitlin [Sun, 28 Mar 2010 23:20:49 +0000 (23:20 +0000)] 
Implement wxMask copy ctor for wxGTK.

Without copy ctor copying masks simply crashed because the same pointer was
deleted twice.

Also added a (completely trivial but better than nothing...) unit test for
wxBitmap to check that copying masks does work now.

Closes #11854.

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

14 years agoSuppress gcc warnings about double to int conversion.
Vadim Zeitlin [Sun, 28 Mar 2010 23:20:41 +0000 (23:20 +0000)] 
Suppress gcc warnings about double to int conversion.

This change might actually make the code more correct as well although in
practice it probably doesn't change anything.

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

14 years agoFix bug in wxMBConv_cf::FromWChar() in OS X.
Vadim Zeitlin [Sun, 28 Mar 2010 22:39:39 +0000 (22:39 +0000)] 
Fix bug in wxMBConv_cf::FromWChar() in OS X.

Apparently CFStringGetBytes() doesn't always behave as expected, work around
this by checking that the returned buffer size is not greater than the size we
passed in.

Closes #11859.

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

14 years agoClarify wxMenu objects allocation rules.
Vadim Zeitlin [Sun, 28 Mar 2010 22:39:32 +0000 (22:39 +0000)] 
Clarify wxMenu objects allocation rules.

Make it clear that only the menu directly passed to wxWindow::PopupMenu()
doesn't need to be allocated on the heap and that its submenus still do.

Closes #11851.

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

14 years agono real changes: just a small optimization on wxStaticText::DoSetLabel() to avoid...
Francesco Montorsi [Sun, 28 Mar 2010 22:23:38 +0000 (22:23 +0000)] 
no real changes: just a small optimization on wxStaticText::DoSetLabel() to avoid altering m_labelOrig there (it's already modified by SetLabel(), no need to change it twice)

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

14 years agowxHTML: Support percentage width in IMG tag.
Václav Slavík [Sun, 28 Mar 2010 17:55:51 +0000 (17:55 +0000)] 
wxHTML: Support percentage width in IMG tag.

(Patch #11800 by lpoujoulat) Fixes #11800.

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

14 years agoFix UTF-8 string storage in constant: use unsigned char.
Václav Slavík [Sun, 28 Mar 2010 17:52:19 +0000 (17:52 +0000)] 
Fix UTF-8 string storage in constant: use unsigned char.

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

14 years agoReverted wxFileSystem support in wxLocale.
Václav Slavík [Sun, 28 Mar 2010 15:41:41 +0000 (15:41 +0000)] 
Reverted wxFileSystem support in wxLocale.

The implementation was broken in numerous ways. URLs were corrupted in
search paths thanks to use of wxFileName for normalization. Lookup of
catalogs was broken, because ":" in URLs were interpreted as path
separators. Asserts occured because filenames were (incorrectly!)
interpreted as URLs.

Will replace with proper implementation.

See #8793, #11491.

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

14 years agoFix wxFileSystem::FileNameToURL() for Unicode file names.
Václav Slavík [Sun, 28 Mar 2010 15:41:35 +0000 (15:41 +0000)] 
Fix wxFileSystem::FileNameToURL() for Unicode file names.

If filename with non-ASCII characters was encoded, resulting URL
contained non-ASCII characters. But URLToFileName() expected the
input to be in UTF-8. This change fixes it by using UTF-8 for
file: URLs in FileNameToURL() too.

Fixes #11491.

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

14 years agoAdd test wxFileSystem::FileNameToURL,URLToFileName roundtrip with
Václav Slavík [Sun, 28 Mar 2010 15:41:29 +0000 (15:41 +0000)] 
Add test wxFileSystem::FileNameToURL,URLToFileName roundtrip with
Unicode filenames.

See #11491.

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

14 years agoPreserve m_skipped in wx[Var]ScrollHelperEvtHandler::ProcessEvent.
Václav Slavík [Sun, 28 Mar 2010 14:37:30 +0000 (14:37 +0000)] 
Preserve m_skipped in wx[Var]ScrollHelperEvtHandler::ProcessEvent.

If the event was skipped and not processed, its "skipped" status would
be lost.

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

14 years agoFix compilation of wx/debug.h when it's the first wx header to be included.
Vadim Zeitlin [Thu, 25 Mar 2010 20:08:05 +0000 (20:08 +0000)] 
Fix compilation of wx/debug.h when it's the first wx header to be included.

We must include wx/dlimpexp.h from wx/debug.h to be able to forward declare
wxString and wxCStrData using WXDLLIMPEXP_FWD_BASE, otherwise compilation
errors occur in the code which includes wx/debug.h as the first wx header.

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

14 years agoAllow overriding print preview frame creation in docview.
Vadim Zeitlin [Thu, 25 Mar 2010 20:07:58 +0000 (20:07 +0000)] 
Allow overriding print preview frame creation in docview.

Add a virtual wxDocManager::CreatePreviewFrame() which can be overridden to
customize the print preview used by docview framework.

Closes #11390.

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

14 years agoFix focus at the end of a property label edit (needed at least for wxGTK)
Jaakko Salli [Thu, 25 Mar 2010 15:55:01 +0000 (15:55 +0000)] 
Fix focus at the end of a property label edit (needed at least for wxGTK)

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

14 years agoIn wxPropertyGrid::HandleCustomEditorEvent(), ignore events coming from a label editor
Jaakko Salli [Thu, 25 Mar 2010 15:40:27 +0000 (15:40 +0000)] 
In wxPropertyGrid::HandleCustomEditorEvent(), ignore events coming from a label editor

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

14 years agoUpdates to make wxWidgets compaile on OpenVMS again
Jouk Jansen [Thu, 25 Mar 2010 11:16:32 +0000 (11:16 +0000)] 
Updates to make wxWidgets compaile on OpenVMS again

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

14 years agobetter fix for #11803, don't set iconized state for hidden window
Paul Cornett [Tue, 23 Mar 2010 17:58:03 +0000 (17:58 +0000)] 
better fix for #11803, don't set iconized state for hidden window

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

14 years agoignore iconized state when computing client size for GetBestSize(), fixes #11803
Paul Cornett [Tue, 23 Mar 2010 17:19:02 +0000 (17:19 +0000)] 
ignore iconized state when computing client size for GetBestSize(), fixes #11803

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

14 years agoAdding keyboard sample to OpenVMS makefiles
Jouk Jansen [Tue, 23 Mar 2010 15:14:25 +0000 (15:14 +0000)] 
Adding keyboard sample to OpenVMS makefiles

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

14 years agoImplement wxDocument::Revert() and show its use in the sample.
Vadim Zeitlin [Tue, 23 Mar 2010 10:49:51 +0000 (10:49 +0000)] 
Implement wxDocument::Revert() and show its use in the sample.

wxDocument::Revert() method existed but didn't do anything, provide a
default implementation for it. Also document it and show it in the sample.

Closes #11849.

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

14 years agoAlways call wxView::Close() when closing it.
Vadim Zeitlin [Tue, 23 Mar 2010 10:36:36 +0000 (10:36 +0000)] 
Always call wxView::Close() when closing it.

After wxDocView refactoring the behaviour has changed and wxView::Close() and
hence user-overriddable OnClose() called from it) was only called if the close
event could be vetoed. This broke code which relied on OnClose() being
executed in any case to perform some cleanup and was incompatible with 2.8 so
restore the old behaviour now.

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

14 years agoFixed ordering bug that caused an assertion because symbol list control wasn't set...
Julian Smart [Tue, 23 Mar 2010 08:59:52 +0000 (08:59 +0000)] 
Fixed ordering bug that caused an assertion because symbol list control wasn't set to unicode yet

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

14 years agoAdd uiaction sample to the list of samples to build if enabled.
Vadim Zeitlin [Mon, 22 Mar 2010 22:56:26 +0000 (22:56 +0000)] 
Add uiaction sample to the list of samples to build if enabled.

The uiaction sample was never built under Unix, do add it to SAMPLES_SUBDIRS
to enable building it if wxUSE_UIACTIONSIMULATOR==1.

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

14 years agoLet uiaction sample compile even if wxUSE_UIACTIONSIMULATOR==0.
Vadim Zeitlin [Mon, 22 Mar 2010 22:56:22 +0000 (22:56 +0000)] 
Let uiaction sample compile even if wxUSE_UIACTIONSIMULATOR==0.

There is no way to exclude the sample from the build under Windows so make it
compile and link even if wxUSE_UIACTIONSIMULATOR==0 but just give an error
message on startup in this case instead of working as expected.

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