]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
13 years agoUse the correct event handler in wxMenuBase::UpdateUI().
Vadim Zeitlin [Sun, 10 Jul 2011 12:55:30 +0000 (12:55 +0000)] 
Use the correct event handler in wxMenuBase::UpdateUI().

Use GetWindow() instead of GetInvokingWindow() to send the event to the
associated window for the menus that are part of the menu bar and not only the
popup ones. This was broken since r64127 because GetInvokingWindow() is now
only used for the popup menus.

Closes #13317.

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

13 years agoSupport float, double and file name values in wxGenericValidator.
Vadim Zeitlin [Sat, 9 Jul 2011 23:37:28 +0000 (23:37 +0000)] 
Support float, double and file name values in wxGenericValidator.

Currently these values can only be read from/written to wxTextCtrl but support
for other controls (e.g. wxSpinCtrlDouble for float/double) could be added in
the future.

Closes #13304.

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

13 years agoNo changes, just use NULL instead of 0 for pointers.
Vadim Zeitlin [Sat, 9 Jul 2011 23:37:21 +0000 (23:37 +0000)] 
No changes, just use NULL instead of 0 for pointers.

Initialize pointers with NULL in wxGenericValidator.

See #13304.

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

13 years agoGenerate events for two auxiliary mouse buttons in wxGTK.
Vadim Zeitlin [Sat, 9 Jul 2011 23:37:15 +0000 (23:37 +0000)] 
Generate events for two auxiliary mouse buttons in wxGTK.

Add code to generate wxEVT_AUXN_XXX events to wxGTK.

Closes #13310.

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

13 years agoMention that wxNotebook page must be removed before reparenting it.
Vadim Zeitlin [Sat, 9 Jul 2011 23:37:09 +0000 (23:37 +0000)] 
Mention that wxNotebook page must be removed before reparenting it.

At least in wxGTK it is necessary to remove the page from the notebook first
as reparenting it doesn't work otherwise currently.

This should ideally be fixed but in the meanwhile at least document it.

See #13305.

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

13 years agoCheck for GTK window parent, not wx one, when reparenting.
Vadim Zeitlin [Sat, 9 Jul 2011 23:37:03 +0000 (23:37 +0000)] 
Check for GTK window parent, not wx one, when reparenting.

A notebook page removed from its notebook can have a non-NULL wx parent but
not have any parent at GTK level any longer, so test for the window parent at
GTK level before removing the widget from it, otherwise we were getting GTK
asserts when trying to remove a window from its no-more-parent.

See #13305.

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

13 years agoRefresh the generic wxDataViewCtrl header if it was made too small.
Vadim Zeitlin [Sat, 9 Jul 2011 23:36:55 +0000 (23:36 +0000)] 
Refresh the generic wxDataViewCtrl header if it was made too small.

Although normally the control header is not supposed to be resized below its
minimal vertical size, sometimes this can still happen and in this case ugly
artefacts were displayed because it wasn't refreshed properly. Do refresh it
to avoid them.

Closes #13313.

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

13 years agoShow extra mouse buttons and wheel state in the text sample output too.
Vadim Zeitlin [Sat, 9 Jul 2011 23:36:50 +0000 (23:36 +0000)] 
Show extra mouse buttons and wheel state in the text sample output too.

Do it for consistency, as the state of all the other buttons is already shown,
and also to have some place for testing this functionality.

Closes #13309.

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

13 years agoDon't duplicate wxImage::ConvertToDisabled() in wxAUI code.
Vadim Zeitlin [Sat, 9 Jul 2011 23:36:44 +0000 (23:36 +0000)] 
Don't duplicate wxImage::ConvertToDisabled() in wxAUI code.

Just reuse the existing function.

Also add an example of showing a disabled bitmap to the aui sample.

Closes #13303.

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

13 years agoOutput something from the console sample even if it's ran without arguments.
Vadim Zeitlin [Sat, 9 Jul 2011 23:36:38 +0000 (23:36 +0000)] 
Output something from the console sample even if it's ran without arguments.

