]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
11 years agoBetter fix for duplicate wxContextMenuEvent generation under MSW.
Vadim Zeitlin [Tue, 2 Jul 2013 20:24:22 +0000 (20:24 +0000)] 
Better fix for duplicate wxContextMenuEvent generation under MSW.

Fix the bug with multiple wxContextMenuEvent being generated for a single
WM_CONTEXTMENU without breaking context menus for wxTextCtrl (and all the
other native controls). Do this by ensuring that WM_CONTEXTMENU is still
passed to DefWindowProc() if we don't process it instead of just being eaten
completely in any case.

Also add a unit test checking for this bug to ensure it stays fixed.

See #13683.

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

11 years agoAvoid forcing wxYield() after wxUIActionSimulator::MouseMove() in wxGTK.
Vadim Zeitlin [Tue, 2 Jul 2013 20:23:58 +0000 (20:23 +0000)] 
Avoid forcing wxYield() after wxUIActionSimulator::MouseMove() in wxGTK.

Yield (for input events only) inside this function itself instead of forcing
all the code using this function to call wxYield() after it as otherwise the
mouse position change is not taken into account by the subsequent simulated
events.

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

11 years agochain up to parent in dispose handler
Paul Cornett [Tue, 2 Jul 2013 17:15:27 +0000 (17:15 +0000)] 
chain up to parent in dispose handler

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

11 years agouse correct signature for class init function
Paul Cornett [Tue, 2 Jul 2013 17:09:55 +0000 (17:09 +0000)] 
use correct signature for class init function

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

11 years agouse existing helper to remove inconvenient additional reference added by gtk_tree_mod...
Paul Cornett [Tue, 2 Jul 2013 16:56:42 +0000 (16:56 +0000)] 
use existing helper to remove inconvenient additional reference added by gtk_tree_model_get()

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

11 years agoremove unused function GTKSetItem()
Paul Cornett [Tue, 2 Jul 2013 16:35:43 +0000 (16:35 +0000)] 
remove unused function GTKSetItem()

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

11 years agopreserve checkbox status in SetString()
Paul Cornett [Tue, 2 Jul 2013 16:29:49 +0000 (16:29 +0000)] 
preserve checkbox status in SetString()

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

11 years agoDon't append extension if it contains wildcards in wxGTK wxFileDialog.
Vadim Zeitlin [Mon, 1 Jul 2013 14:58:27 +0000 (14:58 +0000)] 
Don't append extension if it contains wildcards in wxGTK wxFileDialog.

Restore the test for wildcards erroneously removed in r74307.

Closes #15285.

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

11 years agoOptimize wxImage::Scale() by pre-calculating the values used.
Vadim Zeitlin [Mon, 1 Jul 2013 14:48:24 +0000 (14:48 +0000)] 
Optimize wxImage::Scale() by pre-calculating the values used.

Precompute the values used by various resampling algorithms once instead of
doing it for each pixel. This dramatically speeds them up: more than 3 times
faster in wxImage benchmark with the small images and up to 5 times faster
with larger images.

Closes #15281.

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

11 years agoAdd wxImage::Scale() benchmarks.
Vadim Zeitlin [Mon, 1 Jul 2013 14:48:01 +0000 (14:48 +0000)] 
Add wxImage::Scale() benchmarks.

Measure the time taken to rescale the image to a bigger or smaller size using
normal or high quality.

See #15281.

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

11 years agoAdd benchmarks for wxImage methods.
Vadim Zeitlin [Mon, 1 Jul 2013 14:47:38 +0000 (14:47 +0000)] 
Add benchmarks for wxImage methods.

Build a GUI version of the benchmark program too and use it to benchmark
wxImage loading methods for now (more will be added later).

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

11 years agoAdd a unit test for wxImage::Scale() method.
Vadim Zeitlin [Mon, 1 Jul 2013 14:47:12 +0000 (14:47 +0000)] 
Add a unit test for wxImage::Scale() method.

Check that resizing the test horse image produces the same results in the
future as it does now, by saving the current results in files and verifying
that images resized directly and loaded from these files are the same.

See #15281.

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

