]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
11 years agoAdd missing c_str() call to fix wxGTK ANSI+STL build.
Vadim Zeitlin [Wed, 18 Sep 2013 18:02:25 +0000 (18:02 +0000)] 
Add missing c_str() call to fix wxGTK ANSI+STL build.

Closes #15518.

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

11 years agoUse std::isfinite() for wxFinite() for C++11 compilers.
Vadim Zeitlin [Wed, 18 Sep 2013 17:30:30 +0000 (17:30 +0000)] 
Use std::isfinite() for wxFinite() for C++11 compilers.

This should fix compilation with MinGW 4.8.1 cross-compiler in C++11 mode as
it doesn't seem to provide finite() any more then.

Also, only defined wxFinite() and wxIsNaN() for C++, not C. This makes the
checks for __cplusplus >= 201103 simpler and is consistent with how
wxIsSameDouble() and wxRound() were already only defined for C++ (this is also
the source of most of the changes in this diff, viewing it ignoring whitespace
will show the only real changes).

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

11 years agoAdd wxTranslations::GetTranslatedString().
Václav Slavík [Wed, 18 Sep 2013 16:03:31 +0000 (16:03 +0000)] 
Add wxTranslations::GetTranslatedString().

Replace GetString(), which always returns something (possibly the
original string) with GetTranslatedString() that returns either a
pointer to translated string or NULL.

This simplifies the code a bit, all handling of missing translations is
now done in wxGetTranslation().

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

11 years agoRemove unused wxLocale::GetUntranslatedString().
Václav Slavík [Wed, 18 Sep 2013 16:03:28 +0000 (16:03 +0000)] 
Remove unused wxLocale::GetUntranslatedString().

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

11 years agoDeallocate wxThreadSpecificInfo when wxThread ends.
Václav Slavík [Wed, 18 Sep 2013 16:03:25 +0000 (16:03 +0000)] 
Deallocate wxThreadSpecificInfo when wxThread ends.

Cleanup wxThreadSpecificInfo after wxThread::Entry returns to be more
memory efficient.

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

11 years agoMake _() and friends safe to call from any thread.
Václav Slavík [Wed, 18 Sep 2013 16:03:20 +0000 (16:03 +0000)] 
Make _() and friends safe to call from any thread.

The GetUntranslatedString() hack keeps a global copy of all strings, so
that it can return a const reference as wxGetTranslation() return value.
A global wxHashSet instance shared by all threads won't do, even guarded
with a critical section, because it may internally copy values on any
insert and thus invalidate pointers that may still be used on another
thread.

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

11 years agoMake storing non-trivial data in wxThreadSpecificInfo possible.
Václav Slavík [Wed, 18 Sep 2013 16:03:14 +0000 (16:03 +0000)] 
Make storing non-trivial data in wxThreadSpecificInfo possible.

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

11 years agoUpdate vc10 build file versions to 3.0.0.
Steve Lamerton [Wed, 18 Sep 2013 15:12:34 +0000 (15:12 +0000)] 
Update vc10 build file versions to 3.0.0.

See r74781.

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

11 years agoEnsure that the overall table border doesn't get overdrawn by cell borders with a...
Julian Smart [Wed, 18 Sep 2013 08:18:32 +0000 (08:18 +0000)] 
Ensure that the overall table border doesn't get overdrawn by cell borders with a different colour

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

11 years agoFix badly translated wildcard string in German message catalog.
Vadim Zeitlin [Tue, 17 Sep 2013 17:35:54 +0000 (17:35 +0000)] 
Fix badly translated wildcard string in German message catalog.

"*.*" should be "*.*" even in German.

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

11 years agoMore German translations updates from Sebastian Walderich.
Vadim Zeitlin [Tue, 17 Sep 2013 17:35:51 +0000 (17:35 +0000)] 
More German translations updates from Sebastian Walderich.

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

11 years agoFix assorted typos in comments and other non-code.
Vadim Zeitlin [Tue, 17 Sep 2013 15:25:59 +0000 (15:25 +0000)] 
Fix assorted typos in comments and other non-code.

Closes #15509.

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

11 years agoUse mask when drawing bitmaps in generic wxDataViewCtrl.
Vadim Zeitlin [Tue, 17 Sep 2013 15:25:52 +0000 (15:25 +0000)] 
Use mask when drawing bitmaps in generic wxDataViewCtrl.