Running console sample without parameters didn't do anything by default and
didn't output anything neither which was presumably rather confusing. Do
output a welcome message at least to indicate that something happened.

Closes #13299.

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

13 years agoImmediately update MSW cursor when ::SetCursor(wxNullCursor) is called.
Vadim Zeitlin [Sat, 9 Jul 2011 23:36:32 +0000 (23:36 +0000)] 
Immediately update MSW cursor when ::SetCursor(wxNullCursor) is called.

The cursor was previously reverted to the default one only when a next mouse
event was received. Do it immediately now to e.g. avoid showing the busy
cursor when the program is not busy any more.

Closes #12961.

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

13 years agoFix wxMSW wxSlider best size calculation and label layout.
Vadim Zeitlin [Sat, 9 Jul 2011 23:36:26 +0000 (23:36 +0000)] 
Fix wxMSW wxSlider best size calculation and label layout.

The best size calculation was wrong as the min/max labels height was
unnecessarily added to the slier total height even if though these labels are
positioned alongside the slider itself in horizontal layout case.

The slider also managed to position its value label completely outside the
space allocated to it (and the bug in DoGetBestSize() might have been an
attempt to work around this), don't do this any more. This also fixes the
wrongly centered vertical position of the min/max labels.

Closes #13291.

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

13 years agoMake coordinates transformations in wxDC really maximally precise.
Vadim Zeitlin [Sat, 9 Jul 2011 23:36:19 +0000 (23:36 +0000)] 
Make coordinates transformations in wxDC really maximally precise.

Use the maximal device space extent supported by Win32 GDI and only decrease
it if the scale is so small that keeping the device space extent maximal would
result in overflowing the int range for the logical space.

This makes coordinate translations exact even for huge coordinates, while they
could be significantly wrong before due to the integer rounding errors.

Closes #13284.

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

13 years agoAdded Robin Dunn's explanation on the relationship of wxBitmap and wxImage into inter...
John Chain [Sat, 9 Jul 2011 18:40:11 +0000 (18:40 +0000)] 
Added Robin Dunn's explanation on the relationship of wxBitmap and wxImage into interface doxygen section

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

13 years agoAdd start of selection api, support for HasSelection, SelectAll and DeleteSelection...
Steve Lamerton [Sat, 9 Jul 2011 14:31:29 +0000 (14:31 +0000)] 
Add start of selection api, support for HasSelection, SelectAll and DeleteSelection along with documentation. Implement for IE and WebKitGTK and add stubs for OSX WebKit.

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

13 years agoavoid scrolling to cleared-non existing- data, reload before, fixes #13318
Stefan Csomor [Sat, 9 Jul 2011 06:37:14 +0000 (06:37 +0000)] 
avoid scrolling to cleared-non existing- data, reload before, fixes #13318

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

13 years agoAdd the ability to enable / disable and check for the editable property of a renderin...
Steve Lamerton [Fri, 8 Jul 2011 19:34:56 +0000 (19:34 +0000)] 
Add the ability to enable / disable and check for the editable property of a rendering engine. Implement for all three backends and extend the sample, document and unit test.

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

13 years agoFactor out url loading logic into a separate function to reduce repetition.
Steve Lamerton [Fri, 8 Jul 2011 14:46:51 +0000 (14:46 +0000)] 
Factor out url loading logic into a separate function to reduce repetition.

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

13 years agoAdd tests for the back and forward history lists.
Steve Lamerton [Fri, 8 Jul 2011 14:35:49 +0000 (14:35 +0000)] 
Add tests for the back and forward history lists.

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

13 years agoAdd unit tests for history clearing and enabling / disabling.
Steve Lamerton [Fri, 8 Jul 2011 14:21:46 +0000 (14:21 +0000)] 
Add unit tests for history clearing and enabling / disabling.

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

13 years agoAdd tests for url and history support
Steve Lamerton [Fri, 8 Jul 2011 13:11:17 +0000 (13:11 +0000)] 
Add tests for url and history support

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

