]>
git.saurik.com Git - wxWidgets.git/log
Vadim Zeitlin [Tue, 19 Jul 2011 22:35:41 +0000 (22:35 +0000)]
Added wxGCDC(wxEnhMetaFileDC) ctor too.
Make it possible to create wxGCDC associated with a metafile DC in wxMSW too.
Closes #13326.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68304
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 19 Jul 2011 22:35:37 +0000 (22:35 +0000)]
Fix keyboard navigation in wxGrid with hidden columns.
The hidden columns (i.e. those whose size was set to 0) should be skipped when
find the previous/next column to select when the user presses Left/Right
cursor arrow keys in wxGrid, otherwise the focus could completely disappear as
it was invisible when it was set to a hidden column.
Closes #13281.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68303
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Tue, 19 Jul 2011 17:56:57 +0000 (17:56 +0000)]
doing WakeUp in osx_carbon differently for the main event as well
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68302
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Tue, 19 Jul 2011 16:17:44 +0000 (16:17 +0000)]
make sure we can issue a WakeUp call that really triggers at the NSRunLoop level not only only CFRunLoop
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68301
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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