]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
13 years agofixing width/height (were negative) thanks to Werner Smekal
Stefan Csomor [Tue, 19 Jul 2011 10:56:04 +0000 (10:56 +0000)] 
fixing width/height (were negative) thanks to Werner Smekal

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

13 years agoFix memory leak in wxPanel::SetBackgroundBirmap() in wxMSW.
Vadim Zeitlin [Mon, 18 Jul 2011 19:36:31 +0000 (19:36 +0000)] 
Fix memory leak in wxPanel::SetBackgroundBirmap() in wxMSW.

The brush allocated for the bitmap was never freed, do free it in dtor.

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

13 years agoMake callback names consistent
Steve Lamerton [Mon, 18 Jul 2011 09:46:32 +0000 (09:46 +0000)] 
Make callback names consistent

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

13 years agoUse the newer and recommended callback for handling navigation requests in WebKitGTK+.
Steve Lamerton [Mon, 18 Jul 2011 09:37:14 +0000 (09:37 +0000)] 
Use the newer and recommended callback for handling navigation requests in WebKitGTK+.

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

13 years agoVC++ 6 fixes
Julian Smart [Sat, 16 Jul 2011 12:13:17 +0000 (12:13 +0000)] 
VC++ 6 fixes

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

13 years agoAdded makefile from Steven
Julian Smart [Sat, 16 Jul 2011 11:22:28 +0000 (11:22 +0000)] 
Added makefile from Steven

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

13 years agoAdd support for column header images to wxListCtrl XRC handler.
Václav Slavík [Sat, 16 Jul 2011 10:05:02 +0000 (10:05 +0000)] 
Add support for column header images to wxListCtrl XRC handler.

Fixes #13319 (patch).

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

13 years agoFix wxListCtrlXmlHandler so that it accepts icon with wxLC_LIST and wxLC_REPORT style...
Václav Slavík [Sat, 16 Jul 2011 10:04:57 +0000 (10:04 +0000)] 
Fix wxListCtrlXmlHandler so that it accepts icon with wxLC_LIST and wxLC_REPORT styles too.

Fixes #13319 (patch).

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

13 years agoFix wxXmlResourceHandler::GetImageList() to use specified size.
Václav Slavík [Sat, 16 Jul 2011 10:04:54 +0000 (10:04 +0000)] 
Fix wxXmlResourceHandler::GetImageList() to use specified size.

Fixes #13319 (patch).

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

13 years agoAdd check to prevent creation of element wxXmlNodes with content data.
Václav Slavík [Sat, 16 Jul 2011 10:04:48 +0000 (10:04 +0000)] 
Add check to prevent creation of element wxXmlNodes with content data.

Just like in the DOM, only text, ctype etc. nodes have textual content,
elements don't.

See #13297.

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

13 years agoproper guard for bitmap constructors
Stefan Csomor [Sat, 16 Jul 2011 06:57:30 +0000 (06:57 +0000)] 
proper guard for bitmap constructors

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

13 years agofixing typo
Stefan Csomor [Sat, 16 Jul 2011 06:57:07 +0000 (06:57 +0000)] 
fixing typo

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

13 years agoImplement wxRegion::Equal() for wxOSX.
Vadim Zeitlin [Fri, 15 Jul 2011 22:58:36 +0000 (22:58 +0000)] 
Implement wxRegion::Equal() for wxOSX.

As there doesn't seem to be any native functions for comparing HIShapes,
compute their differences to find out if they are equal.

Closes #13339.

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

13 years agoEnsure we don't modify a shared object in wxOSX wxRegion::DoOffset().
Vadim Zeitlin [Fri, 15 Jul 2011 22:58:32 +0000 (22:58 +0000)] 
Ensure we don't modify a shared object in wxOSX wxRegion::DoOffset().

Call AllocExclusive() before modifying the object.

Closes #13338.

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

13 years agoNo real changes, just use AllocExclusive() in wxOSX wxRegion.
Vadim Zeitlin [Fri, 15 Jul 2011 22:58:30 +0000 (22:58 +0000)] 
No real changes, just use AllocExclusive() in wxOSX wxRegion.

Don't fiddle with the reference count manually, just use the base class
function doing it instead.

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

13 years agoRemove some code that shouldn't be in the interface file.
Steve Lamerton [Fri, 15 Jul 2011 18:49:40 +0000 (18:49 +0000)] 
Remove some code that shouldn't be in the interface file.

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

13 years agoSend correct navigation events when using SetPage on the IE backend, they now mimic...
Steve Lamerton [Fri, 15 Jul 2011 15:22:08 +0000 (15:22 +0000)] 
Send correct navigation events when using SetPage on the IE backend, they now mimic Webkit.

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