11 years agoUse gtk_list_store_insert_with_values() to set entry at same time item is inserted.
Paul Cornett [Mon, 1 Jul 2013 05:10:22 +0000 (05:10 +0000)] 
Use gtk_list_store_insert_with_values() to set entry at same time item is inserted.
This should ensure that the entry is always valid, removing the need for r74315.
Also simplify DoInsertItems() by using DoInsertItemsInLoop().

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

11 years agoFix missing documentation for several GDI functions.
Vadim Zeitlin [Mon, 1 Jul 2013 00:49:46 +0000 (00:49 +0000)] 
Fix missing documentation for several GDI functions.

The documentation for wxGetClientDisplayRect(), wxGetDisplayPPI(),
wxGetDisplaySize() and wxGetDisplaySizeMM() didn't appear in the output
because they were documented as "overloads" of the corresponding functions
without "Get" prefix inside an @addtogroup Doxygen macro and apparently this
is not supported.

Simply document them separately to fix this.

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

11 years agofix assertion failure when string transform is requested before entry is set
Paul Cornett [Sat, 29 Jun 2013 17:16:49 +0000 (17:16 +0000)] 
fix assertion failure when string transform is requested before entry is set

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

11 years agoForward events to active child in wxMDIParentFrameBase, not only wxMSW.
Vadim Zeitlin [Sat, 29 Jun 2013 12:53:44 +0000 (12:53 +0000)] 
Forward events to active child in wxMDIParentFrameBase, not only wxMSW.

Menu, toolbar and update UI events should be forwarded to the active child
under all platforms in MDI applications and not only MSW, so move TryBefore()
overload from wxMSW wxMDIParentFrame to wxMDIParentFrameBase.

This should make things more consistent in general and notably fixes the lack
of toolbar events in wxDocChildFrame since the changes of r73928.

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

11 years agoFix VC6 compilation of wxRichTextTable code.
Vadim Zeitlin [Sat, 29 Jun 2013 12:53:21 +0000 (12:53 +0000)] 
Fix VC6 compilation of wxRichTextTable code.

In addition to breaking VC6 build, the code also rather strangely declared
"row" inside a for loop first and then declared it in the function scope.

Leave just the second declaration.

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

11 years agoAdd support for horizontal mouse wheel scrolling in wxSTC.
Vadim Zeitlin [Sat, 29 Jun 2013 12:52:58 +0000 (12:52 +0000)] 
Add support for horizontal mouse wheel scrolling in wxSTC.

Handle horizontal mouse wheel scrolling events in a similar (but simpler, as
they always scroll and never change the font size) way to the vertical ones in
wxStyledTextCtrl.

Closes #15266.

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

11 years agoUse more readable wxListCtrl::AppendColumn() in the samples.
Vadim Zeitlin [Sat, 29 Jun 2013 12:52:34 +0000 (12:52 +0000)] 
Use more readable wxListCtrl::AppendColumn() in the samples.

Call this function instead of InsertColumn() with incrementing indices.

See #15265.

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

11 years agoUse wxListColumnFormat for wxListCtrl::AppendColumn() format argument.
Vadim Zeitlin [Sat, 29 Jun 2013 12:52:11 +0000 (12:52 +0000)] 
Use wxListColumnFormat for wxListCtrl::AppendColumn() format argument.

This is safer than using just an untyped int.

Closes #15265.

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

11 years agoFix wxIMAGE_QUALITY_HIGH definition.
Vadim Zeitlin [Sat, 29 Jun 2013 12:51:47 +0000 (12:51 +0000)] 
Fix wxIMAGE_QUALITY_HIGH definition.

Embarrassingly, wxIMAGE_QUALITY_HIGH was never used as it had the same value
as wxIMAGE_QUALITY_BILINEAR due to the changes to these constants in r67203.

After fixing its value in the enum, also change the switch on this enum
elements to avoid g++ warnings about unhandled enum values.

See #12845, #15281.

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

11 years agoFix dnd events in generic wxDataViewCtrl when moving out of the window.
Vadim Zeitlin [Sat, 29 Jun 2013 12:51:24 +0000 (12:51 +0000)] 
Fix dnd events in generic wxDataViewCtrl when moving out of the window.

The wxEVT_DATAVIEW_ITEM_BEGIN_DRAG event wasn't triggered if the mouse moved
below the last item or beyond the last column of a control or left the window
completely.

Fix this by checking for the beginning of the drag before checking for the
mouse being out of items area and also force the drag to start if the mouse is
leaving the window as we would never do it otherwise.