13 years agoAdd tests for the page title
Steve Lamerton [Fri, 8 Jul 2011 10:51:15 +0000 (10:51 +0000)] 
Add tests for the page title

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

13 years agoAdd scaffolding for wxWebView unit tests.
Steve Lamerton [Fri, 8 Jul 2011 08:19:25 +0000 (08:19 +0000)] 
Add scaffolding for wxWebView unit tests.

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

13 years agoAdd wxDCImpl::MSWApplyGDIPlusTransform() to formalize wxRendererMSW hack.
Vadim Zeitlin [Thu, 7 Jul 2011 13:05:22 +0000 (13:05 +0000)] 
Add wxDCImpl::MSWApplyGDIPlusTransform() to formalize wxRendererMSW hack.

Replace the dynamic_cast<> used in wxMSW wxRenderer implementation code with a
virtual function call.

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

13 years agoMake wxGCDC::GetGraphicsContext() const.
Vadim Zeitlin [Thu, 7 Jul 2011 13:05:16 +0000 (13:05 +0000)] 
Make wxGCDC::GetGraphicsContext() const.

There is no reason for this accessor to not be const and it prevents other
methods using it from being const too, so change this.

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

13 years agoallow NULL parent menu
Stefan Csomor [Wed, 6 Jul 2011 11:02:38 +0000 (11:02 +0000)] 
allow NULL parent menu

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

13 years agoImplement cut / copy / paste in osx webkit and fix the function stubs.
Steve Lamerton [Wed, 6 Jul 2011 10:20:03 +0000 (10:20 +0000)] 
Implement cut / copy / paste in osx webkit and fix the function stubs.

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

13 years agoAdd some more missing stubs to the osx webkit backend.
Steve Lamerton [Wed, 6 Jul 2011 09:45:29 +0000 (09:45 +0000)] 
Add some more missing stubs to the osx webkit backend.

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

13 years agoAdd stubs to osx webkit backend to allow compilation.
Steve Lamerton [Tue, 5 Jul 2011 17:06:12 +0000 (17:06 +0000)] 
Add stubs to osx webkit backend to allow compilation.

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

13 years agoSimplify backend enum naming, we do not need separate values for gtk and osx webkit...
Steve Lamerton [Tue, 5 Jul 2011 15:33:42 +0000 (15:33 +0000)] 
Simplify backend enum naming, we do not need separate values for gtk and osx webkit backends. Simplify factory creation code.

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

13 years agoRemove comment about a new frame api as this is now offered.
Steve Lamerton [Tue, 5 Jul 2011 14:19:38 +0000 (14:19 +0000)] 
Remove comment about a new frame api as this is now offered.

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

13 years agoBring osx class naming into line with the other ports.
Steve Lamerton [Tue, 5 Jul 2011 13:57:44 +0000 (13:57 +0000)] 
Bring osx class naming into line with the other ports.

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

13 years agoRemove out of date osx defines.
Steve Lamerton [Tue, 5 Jul 2011 13:40:00 +0000 (13:40 +0000)] 
Remove out of date osx defines.

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

13 years agoAdd osx configure support for wxWebView.
Steve Lamerton [Tue, 5 Jul 2011 11:06:33 +0000 (11:06 +0000)] 
Add osx configure support for wxWebView.

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

13 years agofor 2.9.2
Chris Elliott [Tue, 5 Jul 2011 09:22:58 +0000 (09:22 +0000)] 
for 2.9.2

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

13 years agoImprove the description of the available files in readme.
Vadim Zeitlin [Mon, 4 Jul 2011 21:26:11 +0000 (21:26 +0000)] 
Improve the description of the available files in readme.

Be more clear about what is provided. Add more URLs, everybody likes to click
them.

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

13 years agoRemove the note about wxUSE_STD_CONTAINERS.
Vadim Zeitlin [Mon, 4 Jul 2011 21:13:26 +0000 (21:13 +0000)] 
Remove the note about wxUSE_STD_CONTAINERS.

