Squashed commit of the following:

commit 9fe13ecd3777fa4cb07869e4ba22ba6d280e1721
Author: Julian Smart <julian@anthemion.co.uk>
Date:   Tue Sep 3 16:47:09 2013 +0000

    wxRTC: extracted XML utilities into a separate class for potential reuse.

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

commit fbc4029915b5c31c99ac13feb6ac95086a2243f4
Author: Václav Slavík <vslavik@fastmail.fm>
Date:   Tue Sep 3 14:45:07 2013 +0000

    Add missing XRC format docs for wxComboCtrl and wxEditableListBox.

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

commit b661000f8f7547f47c2103049d97d9b4d821c867
Author: Václav Slavík <vslavik@fastmail.fm>
Date:   Tue Sep 3 14:45:04 2013 +0000

    Remove reduntant content from XRC format docs.

    Window styles are documented globally, no need for control-specific
    content for wxStatusBar.  Also, it was outdated and incorrect.

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

commit 3b8fb3a70607feb2bba15cffc42a1913f2fac56f
Author: Paul Cornett <paulcor@bullseye.com>
Date:   Tue Sep 3 05:37:30 2013 +0000

    Fix referencing of cairo_t returned from wxDCImpl::GetCairoContext().
    It was assumed that all callers were going to unref the cairo_t, but that is not
    true, so callers that are going to unref it should ref it themselves.
    See #15455

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

commit 51825fa37fe7d7f38caf2e86d4de5a8c0df91c02
Author: Vadim Zeitlin <vadim@wxwidgets.org>
Date:   Sat Aug 31 17:41:16 2013 +0000

    Rewrite wxLogXXX() macros to avoid "ambiguous else" warnings.

    Use a dummy for loop instead of an if statement to avoid all problems with the
    dangling else clauses: both the need for an artificially inversed "if" to make
    the code like

    	if ( something )
    		wxLogError("...");
    	else
    		something-else;

    to work as expected and to avoid warnings given by some versions of g++ and
    clang for the code above advising to add explicit braces.

    Closes #11829.

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

commit 4856a6d2b6b9a902d9e6d3576174ea4cf1b8164a
Author: Jouk Jansen <joukj@hrem.nano.tudelft.nl>
Date:   Wed Aug 28 06:01:12 2013 +0000

    wxGTK1 : wx/private/eventloopsourcesmanager.h was missing in evtloop.cpp

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

commit 7cc0e4002e33696b3bfd69b29fda8844b8505cc3
Author: Vadim Zeitlin <vadim@wxwidgets.org>
Date:   Tue Aug 27 22:49:44 2013 +0000

    Handle custom configurations in MSVC-specific setup.h.

    Account for wxCFG when building the paths used for MSVC autolinking. This
    variable should be defined to the same value as CFG during (command line)
    build.

    Closes #15431.

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

commit e63a93e211d8b5ea0b4a33774f92d851f49642bd
Author: Vadim Zeitlin <vadim@wxwidgets.org>
Date:   Tue Aug 27 22:49:23 2013 +0000

    Don't use any icon for items inserted without one in wxMSW wxListCtrl.

    Previously we erroneously used the first icon in the image list for them
    instead. This was inconsistent with wxGTK and didn't make much sense, even if
    it is the default behaviour of the native control, so don't do this any more
    and explicitly specify I_IMAGENONE for the icon if it wasn't given.

    Closes #15421.

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

commit 713b5d44a5678a31eb3b1c82e40d0d9473a4d6a7
Author: Jouk Jansen <joukj@hrem.nano.tudelft.nl>
Date:   Tue Aug 27 11:46:13 2013 +0000

    revert nested event loop support for wxGTK1 because it causes applications hangs

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

commit 2f61ea2d84b2d8846f54370176b4722b5cf38aec
Author: Vadim Zeitlin <vadim@wxwidgets.org>
Date:   Sat Aug 24 14:33:33 2013 +0000

    Add webviewarchivehandler.cpp to manually maintained VC10 project file.

    Closes #15427.

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

Signed-off-by: Marian 'VooDooMan' Meravy <vdm113@gmail.com>
revert nested event loop support for wxGTK1 because it causes applications hangs

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74711 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
Don't use any icon for items inserted without one in wxMSW wxListCtrl.

