]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
13 years agoImplement SelectAll for OSX WebKit.
Steve Lamerton [Sat, 6 Aug 2011 12:58:26 +0000 (12:58 +0000)] 
Implement SelectAll for OSX WebKit.

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

13 years agoImplement GetPageText for the OSX WebKit implementation.
Steve Lamerton [Sat, 6 Aug 2011 12:48:22 +0000 (12:48 +0000)] 
Implement GetPageText for the OSX WebKit implementation.

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

13 years agoImplement ClearSelection for the OSX WebKit backend.
Steve Lamerton [Sat, 6 Aug 2011 12:20:37 +0000 (12:20 +0000)] 
Implement ClearSelection for the OSX WebKit backend.

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

13 years agoRemove string conversion functions and use the wx provided ones.
Steve Lamerton [Fri, 5 Aug 2011 19:12:32 +0000 (19:12 +0000)] 
Remove string conversion functions and use the wx provided ones.

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

13 years agoRemove redundant InternalLoadURL method.
Steve Lamerton [Fri, 5 Aug 2011 18:58:38 +0000 (18:58 +0000)] 
Remove redundant InternalLoadURL method.

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

13 years agoRemove now unnecessary comment.
Steve Lamerton [Fri, 5 Aug 2011 18:41:54 +0000 (18:41 +0000)] 
Remove now unnecessary comment.

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

13 years agoRemove SetPageTitle and GetPageTitle and make GetCurrentTitle actually return the...
Steve Lamerton [Fri, 5 Aug 2011 18:23:08 +0000 (18:23 +0000)] 
Remove SetPageTitle and GetPageTitle and make GetCurrentTitle actually return the page title.

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

13 years agoImplement GetBackwardHistory, GetForwardHistory and LoadHistoryItem for OSX WebKit.
Steve Lamerton [Fri, 5 Aug 2011 16:40:46 +0000 (16:40 +0000)] 
Implement GetBackwardHistory, GetForwardHistory and LoadHistoryItem for OSX WebKit.

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

13 years agoImplement ClearHistory using the built in WebBackForwardList rather than a shared...
Steve Lamerton [Fri, 5 Aug 2011 15:37:03 +0000 (15:37 +0000)] 
Implement ClearHistory using the built in WebBackForwardList rather than a shared WebHistory on OSX.

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

13 years agoAdd a WebHistory to the OSX WebKit backend and implement ClearHistory.
Steve Lamerton [Fri, 5 Aug 2011 13:56:50 +0000 (13:56 +0000)] 
Add a WebHistory to the OSX WebKit backend and implement ClearHistory.

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

13 years agoRemove now unused GetSelection from the OSX WebKit backend.
Steve Lamerton [Fri, 5 Aug 2011 13:25:30 +0000 (13:25 +0000)] 
Remove now unused GetSelection from the OSX WebKit backend.

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

13 years agoAdd undo / redo support to OSX WebKit.
Steve Lamerton [Fri, 5 Aug 2011 13:17:19 +0000 (13:17 +0000)] 
Add undo / redo support to OSX WebKit.

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

13 years agoAdd support for loading resources in custom schemes for the WebKitGTK+ backend.
Steve Lamerton [Fri, 5 Aug 2011 09:06:45 +0000 (09:06 +0000)] 
Add support for loading resources in custom schemes for the WebKitGTK+ backend.

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

13 years agoAdd documentation for virtual file system support in wxWebView.
Steve Lamerton [Thu, 4 Aug 2011 18:46:49 +0000 (18:46 +0000)] 
Add documentation for virtual file system support in wxWebView.

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

13 years agoUpdate wxWebFileHandler to handle paths with fragments correctly, some backends pass...
Steve Lamerton [Thu, 4 Aug 2011 08:54:54 +0000 (08:54 +0000)] 
Update wxWebFileHandler to handle paths with fragments correctly, some backends pass this to the handler and some don't so we strip it if necessary.

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

13 years agoFix recursion problems when loading pages from a virtual file system using the WebKit...
Steve Lamerton [Thu, 4 Aug 2011 08:30:37 +0000 (08:30 +0000)] 
Fix recursion problems when loading pages from a virtual file system using the WebKitGTK+ backend. Navigating through pages in an archive now works correctly.

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

13 years agoRename wxWebFileHandler name from test to file.
Steve Lamerton [Wed, 3 Aug 2011 18:51:53 +0000 (18:51 +0000)] 
Rename wxWebFileHandler name from test to file.

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