We finally didn't switch to using the standard containers by default so don't
leave misleading information in the change log (this should have been part of
r67735).

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

13 years agoFix crash when getting or setting wxComboBox value in wxUniv.
Vadim Zeitlin [Mon, 4 Jul 2011 21:09:24 +0000 (21:09 +0000)] 
Fix crash when getting or setting wxComboBox value in wxUniv.

Forward DoGetValue() and SetValue() to the associated wxTextCtrl.

Closes #13298.

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

13 years agoFactor logic that returns an IHTMLDocument2 into a separate function to reduce repeti...
Steve Lamerton [Mon, 4 Jul 2011 18:46:01 +0000 (18:46 +0000)] 
Factor logic that returns an IHTMLDocument2 into a separate function to reduce repetition.

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

13 years agoFilter out subframes from the ie backend history and the sample. Also document that...
Steve Lamerton [Mon, 4 Jul 2011 18:27:14 +0000 (18:27 +0000)] 
Filter out subframes from the ie backend history and the sample. Also document that many wxEVT_COMMAND_WEB_VIEW_LOADED events may be sent, one for each frame.

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

13 years agoFix event types in wxMouseEvent::Aux1DClick() and Aux1DClick().
Vadim Zeitlin [Mon, 4 Jul 2011 17:22:49 +0000 (17:22 +0000)] 
Fix event types in wxMouseEvent::Aux1DClick() and Aux1DClick().

wxEVT_AUX[12]_UP were wrongly used instead of the correct wxEVT_AUX[12]_DCLICK.

Closes #13308.

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

13 years agoFix warnings about implicit double to int conversions in propgrid.
Vadim Zeitlin [Mon, 4 Jul 2011 16:43:40 +0000 (16:43 +0000)] 
Fix warnings about implicit double to int conversions in propgrid.

Use wxRound() instead of implicit casts to convert double to int. This not
only avoids warnings (e.g. when using g++ with -Wconversion) but also should
be (marginally) more precise.

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

13 years agoFix harmless warning about double to long long conversion.
Vadim Zeitlin [Mon, 4 Jul 2011 16:43:37 +0000 (16:43 +0000)] 
Fix harmless warning about double to long long conversion.

Work around g++ -Wconversion warning by writing out the casts explicitly.

A better solution would be to have wxLongLong::FromDouble() static function
but it would have to be done after 2.9.2.

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

13 years agoSuppress some harmless warnings about unused parameters in wxOSX.
Vadim Zeitlin [Mon, 4 Jul 2011 14:05:14 +0000 (14:05 +0000)] 
Suppress some harmless warnings about unused parameters in wxOSX.

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

13 years agoAlso accept VT_R4 (float) VARIANTs in wxMSW OLE code.
Vadim Zeitlin [Mon, 4 Jul 2011 14:05:11 +0000 (14:05 +0000)] 
Also accept VT_R4 (float) VARIANTs in wxMSW OLE code.

We don't support creating VT_R4 VARIANTs as wxVariant can only contain double,
not float, but we can still at least accept them on input.

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

13 years agoAdd a note to the documentation about the emulation modes of the ie backend.
Steve Lamerton [Mon, 4 Jul 2011 11:34:33 +0000 (11:34 +0000)] 
Add a note to the documentation about the emulation modes of the ie backend.

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

13 years agoFix crash in wxDataViewProgressRenderer in non-Unicode build.
Vadim Zeitlin [Mon, 4 Jul 2011 09:03:00 +0000 (09:03 +0000)] 
Fix crash in wxDataViewProgressRenderer in non-Unicode build.

We can't use the column pointer in wxDataViewProgressRenderer ctor as it's not
set yet, so postpone setting the renderer label until later in non-Unicode
build which needs the font used by this column to do the conversion to UTF-8.

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

13 years agoAdd wxUSE_UNICODE guard around wxDF_UNICODETEXT in the sample.
Vadim Zeitlin [Mon, 4 Jul 2011 09:02:57 +0000 (09:02 +0000)] 
Add wxUSE_UNICODE guard around wxDF_UNICODETEXT in the sample.