Previously we erroneously used the first icon in the image list for them
instead. This was inconsistent with wxGTK and didn't make much sense, even if
it is the default behaviour of the native control, so don't do this any more
and explicitly specify I_IMAGENONE for the icon if it wasn't given.

Closes #15421.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74716 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
Handle custom configurations in MSVC-specific setup.h.

Account for wxCFG when building the paths used for MSVC autolinking. This
variable should be defined to the same value as CFG during (command line)
build.

Closes #15431.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74720 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
Fix wxMenu::GetTitle() before the menu is appended to the menu bar.

The mnemonics conversion was not done correctly when the menu title contained
them but the menu hadn't been appended to the menu bar yet.

Closes #15461.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74731 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
Rewrite wxLogXXX() macros to avoid "ambiguous else" warnings.

Use a dummy for loop instead of an if statement to avoid all problems with the
dangling else clauses: both the need for an artificially inversed "if" to make
the code like

	if ( something )
		wxLogError("...");
	else
		something-else;

to work as expected and to avoid warnings given by some versions of g++ and
clang for the code above advising to add explicit braces.

Closes #11829.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74735 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
wxRTC: extracted XML utilities into a separate class for potential reuse.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74749 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
Don't crash in wxGridCellAutoWrapStringRenderer when the column is hidden.

Our methods should arguably not be called at all in this case, but if this
does happen, at least don't crash.

Closes #15464.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74750 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
Simplify wxGridCellAutoWrapStringRenderer::GetBestSize().

The code there was pretty wild, making clearly wrong assumptions (column size
doesn't, and AFAICS never did, include 20 pixel margin) and also was clearly
uncertain about what it was doing by trying to limit the number of iterations
to some arbitrary cutoff when it is pretty clear that the loop increasing the
width and decreasing the height on each iteration will reach the condition of
"width >= height*1.68" sooner or later.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74751 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
Remove superfluous mouse capturing in wxGrid row/column labels windows.

This code recaptured the mouse in the window which had already had it, thus
triggering the (recently added, see r74677) asserts in CaptureMouse(). It also
didn't preserve the invariant of m_winCapture always having the capture. And
it was apparently completely unnecessary too.

So simply remove it to fix the asserts while drag-resizing wxGrid rows/columns.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74752 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
Don't take hidden wxGrid row/columns into account when auto-sizing.

The contents not shown to the user shouldn't affect the fitting width/height
of the columns/rows that are shown.

See #15464.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74753 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
Add wxDEPRECATED_MSG() and use it in a couple of places.

This macro should be used instead of wxDEPRECATED() for the new deprecations
as it allows to give a helpful explanatory message (if supported by the
compiler) and also is simpler to use as it doesn't require wrapping the entire
declaration in it but can be simply used before it.

Also add wxDEPRECATED() support for clang as a side effect.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74754 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
Add a test for a tooltip for a control inside a static box.

Also create the controls as children of the static box, not its siblings, to
make the tooltip work under wxGTK and because this is how we recommend doing
things now.

See #9859.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74755 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
Remove unnecessary wxHTML dependency from the notebook sample.

r70321 added html library to the notebook sample, apparently accidentally as
the commit message only mentioned aui one. Remove html and rebake.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74756 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
Correct erasing of background behind controls in a toolbar in wxMSW.

We need to handle WM_PRINTCLIENT in wxToolBar itself as the default handler
for this message forwards to WM_ERASEBKGND of the parent window and our
handler for that message only erases the client part of the window, in wx
sense, i.e. including a relatively big vertical offset accounting for the
toolbar. This means that when we get WM_PRINTCLIENT from the embedded control
drawing code, we don't erase anything at all as the control rectangle height
is smaller than the offset.

This fix is not perfect as ideally the existing MSWGetBgBrushForChild() should
be taken into account automatically by the default MSWPrintChild()
implementation but at least it fixes the ugly visual artefacts.

Closes #12307.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74757 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
Restore correct wx-config creation and work around MinGW lack of symlinks.

This undoes the changes of r72205 and r72249 (see #14517) as using relative
paths for wx-config symlink didn't work correctly if non-default values for
$bindir and/or $libdir were used (i.e. if they were not siblings).

Instead, fix the original problem of lack of symlinks when using MinGW
directly: just use "cp -p" if "ln -s" fails. This should work everywhere and
do the right thing.

Closes #15463.

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

Signed-off-by: Marian 'VooDooMan' Meravy <vdm113@gmail.com>