This allows to have bitmaps with transparent areas in them.

Closes #15510.

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

11 years agoAdd wxDataViewRendererBase::GetEffectiveAlignment() and use it.
Vadim Zeitlin [Tue, 17 Sep 2013 15:25:47 +0000 (15:25 +0000)] 
Add wxDataViewRendererBase::GetEffectiveAlignment() and use it.

This helper method falls back on the alignment of the column if the renderer
alignment is not specified. This is almost always what should be used instead
of GetAlignment() to determine the alignment that really should be used in the
drawing code.

In particular, using GetEffectiveAlignment() in wxDataViewCustomRenderer fixes
the problem with bitmap columns ignoring column alignment for their bitmaps.

Closes #15498.

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

11 years agoremove executable property from non-executable files, closes #15504
Paul Cornett [Mon, 16 Sep 2013 15:47:27 +0000 (15:47 +0000)] 
remove executable property from non-executable files, closes #15504

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

11 years agoFix wrong type information for {v,h}gap in XRC format docs.
Václav Slavík [Mon, 16 Sep 2013 15:15:37 +0000 (15:15 +0000)] 
Fix wrong type information for {v,h}gap in XRC format docs.

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

11 years agoRevert "Make wxMSW stack walking methods work with Unicode identifiers."
Vadim Zeitlin [Sun, 15 Sep 2013 11:57:23 +0000 (11:57 +0000)] 
Revert "Make wxMSW stack walking methods work with Unicode identifiers."

This reverts r74817 because it broke compilation with VC8 and it doesn't seem
obvious to fix this.

See #15138, closes #15500.

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

11 years agoAdd code showing stereo support to the OpenGL cube sample.
Vadim Zeitlin [Sun, 15 Sep 2013 00:16:44 +0000 (00:16 +0000)] 
Add code showing stereo support to the OpenGL cube sample.

Show how WX_GL_STEREO attribute can be used, if available.

See #15434.

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

11 years agoShow full screen windows with WS_POPUP style in wxMSW.
Vadim Zeitlin [Sun, 15 Sep 2013 00:16:39 +0000 (00:16 +0000)] 
Show full screen windows with WS_POPUP style in wxMSW.

This doesn't make any difference for most windows but fixes a problem with
wxGLCanvas windows using stereo support of Nvidia cards and generally it does
make sense to use WS_POPUP with full screen windows as they are definitely not
overlapped, so just use this style unconditionally.

Closes #15434.

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

11 years agoMake wxMSW stack walking methods work with Unicode identifiers.
Vadim Zeitlin [Sun, 15 Sep 2013 00:16:34 +0000 (00:16 +0000)] 
Make wxMSW stack walking methods work with Unicode identifiers.

This allows to show the stack properly for e.g. Japanese programs.

Closes #15138.

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

11 years agoDisable handling of wxEVT_MOUSEWHEEL in wxVarScrollHelperEvtHandler in wxGTK.
Vadim Zeitlin [Sun, 15 Sep 2013 00:15:26 +0000 (00:15 +0000)] 
Disable handling of wxEVT_MOUSEWHEEL in wxVarScrollHelperEvtHandler in wxGTK.

Just for consistency with wxScrollHelperBase, not really sure what problem
exactly does this solve.

See #15357.

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

11 years agoMake default keyboard handling available in wxVarScrollHelperEvtHandler too.
Vadim Zeitlin [Sun, 15 Sep 2013 00:15:17 +0000 (00:15 +0000)] 
Make default keyboard handling available in wxVarScrollHelperEvtHandler too.

Factor out the keyboard handling code in wxAnyScrollHelperBase allowing its
reuse in wxVarScrollHelperEvtHandler.

Now wxVarScrollHelperBase handles cursor keys in a sane way by default
too and also allows disabling their handling, just as wxScrolledWindow.

See #15357.

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

11 years agoPropagate the event handling fixes to wxVarScrollHelperBase.
Vadim Zeitlin [Sun, 15 Sep 2013 00:15:12 +0000 (00:15 +0000)] 
Propagate the event handling fixes to wxVarScrollHelperBase.

Merge the fixes to wxScrollHelperBase::ProcessEvent() of r64358, r64370,
r64464, r72939 and possibly a few more in wxVarScrollHelperBase to fix its
behaviour too, as it wasn't generating the correct events any longer.