Unicode text is not supported in non-Unicode builds.

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

13 years agoAdd web documentation category.
Steve Lamerton [Sat, 2 Jul 2011 17:11:46 +0000 (17:11 +0000)] 
Add web documentation category.

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

13 years agoGet the page title from the IHtmlDocument rather than the bowser as it actually retur...
Steve Lamerton [Sat, 2 Jul 2011 16:41:51 +0000 (16:41 +0000)] 
Get the page title from the IHtmlDocument rather than the bowser as it actually returns the title rather than the url.

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

13 years agoOverhaul the wxWebView documentation. Split the documentation into sections and add...
Steve Lamerton [Sat, 2 Jul 2011 16:24:56 +0000 (16:24 +0000)] 
Overhaul the wxWebView documentation. Split the documentation into sections and add documentation for clipboard and history functions. Add documentation for wxWebHistoryItem. Fix many spelling mistakes. Alphabetise the function names. Add missing svn properties.

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

13 years agoImplement undo and redo for the ie and gtk webkit backends. Extend the sample to...
Steve Lamerton [Sat, 2 Jul 2011 15:07:46 +0000 (15:07 +0000)] 
Implement undo and redo for the ie and gtk webkit backends. Extend the sample to show their use.

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

13 years agoImplement clipboard api in gtk.
Steve Lamerton [Sat, 2 Jul 2011 14:32:02 +0000 (14:32 +0000)] 
Implement clipboard api in gtk.

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

13 years agoAdd new clipboard api and support for it in the ie backend. Also extend the sample...
Steve Lamerton [Sat, 2 Jul 2011 11:45:19 +0000 (11:45 +0000)] 
Add new clipboard api and support for it in the ie backend. Also extend the sample to demonstrate the new functions.

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

13 years agoNo real changes, just remove trailing commas from enum.
Vadim Zeitlin [Sat, 2 Jul 2011 10:29:14 +0000 (10:29 +0000)] 
No real changes, just remove trailing commas from enum.

wxCompositionMode enum had a trailing comma not allowed by C++ 98 (and which
would result in warnings or errors with g++ pedantic switch).

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

13 years agoAdd wxCOMPOSITION_INVALID mode and use it to simplify the code.
Vadim Zeitlin [Sat, 2 Jul 2011 10:29:11 +0000 (10:29 +0000)] 
Add wxCOMPOSITION_INVALID mode and use it to simplify the code.

Having an invalid element in wxCompositionMode enum allows to directly return
it from TranslateRasterOp() function instead of needing a separate bool
parameter to indicate that a ROP couldn't be translated.

This also incidentally fixes warnings about possibly uninitialized variables
in optimized g++ builds.

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

13 years agoAvoid g++ warnings about breaking strict aliasing rules in wxTreeCtrl.
Vadim Zeitlin [Sat, 2 Jul 2011 10:29:07 +0000 (10:29 +0000)] 
Avoid g++ warnings about breaking strict aliasing rules in wxTreeCtrl.

The standard TreeView_GetItemRect() macro resulted in warnings about breaking
strict aliasing rules as it passed a variable of one type via a pointer to
another one. Fix this by using a union and our own custom macro instead.

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

13 years agoImplement extended history api in gtk
Steve Lamerton [Fri, 1 Jul 2011 19:46:31 +0000 (19:46 +0000)] 
Implement extended history api in gtk

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

13 years agoDon't cause scroll events for position changes from SetScrollbars, broken in r67326.
Paul Cornett [Fri, 1 Jul 2011 17:44:49 +0000 (17:44 +0000)] 
Don't cause scroll events for position changes from SetScrollbars, broken in r67326.
Fixes #13301

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

13 years agoExtend history api using the ie backend to include loading history items, and getting...
Steve Lamerton [Fri, 1 Jul 2011 10:57:37 +0000 (10:57 +0000)] 
Extend history api using the ie backend to include loading history items, and getting the backward and forward history lists.

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