13 years agoRework IE virtual file system support to use new syntax. Remove now unused code for...
Steve Lamerton [Wed, 3 Aug 2011 18:31:48 +0000 (18:31 +0000)] 
Rework IE virtual file system support to use new syntax. Remove now unused code for resolving links ourselves, we can let the backend resolves them itself.

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

13 years agoInitial work on virtual file system support for the WebKitGTK+ backend. It now suppor...
Steve Lamerton [Wed, 3 Aug 2011 09:29:30 +0000 (09:29 +0000)] 
Initial work on virtual file system support for the WebKitGTK+ backend. It now supports loading single pages from the VFS system.

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

13 years agoAdded semicolon needed by MSVC++ 6
Julian Smart [Tue, 2 Aug 2011 14:43:15 +0000 (14:43 +0000)] 
Added semicolon needed by MSVC++ 6

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

13 years agoImplement HasSelection for the OSX WebKit backend.
Steve Lamerton [Tue, 2 Aug 2011 09:44:07 +0000 (09:44 +0000)] 
Implement HasSelection for the OSX WebKit backend.

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

13 years agoAdd EnableHistory support to the OSX WebKit backend.
Steve Lamerton [Tue, 2 Aug 2011 09:21:47 +0000 (09:21 +0000)] 
Add EnableHistory support to the OSX WebKit backend.

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

13 years agoFix warnings for the OSX WebKit backend.
Steve Lamerton [Mon, 1 Aug 2011 17:57:48 +0000 (17:57 +0000)] 
Fix warnings for the OSX WebKit backend.

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

13 years agoFix compilation for OSX backend.
Steve Lamerton [Mon, 1 Aug 2011 17:41:14 +0000 (17:41 +0000)] 
Fix compilation for OSX backend.

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

13 years agoAdd missing wxRTTI macros and fix incorrect ones.
Steve Lamerton [Mon, 1 Aug 2011 15:49:05 +0000 (15:49 +0000)] 
Add missing wxRTTI macros and fix incorrect ones.

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

13 years agoHide the infobar in the sample if we start navigating to another page.
Steve Lamerton [Mon, 1 Aug 2011 14:05:32 +0000 (14:05 +0000)] 
Hide the infobar in the sample if we start navigating to another page.

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

13 years agoFix remaining warnings in ie backend.
Steve Lamerton [Mon, 1 Aug 2011 13:20:46 +0000 (13:20 +0000)] 
Fix remaining warnings in ie backend.

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

13 years agoFix all the unused variable warnings in the sample.
Steve Lamerton [Mon, 1 Aug 2011 13:09:10 +0000 (13:09 +0000)] 
Fix all the unused variable warnings in the sample.

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

13 years agoMake web sample XPMs const to fix compiler warnings on gcc.
Steve Lamerton [Mon, 1 Aug 2011 12:54:09 +0000 (12:54 +0000)] 
Make web sample XPMs const to fix compiler warnings on gcc.

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

13 years agoFix a couple of warning that crept back into the GTK backend.
Steve Lamerton [Mon, 1 Aug 2011 12:35:52 +0000 (12:35 +0000)] 
Fix a couple of warning that crept back into the GTK backend.

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

13 years agoAdd missing lines to setup.h.in. This properly fixes compilation under configure...
Steve Lamerton [Mon, 1 Aug 2011 10:10:20 +0000 (10:10 +0000)] 
Add missing lines to setup.h.in. This properly fixes compilation under configure based environments. Also update the include guards for the wxWebHistoryItem files.

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

13 years agoRework the GTK WebKit backend history to remove the need for the map between wxWebHis...
Steve Lamerton [Sun, 31 Jul 2011 15:37:55 +0000 (15:37 +0000)] 
Rework the GTK WebKit backend history to remove the need for the map between wxWebHistoryItems and WebKitWebHistoryItems.

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

13 years agoSplit wxWebHistoryItem headers out into separate files for each backend. This will...
Steve Lamerton [Sun, 31 Jul 2011 14:06:33 +0000 (14:06 +0000)] 
Split wxWebHistoryItem headers out into separate files for each backend. This will allow us to dramatically reduce the amount of code in the GTK history implementation and implement it and OSX history support more cleanly.

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

13 years agoSimplify the wxWebFileHandler code by using a map to store the query string and manip...
Steve Lamerton [Sun, 31 Jul 2011 10:50:46 +0000 (10:50 +0000)] 
Simplify the wxWebFileHandler code by using a map to store the query string and manipulate it.

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