Unfortunately the fix right now is to physically copy the code from one class
to the other. This should be avoided, of course, and a more in depth
refactoring should be done to move the code common to both classes into
wxAnyScrollHelperBase after 3.0 release. But for now continuing to duplicate
code is better than not having a working wxVarScrollHelperBase.

See #15357.

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

11 years agoAdd wxAnyScrollHelperBase to reduce code duplication in wxVarScrollHelperBase.
Vadim Zeitlin [Sun, 15 Sep 2013 00:15:07 +0000 (00:15 +0000)] 
Add wxAnyScrollHelperBase to reduce code duplication in wxVarScrollHelperBase.

This is just a small refactoring to move some trivially common parts of
wxScrollHelperBase and wxVarScrollHelperBase in a new common base class.
This will make it possible to apply other corrections to wxVarScrollHelperBase
without having to physically duplicate the code from wxScrollHelperBase in it.

See #15357.

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

11 years agoUse wxGetTranslation() instead of _() in the public headers.
Vadim Zeitlin [Sun, 15 Sep 2013 00:15:02 +0000 (00:15 +0000)] 
Use wxGetTranslation() instead of _() in the public headers.

This allows the code in them to compile even when WXINTL_NO_GETTEXT_MACRO is
defined.

Closes #15443.

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

11 years agoFix flickering of wxStaticBox background in wxMSW.
Vadim Zeitlin [Sun, 15 Sep 2013 00:14:56 +0000 (00:14 +0000)] 
Fix flickering of wxStaticBox background in wxMSW.

First of all, don't erase background in WM_ERASEBKGND at all if we erase it
anyhow in WM_PAINT, this is totally useless and is what wxBG_STYLE_PAINT is for.

Second, clip out not only the siblings of the static box but also its children
when erasing the background to avoid painting over the controls created as the
box children, which is the preferred way to create them now.

Closes #15150.

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

11 years agoDon't crash when laying out wxGridBagSizer with only hidden elements.
Vadim Zeitlin [Sun, 15 Sep 2013 00:14:51 +0000 (00:14 +0000)] 
Don't crash when laying out wxGridBagSizer with only hidden elements.

wxGridBagSizer lay out algorithm needs at least a single row and a single
column to work, so simply don't run it at all if there is nothing to lay out.

Closes #15475.

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

11 years agoMention that wxSizer::Clear() always deletes child sizers.
Vadim Zeitlin [Sun, 15 Sep 2013 00:14:46 +0000 (00:14 +0000)] 
Mention that wxSizer::Clear() always deletes child sizers.

The existence of "delete_windows" argument could mislead people into thinking
that sizers were not deleted neither when it had false value, see #15475.

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

11 years agoImprove composite flags handling in the property grid wxFlagsProperty.
Vadim Zeitlin [Sun, 15 Sep 2013 00:14:41 +0000 (00:14 +0000)] 
Improve composite flags handling in the property grid wxFlagsProperty.