13 years agoUse shared pointers throughout when managing history with the ie backend, simplifying...
Steve Lamerton [Fri, 1 Jul 2011 10:01:45 +0000 (10:01 +0000)] 
Use shared pointers throughout when managing history with the ie backend, simplifying memory management. Also add more comments explaining how the history is managed.

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

13 years agoAdd an extra assert in the case of trying to load an invalid history item
Steve Lamerton [Fri, 1 Jul 2011 07:54:49 +0000 (07:54 +0000)] 
Add an extra assert in the case of trying to load an invalid history item

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

13 years agoMention the EOL issue in readme.txt.
Vadim Zeitlin [Thu, 30 Jun 2011 21:31:39 +0000 (21:31 +0000)] 
Mention the EOL issue in readme.txt.

Emphasize that building Windows archives under Unix *or vice versa) is not
supported.

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

13 years agoAdd support for the new history functions to the ie backend. For this we manage our...
Steve Lamerton [Thu, 30 Jun 2011 19:57:26 +0000 (19:57 +0000)] 
Add support for the new history functions to the ie backend. For this we manage our own history as there are no suitable built-in ways of managing it.

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

13 years agoOnly send a document complete event when the page is completely loaded, as opposed...
Steve Lamerton [Thu, 30 Jun 2011 15:07:52 +0000 (15:07 +0000)] 
Only send a document complete event when the page is completely loaded, as opposed to with every frame. This brings the event in to line with what is emitted by webkit.

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

13 years agoupdate docs for windows checkout process 2/2
Chris Elliott [Thu, 30 Jun 2011 13:20:55 +0000 (13:20 +0000)] 
update docs for windows checkout process 2/2

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

13 years agoupdate docs for windows checkout process 1/2
Chris Elliott [Thu, 30 Jun 2011 13:17:51 +0000 (13:17 +0000)] 
update docs for windows checkout process 1/2

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

13 years agoInitialize variable in UTF{16,32} conversion code to avoid warnings.
Vadim Zeitlin [Thu, 30 Jun 2011 12:20:54 +0000 (12:20 +0000)] 
Initialize variable in UTF{16,32} conversion code to avoid warnings.

In optimized build g++ warned about the second element of two-element array
passed to encode_utf16() being possibly uninitialized. This wasn't really the
case but change the code just to avoid the warnings.

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

13 years agoWork around bogus g++ warnings about possibly missing return.
Vadim Zeitlin [Thu, 30 Jun 2011 12:20:47 +0000 (12:20 +0000)] 
Work around bogus g++ warnings about possibly missing return.

OS X g++ warned that "control may reach end of non-void function" in
wxRichTextHelpInfo::ShowHelp(). This wasn't really the case but change the
function logic slightly to (hopefully) suppress the warning.

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

13 years agoFix harmless warning about unused variable in isosurf sample.
Vadim Zeitlin [Thu, 30 Jun 2011 12:20:38 +0000 (12:20 +0000)] 
Fix harmless warning about unused variable in isosurf sample.

Don't declare and initialize a variable that we never use.

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

13 years agoFix warning about hiding a virtual function in propgrid sample.
Vadim Zeitlin [Thu, 30 Jun 2011 12:20:29 +0000 (12:20 +0000)] 
Fix warning about hiding a virtual function in propgrid sample.

The virtual ColourToString() method was hidden and not overridden in the
sample because it didn't use the last argument of the base class method.

Fix this in the most straightforward (albeit not necessarily the most correct)
way to at least ensure that the function is really overridden.

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

13 years agoAdd basic history api and implement it under gtk.
Steve Lamerton [Thu, 30 Jun 2011 10:03:25 +0000 (10:03 +0000)] 
Add basic history api and implement it under gtk.

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

13 years agoChange the loop condition to avoid comparing unsigned value with 0.
Vadim Zeitlin [Wed, 29 Jun 2011 17:50:32 +0000 (17:50 +0000)] 
Change the loop condition to avoid comparing unsigned value with 0.