13 years agoAdd RunScript and implement on all backends. Document and add a very simple unit...
Steve Lamerton [Fri, 15 Jul 2011 12:38:47 +0000 (12:38 +0000)] 
Add RunScript and implement on all backends. Document and add a very simple unit test.

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

13 years agoAdd ClearSelection for msw ie and gtk webkit, with a stub for osx webkit. Document...
Steve Lamerton [Fri, 15 Jul 2011 09:36:08 +0000 (09:36 +0000)] 
Add ClearSelection for msw ie and gtk webkit, with a stub for osx webkit. Document and add to unit tests.

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

13 years agoFix all the unit tests for gtk, they now all pass on msw with the ie backend and...
Steve Lamerton [Thu, 14 Jul 2011 19:31:21 +0000 (19:31 +0000)] 
Fix all the unit tests for gtk, they now all pass on msw with the ie backend and gtk with the webkit backend.

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

13 years agoAdd unit tests for zoom functions
Steve Lamerton [Thu, 14 Jul 2011 14:02:14 +0000 (14:02 +0000)] 
Add unit tests for zoom functions

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

13 years agoYield after control creation to allow it to load the initial page.
Steve Lamerton [Thu, 14 Jul 2011 13:33:20 +0000 (13:33 +0000)] 
Yield after control creation to allow it to load the initial page.

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

13 years agoUpdate web units tests so that they compile after api change.
Steve Lamerton [Thu, 14 Jul 2011 13:19:53 +0000 (13:19 +0000)] 
Update web units tests so that they compile after api change.

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

13 years agoFix compiler warnings in the IE backend.
Steve Lamerton [Thu, 14 Jul 2011 13:05:12 +0000 (13:05 +0000)] 
Fix compiler warnings in the IE backend.

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

13 years agoUpdate the web sample to allow choosing between different types of zoom, text or...
Steve Lamerton [Thu, 14 Jul 2011 12:53:28 +0000 (12:53 +0000)] 
Update the web sample to allow choosing between different types of zoom, text or layout.

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

13 years agoImplement CanSetZoomType correctly for the IE backend.
Steve Lamerton [Thu, 14 Jul 2011 11:14:37 +0000 (11:14 +0000)] 
Implement CanSetZoomType correctly for the IE backend.

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

13 years agoOverhaul IE zoom functions to support both text and optical zoom.
Steve Lamerton [Thu, 14 Jul 2011 09:58:33 +0000 (09:58 +0000)] 
Overhaul IE zoom functions to support both text and optical zoom.

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

13 years agoAdd GetPageText to MSW IE and to GTK WebKit. Add stub for OSX and document.
Steve Lamerton [Wed, 13 Jul 2011 17:25:05 +0000 (17:25 +0000)] 
Add GetPageText to MSW IE and to GTK WebKit. Add stub for OSX and document.

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

13 years agoRename GetSelectedHTML to GetSelectedSource, this brings it into line with GetPageSou...
Steve Lamerton [Wed, 13 Jul 2011 15:30:25 +0000 (15:30 +0000)] 
Rename GetSelectedHTML to GetSelectedSource, this brings it into line with GetPageSource, and also with its intended use.

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

13 years agoBetter sizing in wxDataViewSpinRenderer and wxDataViewChoiceRenderer.
Václav Slavík [Wed, 13 Jul 2011 08:32:17 +0000 (08:32 +0000)] 
Better sizing in wxDataViewSpinRenderer and wxDataViewChoiceRenderer.

Their GetSize() method used hardcoded size of (80,16). Instead, use
GetTextExtent() to compute the size from content, as should be done. Add
some extra room for editor control's extra parts. The space needed isn't
computed exactly, as that would be quite convoluted (and in the end,
most likely not 100% accurate even then), using a simple approximation
instead.

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

13 years agoUse native hint wxTextCtrl support in wxSearchCtrl.
Vadim Zeitlin [Tue, 12 Jul 2011 09:13:43 +0000 (09:13 +0000)] 
Use native hint wxTextCtrl support in wxSearchCtrl.

Instead of using broken emulation of the support for hints available in the
text control, use the real wxTextCtrl::SetHint() for SetDescriptiveText()
implementation in the search control.

This looks better and, more importantly, fixes the bug when searching for the
string equal to the current descriptive text searched for an empty string
instead.

Closes #13324.

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

13 years agoCentre wxSlider value correctly when wxSL_MIN_MAX_LABELS is not used.
Vadim Zeitlin [Tue, 12 Jul 2011 09:13:39 +0000 (09:13 +0000)] 
Centre wxSlider value correctly when wxSL_MIN_MAX_LABELS is not used.