Don't consider that a flag is on just because one of its bits is enabled in
the current flags, for the composite flags (e.g. something like "BOTH = ONE |
TWO") all the bits composing the flag must be on for it to be enabled.

Closes #15499.

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

11 years agoWorkaround for #15404: wxRichTextCtrl: caret does not disappear when focus is lost...
Julian Smart [Sat, 14 Sep 2013 20:46:43 +0000 (20:46 +0000)] 
Workaround for #15404: wxRichTextCtrl: caret does not disappear when focus is lost (Mac) (briceandre)

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

11 years agoadd support for GDK_SCROLL_SMOOTH mouse wheel event, introduced in GTK+ 3.4
Paul Cornett [Sat, 14 Sep 2013 18:15:42 +0000 (18:15 +0000)] 
add support for GDK_SCROLL_SMOOTH mouse wheel event, introduced in GTK+ 3.4

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

11 years agouse native lines/columns per action for mouse wheel event
Paul Cornett [Sat, 14 Sep 2013 18:06:54 +0000 (18:06 +0000)] 
use native lines/columns per action for mouse wheel event

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

11 years agoHandle WebKitWebView create-web-view.
Steve Lamerton [Fri, 13 Sep 2013 12:55:08 +0000 (12:55 +0000)] 
Handle WebKitWebView create-web-view.

In some cases a new window is signalled using create-web-view rather than new-window-policy-decision-requested and so we need to handle it to emit the correct new window events.

Fixes #15447.

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

11 years agoGerman translations update from Sebastian Walderich.
Vadim Zeitlin [Fri, 13 Sep 2013 11:35:13 +0000 (11:35 +0000)] 
German translations update from Sebastian Walderich.

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

11 years agoAnother Tamil translations update from Dinakar T.D.
Vadim Zeitlin [Thu, 12 Sep 2013 20:49:36 +0000 (20:49 +0000)] 
Another Tamil translations update from Dinakar T.D.

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

11 years agoPolish translations update from Grzegorz Zlotowicz.
Vadim Zeitlin [Thu, 12 Sep 2013 20:49:29 +0000 (20:49 +0000)] 
Polish translations update from Grzegorz Zlotowicz.

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

11 years agoHandle non-ASCII output from lsb_release in wxGetLinuxDistributionInfo().
Vadim Zeitlin [Thu, 12 Sep 2013 20:49:24 +0000 (20:49 +0000)] 
Handle non-ASCII output from lsb_release in wxGetLinuxDistributionInfo().

Assume that lsb_release always output UTF-8 text as this seems to be the case
right now for the only (common) Linux distribution which uses anything but
ASCII for its code name (Fedora 19 "Schrödinger's Cat").

Closes #15492.

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

11 years agoDon't reset m_fp if wxFFile::Open() fails.
Vadim Zeitlin [Thu, 12 Sep 2013 20:49:18 +0000 (20:49 +0000)] 
Don't reset m_fp if wxFFile::Open() fails.

This makes it behaviour consistent with wxFile::Open().

Also don't use Detach() in Close(), again for consistency with wxFile, even if
this has no user-visible effects at all.

See #15494.

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

11 years agoReturn the old file descriptor/pointer from wx(F)File::Detach().
Vadim Zeitlin [Thu, 12 Sep 2013 20:49:10 +0000 (20:49 +0000)] 
Return the old file descriptor/pointer from wx(F)File::Detach().

Make Detach() more convenient to use.

Closes #15494.

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

11 years agoAdd missing Calc*Exposed methods
Robin Dunn [Wed, 11 Sep 2013 17:02:06 +0000 (17:02 +0000)] 
Add missing Calc*Exposed methods

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

11 years agoDon't lie about wxImageList in XRC format spec.
Václav Slavík [Wed, 11 Sep 2013 15:20:21 +0000 (15:20 +0000)] 
Don't lie about wxImageList in XRC format spec.

The documentation for setting image lists on controls was a complete
fabrication.  It pretended that image lists were created as child
<object>s, while in reality they are properties just as e.g.  fonts are.
Fix this and also better document the related 'image' property.

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

11 years agoMinor corrections to XRC format description.
Václav Slavík [Wed, 11 Sep 2013 15:20:19 +0000 (15:20 +0000)] 
Minor corrections to XRC format description.

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

11 years agoFix incorrect XRC format docs for wxMenu(Bar)'s "style" property.
Václav Slavík [Wed, 11 Sep 2013 15:20:16 +0000 (15:20 +0000)] 
Fix incorrect XRC format docs for wxMenu(Bar)'s "style" property.

It is not true that no standard properties are allowed, "style" is.

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

11 years agoBetter name for wxXmlResource::GetDirection() argument.
Václav Slavík [Wed, 11 Sep 2013 15:20:13 +0000 (15:20 +0000)] 
Better name for wxXmlResource::GetDirection() argument.

'dir' is not very descriptive (of course it's a direction!), it's better
to include 'default' in the name to indicate this is the default value
to use in absence of a specific one.

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

11 years agoFix needlessly convoluted test in wxXmlResourceHandlerImpl::GetImageList().
Václav Slavík [Wed, 11 Sep 2013 15:20:09 +0000 (15:20 +0000)] 
Fix needlessly convoluted test in wxXmlResourceHandlerImpl::GetImageList().

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

11 years agoFix another crash when conversion fails in Unix PostScript code.
Vadim Zeitlin [Wed, 11 Sep 2013 15:06:04 +0000 (15:06 +0000)] 
Fix another crash when conversion fails in Unix PostScript code.

Returning 0 length from GetTextExtent() is hardly ideal but it's better than
crashing.

Closes #15489.

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

11 years agoTamil translations update from Dinakar T.D.
Vadim Zeitlin [Wed, 11 Sep 2013 15:05:59 +0000 (15:05 +0000)] 
Tamil translations update from Dinakar T.D.

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

11 years agoTurkish translations update from Çağrı Doğan.
Vadim Zeitlin [Wed, 11 Sep 2013 15:05:55 +0000 (15:05 +0000)] 
Turkish translations update from Çağrı Doğan.

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

11 years agoFix stc doxygen warnings and regen stc files.
Steve Lamerton [Wed, 11 Sep 2013 12:03:07 +0000 (12:03 +0000)] 
Fix stc doxygen warnings and regen stc files.

We need to manually escape a few parts of the autogenerated documentation.

See #15346.

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

11 years agoFix doxygen warnings.
Steve Lamerton [Wed, 11 Sep 2013 10:10:36 +0000 (10:10 +0000)] 
Fix doxygen warnings.

Using @since inside a style or event list causes doxygen warnings, replace with plain text.

See #15346.

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

11 years agoChange version to 3.0.0.
Vadim Zeitlin [Wed, 11 Sep 2013 01:46:08 +0000 (01:46 +0000)] 
Change version to 3.0.0.

Keep "RC1" in the version string for now, but otherwise all version numbers
should be updated.

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

11 years agoFix wrong in wxListCtrl::SetItemColumnImage() in r74716.
Vadim Zeitlin [Tue, 10 Sep 2013 12:12:52 +0000 (12:12 +0000)] 
Fix wrong in wxListCtrl::SetItemColumnImage() in r74716.

The check for "image == -1" was added to a wrong line.

See #15421.

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

11 years agoFix configure on GNU Hurd.
Vadim Zeitlin [Tue, 10 Sep 2013 12:12:47 +0000 (12:12 +0000)] 
Fix configure on GNU Hurd.

Closes #15480.

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

11 years agoConsistently handle DST start time in wxDateTime::Set().
Vadim Zeitlin [Sun, 8 Sep 2013 18:00:58 +0000 (18:00 +0000)] 
Consistently handle DST start time in wxDateTime::Set().

Always move the dates invalid due to DST (i.e. falling into the "missing" hour
on the DST start date) forward, as GNU libc does, even when using a different
CRT implementation, such as MSVC one which moves the invalid dates backwards.

This seems more expected and also fixes an especially bad problem which
happened due to moving the date backwards in Brazilian time zone where DST
starts at midnight as doing this changed the day and totally broke ParseDate()
assumption that setting wxDateTime to 00:00:00 at the given date really did
set it to this date.

Closes #15419.

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

11 years agowxMSW: return correct value from wxMessageDialog::GetReturnCode().
Václav Slavík [Fri, 6 Sep 2013 17:09:23 +0000 (17:09 +0000)] 
wxMSW: return correct value from wxMessageDialog::GetReturnCode().

wxMessageDialog's native code didn't call SetReturnCode() as it should.
As a result, it didn't work with ShowWindowModal().

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

11 years agoAdd lambda-friendly wxDialog::ShowWindowModalThenDo().
Václav Slavík [Fri, 6 Sep 2013 17:09:20 +0000 (17:09 +0000)] 
Add lambda-friendly wxDialog::ShowWindowModalThenDo().

Add a convenience ShowWindowModalThenDo() variant of ShowWindowModal()
that takes a functor argument and calls it when the dialog is closed.

This is, of course, particularly useful when the argument is a C++11
lambda, especially when having more than one window-modal dialog invoked
from the same window, which can get messy quickly with all the
wxEVT_WINDOW_MODAL_DIALOG_CLOSED handlers.

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

11 years agoAdd wxWindowPtr smart pointer.
Václav Slavík [Fri, 6 Sep 2013 17:09:16 +0000 (17:09 +0000)] 
Add wxWindowPtr smart pointer.

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

11 years agoAdd basic deleter support to wxSharedPtr<T>.
Václav Slavík [Fri, 6 Sep 2013 17:09:11 +0000 (17:09 +0000)] 
Add basic deleter support to wxSharedPtr<T>.

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

11 years agoDocument wxWindowModalDialogEvent.
Václav Slavík [Fri, 6 Sep 2013 17:09:07 +0000 (17:09 +0000)] 
Document wxWindowModalDialogEvent.

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

11 years agoAdd wxCondition::Wait() overload that also tests the condition.
Václav Slavík [Fri, 6 Sep 2013 17:09:05 +0000 (17:09 +0000)] 
Add wxCondition::Wait() overload that also tests the condition.

Add Wait() overload that takes a functor argument and doesn't return
until the condition is signaled _and_ the predicate returns true.  This
is useful for dealing with spurious wakeups and is modeled after C++11
std::condition_variable's corresponding method.

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

11 years agoFix outdated comment for wxCondition::Wait().
Václav Slavík [Fri, 6 Sep 2013 17:09:01 +0000 (17:09 +0000)] 
Fix outdated comment for wxCondition::Wait().

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

11 years agoFix bug with not selecting wxAuiNotebook page when its child was focused.
Vadim Zeitlin [Fri, 6 Sep 2013 12:27:04 +0000 (12:27 +0000)] 
Fix bug with not selecting wxAuiNotebook page when its child was focused.

The code in OnChildFocusNotebook() handler only worked correctly if the page
itself was focused but not if the focus was given to one of its children --
which should still make the page itself current.

Closes #15471.

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

11 years agoFix history storing in wxWebViewWebKit with custom schemes.
Steve Lamerton [Fri, 6 Sep 2013 09:50:58 +0000 (09:50 +0000)] 
Fix history storing in wxWebViewWebKit with custom schemes.

When the history has just been cleared there is no existing item so we should add the new history item even in this case.

Fixes #15446.

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

11 years agoFix horizontal mouse wheel scrolling in wxGTK.
Vadim Zeitlin [Fri, 6 Sep 2013 00:20:06 +0000 (00:20 +0000)] 
Fix horizontal mouse wheel scrolling in wxGTK.

Change the value of the appropriate adjustment instead of always using the
vertical one.

Closes #15469.

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

11 years agoExport recently added wxRichTextXMLHelper to fix link errors.
Vadim Zeitlin [Thu, 5 Sep 2013 14:10:39 +0000 (14:10 +0000)] 
Export recently added wxRichTextXMLHelper to fix link errors.

This class is referenced from outside the library, see e.g. this build log:

http://buildbot.tt-solutions.com/wx/builders/Linux x86 wxGTK trunk/builds/2961/steps/compile utils/logs/stdio

and so must be exported, otherwise the build fails under Linux (and under
Windows when using DLL).

Perhaps it would be better to make it completely private to the library if it
is not meant to be public, but this would require more changes.

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

11 years agoRevert wxDO_LOG_IF_ENABLED() change for MSVC6 in r74735.
Vadim Zeitlin [Thu, 5 Sep 2013 14:10:34 +0000 (14:10 +0000)] 
Revert wxDO_LOG_IF_ENABLED() change for MSVC6 in r74735.

The old solution worked fine for that compiler and the new one fails when
wxLogXXX() is used inside a switch statement to the wrong rules used by VC6
for the scope of the variables defined inside the for loop.

Simply revert back to using the old version for it, this will be easy to
re-revert after 3.0 by simply removing the check for it.

See #11829.

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

11 years agoJust remove redundant wxDocument::SetDocumentTemplate() call.
Vadim Zeitlin [Wed, 4 Sep 2013 13:07:11 +0000 (13:07 +0000)] 
Just remove redundant wxDocument::SetDocumentTemplate() call.

This is already done from InitDocument() called from
wxDocTemplate::CreateDocument().

Closes #15467.

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

11 years agoRestore correct wx-config creation and work around MinGW lack of symlinks.
Vadim Zeitlin [Wed, 4 Sep 2013 00:14:42 +0000 (00:14 +0000)] 
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

11 years agoCorrect erasing of background behind controls in a toolbar in wxMSW.
Vadim Zeitlin [Wed, 4 Sep 2013 00:14:37 +0000 (00:14 +0000)] 
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

11 years agoRemove unnecessary wxHTML dependency from the notebook sample.
Vadim Zeitlin [Wed, 4 Sep 2013 00:14:34 +0000 (00:14 +0000)] 
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

11 years agoAdd a test for a tooltip for a control inside a static box.
Vadim Zeitlin [Wed, 4 Sep 2013 00:14:25 +0000 (00:14 +0000)] 
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

11 years agoAdd wxDEPRECATED_MSG() and use it in a couple of places.
Vadim Zeitlin [Wed, 4 Sep 2013 00:14:22 +0000 (00:14 +0000)] 
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

11 years agoDon't take hidden wxGrid row/columns into account when auto-sizing.
Vadim Zeitlin [Wed, 4 Sep 2013 00:14:15 +0000 (00:14 +0000)] 
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

11 years agoRemove superfluous mouse capturing in wxGrid row/column labels windows.
Vadim Zeitlin [Wed, 4 Sep 2013 00:14:13 +0000 (00:14 +0000)] 
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

11 years agoSimplify wxGridCellAutoWrapStringRenderer::GetBestSize().
Vadim Zeitlin [Wed, 4 Sep 2013 00:14:10 +0000 (00:14 +0000)] 
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

11 years agoDon't crash in wxGridCellAutoWrapStringRenderer when the column is hidden.
Vadim Zeitlin [Wed, 4 Sep 2013 00:14:05 +0000 (00:14 +0000)] 
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

11 years agowxRTC: extracted XML utilities into a separate class for potential reuse.
Julian Smart [Tue, 3 Sep 2013 16:47:09 +0000 (16:47 +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

11 years agoAdd missing XRC format docs for wxComboCtrl and wxEditableListBox.
Václav Slavík [Tue, 3 Sep 2013 14:45:07 +0000 (14:45 +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

11 years agoRemove reduntant content from XRC format docs.
Václav Slavík [Tue, 3 Sep 2013 14:45:04 +0000 (14:45 +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

11 years agoFix referencing of cairo_t returned from wxDCImpl::GetCairoContext().
Paul Cornett [Tue, 3 Sep 2013 05:37:30 +0000 (05:37 +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

11 years agoReplace @since 2.9.6 with 3.0 in the docs.
Václav Slavík [Mon, 2 Sep 2013 12:17:06 +0000 (12:17 +0000)] 
Replace @since 2.9.6 with 3.0 in the docs.

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

11 years agoRewrite wxLogXXX() macros to avoid "ambiguous else" warnings.
Vadim Zeitlin [Sat, 31 Aug 2013 17:41:16 +0000 (17:41 +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

11 years agoRemoved a method using wxColour from non-GUI benchmark code.
Vadim Zeitlin [Sat, 31 Aug 2013 17:41:13 +0000 (17:41 +0000)] 
Removed a method using wxColour from non-GUI benchmark code.

No idea how could this work before but the presence of this code in the
non-GUI benchmark project prevented it from building. As it's not used anyhow,
just remove it.

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

11 years agoDon't update position of widgets in a wxPizza from size_allocate handler.
Paul Cornett [Sat, 31 Aug 2013 03:25:12 +0000 (03:25 +0000)] 
Don't update position of widgets in a wxPizza from size_allocate handler.
The values in m_{x,y} are not the same as client coordinates if the wxPizza is scrolled.
Closes #15444

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

11 years agoFix infinite loop in wxMSW with wxStaticBox inside non-wxTAB_TRAVERSAL parent.
Vadim Zeitlin [Fri, 30 Aug 2013 23:32:42 +0000 (23:32 +0000)] 
Fix infinite loop in wxMSW with wxStaticBox inside non-wxTAB_TRAVERSAL parent.

We didn't ensure that the parent of a (native) control with WS_EX_CONTROLPARENT
had this style as well, unlike for our own windows. Fix this now to make
certain that we never call ::IsDialogMessage() on a window whose parent
doesn't have WS_EX_CONTROLPARENT as it simply hangs in this case, entering an
infinite loop searching for the default button.

Also try to reduce the possibility of such bugs in the future by checking for
WS_EX_CONTROLPARENT and not wxTAB_TRAVERSAL before calling ::IsDialogMessage()
even if this doesn't totally prevent them (it wasn't sufficient to fix even
this particular bug).

Closes #15458.

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

11 years agoFix wxMenu::GetTitle() before the menu is appended to the menu bar.
Vadim Zeitlin [Fri, 30 Aug 2013 23:32:37 +0000 (23:32 +0000)] 
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

11 years agoLoosen the assert in IsScrollIncrement().
Václav Slavík [Fri, 30 Aug 2013 13:14:50 +0000 (13:14 +0000)] 
Loosen the assert in IsScrollIncrement().

wxWindowGTK::GTKGetScrollEventType() tries to map GtkAdjustment's delta
to either step or page increment by comparing it with the respective
GtkAdjustment steps. Both of them can be 0, but this code is not
expected to be called in such case.

Yet, in practice, it occasionally is, see e.g.
http://devel.aegisub.org/ticket/979GTKGetScrollEventType (wxWebView is
prone to it as well).

Check for >= 0 instead, to be more robust when faced with unexpected
input from GTK+.

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

11 years agoInitialize wxImageFileProperty correctly when file is given in the ctor.
Vadim Zeitlin [Thu, 29 Aug 2013 20:44:58 +0000 (20:44 +0000)] 
Initialize wxImageFileProperty correctly when file is given in the ctor.

Previously the file had to be specified later and the value passed to the ctor
was ignored.

Closes #15456.

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

11 years agoDon't define __STRICT_ANSI__, we should build both with and without it.
Vadim Zeitlin [Thu, 29 Aug 2013 12:33:44 +0000 (12:33 +0000)] 
Don't define __STRICT_ANSI__, we should build both with and without it.

For some reason, wxDialUpManager code defined __STRICT_ANSI__ itself, don't do
it as __STRICT_ANSI__ can be predefined by the compiler resulting in the
redefinition warnings and, in any case, our code should build both with and
without it.

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

11 years agoCrash fix for inserting text into a buffer without an associated control
Julian Smart [Thu, 29 Aug 2013 11:41:48 +0000 (11:41 +0000)] 
Crash fix for inserting text into a buffer without an associated control

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

11 years agoOnly patch bk-deps in configure if dependency tracking is used.
Vadim Zeitlin [Thu, 29 Aug 2013 11:15:53 +0000 (11:15 +0000)] 
Only patch bk-deps in configure if dependency tracking is used.

Otherwise we get (harmless) errors when trying to patch a non-existent file.

See #15454.

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

11 years agowxGTK1 : another msiing include file in evtloop.cpp
Jouk Jansen [Thu, 29 Aug 2013 06:39:38 +0000 (06:39 +0000)] 
wxGTK1 : another msiing include file in evtloop.cpp

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

11 years agoCzech translations update from Zbyněk Schwarz.
Vadim Zeitlin [Wed, 28 Aug 2013 20:52:46 +0000 (20:52 +0000)] 
Czech translations update from Zbyněk Schwarz.

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

11 years agowxGTK1 : wx/private/eventloopsourcesmanager.h was missing in evtloop.cpp
Jouk Jansen [Wed, 28 Aug 2013 06:01:12 +0000 (06:01 +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

11 years agoDon't enable dialog navigation inside wxFrame by default.
Vadim Zeitlin [Tue, 27 Aug 2013 22:49:53 +0000 (22:49 +0000)] 
Don't enable dialog navigation inside wxFrame by default.

This was done, apparently accidentally, by r68366 and resulted in cursor arrow
keys not being sent by default to the wxFrame children under MSW any more as
they were used for dialog navigation instead.

So don't derive wxTopLevelWindow from wxNavigationEnabled<> any more and only
derive from it at wxDialog level.

Closes #15445.

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

11 years agoDon't recurse into top level children in wxWindow::FindWindow().
Vadim Zeitlin [Tue, 27 Aug 2013 22:49:48 +0000 (22:49 +0000)] 
Don't recurse into top level children in wxWindow::FindWindow().

Finding a button in a child dialog when looking for it in the current window
is totally unexpected and can result in subtle bugs, see #15442.

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

11 years agoHandle custom configurations in MSVC-specific setup.h.
Vadim Zeitlin [Tue, 27 Aug 2013 22:49:44 +0000 (22:49 +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

11 years agoExplicitly specify target names for all configurations in VC10 projects.
Vadim Zeitlin [Tue, 27 Aug 2013 22:49:38 +0000 (22:49 +0000)] 
Explicitly specify target names for all configurations in VC10 projects.

The target names were not specified for the "Release" configuration in some
projects, resulting in (harmless, but annoying) warnings during the build.

Closes #15439.

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

11 years agoUse $(OutDir) instead of explicit directories in VC10 project files.
Vadim Zeitlin [Tue, 27 Aug 2013 22:49:34 +0000 (22:49 +0000)] 
Use $(OutDir) instead of explicit directories in VC10 project files.

This makes it simpler to use a different output directory as it only needs to
be changed in one place.

See #15439.

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

11 years agoCorrect making the newly inserted menu item owner drawn in some cases.
Vadim Zeitlin [Tue, 27 Aug 2013 22:49:28 +0000 (22:49 +0000)] 
Correct making the newly inserted menu item owner drawn in some cases.

The item being inserted is not inserted yet when we call
SetOwnerDrawnMenuItem() so we must call it separately for it after inserting
it.

Closes #15437.

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