This resulted in (useful) g++ warning and didn't make any sense in any case.

Check for the loop variable value being 0 at the end of the loop instead now.
If the old code was correct it shouldn't change its behaviour and if not, this
might fix a bug.

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

13 years agoAlways initialize SelectInHDC::m_hgdiobj in wxMSW.
Vadim Zeitlin [Wed, 29 Jun 2011 17:50:30 +0000 (17:50 +0000)] 
Always initialize SelectInHDC::m_hgdiobj in wxMSW.

Leaving m_hgdiobj uninitialized probably didn't result in any problems
considering how this class is currently used but it did result in g++ warnings
about uninitialized member with aggressive warning flags and also could easily
become a problem in the future so just ensure that we always initialize it.

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

13 years agoFix two harmless gcc warnings about missing initializers.
Vadim Zeitlin [Wed, 29 Jun 2011 17:50:27 +0000 (17:50 +0000)] 
Fix two harmless gcc warnings about missing initializers.

Add values to make g++ -Wmissing-field-initializers warnings (implicitly
enabled by -Wextra) go away.

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

13 years agoMention that readme.txt needs to be updated before a release.
Vadim Zeitlin [Wed, 29 Jun 2011 17:50:08 +0000 (17:50 +0000)] 
Mention that readme.txt needs to be updated before a release.

Hopefully this means it won't be forgotten the next time.

Also mentioned that the new docs.wxwidgets.org link should be now already
created when the release is being done.

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

13 years agoAdd a tiny script for producing HTML documentation archives.
Vadim Zeitlin [Wed, 29 Jun 2011 17:50:05 +0000 (17:50 +0000)] 
Add a tiny script for producing HTML documentation archives.

Also update the release making document to point to it.

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

13 years agoFix typo in error message about incorrect syntax.
Vadim Zeitlin [Wed, 29 Jun 2011 17:50:02 +0000 (17:50 +0000)] 
Fix typo in error message about incorrect syntax.

Output the error to stderr, not a file called "2".

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

13 years agoUpdate the readme file for 2.9.2.
Vadim Zeitlin [Wed, 29 Jun 2011 17:49:59 +0000 (17:49 +0000)] 
Update the readme file for 2.9.2.

Just increment version number and year in a couple of places.

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

13 years agoGive the sample a more sensible initial size for web browsing
Steve Lamerton [Wed, 29 Jun 2011 16:09:52 +0000 (16:09 +0000)] 
Give the sample a more sensible initial size for web browsing

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

13 years agoAdjust animation size to fit the toolbar properly
Steve Lamerton [Wed, 29 Jun 2011 16:04:42 +0000 (16:04 +0000)] 
Adjust animation size to fit the toolbar properly

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

13 years agoUpdate the sample to show how to block navigation and new window events
Steve Lamerton [Wed, 29 Jun 2011 12:03:36 +0000 (12:03 +0000)] 
Update the sample to show how to block navigation and new window events

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

13 years agofix misisng html format files
Chris Elliott [Wed, 29 Jun 2011 11:33:13 +0000 (11:33 +0000)] 
fix misisng html format files

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

13 years agoUpdate the web sample to use images from the art provider if possible. Scale existing...
Steve Lamerton [Wed, 29 Jun 2011 09:27:11 +0000 (09:27 +0000)] 
Update the web sample to use images from the art provider if possible. Scale existing images down to 24x24 so that this fit better with the art provider images.

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

13 years agoUpdated copyright year before 2.9.2 release.
Vadim Zeitlin [Wed, 29 Jun 2011 09:22:35 +0000 (09:22 +0000)] 
Updated copyright year before 2.9.2 release.

Use 2011 instead of 2010 in the manual and in several .plist files.

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

13 years ago2.9.2-rc1 in file
Chris Elliott [Wed, 29 Jun 2011 08:46:13 +0000 (08:46 +0000)] 
2.9.2-rc1 in file

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