Closes #15258.

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

11 years agoDon't append just a dot in wxGTK wxFileDialog if no default extension.
Vadim Zeitlin [Sat, 29 Jun 2013 12:51:01 +0000 (12:51 +0000)] 
Don't append just a dot in wxGTK wxFileDialog if no default extension.

We always appended the default extension (for the currently selected pattern)
to the file name but this was the wrong thing to do if there was no extension
at all as this resulted in appending just a dot to the filename. So only do it
if there is an extension to append.

Closes #15285.

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

11 years agoAllow resetting background colour of wxHtmlContainerCell.
Vadim Zeitlin [Sat, 29 Jun 2013 12:50:37 +0000 (12:50 +0000)] 
Allow resetting background colour of wxHtmlContainerCell.

Don't use m_UseBkColour flag which remained always set once
SetBackgroundColour() had been called, but just rely on m_BkColour itself
being valid to determine whether we should use it. This allows to reset the
background colour after setting it.

Closes #15287.

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

11 years agoItalian translations update from Roberto Boriotti.
Vadim Zeitlin [Sat, 29 Jun 2013 11:00:13 +0000 (11:00 +0000)] 
Italian translations update from Roberto Boriotti.

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

11 years agoApplied patch #15286: documentation and col/rowspan demo by dghart
Julian Smart [Sat, 29 Jun 2013 10:06:15 +0000 (10:06 +0000)] 
Applied patch #15286: documentation and col/rowspan demo by dghart

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

11 years agosupport getting device resolution on all osx ports
Stefan Csomor [Fri, 28 Jun 2013 13:24:27 +0000 (13:24 +0000)] 
support getting device resolution on all osx ports

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

11 years agonew method for contentScaleFactor on main screen
Stefan Csomor [Fri, 28 Jun 2013 10:41:20 +0000 (10:41 +0000)] 
new method for contentScaleFactor on main screen

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

11 years agonew method for contentScaleFactor on main screen
Stefan Csomor [Thu, 27 Jun 2013 12:48:46 +0000 (12:48 +0000)] 
new method for contentScaleFactor on main screen

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

11 years agonative bitmap scaling codes
Stefan Csomor [Thu, 27 Jun 2013 07:24:15 +0000 (07:24 +0000)] 
native bitmap scaling codes

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

11 years agouse correct scale when drawing
Stefan Csomor [Thu, 27 Jun 2013 05:54:51 +0000 (05:54 +0000)] 
use correct scale when drawing

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

11 years agoadding impls to wxBitmap on msw as this doesn't inherit from base - Thanks Vaclav!
Stefan Csomor [Tue, 25 Jun 2013 17:37:17 +0000 (17:37 +0000)] 
adding impls to wxBitmap on msw as this doesn't inherit from base - Thanks Vaclav!

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

11 years agoadding default for Create with dc
Stefan Csomor [Tue, 25 Jun 2013 17:15:10 +0000 (17:15 +0000)] 
adding default for Create with dc

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

11 years agoincomplete paste error
Stefan Csomor [Tue, 25 Jun 2013 16:28:25 +0000 (16:28 +0000)] 
incomplete paste error

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

11 years agoadding default impl for CreateScaled
Stefan Csomor [Tue, 25 Jun 2013 16:25:32 +0000 (16:25 +0000)] 
adding default impl for CreateScaled

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

11 years agovirtual method hiding in GTK, so add direct implementation
Stefan Csomor [Tue, 25 Jun 2013 15:41:23 +0000 (15:41 +0000)] 
virtual method hiding in GTK, so add direct implementation

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

11 years agoApplied rowspan patch #15276 (dghart)
Julian Smart [Tue, 25 Jun 2013 15:38:46 +0000 (15:38 +0000)] 
Applied rowspan patch #15276 (dghart)

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

11 years agoApplied colspan corrections, #15274 and #15275 (dghart)
Julian Smart [Tue, 25 Jun 2013 15:30:55 +0000 (15:30 +0000)] 
Applied colspan corrections, #15274 and #15275 (dghart)

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

11 years agosupport retina display
Stefan Csomor [Tue, 25 Jun 2013 15:11:18 +0000 (15:11 +0000)] 
support retina display

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

