]>
git.saurik.com Git - wxWidgets.git/log
Václav Slavík [Fri, 19 Aug 2011 18:25:28 +0000 (18:25 +0000)]
Reorganize wxDataViewMainWindow::ItemAdded() for better readability.
Reuse common code. No real changes.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68792
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Dimitri Schoolwerth [Fri, 19 Aug 2011 16:10:07 +0000 (16:10 +0000)]
Fixed failing test in ImageTestCase for builds made with makefiles.
The recently added BMP images in tests/image/ were not being copied. Added them to test.bkl and regenerated makefiles.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68791
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Fri, 19 Aug 2011 13:30:46 +0000 (13:30 +0000)]
Update documentation for new library name.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68790
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Fri, 19 Aug 2011 10:45:16 +0000 (10:45 +0000)]
Rename web library to webview.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68789
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Fri, 19 Aug 2011 09:15:06 +0000 (09:15 +0000)]
Rename wxUSE_WEB to wxUSE_WEBVIEW to reflect that actually it specifically toggles the wxWebView class and associated features.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68788
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Dimitri Schoolwerth [Fri, 19 Aug 2011 03:57:06 +0000 (03:57 +0000)]
Documented wxIMAGE_OPTION_TIFF_* options that are currently in use.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68787
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Dimitri Schoolwerth [Fri, 19 Aug 2011 03:50:45 +0000 (03:50 +0000)]
Use a default photometric interpretation value of PHOTOMETRIC_MINISWHITE instead of PHOTOMETRIC_MINISBLACK for greyscale and b/w TIFF images.
Closes #13194.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68786
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Dimitri Schoolwerth [Fri, 19 Aug 2011 03:47:40 +0000 (03:47 +0000)]
Added option to TIFF handler for specifying the photometric interpretation.
Added option wxIMAGE_OPTION_TIFF_PHOTOMETRIC for reading and writing TIFF images. This is mostly for being able to distinguish between PHOTOMETRIC_MINISBLACK (chocolate flavour) and PHOTOMETRIC_MINISWHITE (vanilla) as currently the flavour used was fixed. It applies to greyscale as well as black and white images. Added unit tests to verify the written photometric value.
Also see #13194.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68785
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Dimitri Schoolwerth [Fri, 19 Aug 2011 02:35:48 +0000 (02:35 +0000)]
Added support for saving greyscale TIFF images.
When saving with a samples per pixel value of 1 the TIFF handler still treated the image as RGB, resulting in corrupted images. Handle the greyscale case and added a unit test for it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68784
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Dimitri Schoolwerth [Fri, 19 Aug 2011 02:27:11 +0000 (02:27 +0000)]
Changed TIFF handler's monochrome conversion to look at the green channel instead of red.
It's common when reducing a coloured image to greyscale or black and white to give the green channel more significance. Since we're only looking at a single channel use the green one instead of red.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68783
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Dimitri Schoolwerth [Fri, 19 Aug 2011 02:00:25 +0000 (02:00 +0000)]
Fixed crash when saving as a monochrome TIFF image with incomplete options set.
When setting only wxIMAGE_OPTION_TIFF_BITSPERSAMPLE to 1 the used samples per pixel (wxIMAGE_OPTION_TIFF_SAMPLESPERPIXEL) would still be set to 3. This is invalid and confuses libtiff, resulting in a crash ("possible heap corruption" during _TIFFfree using WinXP+MSVC8). Set the used samples per pixel to 1 explicitly in cases where only bits per sample is set to 1. Added a unit test to check for this problem (and verify the bits per sample from the saved image is indeed 1).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68782
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Dimitri Schoolwerth [Fri, 19 Aug 2011 01:31:07 +0000 (01:31 +0000)]
No code changes.
Renamed variable bpp (bits per pixel) in TIFF handler to what it actually represents: bps (bits per sample).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68781
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Dimitri Schoolwerth [Fri, 19 Aug 2011 01:19:21 +0000 (01:19 +0000)]
Renamed the options specific to the TIFF handler.
The loading/saving options that are specific for TIFF were in the form of wxIMAGE_OPTION_<name> while all other non-generic options use the form wxIMAGE_OPTION_<imagetype>_<name>. Renamed the TIFF options to the form wxIMAGE_OPTION_TIFF_<name> and kept the old names for backwards compatibility.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68780
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Dimitri Schoolwerth [Fri, 19 Aug 2011 01:13:16 +0000 (01:13 +0000)]
improved wxImage documentation.
moved description of wxIMAGE_OPTION_GIF_COMMENT from wxImage::GetOptionInt documentation to wxImage::GetOption because the value of the GIF option is a string, not int.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68779
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Dimitri Schoolwerth [Fri, 19 Aug 2011 01:08:36 +0000 (01:08 +0000)]
Improved saving of TIFF monochrome images.
When reducing an RGB image to black and white any non-black pixel was treated as white resulting in mostly white images. Set the threshold to 127 instead to improve the looks of saved monochrome TIFF images.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68777
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Thu, 18 Aug 2011 13:29:16 +0000 (13:29 +0000)]
Remove a couple of unused forward declarations.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68773
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Dimitri Schoolwerth [Thu, 18 Aug 2011 13:15:43 +0000 (13:15 +0000)]
Fixed saving TIFF images to wxMemoryOutputStream.
Libtiff attempts to seek past the end of a stream and the behaviour for this can vary per stream implementation. Fixed failure to seek by filling the gap between the end of stream and new seek position with zeroes. Enabled a unit test which so far was disabled due to wxMemoryOutputStream failing to save a TIFF because of the seeking problem.
Also closes #4089.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68772
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Thu, 18 Aug 2011 10:51:57 +0000 (10:51 +0000)]
Add some version checks to help compiling on OSX.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68771
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Thu, 18 Aug 2011 09:26:52 +0000 (09:26 +0000)]
Remove MoveWindow method.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68769
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Dimitri Schoolwerth [Wed, 17 Aug 2011 21:01:09 +0000 (21:01 +0000)]
Improved BMP decoding.
The BMP decoder did not handle images that are not stored upside down but straight up (in which case the height is negative). Also with RLE4 or RLE8 compressed images the 'end of scanline' RLE marker was not handled correctly. Fixed the issues and added a unit test for them.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68766
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Wed, 17 Aug 2011 13:50:01 +0000 (13:50 +0000)]
Return true by default under OSX WebKit.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68763
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Wed, 17 Aug 2011 13:46:09 +0000 (13:46 +0000)]
Correctly stop the loading animation in the sample when we veto navigation.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68762
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Wed, 17 Aug 2011 11:19:29 +0000 (11:19 +0000)]
Derive wxWebViewEvent from wxNotifyEvent.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68761
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Wed, 17 Aug 2011 10:55:59 +0000 (10:55 +0000)]
Rename LoadUrl to LoadURL. This corrects the capitalisation as it is an acronym, and brings it into line with GetCurrentURL.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68760
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Wed, 17 Aug 2011 10:49:17 +0000 (10:49 +0000)]
Tidy up webview.h. Remove all of the doxygen comments which have now been moved to the interface file. Organise method declarations more sensibly.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68759
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Wed, 17 Aug 2011 10:36:14 +0000 (10:36 +0000)]
Make a few internal methods private.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68758
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 17 Aug 2011 10:35:29 +0000 (10:35 +0000)]
Use correct format specifier for thread id in the sample.
Thread id is an (unsigned) long, not just unsigned, so use "%lx" to print it
instead of "%x" to avoid asserts in formatting code.
Closes #13404.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68757
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 17 Aug 2011 10:35:25 +0000 (10:35 +0000)]
Restore stock item labels mistakenly removed by r68641.
The patch adding separate string for the labels with mnemonics and the ones
without them has somehow managed to remove entries for 10 stock ids.
Restore them now.
Closes #13403.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68756
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Wed, 17 Aug 2011 10:26:09 +0000 (10:26 +0000)]
Const correct the wxWebView api.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68755
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Wed, 17 Aug 2011 08:38:00 +0000 (08:38 +0000)]
Better text control non-selection solution
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68753
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Tue, 16 Aug 2011 20:52:15 +0000 (20:52 +0000)]
Implemented non-selection of content when setting focus via the keyboard.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68749
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Tue, 16 Aug 2011 13:46:56 +0000 (13:46 +0000)]
adapting to new ctrl constant handling on OSX
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68727
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Tue, 16 Aug 2011 13:45:05 +0000 (13:45 +0000)]
adapting to new ctrl constant handling on OSX
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68726
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Tue, 16 Aug 2011 13:36:24 +0000 (13:36 +0000)]
adapting to new ctrl constant handling on OSX
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68725
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Tue, 16 Aug 2011 12:42:56 +0000 (12:42 +0000)]
supporting full style mask
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68724
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 16 Aug 2011 12:24:28 +0000 (12:24 +0000)]
wxMSW compilation fix when not using PCH.
Add missing "wx/menu.h" include.
Coses #13399.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68723
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Tue, 16 Aug 2011 12:17:59 +0000 (12:17 +0000)]
adjust init to standard
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68722
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Tue, 16 Aug 2011 12:17:13 +0000 (12:17 +0000)]
support for raw ctrl shortcut
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68721
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Tue, 16 Aug 2011 12:01:27 +0000 (12:01 +0000)]
emulate more arrow keys on non msw platforms
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68720
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Tue, 16 Aug 2011 12:00:52 +0000 (12:00 +0000)]
adapt defines for ctrl/command key
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68719
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Tue, 16 Aug 2011 11:55:39 +0000 (11:55 +0000)]
adapt defines
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68718
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Tue, 16 Aug 2011 07:02:37 +0000 (07:02 +0000)]
Avoid creating rect with negative size while clipping to DC size.
Also, don't convert result of wxDC::GetSize() to device coords, it's already device coords.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68717
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Mon, 15 Aug 2011 13:10:34 +0000 (13:10 +0000)]
Add a menu item linking to a custom scheme example.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68700
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Mon, 15 Aug 2011 12:37:05 +0000 (12:37 +0000)]
Update bakefile for new header names.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68699
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Mon, 15 Aug 2011 12:31:31 +0000 (12:31 +0000)]
Rename wxWebHistoryItem to wxWebViewHistoryItem.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68698
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Mon, 15 Aug 2011 11:03:26 +0000 (11:03 +0000)]
Rename wxWebNavigationError to wxWebViewNavigationError and wxWebNavigationEvent to wxWebViewEvent. This makes the names more consistent with other parts of wxWidgets.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68697
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 14 Aug 2011 19:39:31 +0000 (19:39 +0000)]
Fix return value of wxMBConvUTF8::ToWChar() when not using MAP_INVALID_UTF8_NOT.
wxMBConvUTF8::ToWChar() was off by 1 when the input length was explicitly
specified, the extra NUL should only be added in the implicit length case.
This bug didn't occur for the default wxMBConvUTF8 object as it simply
forwarded to the base class wxMBConvStrictUTF8 implementation but it happened
when MAP_INVALID_UTF8_TO_OCTAL or MAP_INVALID_UTF8_TO_PUA was used.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68694
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Sun, 14 Aug 2011 15:43:30 +0000 (15:43 +0000)]
fixing comment
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68693
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Sun, 14 Aug 2011 15:42:35 +0000 (15:42 +0000)]
fixing open application event handling, fixes #13397
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68692
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Sun, 14 Aug 2011 15:41:10 +0000 (15:41 +0000)]
adding two missing strings (used in docview)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68691
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Sun, 14 Aug 2011 12:25:44 +0000 (12:25 +0000)]
Add missing bakefile from previous commit.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68690
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Sun, 14 Aug 2011 12:15:34 +0000 (12:15 +0000)]
Rename wxWebFileHandler to wxWebViewArchiveHandler, wxWebHandler to wxWebViewHandler. Update the documentation and the sample. Add a constructor taking a wxString to specify the scheme in wxWebViewHandler.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68689
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Sun, 14 Aug 2011 11:55:36 +0000 (11:55 +0000)]
using proper cmd constant
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68688
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Sat, 13 Aug 2011 16:17:59 +0000 (16:17 +0000)]
simplify global cursor setting
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68685
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Sat, 13 Aug 2011 16:01:47 +0000 (16:01 +0000)]
Merge in from trunk r68626 - r68683
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68684
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Sat, 13 Aug 2011 15:45:39 +0000 (15:45 +0000)]
Add various selection menu items to the sample.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68683
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Sat, 13 Aug 2011 14:53:46 +0000 (14:53 +0000)]
Add Run Script menu option to the sample.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68682
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Sat, 13 Aug 2011 14:11:32 +0000 (14:11 +0000)]
Add history list to the sample.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68681
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 13 Aug 2011 13:54:26 +0000 (13:54 +0000)]
Fix bitmap position attribute name in XRC handler.
Bitmap position attribute was called "bitmapposition" in the documentation and
in the code that generated an error message for a wrong value in it but was
inexplicably called "direction" in the code that really looked it up.
This seems to be just a straight typo from the original r61065. Surprising as
it is that it wasn't noticed before, do correct it now.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68680
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Sat, 13 Aug 2011 10:07:03 +0000 (10:07 +0000)]
Call Dismiss rather than Show(false) on the infobar to correct the layout.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68679
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Sat, 13 Aug 2011 09:41:50 +0000 (09:41 +0000)]
Fix loading history items under GTK. The wrong function was being used.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68678
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 12 Aug 2011 14:09:41 +0000 (14:09 +0000)]
No changes, just remove gratuitous inefficiency from generic wxDVC.
Don't return wxDataViewMainWindow::m_selection array by value, returning a
const reference to it is enough and avoids completely unnecessary memory
allocations and copying of potentially large amounts of data.
Also make wxDataViewMainWindow::GetSelections() const.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68652
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 12 Aug 2011 14:09:37 +0000 (14:09 +0000)]
Fix compilation of generic wxDVC code when not using STL containers.
wx sorted containers don't implement iterators so use indices to iterate over
wxDataViewMainWindow::m_selection, just as r68613 already did in another place.
Closes #13388.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68651
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Fri, 12 Aug 2011 10:49:52 +0000 (10:49 +0000)]
Update documentation about custom schemes and virtual file systems.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68650
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Fri, 12 Aug 2011 10:44:50 +0000 (10:44 +0000)]
Fix history in wxWebViewIE when using a custom file scheme.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68649
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Fri, 12 Aug 2011 09:35:41 +0000 (09:35 +0000)]
Use the data scheme to load resources in the WebKitGTK+ implementation, rather than temporary files.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68648
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Fri, 12 Aug 2011 05:45:59 +0000 (05:45 +0000)]
remove unneeded gdk_window_get_pointer() call
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68647
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Fri, 12 Aug 2011 05:33:59 +0000 (05:33 +0000)]
pass proper window to gdk_window_get_pointer(), NULL does not work with GTK3
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68646
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Thu, 11 Aug 2011 18:56:13 +0000 (18:56 +0000)]
Add support for custom scheme handling and virtual file systems to the OSX WebKit implementation.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68644
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Thu, 11 Aug 2011 12:21:47 +0000 (12:21 +0000)]
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68642
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 11 Aug 2011 10:56:05 +0000 (10:56 +0000)]
Use separate strings for stock labels with and without mnemonics.
Obtaining the string without mnemonics by simply removing "&" characters from
the string containing mnemonics doesn't work for some languages, notably
Chinese where the convention is to use "Chinese Text (&M)" for the labels with
"M" being the ASCII mnemonic and just "Chinese Text" and not "Chinese Text (M)"
should be used if wxSTOCK_WITH_MNEMONIC flag is not specified.
Fix the fundamental problem by using separate strings for the two cases.
Translations still need to be updated to really correct the labels appearance.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68641
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Thu, 11 Aug 2011 10:54:02 +0000 (10:54 +0000)]
Fix typo in last commit
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68640
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Thu, 11 Aug 2011 10:49:50 +0000 (10:49 +0000)]
Rename delegates to try and stop name clashes, probably with wxWebKitCtrl.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68639
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Thu, 11 Aug 2011 08:43:38 +0000 (08:43 +0000)]
adjusting include styles
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68638
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Thu, 11 Aug 2011 08:43:13 +0000 (08:43 +0000)]
adjusting include styles
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68637
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Thu, 11 Aug 2011 08:42:39 +0000 (08:42 +0000)]
fixing osx_carbon
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68636
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Thu, 11 Aug 2011 08:24:26 +0000 (08:24 +0000)]
fixing osx_cocoa, there's a reason m_peer is private in the base class
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68635
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Thu, 11 Aug 2011 08:14:37 +0000 (08:14 +0000)]
fixing osx_cocoa
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68634
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Dimitri Schoolwerth [Thu, 11 Aug 2011 00:39:18 +0000 (00:39 +0000)]
Fixed wxOSX build.
Since r68621 dataview.cpp didn't compile anymore (at least with wxOSX-Carbon). Fixed by explicitly using wxDataViewItem's void * constructor in a few cases.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68632
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 10 Aug 2011 21:57:05 +0000 (21:57 +0000)]
Basque translations update from Xabier Aramendi.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68631
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 10 Aug 2011 21:07:18 +0000 (21:07 +0000)]
Also regenerate configure after wxWeb-related bakefile changes.
Configure must be rebuilt after any changes to autoconf_inc.m4 but this wasn't
done by the previous commit.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68630
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Wed, 10 Aug 2011 18:32:52 +0000 (18:32 +0000)]
Complete rebake with web libraries to allow easier testing.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68627
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Wed, 10 Aug 2011 18:10:42 +0000 (18:10 +0000)]
Merge in from trunk r64802 - r68625
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68626
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Wed, 10 Aug 2011 15:24:25 +0000 (15:24 +0000)]
Add some basic tests for wxDataViewCtrl selection handling.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68623
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Wed, 10 Aug 2011 15:24:19 +0000 (15:24 +0000)]
Fix selection handling wxDataViewMainWindow::ItemDeleted().
The code to update m_selection was too aggressive in the virtual list
case, when it simply cleared it, and broken for single-item selection in
the general case.
Fixed to recompute selection properly.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68622
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Wed, 10 Aug 2011 15:21:22 +0000 (15:21 +0000)]
Make the wxDataViewItem(void*) constructor explicit.
Not having this as an implicit one made it possible to create
wxDataViewItem from any pointer without realizing it, leading to hard to
debug crashes later.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68621
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Wed, 10 Aug 2011 14:06:28 +0000 (14:06 +0000)]
Added the ability to deselect attributes in the font dialog
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68619
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Dimitri Schoolwerth [Tue, 9 Aug 2011 22:17:12 +0000 (22:17 +0000)]
Added NSApplicationDelegate's openFiles for wxOSX-Cocoa.
openFiles (available since OS X 10.3) replaces using the openFile method. It allows for more convenient handling of multiple drops and knowing in advance how much files/folders are dropped instead of openFile with which you only get to respond to a single file/folder drop at a time. By default openFiles calls the newly added MacOpenFiles which calls MacOpenFile multiple times, so ordinarily the behaviour is backwards compatible (both on wxOSX Cocoa and Carbon).
The openFile instance method has been removed because it doesn't seem to be called anymore: neither when dropping a single file on the application in the dock or Finder nor when passed as a command-line argument.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68617
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 9 Aug 2011 15:46:28 +0000 (15:46 +0000)]
Don't reset wxTLW::m_iconized when hiding the window in wxMSW.
Calling Hide() on an iconized window wrongly reset its m_iconized flag but
hiding the window shouldn't affect it.
Closes #13373.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68614
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Tue, 9 Aug 2011 11:35:32 +0000 (11:35 +0000)]
Don't use iterators with wxDataViewSelection.
They aren't implemented when using wx's homegrown sorted containers
and adding support is probably more trouble than it's worth.
Fixes #13388.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68613
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 9 Aug 2011 11:25:09 +0000 (11:25 +0000)]
No changes, just correct the helpview sample name in comment.
"printing.cpp" was used for whatever reason.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68612
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 8 Aug 2011 15:15:50 +0000 (15:15 +0000)]
Don't manually centre dialogs created with default position in wxMSW.
We always centered the dialogs on the main display which was wrong if the
parent window was on another one. Instead of fixing it, simply don't centre
them at all and let Windows position them, there is no reason to change the
default behaviour.
Closes #13387.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68606
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Mon, 8 Aug 2011 15:12:33 +0000 (15:12 +0000)]
Use shared pointers to hold wxWebHandlers throughout.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68605
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Mon, 8 Aug 2011 14:24:28 +0000 (14:24 +0000)]
Add wxWebView sample to documentation.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68604
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Mon, 8 Aug 2011 14:03:15 +0000 (14:03 +0000)]
Improve the detailed description in the documentation.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68603
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Mon, 8 Aug 2011 12:18:58 +0000 (12:18 +0000)]
Note that CanCut / CanCopy / CanPaste are not currently supported on the OSX WebKit implementation.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68602
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Mon, 8 Aug 2011 12:12:51 +0000 (12:12 +0000)]
Fix a bunch of spelling mistakes cause by an early commit.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68601
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Mon, 8 Aug 2011 12:05:58 +0000 (12:05 +0000)]
Add backend descriptions for all backends to the documentation.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68600
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Mon, 8 Aug 2011 11:22:40 +0000 (11:22 +0000)]
Add a section about async notifications to the documentation.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68599
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Václav Slavík [Mon, 8 Aug 2011 10:23:19 +0000 (10:23 +0000)]
Check for invalid items in generic wxDataViewCtrl::GetSelections().
This shouldn't normally happen, but if some bug causes it, detect it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68598
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775