13 years agoReplace stc.{h,cpp} with the generated versions with all their typos.
Vadim Zeitlin [Wed, 29 Jun 2011 08:37:49 +0000 (08:37 +0000)] 
Replace stc.{h,cpp} with the generated versions with all their typos.

Revert the changes of r67280 which fixed several typos in these files as they
were getting modified each time gen_iface.py was rerun and we don't want to
touch the original Scintilla files to fix these typos.

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

13 years agoGenerate code using IsOk() instead of Ok() in stc.cpp.
Vadim Zeitlin [Wed, 29 Jun 2011 08:37:46 +0000 (08:37 +0000)] 
Generate code using IsOk() instead of Ok() in stc.cpp.

Modify the script generating this file itself to produce IsOk() instead of
Ok(). This replaces the changes of r67681 which only modified the generated
file.

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

13 years agoAdd support for loading a url in the constructor to the ie backend and update the...
Steve Lamerton [Wed, 29 Jun 2011 08:27:33 +0000 (08:27 +0000)] 
Add support for loading a url in the constructor to the ie backend and update the sample to use it.

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

13 years agoAdd support for new window events in gtk
Steve Lamerton [Wed, 29 Jun 2011 08:09:47 +0000 (08:09 +0000)] 
Add support for new window events in gtk

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

13 years agoMove wxThreadEvent into wxBase.
Václav Slavík [Tue, 28 Jun 2011 17:24:37 +0000 (17:24 +0000)] 
Move wxThreadEvent into wxBase.

For this, it cannot derive from wxCommandEvent. Extracted the bits
from wxCommandEvent useful for passing data between threads into
wxEventBasicPayloadMixin helper class shared by both.

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

13 years agoDon't use a depreciated method for loading a url.
Steve Lamerton [Tue, 28 Jun 2011 17:06:28 +0000 (17:06 +0000)] 
Don't use a depreciated method for loading a url.

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

13 years agoBring gtk class naming into line with the new naming scheme by dropping the gtk part.
Steve Lamerton [Tue, 28 Jun 2011 16:57:49 +0000 (16:57 +0000)] 
Bring gtk class naming into line with the new naming scheme by dropping the gtk part.

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

13 years agoUpdate msw files to use the new definitions
Steve Lamerton [Tue, 28 Jun 2011 16:11:00 +0000 (16:11 +0000)] 
Update msw files to use the new definitions

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

13 years agoFix the build system in gtk, plus a couple of compilation errors. wxWebView now succe...
Steve Lamerton [Tue, 28 Jun 2011 15:15:51 +0000 (15:15 +0000)] 
Fix the build system in gtk, plus a couple of compilation errors. wxWebView now successfully builds under gtk and the sample runs correctly.

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

13 years agoAdd support for child documents to docview framework.
Vadim Zeitlin [Mon, 27 Jun 2011 00:09:37 +0000 (00:09 +0000)] 
Add support for child documents to docview framework.

Child documents are virtual documents corresponding to parts of their parent
document which can't be saved nor loaded independently of their parent and are
closed when the parent is closed.

This finally makes some use of wxDocument::m_documentParent field which was
always present in the docview code but never used before.

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

13 years agobringing target naming in line with other projects
Stefan Csomor [Sat, 25 Jun 2011 07:16:55 +0000 (07:16 +0000)] 
bringing target naming in line with other projects

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

13 years agoPaper size fix for wxOSX-cocoa
Robin Dunn [Sat, 25 Jun 2011 00:15:00 +0000 (00:15 +0000)] 
Paper size fix for wxOSX-cocoa

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

13 years agoFix code reading from the pipe stream in exec sample.
Vadim Zeitlin [Fri, 24 Jun 2011 13:10:23 +0000 (13:10 +0000)] 
Fix code reading from the pipe stream in exec sample.

We must be reading bytes, not (wide) characters.

Closes #13290.

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

13 years agoFix a number of mingw compile errors.
Steve Lamerton [Thu, 23 Jun 2011 20:44:19 +0000 (20:44 +0000)] 
Fix a number of mingw compile errors.

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