11 years agousing dc Create for bitmap, for retina support
Stefan Csomor [Tue, 25 Jun 2013 14:57:14 +0000 (14:57 +0000)] 
using dc Create for bitmap, for retina support

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

11 years agoAllow for older GTK+ versions
Julian Smart [Tue, 25 Jun 2013 14:55:48 +0000 (14:55 +0000)] 
Allow for older GTK+ versions

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

11 years agosupport for scaled bitmaps in wxMemoryDC
Stefan Csomor [Tue, 25 Jun 2013 14:19:41 +0000 (14:19 +0000)] 
support for scaled bitmaps in wxMemoryDC

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

11 years agonative scaling support for bitmap
Stefan Csomor [Tue, 25 Jun 2013 14:02:11 +0000 (14:02 +0000)] 
native scaling support for bitmap

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

11 years agofixing naming to GetScaleFactor, adding default Create with a dc parameter
Stefan Csomor [Tue, 25 Jun 2013 13:54:15 +0000 (13:54 +0000)] 
fixing naming to GetScaleFactor, adding default Create with a dc parameter

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

11 years agodefault implementation for scaled bitmaps properties
Stefan Csomor [Tue, 25 Jun 2013 13:21:20 +0000 (13:21 +0000)] 
default implementation for scaled bitmaps properties

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

11 years agosupporting native content scaling on OSX
Stefan Csomor [Tue, 25 Jun 2013 12:43:44 +0000 (12:43 +0000)] 
supporting native content scaling on OSX

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

11 years agoformatting
Stefan Csomor [Tue, 25 Jun 2013 12:26:11 +0000 (12:26 +0000)] 
formatting

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

11 years agoadding ContentScaleFactor support to dc - defaulting to 1.0
Stefan Csomor [Tue, 25 Jun 2013 12:24:34 +0000 (12:24 +0000)] 
adding ContentScaleFactor support to dc - defaulting to 1.0

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

11 years agoRemoved 3D style for splitter on Mac since it looks bad
Julian Smart [Tue, 25 Jun 2013 07:23:48 +0000 (07:23 +0000)] 
Removed 3D style for splitter on Mac since it looks bad

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

11 years agoAdd wxBookCtrlBase::DoSetSelectionAfterRemoval() and use it in wxSimplebook.
Vadim Zeitlin [Sun, 23 Jun 2013 16:39:39 +0000 (16:39 +0000)] 
Add wxBookCtrlBase::DoSetSelectionAfterRemoval() and use it in wxSimplebook.

This fixes the wrong handling of the selection in wxSimplebook when the
currently selected page was deleted.

Also extend the unit tests to check for this bug.

Closes #15188.

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

11 years agoNo real changes, just simplify wxBookCtrlBase unit test a little.
Vadim Zeitlin [Sun, 23 Jun 2013 16:39:15 +0000 (16:39 +0000)] 
No real changes, just simplify wxBookCtrlBase unit test a little.

Add Realize() virtual function that can be overridden in ToolbookTestCase
instead of using explicit wxDynamicCasts.

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

11 years agoAdd a minimal unit test for wxSimplebook.
Vadim Zeitlin [Sun, 23 Jun 2013 16:38:51 +0000 (16:38 +0000)] 
Add a minimal unit test for wxSimplebook.

This is just a test running the common wxBookCtrlBase tests for wxSimplebook.

See #15188.

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

11 years agoAlso propagate wxEVT_UPDATE_UI to the child MDI frame.
Vadim Zeitlin [Sun, 23 Jun 2013 13:08:41 +0000 (13:08 +0000)] 
Also propagate wxEVT_UPDATE_UI to the child MDI frame.

It seems to make sense to handle wxEVT_UPDATE_UI in the same way as wxEVT_MENU
as they are often used together. This allows to handle e.g. toolbar buttons
entirely in the child MDI frame, without any involvement from the parent.

See #14314.

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

11 years agoUse child MDI frame menu items in preference to the parent frame ones.
Vadim Zeitlin [Sun, 23 Jun 2013 13:08:18 +0000 (13:08 +0000)] 
Use child MDI frame menu items in preference to the parent frame ones.

Look for the item with the given ID in the child frame menu bar first, before
looking in the parent frame menu bar. This ensures that if an item is disabled
by the parent frame but then reenabled by the child one, it still generates
commands as expected instead of being completely ignored.