r68230 fixed the width of the value label in this case but not its position:
it was left-aligned instead of being centered as it should be.

See #13291.

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

13 years agoDocument wxEnhMetaFileDC-related wxGraphics functions.
Vadim Zeitlin [Tue, 12 Jul 2011 09:13:36 +0000 (09:13 +0000)] 
Document wxEnhMetaFileDC-related wxGraphics functions.

Closes #13325.

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

13 years agoUpdate selection unit test to test GetSelectedHTML.
Steve Lamerton [Tue, 12 Jul 2011 08:41:11 +0000 (08:41 +0000)] 
Update selection unit test to test GetSelectedHTML.

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

13 years agoFix showing slider label in wxMSW when wxSL_MIN_MAX_LABELS was not used.
Vadim Zeitlin [Mon, 11 Jul 2011 22:49:33 +0000 (22:49 +0000)] 
Fix showing slider label in wxMSW when wxSL_MIN_MAX_LABELS was not used.

wxSlider with wxSL_LABELS style but without wxSL_MIN_MAX_LABELS didn't show
the current value because the width of the value label was 0.

Fix this by always computing the widths of min and max labels and using the
longest of them for the value label, even if we don't actually show them.

Closes #13291.

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

13 years agoNo real changes, just make some wxSlider members local variables.
Vadim Zeitlin [Mon, 11 Jul 2011 22:49:30 +0000 (22:49 +0000)] 
No real changes, just make some wxSlider members local variables.

wxMSW wxSlider implementation stored the min and max labels widths as fields
of wxSlider object for some reason even though they were only used in one of
its methods (and can be easily computed anyhow).

Make them simple local variables instead and also rename an existing local
variable which started conflicting with their new names.

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

13 years agoFix and improve documentation of wxT_2() macro.
Vadim Zeitlin [Mon, 11 Jul 2011 22:49:26 +0000 (22:49 +0000)] 
Fix and improve documentation of wxT_2() macro.

Documentation for wxT_2() applied to wxS() instead, fix this. Also correct the
wording and add @since tags.

Closes #13321.

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

13 years agoDon't handle "Return" key as "TAB" even when the default button is disabled.
Vadim Zeitlin [Mon, 11 Jul 2011 22:25:24 +0000 (22:25 +0000)] 
Don't handle "Return" key as "TAB" even when the default button is disabled.

wxMSW used to handle VK_RETURN in the same way as VK_TAB if it wasn't consumed
by the default push button but this didn't correspond to the native platform
behaviour which considers pressing Return when the OK button is disabled an
error and audibly notifies the user about it.

Fix this by passing VK_RETURN to IsDialogMessage() if we don't translate it to
a button click.

Also add a possibility to test what happens when the default (or all)
button(s) in the dialog are disabled to the dialogs sample.

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

13 years agoImplement GetSelectedHTML for the ie and gtk webkit backends and document.
Steve Lamerton [Mon, 11 Jul 2011 18:26:07 +0000 (18:26 +0000)] 
Implement GetSelectedHTML for the ie and gtk webkit backends and document.

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

13 years agoCopy recently added wxGenericValidator fields in Copy().
Vadim Zeitlin [Mon, 11 Jul 2011 14:51:32 +0000 (14:51 +0000)] 
Copy recently added wxGenericValidator fields in Copy().

The pointers added in r68217 must be also initialized when creating a copy of
the validator.

Closes #13304.

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

13 years agoFix various gtk webkit warnings.
Steve Lamerton [Mon, 11 Jul 2011 12:52:07 +0000 (12:52 +0000)] 
Fix various gtk webkit warnings.

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

13 years agoTidy up the ie backend a little, make sure all com objects are correctly released.
Steve Lamerton [Mon, 11 Jul 2011 11:21:05 +0000 (11:21 +0000)] 
Tidy up the ie backend a little, make sure all com objects are correctly released.

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

13 years agoFix warnings in the ie backend.
Steve Lamerton [Mon, 11 Jul 2011 09:35:41 +0000 (09:35 +0000)] 
Fix warnings in the ie backend.

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

13 years agoAdd support for retrieving the currently selected text. Implement on all backends...
Steve Lamerton [Sun, 10 Jul 2011 18:11:43 +0000 (18:11 +0000)] 
Add support for retrieving the currently selected text. Implement on all backends, document and unit test.

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

13 years agosupport multi-line labels, add different native styles for buttons as we did for...
Stefan Csomor [Sun, 10 Jul 2011 14:20:45 +0000 (14:20 +0000)] 
support multi-line labels, add different native styles for buttons as we did for bitmap buttons

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

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