13 years agoOverhaul wxWebHandler naming to try and make it consistent with the rest of wxWidgets...
Steve Lamerton [Sat, 30 Jul 2011 14:22:15 +0000 (14:22 +0000)] 
Overhaul wxWebHandler naming to try and make it consistent with the rest of wxWidgets. Split wxWebFileHandler into its own file.

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

13 years agoAdd new wxEVT_COMMAND_WEB_VIEW_TITLE_CHANGED event. Implement for all backends, exten...
Steve Lamerton [Sat, 30 Jul 2011 11:26:55 +0000 (11:26 +0000)] 
Add new wxEVT_COMMAND_WEB_VIEW_TITLE_CHANGED event. Implement for all backends, extend the sample to demonstrate it and document. Also update some copyright notices.

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

13 years agoAdd CombineURIs implementation for wxWebFileProtocolHandler. Update the IE backend...
Steve Lamerton [Fri, 29 Jul 2011 10:33:54 +0000 (10:33 +0000)] 
Add CombineURIs implementation for wxWebFileProtocolHandler. Update the IE backend to use it. Using the IE backend navigating through zip archives is now functional, including loading resources and links.

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

13 years agoTidy up the include guards for the various wxWebView header files.
Steve Lamerton [Thu, 28 Jul 2011 16:58:18 +0000 (16:58 +0000)] 
Tidy up the include guards for the various wxWebView header files.

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

13 years agoMove the wxWebFileProtocolHandler from the IE backend to the common source, add the...
Steve Lamerton [Thu, 28 Jul 2011 16:49:48 +0000 (16:49 +0000)] 
Move the wxWebFileProtocolHandler from the IE backend to the common source, add the RegisterProtocol method to all classes (as a stub in GTK and OSX). Register the file protocol handler in the sample for testing purposes.

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

13 years agoInitial implementation of wxWebProtocolHandler and wxWebFileProtocolHandler for the...
Steve Lamerton [Thu, 28 Jul 2011 16:08:59 +0000 (16:08 +0000)] 
Initial implementation of wxWebProtocolHandler and wxWebFileProtocolHandler for the IE backend. This allows browsing of local files and files in zip archives when using a query string which specifies the protocol and path.

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

13 years agoVery basic implementation of IInternetProtocolInfo, this will allow us to correctly...
Steve Lamerton [Tue, 26 Jul 2011 16:11:38 +0000 (16:11 +0000)] 
Very basic implementation of IInternetProtocolInfo, this will allow us to correctly parse links in virtual file systems.

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

13 years agoAdd a couple of missing forward declarations.
Steve Lamerton [Tue, 26 Jul 2011 13:45:24 +0000 (13:45 +0000)] 
Add a couple of missing forward declarations.

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

13 years agoWe always let the user handle new window events so set the policy appropriately in...
Steve Lamerton [Tue, 26 Jul 2011 13:14:00 +0000 (13:14 +0000)] 
We always let the user handle new window events so set the policy appropriately in the WebViewGTK+ backend.

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

13 years agoFix compilation errors under OSX.
Steve Lamerton [Tue, 26 Jul 2011 11:44:03 +0000 (11:44 +0000)] 
Fix compilation errors under OSX.

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

13 years agoMerge in from trunk r67662 to r64801
Steve Lamerton [Mon, 25 Jul 2011 16:54:53 +0000 (16:54 +0000)] 
Merge in from trunk r67662 to r64801

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

13 years agoFix warnings in the MSW IE backend.
Steve Lamerton [Mon, 25 Jul 2011 15:43:18 +0000 (15:43 +0000)] 
Fix warnings in the MSW IE backend.

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

13 years agoWe no longer need to veto the new window event in the sample as the behaviour has...
Steve Lamerton [Mon, 25 Jul 2011 15:19:26 +0000 (15:19 +0000)] 
We no longer need to veto the new window event in the sample as the behaviour has been unified across the ports.

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

13 years agoLink to urlmon from wxWeb to fix the compilation errors as we use CoInternetGetSession.
Steve Lamerton [Mon, 25 Jul 2011 15:10:33 +0000 (15:10 +0000)] 
Link to urlmon from wxWeb to fix the compilation errors as we use CoInternetGetSession.

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