See #14314.

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

11 years agoUndo "Forward events to active child at MSW, not wx, level in wxMDIParentFrame."
Vadim Zeitlin [Sun, 23 Jun 2013 13:07:55 +0000 (13:07 +0000)] 
Undo "Forward events to active child at MSW, not wx, level in wxMDIParentFrame."

Unfortunately, forwarding MSW messages only takes care of the menu events but
not the toolbar ones -- which should be handled in the same way but were not.

So restore the old behaviour, the problem with menu items disabled in the
parent frame but enabled in the child one will be fixed differently.

This reverts r73927.

See #14314.

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

11 years agoAdd --without-libjbig and --without-liblzma configure switches.
Vadim Zeitlin [Sun, 23 Jun 2013 11:10:03 +0000 (11:10 +0000)] 
Add --without-libjbig and --without-liblzma configure switches.

They can be used to disable the use of the corresponding libraries by the
built-in libtiff.

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

11 years agoAdd WX_ATTRIBUTE_UNUSED and use it for typedefs to avoid g++ 4.8 warnings.
Vadim Zeitlin [Sun, 23 Jun 2013 00:53:15 +0000 (00:53 +0000)] 
Add WX_ATTRIBUTE_UNUSED and use it for typedefs to avoid g++ 4.8 warnings.

g++ 4.8 warns about unused typedef's in local scope resulting in hundreds of
warnings when building wx, suppress them by using WX_ATTRIBUTE_UNUSED for
these typedefs.

Closes #15137.

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

11 years agoFix Unix build with libSDL 2 in debug mode.
Vadim Zeitlin [Fri, 21 Jun 2013 09:21:58 +0000 (09:21 +0000)] 
Fix Unix build with libSDL 2 in debug mode.

SDL_AudioDriverName() was replaced with SDL_GetCurrentAudioDriver() in SDL v2.

Closes #15271.

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

11 years agoNot not pass debug messages on from wxLogWindow.
Steve Lamerton [Thu, 20 Jun 2013 14:40:57 +0000 (14:40 +0000)] 
Not not pass debug messages on from wxLogWindow.

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

11 years agopartial revert, as we still need Xcode 3.1 for 10.5, Xcode 3.2 is 10.6+ only
Stefan Csomor [Thu, 20 Jun 2013 07:22:00 +0000 (07:22 +0000)] 
partial revert, as we still need Xcode 3.1 for 10.5, Xcode 3.2 is 10.6+ only

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

11 years agoupdate Xcode format
Stefan Csomor [Thu, 20 Jun 2013 07:13:44 +0000 (07:13 +0000)] 
update Xcode format

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

11 years agocommon schemes, Xcode 4/5 updates
Stefan Csomor [Thu, 20 Jun 2013 07:09:27 +0000 (07:09 +0000)] 
common schemes, Xcode 4/5 updates

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

11 years agocommon schemes
Stefan Csomor [Thu, 20 Jun 2013 07:08:21 +0000 (07:08 +0000)] 
common schemes

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

11 years agoupdated project files
Stefan Csomor [Thu, 20 Jun 2013 06:54:55 +0000 (06:54 +0000)] 
updated project files

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

11 years agoGetMagnificationFactor --> GetContentScaleFactor
Robin Dunn [Thu, 20 Jun 2013 01:02:49 +0000 (01:02 +0000)] 
GetMagnificationFactor --> GetContentScaleFactor

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

11 years agoAdd flags for SendSizeEvent
Robin Dunn [Thu, 20 Jun 2013 01:02:20 +0000 (01:02 +0000)] 
Add flags for SendSizeEvent

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

11 years agoDocument wxWindow::GetMagnificationFactor
Robin Dunn [Thu, 20 Jun 2013 01:01:51 +0000 (01:01 +0000)] 
Document wxWindow::GetMagnificationFactor

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

11 years agofixing iPhone build
Stefan Csomor [Wed, 19 Jun 2013 20:30:54 +0000 (20:30 +0000)] 
fixing iPhone build

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

11 years agousing common GetContentScaleFactor throughout part 2/2
Stefan Csomor [Wed, 19 Jun 2013 20:29:56 +0000 (20:29 +0000)] 
using common GetContentScaleFactor throughout part 2/2

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

11 years agousing common GetContentScaleFactor throughout part 1
Stefan Csomor [Wed, 19 Jun 2013 20:28:01 +0000 (20:28 +0000)] 
using common GetContentScaleFactor throughout part 1

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

11 years agoupdate project files
Stefan Csomor [Wed, 19 Jun 2013 16:35:18 +0000 (16:35 +0000)] 
update project files

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

11 years agoFix GetMsgCatalogSubdirs() to do as documentation says.
Václav Slavík [Wed, 19 Jun 2013 16:02:54 +0000 (16:02 +0000)] 
Fix GetMsgCatalogSubdirs() to do as documentation says.

Due to a typo, the prefix/lang path wasn't considered when opening a
domain catalog.

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

11 years agoBe case insensitive when looking for language catalogs on Windows.
Václav Slavík [Wed, 19 Jun 2013 16:02:30 +0000 (16:02 +0000)] 
Be case insensitive when looking for language catalogs on Windows.

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

11 years agoEnsure that the default wxWebView backends are registered.
Steve Lamerton [Tue, 18 Jun 2013 19:54:25 +0000 (19:54 +0000)] 
Ensure that the default wxWebView backends are registered.

Fixes #15261

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

11 years agoFixed loading of whole file:... specification of a page
Julian Smart [Mon, 17 Jun 2013 20:21:54 +0000 (20:21 +0000)] 
Fixed loading of whole file:... specification of a page

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

11 years agofixing sdk compilo
Stefan Csomor [Mon, 17 Jun 2013 19:43:46 +0000 (19:43 +0000)] 
fixing sdk compilo

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

11 years agoadding magnification API into the wxWindow classes for best retina support
Stefan Csomor [Mon, 17 Jun 2013 17:41:34 +0000 (17:41 +0000)] 
adding magnification API into the wxWindow classes for best retina support

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

11 years agoRemove superfluous call in wxTranslations::LoadCatalog().
Václav Slavík [Sun, 16 Jun 2013 11:51:38 +0000 (11:51 +0000)] 
Remove superfluous call in wxTranslations::LoadCatalog().

This call to GetAvailableTranslations() did nothing, it's value was
ignored, and it was done before m_loader was checked for != NULL.
Probably some leftover debugging code.

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

11 years agoImprove wxGrid cell wrapping in wxGridCellAutoWrapStringRenderer.
Vadim Zeitlin [Sun, 16 Jun 2013 10:50:54 +0000 (10:50 +0000)] 
Improve wxGrid cell wrapping in wxGridCellAutoWrapStringRenderer.

Wrap the words too long to be shown on one line on several lines.

Also take the line breaks and TABs into account.

Closes #15249.

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

11 years agoDocument that wxDC::FloodFill() is not implemented under wxOSX.
Vadim Zeitlin [Sat, 15 Jun 2013 21:49:52 +0000 (21:49 +0000)] 
Document that wxDC::FloodFill() is not implemented under wxOSX.

wxOSX uses wxGCDC for its wxDC functionality and wxGCDC doesn't implement this
operation, even not using the horribly inefficient wxGTK fallback.

See #15151.

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

11 years agoRestore case-insensitivity for file name matching under Windows.
Vadim Zeitlin [Sat, 15 Jun 2013 21:49:29 +0000 (21:49 +0000)] 
Restore case-insensitivity for file name matching under Windows.

This was broken by the changes of r73790, see #3432. Fix this by converting
both the file name and the wildcard mask to the upper case before checking
whether the former matches the latter.

Closes #15243.

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

11 years agoFix formatting of the local time zone when DST is in effect.
Vadim Zeitlin [Sat, 15 Jun 2013 21:49:05 +0000 (21:49 +0000)] 
Fix formatting of the local time zone when DST is in effect.

We must add DST offset manually as wxGetTimeZone() doesn't take DST into
account.

This fixes the handling of "%z" in format strings.

Closes #15250.

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

11 years agoadding new constructor for best dc-compatibility of bitmaps
Stefan Csomor [Sat, 15 Jun 2013 16:29:04 +0000 (16:29 +0000)] 
adding new constructor for best dc-compatibility of bitmaps

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

11 years agouse common bottleneck
Stefan Csomor [Sat, 15 Jun 2013 14:45:17 +0000 (14:45 +0000)] 
use common bottleneck

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