13 years agoRename GetHref to GetURL in wxWebNavigationEvent, this brings it into line with the...
Steve Lamerton [Mon, 25 Jul 2011 14:30:07 +0000 (14:30 +0000)] 
Rename GetHref to GetURL in wxWebNavigationEvent, this brings it into line with the other functions in wxWebView.

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

13 years agoAdd support for EVT_WEB_VIEW_NEWWINDOW to the OSX WebKit backend.
Steve Lamerton [Mon, 25 Jul 2011 13:55:54 +0000 (13:55 +0000)] 
Add support for EVT_WEB_VIEW_NEWWINDOW to the OSX WebKit backend.

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

13 years agoClarify what GetTarget actually returns in wxWebNavigationEvent.
Steve Lamerton [Mon, 25 Jul 2011 13:37:29 +0000 (13:37 +0000)] 
Clarify what GetTarget actually returns in wxWebNavigationEvent.

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

13 years agoUpdate handling and documentation for new window events. Clarify that you must handle...
Steve Lamerton [Mon, 25 Jul 2011 13:23:05 +0000 (13:23 +0000)] 
Update handling and documentation for new window events. Clarify that you must handle the event if you require an action, the default is for nothing to happen.

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

13 years agoRemove some now unused history variables.
Steve Lamerton [Mon, 25 Jul 2011 10:46:46 +0000 (10:46 +0000)] 
Remove some now unused history variables.

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

13 years agoNo changes, just remove unnecessary wxPickerBase::OnSize().
Vadim Zeitlin [Sun, 24 Jul 2011 22:19:41 +0000 (22:19 +0000)] 
No changes, just remove unnecessary wxPickerBase::OnSize().

This method did the same thing as the base wxWindow class event handler.

Also remove wxPickerBase event table which became empty after removing this
method.

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

13 years agoExclude windows not accepting keyboard focus from GTK focus chain.
Vadim Zeitlin [Sun, 24 Jul 2011 22:19:37 +0000 (22:19 +0000)] 
Exclude windows not accepting keyboard focus from GTK focus chain.

For some reason the test for AcceptsFocusFromKeyboard() wasn't done in the
correct place when constructing the GTK focus chain and even windows returning
false from it were still added to it.

Do not do this any more, this prevents the windows which are really not meant
to be focusable from keyboard (such as the pseudo-buttons in the generic
implementation of wxSearchCtrl) from gaining focus unexpectedly.

See #12808.

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

13 years agoReplace wxControlContainer-related macros with wxNavigationEnabled<>.
Vadim Zeitlin [Sun, 24 Jul 2011 22:19:33 +0000 (22:19 +0000)] 
Replace wxControlContainer-related macros with wxNavigationEnabled<>.

Simply inherit classes which need to provide TAB navigation among their
children from wxNavigationEnabled<> and remove the now unnecessary
WX_DECLARE_CONTROL_CONTAINER() macros.

Also remove WX_INIT_CONTROL_CONTAINER(), WX_DELEGATE_TO_CONTROL_CONTAINER()
and WX_EVENT_TABLE_CONTROL_CONTAINER() which are not needed neither any more.

And remove the event tables which became empty after removing the last macro.

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

13 years agoDon't give focus to wxSearchButton when using keyboard navigation.
Vadim Zeitlin [Sun, 24 Jul 2011 22:19:27 +0000 (22:19 +0000)] 
Don't give focus to wxSearchButton when using keyboard navigation.

The search control buttons don't show that they have focus and are not meant
to have it anyhow as they are more control decorations than real buttons and
their functionality can be activated by pressing "Enter" or "Escape" already
from the keyboard. But giving it to them made TAB behave unexpectedly and
wrongly when wxSearchCtrl had focus.

Override AcceptsFocusFromKeyboard() to return false to correct this.

See #12808.

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

13 years agoUse wxNavigationEnabled<> for keyboard navigation in generic wxSearchCtrl.
Vadim Zeitlin [Sun, 24 Jul 2011 22:19:23 +0000 (22:19 +0000)] 
Use wxNavigationEnabled<> for keyboard navigation in generic wxSearchCtrl.

Derive generic wxSearchCtrl implementation from wxNavigationEnabled<> to
ensure that TAB navigation works correctly in it. While it did work before for
search controls without wxTE_PROCESS_ENTER style (because this wasn't handled
by this control itself at all in fact), it stopped working as soon as this
style was used in wxMSW because then the navigation was implemented by
manually calling wxWindow::Navigate() and this requires wxControlContainer
support.

Use wxNavigationEnabled<> to easily add it to wxSearchCtrl.