11 years agoDon't crash in wxWebView under OS X if custom URI is invalid.
Vadim Zeitlin [Fri, 14 Jun 2013 13:10:04 +0000 (13:10 +0000)] 
Don't crash in wxWebView under OS X if custom URI is invalid.

Don't assume that wxWebViewHandler::GetFile() always returns a valid pointer,
it may fail and return NULL, e.g. for a non-existent VFS location.

Closes #15254.

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

11 years agoHandle NULL flags argument in wxOSX wxNotebook::HitTest().
Vadim Zeitlin [Fri, 14 Jun 2013 13:06:46 +0000 (13:06 +0000)] 
Handle NULL flags argument in wxOSX wxNotebook::HitTest().

Don't crash if flags are not specified, this parameter is optional.

Closes #15256.

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

11 years agofixing correct delete key
Stefan Csomor [Thu, 13 Jun 2013 14:12:11 +0000 (14:12 +0000)] 
fixing correct delete key

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

11 years agofixes to pass tests
Stefan Csomor [Thu, 13 Jun 2013 14:09:39 +0000 (14:09 +0000)] 
fixes to pass tests

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

11 years agoreusing existing API
Stefan Csomor [Thu, 13 Jun 2013 14:06:02 +0000 (14:06 +0000)] 
reusing existing API

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

11 years agoreusing existing API
Stefan Csomor [Thu, 13 Jun 2013 14:04:41 +0000 (14:04 +0000)] 
reusing existing API

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

11 years agoRemove the unused code instead of commenting it out.
Vadim Zeitlin [Thu, 13 Jun 2013 13:58:15 +0000 (13:58 +0000)] 
Remove the unused code instead of commenting it out.

Just clean up the fixes of r74197.

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

11 years agoCheck wxListCtrl::GetItemRect() origin in the unit tests.
Vadim Zeitlin [Thu, 13 Jun 2013 13:57:51 +0000 (13:57 +0000)] 
Check wxListCtrl::GetItemRect() origin in the unit tests.

Verify that the top item is _not_ at (0, 0) when the header is present in the
control, as the control client coordinates should not take the header into
account.

This test passes when using wxGenericListCtrl since r74197, add it to ensure
that it doesn't get broken again later.

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

11 years agoUse two step creation of wxListHeaderWindow to avoid reentrancy under OSX.
Vadim Zeitlin [Thu, 13 Jun 2013 13:57:28 +0000 (13:57 +0000)] 
Use two step creation of wxListHeaderWindow to avoid reentrancy under OSX.

This improves the solution of the problem already solved in r74197 by
separating setting of m_headerWin variable from the window creation instead of
using an explicit recursion check.

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

11 years agoAdd some missing wxGraphicsContext methods
Robin Dunn [Thu, 13 Jun 2013 07:26:41 +0000 (07:26 +0000)] 
Add some missing wxGraphicsContext methods

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

11 years agoAdd doc for wxGraphicsContext.Create(), which is a lightweight context with no target...
Robin Dunn [Thu, 13 Jun 2013 07:26:12 +0000 (07:26 +0000)] 
Add doc for wxGraphicsContext.Create(), which is a lightweight context with no target, and which can be used for measuring text, etc.

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

11 years agomake methods available to all ports
Stefan Csomor [Thu, 13 Jun 2013 00:42:24 +0000 (00:42 +0000)] 
make methods available to all ports

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

11 years agofixing reentrancy which happened in tests, bringing client coordinates origins in...
Stefan Csomor [Thu, 13 Jun 2013 00:38:54 +0000 (00:38 +0000)] 
fixing reentrancy which happened in tests, bringing client coordinates origins in synch

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

11 years agoslight adaption, shorter max wait
Stefan Csomor [Thu, 13 Jun 2013 00:19:10 +0000 (00:19 +0000)] 
slight adaption, shorter max wait

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

11 years agowait for the frame window to be really done on OSX before starting
Stefan Csomor [Thu, 13 Jun 2013 00:15:59 +0000 (00:15 +0000)] 
wait for the frame window to be really done on OSX before starting

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

11 years agousing Destroy, as otherwise the remnants get into the way for some other tests
Stefan Csomor [Thu, 13 Jun 2013 00:11:18 +0000 (00:11 +0000)] 
using Destroy, as otherwise the remnants get into the way for some other tests

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