See #12808.

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

13 years agoAdd wxNavigationEnabled<> helper for implementing TAB navigation.
Vadim Zeitlin [Sun, 24 Jul 2011 22:19:20 +0000 (22:19 +0000)] 
Add wxNavigationEnabled<> helper for implementing TAB navigation.

Provide a clean, public and documented way to implement proper TAB navigation
for subwindows of a composite control: instead of using various ugly and never
documented WX_XXX_CONTROL_CONTAINER macros it is now enough to simply inherit
from wxNavigationEnabled<BaseClass> to do it.

No real changes in the code as the new class is not used anywhere yet.

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

13 years agoIgnore WM_CLOSE generated by wxMSW edit control when Escape is pressed.
Vadim Zeitlin [Sun, 24 Jul 2011 10:50:51 +0000 (10:50 +0000)] 
Ignore WM_CLOSE generated by wxMSW edit control when Escape is pressed.

Multiline edit control posts WM_CLOSE to its parent window when Escape key is
pressed inside it for some reason. This is unwanted as it totally bypasses our
logic for only closing the dialog when Escape is pressed if there is a
Cancel-like button in it, so suppress this behaviour by not letting the edit
control to get Escape at all.

Closes #12501.

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

13 years agoMention that pages can't be added to wxBookCtrl more than once.
Vadim Zeitlin [Sat, 23 Jul 2011 19:36:47 +0000 (19:36 +0000)] 
Mention that pages can't be added to wxBookCtrl more than once.

Apparently some people expect this to work although it's really not meant to.

See #13209.

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

13 years agoDon't try to pop from an empty stack in wxGDIPlusContext::PopState().
Vadim Zeitlin [Sat, 23 Jul 2011 19:36:43 +0000 (19:36 +0000)] 
Don't try to pop from an empty stack in wxGDIPlusContext::PopState().

Using PopState() without a previous PushState() is an error but it shouldn't
result in a crash, so add an assert guarding against it.

Closes #13197.

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

13 years agoRemove mentions of wxCommandEvent from wxThreadEvent documentation.
Vadim Zeitlin [Sat, 23 Jul 2011 12:01:26 +0000 (12:01 +0000)] 
Remove mentions of wxCommandEvent from wxThreadEvent documentation.

wxThreadEvent doesn't derive from wxCommandEvent any more so don't say that it
does.

Also fix some grammar/wording.

Closes #13359.

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

13 years agoDon't create an unnecessary extra button in wxMSW wxProgressDialog.
Vadim Zeitlin [Sat, 23 Jul 2011 11:59:43 +0000 (11:59 +0000)] 
Don't create an unnecessary extra button in wxMSW wxProgressDialog.

MSWCommonTaskDialogInit() now (probably since r67620) always creates a
IDCANCEL button so don't create another one in wxProgressDialog code, just
ensure that the one created by that function has the correct label (either
"Cancel" or "Close").

Closes #13358.

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

13 years agoSet wxDidCreatePaintDC to true even if we reused a cached wxPaintDC.
Vadim Zeitlin [Fri, 22 Jul 2011 16:53:56 +0000 (16:53 +0000)] 
Set wxDidCreatePaintDC to true even if we reused a cached wxPaintDC.

Reusing a cached wxPaintDC should count as painting the window, otherwise we
could call DefWindowProc(WM_PAINT) if WM_PAINT was generated from inside
EVT_PAINT handler (e.g. by calling wxWindow::Update()) and this validated the
entire window and no painting was really done.

In particular this fixes redrawing of wxStyledTextCtrl which does call
Update() (completely unnecessarily AFAICS) from its EVT_PAINT handler when it
wants to fully refresh itself.

Closes #13345.

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

13 years agoIncreased the version to 2.9.3.
Vadim Zeitlin [Fri, 22 Jul 2011 16:32:07 +0000 (16:32 +0000)] 
Increased the version to 2.9.3.

Simply ran misc/scripts/inc_release and changed build/bakefiles/version.bkl
and rebaked everything afterwards.

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

13 years agoUpdate the files changed by the version number increment script.
Vadim Zeitlin [Fri, 22 Jul 2011 16:31:55 +0000 (16:31 +0000)] 
Update the files changed by the version number increment script.

src/wxWindows.xcodeproj doesn't exist any more so remove it but add
build/tools/bld_chm_exe.bat and samples/minimal/Info*.plist files.

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

13 years agoAdded customizable wxDocManager::OnMRUFileNotExist() virtual method.
Vadim Zeitlin [Fri, 22 Jul 2011 16:16:09 +0000 (16:16 +0000)] 
Added customizable wxDocManager::OnMRUFileNotExist() virtual method.

This method can be overridden to customize the previously hard-coded handling
of the case when a file selected from the MRU menu doesn't exist any more: we
used to always remove it from the file history completely. This may, however,
be inappropriate and, in fact, probably never, or very rarely, is the right
thing to do when the file that we failed to open still exists.

So never remove the file from the MRU if we failed to open an existing file
(also don't give an error about it as it should have been already given by
CreateDocument()) and, while we still do it for the non-existent files, allow
to override this behaviour by overriding the new OnMRUFileNotExist() method.

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

13 years agoSeveral corrections to wxDocManager fields documentation.
Vadim Zeitlin [Fri, 22 Jul 2011 16:16:06 +0000 (16:16 +0000)] 
Several corrections to wxDocManager fields documentation.

Remove non-existent wxDocManager::m_flags.

Added correct m_lastDirectory declaration to go with its documentation instead
of the duplicated m_fileHistory documentation.

Better document the default m_maxDocsOpen value.

Put all the documented fields in protected section as they're really protected
and not public.

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

13 years agoSave and restore file history in docview sample.
Vadim Zeitlin [Fri, 22 Jul 2011 16:16:03 +0000 (16:16 +0000)] 
Save and restore file history in docview sample.

Show how the file history can be saved to and restored from wxConfig.

This makes it much easier to test file history related stuff as the history
doesn't need to be recreated during every sample run.

It is also closer to what real applications using docview framework do as the
file history is relatively useless if it's not saved.

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

13 years agoAllow passing the error value to wxStreamBase::Reset().
Vadim Zeitlin [Fri, 22 Jul 2011 16:16:00 +0000 (16:16 +0000)] 
Allow passing the error value to wxStreamBase::Reset().

It can be useful to induce an error on the stream explicitly, e.g. because an
incorrect value was read from it and we want to indicate it to the caller by
setting stream error to wxSTREAM_READ_ERROR.

Allow to do this by passing an optional error value to wxStreamBase::Reset().

Add an example of using the new functionality to the docview sample which
needs it to be able to signal errors while reading the files.

Also document this method that previously wasn't documented at all.

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

13 years agoFixed Replace() to use the passed range instead of current selection
Julian Smart [Fri, 22 Jul 2011 13:07:40 +0000 (13:07 +0000)] 
Fixed Replace() to use the passed range instead of current selection

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

13 years agoDon't pass spin text control messages processed at wx level to Windows.
Vadim Zeitlin [Fri, 22 Jul 2011 12:49:24 +0000 (12:49 +0000)] 
Don't pass spin text control messages processed at wx level to Windows.

Windows messages handled at wx level shouldn't be processed again at Windows
level but we always passed the events forwarded by spin control "buddy" text
window to its default window proc as we had no way to determine whether they
were really handled or not.

Now we do have a way to do, by using the newly added MSWHandleMessage(), so
only pass the messages to default window proc if they hadn't been handled
already.

This notably suppresses the annoying beep which happened if Enter key was
pressed in a wxSpinCtrl with wxTE_PROCESS_ENTER style (as used by the
corresponding wxDataViewCtrl renderer, for example). It probably corrects some
other bugs/discrepancies with the other ports in event handling in wxSpinCtrl
too.

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

13 years agoRefactor wxWindow::MSWHandleMessage() out from MSWWindowProc().
Vadim Zeitlin [Fri, 22 Jul 2011 12:49:22 +0000 (12:49 +0000)] 
Refactor wxWindow::MSWHandleMessage() out from MSWWindowProc().

This commit just refactors the code without changing anything in its
behaviour and will be followed by the real changes in the next one.

The new function just handles the message, without calling MSWDefWindowProc()
if it wasn't handled. This allows to call it and determine whether the message
was really handled and only continue processing it if it wasn't.

Notice that while in theory this shouldn't be necessary because the return
value of MSWWindowProc() should indicate whether the message was handled or
not (0 meaning that it was, for most messages), in practice it doesn't work
because many standard controls window procs return 0 even for message they do
nothing with, e.g. "up down" control always returns 0 for WM_CHAR messages
even it it only really handles the arrow keys.

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

13 years agoImplement basic support for virtual file systems for the ie backend. Registering...
Steve Lamerton [Fri, 22 Jul 2011 12:31:18 +0000 (12:31 +0000)] 
Implement basic support for virtual file systems for the ie backend. Registering a temporary namespace allows us to use the existing wxFileSystem work to load virtual files.

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

13 years agoReplace define for OLECMDID_OPTICAL_ZOOM with an enum to avoid errors in compilers...
Steve Lamerton [Fri, 22 Jul 2011 09:34:46 +0000 (09:34 +0000)] 
Replace define for OLECMDID_OPTICAL_ZOOM with an enum to avoid errors in compilers that define it as such.

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

13 years agoFix double deletion bug in wxGTK wxDVC dnd code.
Vadim Zeitlin [Thu, 21 Jul 2011 13:50:26 +0000 (13:50 +0000)] 
Fix double deletion bug in wxGTK wxDVC dnd code.

The row_draggable callback could blithely delete m_dragDataObject twice as it
didn't reset it to NULL after deleting it the first time. Then, if the object
wasn't changed in the meanwhile, e.g. because dragging was not allowed for
this item, it tried to do it again when called the next time resulting in a
crash.

Closes #12538.

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

13 years agoFix the alignment used by custom wxDVC renderers in wxGTK by default.
Vadim Zeitlin [Thu, 21 Jul 2011 13:50:22 +0000 (13:50 +0000)] 
Fix the alignment used by custom wxDVC renderers in wxGTK by default.

Correctly initialize the alignment used by the text renderer used by
wxDataViewCustomRenderer in wxGTK implementation of wxDataViewCtrl.

Closes #12298.

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

13 years agoSend wxEVT_COMMAND_DATAVIEW_COLUMN_SORTED for generic version too.
Vadim Zeitlin [Thu, 21 Jul 2011 13:50:17 +0000 (13:50 +0000)] 
Send wxEVT_COMMAND_DATAVIEW_COLUMN_SORTED for generic version too.

Send this event when the column used for sorting changed in the generic
implementation of wxDataViewCtrl too.

Closes #13005.

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

13 years agoFix drawing of expander columns not at 0 position in generic wxDVC.
Vadim Zeitlin [Thu, 21 Jul 2011 13:50:14 +0000 (13:50 +0000)] 
Fix drawing of expander columns not at 0 position in generic wxDVC.

The drawing code in the generic version of wxDataViewCtrl incorrectly supposed
that the expander column was always at position 0. This resulted in the
expander column not being drawn at all if it was not really the first one.

Fix the test to use wxDataViewCtrl::GetExpanderColumn() to correct this.

Closes #12870.

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

13 years agoCorrect test for maximal row index in generic wxDataViewCtrl.
Vadim Zeitlin [Thu, 21 Jul 2011 13:50:10 +0000 (13:50 +0000)] 
Correct test for maximal row index in generic wxDataViewCtrl.

The comparison in EVT_CHAR handler was incorrect for an empty control without
any rows as it subtracting 1 from 0 resulted in UINT_MAX and not -1 as all the
values were unsigned.

Fix this by checking that the new row is valid instead, this is correct for
both signed and unsigned values.

Closes #13356.

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

13 years agoNever restore focus to hidden child.
Vadim Zeitlin [Thu, 21 Jul 2011 13:50:06 +0000 (13:50 +0000)] 
Never restore focus to hidden child.

Don't set focus to a hidden window in our focus management code, this never
makes sense and results in apparent focus loss.

It also fixes, as a side effect, a crash in wxGrid under wxMSW as the focus is
not restored to the hidden grid editor any longer and so the code in its
wxEVT_KILL_FOCUS handler that resulted in the crash is not executed any
longer, see #13349.

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

13 years agoAllow marking wxTreeBook nodes to expand initially in XRC.
Vadim Zeitlin [Thu, 21 Jul 2011 13:50:03 +0000 (13:50 +0000)] 
Allow marking wxTreeBook nodes to expand initially in XRC.

Add new "expanded" attribute for XRC nodes of treebookpage class.

Also update the sample and the XRC format documentation.

Closes #13355.

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

13 years agoMake wxEnhMetaFileDC ctor from wxDC explicit.
Vadim Zeitlin [Thu, 21 Jul 2011 13:49:59 +0000 (13:49 +0000)] 
Make wxEnhMetaFileDC ctor from wxDC explicit.

This avoids implicit conversion of any kind of wxDC to wxEnhMetaFileDC which
is totally unexpected.

See #13326.

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

13 years agoFix parsing of negated long options in wxCmdLineParser.
Vadim Zeitlin [Thu, 21 Jul 2011 13:49:55 +0000 (13:49 +0000)] 
Fix parsing of negated long options in wxCmdLineParser.

Negated long options were not recognized in wxCmdLineParser::Parse(), do check
for them now.

Also extend the unit test to check for negated options.

Closes #13335.

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

13 years agoReset negatable switches correctly in wxCmdLineParser::Reset().
Vadim Zeitlin [Thu, 21 Jul 2011 13:49:51 +0000 (13:49 +0000)] 
Reset negatable switches correctly in wxCmdLineParser::Reset().

The "negated" flag of wxCmdLineOption struct was not reset by Reset() so
parsing a command line with a negatable option once influenced the result of
parsing it the next time because the old value was kept.

Do clear it now to allow calling Parse() several times without side effects.

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

13 years agoNo longer ignores first-line indent if no left indent specified
Julian Smart [Wed, 20 Jul 2011 16:23:37 +0000 (16:23 +0000)] 
No longer ignores first-line indent if no left indent specified

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

13 years agoDon't use template member function in drawing sample to placate VC6.
Vadim Zeitlin [Wed, 20 Jul 2011 11:41:07 +0000 (11:41 +0000)] 
Don't use template member function in drawing sample to placate VC6.

VC6 can't instantiate member template functions so get rid of it and use ugly
dynamic casts in the non-template function to construct wxGCDC correctly.

See #13327.

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

13 years agofixes redraw problems under OSX, see #13345
Stefan Csomor [Wed, 20 Jul 2011 06:36:06 +0000 (06:36 +0000)] 
fixes redraw problems under OSX, see #13345

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

13 years agoFix harmless gcc warning about uninitialized mask in PNG saving code.
Vadim Zeitlin [Tue, 19 Jul 2011 22:36:00 +0000 (22:36 +0000)] 
Fix harmless gcc warning about uninitialized mask in PNG saving code.

The mask was actually only used when it was initialized (or, conversely, the
mask was always initialized when it was used) but gcc doesn't seem to notice
this and still warns that mask components "may be used uninitialized in this
function".

Suppress the warnings by always initializing the mask, even if we don't use
it.

Closes #13333.

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

13 years agoRefresh the old current row when right clicking in wxDataViewCtrl.
Vadim Zeitlin [Tue, 19 Jul 2011 22:35:57 +0000 (22:35 +0000)] 
Refresh the old current row when right clicking in wxDataViewCtrl.

the generic implementation of wxDataViewCtrl left the old current still
focused after selecting another row as current when it was right clicked.
Fix this by refreshing the previously current row after unfocusing it.

Closes #13330.

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

13 years agoAdd wxDataViewEvent::IsEditCancelled() and support for vetoing edit events.
Vadim Zeitlin [Tue, 19 Jul 2011 22:35:53 +0000 (22:35 +0000)] 
Add wxDataViewEvent::IsEditCancelled() and support for vetoing edit events.

Currently this is only implemented in the generic wxDataViewCtrl, the native
GTK/OSX ports should be modified to support this later.

Closes #13323.

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

13 years agoFix deleting columns in wxGridStringTable with custom column labels.
Vadim Zeitlin [Tue, 19 Jul 2011 22:35:48 +0000 (22:35 +0000)] 
Fix deleting columns in wxGridStringTable with custom column labels.

We erroneously removed too many elements from m_colLabels array (basically we
always removed all the elements remaining after this column, irrespectively of
the actual number of columns to delete), fix this by removing at most the
specified number of columns -- or possibly less if the array isn't entirely
filled.

See #13329.

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

13 years agoAllow saving the drawing sample canvas to a file or clipboard.
Vadim Zeitlin [Tue, 19 Jul 2011 22:35:45 +0000 (22:35 +0000)] 
Allow saving the drawing sample canvas to a file or clipboard.

This allows to test wxMemoryDC and, under MSW, wxMetafileDC and also can be
used to compare the output of different versions of the sample (possibly from
different ports, too).

Closes #13327.

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

13 years agoAdded wxGCDC(wxEnhMetaFileDC) ctor too.
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

13 years agoFix keyboard navigation in wxGrid with hidden columns.
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

13 years agodoing WakeUp in osx_carbon differently for the main event as well
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

13 years agomake sure we can issue a WakeUp call that really triggers at the NSRunLoop level...
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

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