]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
12 years agotrying to improve appearance of gridcelltexteditor under OSX, see #14042
Stefan Csomor [Fri, 15 Jun 2012 17:48:29 +0000 (17:48 +0000)] 
trying to improve appearance of gridcelltexteditor under OSX, see #14042

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

12 years agoavoid idling in native file dialogs
Stefan Csomor [Fri, 15 Jun 2012 16:57:27 +0000 (16:57 +0000)] 
avoid idling in native file dialogs

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

12 years agobetter naming wxCFEventLoopPauseIdleEvents
Stefan Csomor [Fri, 15 Jun 2012 16:24:09 +0000 (16:24 +0000)] 
better naming wxCFEventLoopPauseIdleEvents

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

12 years agousing suppression of idle processing (delayed destruction happened too early eg when...
Stefan Csomor [Fri, 15 Jun 2012 00:04:50 +0000 (00:04 +0000)] 
using suppression of idle processing (delayed destruction happened too early eg when showing native message boxes)

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

12 years agooffer suppression of idle processing (delayed destruction happened too early eg when...
Stefan Csomor [Fri, 15 Jun 2012 00:03:51 +0000 (00:03 +0000)] 
offer suppression of idle processing (delayed destruction happened too early eg when showing native message boxes)

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

12 years agosetting debug level explicitly
Stefan Csomor [Thu, 14 Jun 2012 23:21:57 +0000 (23:21 +0000)] 
setting debug level explicitly

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

12 years agocleanup for 10.5 minimum
Stefan Csomor [Thu, 14 Jun 2012 22:29:07 +0000 (22:29 +0000)] 
cleanup for 10.5 minimum

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

12 years agoclang analyzer support specific for OSX
Stefan Csomor [Thu, 14 Jun 2012 22:02:06 +0000 (22:02 +0000)] 
clang analyzer support specific for OSX

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

12 years agoFixedWith support through CoreText
Stefan Csomor [Thu, 14 Jun 2012 21:55:28 +0000 (21:55 +0000)] 
FixedWith support through CoreText

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

12 years agousing CoreText under iOS
Stefan Csomor [Thu, 14 Jun 2012 21:53:06 +0000 (21:53 +0000)] 
using CoreText under iOS

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

12 years agoguarding agains NULL
Stefan Csomor [Thu, 14 Jun 2012 21:51:19 +0000 (21:51 +0000)] 
guarding agains NULL

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

12 years agoguard XTI
Stefan Csomor [Thu, 14 Jun 2012 21:47:52 +0000 (21:47 +0000)] 
guard XTI

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

12 years agoCoreText font enumeration support for iOS
Stefan Csomor [Thu, 14 Jun 2012 21:46:34 +0000 (21:46 +0000)] 
CoreText font enumeration support for iOS

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

12 years agoCoreText support for iOS
Stefan Csomor [Thu, 14 Jun 2012 21:43:42 +0000 (21:43 +0000)] 
CoreText support for iOS

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

12 years agofixing analyzer warning
Stefan Csomor [Thu, 14 Jun 2012 21:40:12 +0000 (21:40 +0000)] 
fixing analyzer warning

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

12 years agoremoving superfluous 10.5 checks
Stefan Csomor [Thu, 14 Jun 2012 21:37:08 +0000 (21:37 +0000)] 
removing superfluous 10.5 checks

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

12 years agoas we always have CoreText available under 10.5+, we can properly determine fixed...
Stefan Csomor [Thu, 14 Jun 2012 19:11:52 +0000 (19:11 +0000)] 
as we always have CoreText available under 10.5+, we can properly determine fixed widths fonts, also use latest CoreText API if available

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

12 years agoremoving attribute, as assert is not guaranteed not to return, but may just go on
Stefan Csomor [Thu, 14 Jun 2012 15:07:14 +0000 (15:07 +0000)] 
removing attribute, as assert is not guaranteed not to return, but may just go on

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

12 years agousing WX_ATTRIBUTE_NORETURN for asserts
Stefan Csomor [Wed, 13 Jun 2012 23:33:52 +0000 (23:33 +0000)] 
using WX_ATTRIBUTE_NORETURN for asserts

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

12 years agoadding WX_ATTRIBUTE_NORETURN support (for functions like assert, exit etc. that may...
Stefan Csomor [Wed, 13 Jun 2012 23:33:00 +0000 (23:33 +0000)] 
adding WX_ATTRIBUTE_NORETURN support (for functions like assert, exit etc. that may not return)

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

12 years agominor doc tweak
Robin Dunn [Wed, 13 Jun 2012 23:20:20 +0000 (23:20 +0000)] 
minor doc tweak

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

12 years agoFix for compilo on non-PCH builds
Robin Dunn [Wed, 13 Jun 2012 23:20:14 +0000 (23:20 +0000)] 
Fix for compilo on non-PCH builds

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

12 years agoAllow the doxygen command to be used to be specified in the environment
Robin Dunn [Wed, 13 Jun 2012 23:20:08 +0000 (23:20 +0000)] 
Allow the doxygen command to be used to be specified in the environment

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

12 years agoupdate comment about SDKs
Robin Dunn [Wed, 13 Jun 2012 23:20:02 +0000 (23:20 +0000)] 
update comment about SDKs

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

12 years agousing native cocoa method for determining main window, fixes #14287
Stefan Csomor [Wed, 13 Jun 2012 22:53:27 +0000 (22:53 +0000)] 
using native cocoa method for determining main window, fixes #14287

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

12 years agoexposing mainWindow for C++
Stefan Csomor [Wed, 13 Jun 2012 22:32:07 +0000 (22:32 +0000)] 
exposing mainWindow for C++

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

12 years agoindicating the memory ownership of our c-method for the clang analyzer
Stefan Csomor [Wed, 13 Jun 2012 18:43:37 +0000 (18:43 +0000)] 
indicating the memory ownership of our c-method for the clang analyzer

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

12 years agosupporting clang memory management annotations
Stefan Csomor [Wed, 13 Jun 2012 18:42:51 +0000 (18:42 +0000)] 
supporting clang memory management annotations

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

12 years agoadding explanation for osx and fixing typo
Stefan Csomor [Wed, 13 Jun 2012 17:55:19 +0000 (17:55 +0000)] 
adding explanation for osx and fixing typo

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

12 years agoproper init
Stefan Csomor [Wed, 13 Jun 2012 17:38:28 +0000 (17:38 +0000)] 
proper init

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

12 years agohaving ONE set of raster-ops starting from 10.5
Stefan Csomor [Wed, 13 Jun 2012 17:13:05 +0000 (17:13 +0000)] 
having ONE set of raster-ops starting from 10.5

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

12 years agofixing mem leak
Stefan Csomor [Wed, 13 Jun 2012 16:43:07 +0000 (16:43 +0000)] 
fixing mem leak

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

12 years agoproper braces avoiding potential dangling else resulting from expansion
Stefan Csomor [Wed, 13 Jun 2012 16:42:08 +0000 (16:42 +0000)] 
proper braces avoiding potential dangling else resulting from expansion

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

12 years agoavoiding dangerous redraw events for windows that are on their way out…
Stefan Csomor [Tue, 12 Jun 2012 23:32:46 +0000 (23:32 +0000)] 
avoiding dangerous redraw events for windows that are on their way out…

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

12 years agoSlightly improve best size calculation for wxListCtrl with wxLC_NO_HEADER.
Vadim Zeitlin [Tue, 12 Jun 2012 22:15:38 +0000 (22:15 +0000)] 
Slightly improve best size calculation for wxListCtrl with wxLC_NO_HEADER.

Use some arbitrary but relatively large width and height instead of falling
back to wxControlBase best size computation which, at least in wxGTK, simply
returns (1, 1) resulting in list control of unusably small size.

This is, of course, still far from ideal and we should really use the items to
calculate the best width but it at least allow the list control in the generic
log dialog to be shown correctly in wxGTK.

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

12 years agoNo real changes, just add a wxCHECK to GetDlgUnitBase().
Vadim Zeitlin [Tue, 12 Jun 2012 21:57:02 +0000 (21:57 +0000)] 
No real changes, just add a wxCHECK to GetDlgUnitBase().

Verify that we do have a valid TLW parent: even though this normally should be
always the case, it might not be when the window is being created or destroyed,
see #14355.

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

12 years agoFix crash in wxStaticBox::HandleEraseBkgnd() in wxMSW on closing.
Vadim Zeitlin [Tue, 12 Jun 2012 21:56:58 +0000 (21:56 +0000)] 
Fix crash in wxStaticBox::HandleEraseBkgnd() in wxMSW on closing.

Don't process WM_ERASEBKGND if we're being destroyed. This is at best useful
and at worst harmful as we currently crash in wxStaticBox::GetClientSize() if
there is no valid TLW parent.

Closes #14355.

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

12 years agoOnly use Unix/X11-specific files under Unix in wxGTK.
Vadim Zeitlin [Tue, 12 Jun 2012 21:42:15 +0000 (21:42 +0000)] 
Only use Unix/X11-specific files under Unix in wxGTK.

No real changes for now, this is another commit in preparation for wxGTK under
MSW support.

Closes #14394.

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

12 years agoRemove another unneeded TOOLKIT test from the bakefiles.
Vadim Zeitlin [Tue, 12 Jun 2012 21:42:02 +0000 (21:42 +0000)] 
Remove another unneeded TOOLKIT test from the bakefiles.

Don't check the toolkit unnecessarily, this doesn't really change anything
right now but will not break wxGTK build under MSW when support for it is
added.

Closes #14379.

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

12 years agoAdd wx/setup.h header for wxGTK build under MSW.
Vadim Zeitlin [Tue, 12 Jun 2012 21:41:59 +0000 (21:41 +0000)] 
Add wx/setup.h header for wxGTK build under MSW.

This is identical to wx/msw/setup0.h but will be used by wxGTK builds using
MSVC when this is supported.

Closes #14395.

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

12 years agoCompilation fix in non-PCH build of wxMSW wxStaticBox.
Vadim Zeitlin [Tue, 12 Jun 2012 21:41:53 +0000 (21:41 +0000)] 
Compilation fix in non-PCH build of wxMSW wxStaticBox.

Include wx/sizer.h now that we use sizers in static box DoGetBestSize().

Closes #14397.

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

12 years agoDon't use generic wxListCtrl style for wxListMainWindow.
Vadim Zeitlin [Tue, 12 Jun 2012 21:41:50 +0000 (21:41 +0000)] 
Don't use generic wxListCtrl style for wxListMainWindow.

This resulted in double border around wxListCtrl contents in wxOSX and almost
certainly other ports except wxGTK for which we already had an explicit
preprocessor check in the generic list control code. Remove it and simply
don't use any wxListCtrl-specific styles, including borders, for its main
window as it doesn't make any sense.

Closes #3701.

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

12 years agoMake wxMSW tree item unlocking reentrant.
Vadim Zeitlin [Tue, 12 Jun 2012 21:41:40 +0000 (21:41 +0000)] 
Make wxMSW tree item unlocking reentrant.

Handle creating nested TreeItemUnlocker objects correctly. This fixes the
problem when a wxTreeCtrl method unlocking some item is called with another
item is already unlocked, e.g. from a selection changed event handler.

Closes #14400.

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

12 years agosupport for native tlw parents, see #14252
Stefan Csomor [Tue, 12 Jun 2012 18:44:31 +0000 (18:44 +0000)] 
support for native tlw parents, see #14252

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

12 years agousing callback for menu enabling, allows to benefit from system menu disabling eg...
Stefan Csomor [Tue, 12 Jun 2012 00:23:22 +0000 (00:23 +0000)] 
using callback for menu enabling, allows to benefit from system menu disabling eg for modal dialogs, see #14177

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

12 years agosetting source as this, according to thread '[wx-dev] Bug in wxMenuBarBase::UpdateMenus'
Stefan Csomor [Tue, 12 Jun 2012 00:21:51 +0000 (00:21 +0000)] 
setting source as this, according to thread '[wx-dev] Bug in wxMenuBarBase::UpdateMenus'

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

12 years agoFix compilation error
Robin Dunn [Sun, 10 Jun 2012 17:09:49 +0000 (17:09 +0000)] 
Fix compilation error

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

12 years agoFix wxHTMLDataObject compilation and memory leaks.
Vadim Zeitlin [Sun, 10 Jun 2012 11:57:20 +0000 (11:57 +0000)] 
Fix wxHTMLDataObject compilation and memory leaks.

Use wxString::FromUTF8() and utf8_str() instead of directly using wxConvUTF8
as this is simpler and also works correctly in non-Unicode build (and more
efficiently in UTF-8 build as no conversion is done there).

Do not allocate -- and leak -- buffer in wxHTMLDataObject::GetDataHere(),
we're supposed to be putting data into the caller-provided buffer instead of
using our own.

Closes #14391.

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

12 years agoKeep track of the area intended to be buffered, and use that in UnMask instead of...
Robin Dunn [Fri, 8 Jun 2012 19:26:19 +0000 (19:26 +0000)] 
Keep track of the area intended to be buffered, and use that in UnMask instead of defaulting to the buffer size.  Only clip to the DC size if wxBUFFER_VIRTUAL_AREA is not set.  This fixes the issue where buffering the full virtual area in a wxScrolledWindow would only draw an area the physical size of the window.  Fixes #11612.

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

12 years agoAdd doc for SendAutoScrollEvents
Robin Dunn [Fri, 8 Jun 2012 19:26:12 +0000 (19:26 +0000)] 
Add doc for SendAutoScrollEvents

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

12 years agoFix wxWindow::IsDescendant() to work with argument equal to this window.
Vadim Zeitlin [Fri, 8 Jun 2012 18:44:18 +0000 (18:44 +0000)] 
Fix wxWindow::IsDescendant() to work with argument equal to this window.

Passing the window itself as IsDescendant() argument for a top level window
resulted in a NULL pointer dereference. Fix this and also simplify the
function code by not using the parent window before checking it's !NULL.

Closes #14387.

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

12 years agoUse wxString::Clone() instead of c_str() in wxThreadEvent copy ctor.
Vadim Zeitlin [Fri, 8 Jun 2012 18:44:14 +0000 (18:44 +0000)] 
Use wxString::Clone() instead of c_str() in wxThreadEvent copy ctor.

Creating a new wxString from c_str() of the old one resulted in dropping all
string data after the first embedded NUL. Fix this by using Clone() method
that exists specifically for this purpose. It also makes the code more clear.

Closes #14380.

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

12 years agoUse PLATFORM checks in bakefiles instead of TOOLKIT checks.
Vadim Zeitlin [Fri, 8 Jun 2012 18:44:10 +0000 (18:44 +0000)] 
Use PLATFORM checks in bakefiles instead of TOOLKIT checks.

No real changes as the output is currently the same for all supported
PLATFORM/TOOLKIT combinations anyhow but prefer checking for PLATFORM to
prepare for the support of GTK toolkit under MSW platform.

Closes #14379.

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

12 years agoInterface fixes for Phoenix
Robin Dunn [Fri, 8 Jun 2012 05:11:21 +0000 (05:11 +0000)] 
Interface fixes for Phoenix

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

12 years agofix warnings about conversion to bool, closes #14381
Paul Cornett [Thu, 7 Jun 2012 05:18:30 +0000 (05:18 +0000)] 
fix warnings about conversion to bool, closes #14381

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

12 years agofix warnings about unreachable return statements
Paul Cornett [Thu, 7 Jun 2012 05:13:19 +0000 (05:13 +0000)] 
fix warnings about unreachable return statements

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

12 years agoAdd export macro for wxTreeListEvent so the non-inline class info and things can...
Robin Dunn [Thu, 7 Jun 2012 04:43:15 +0000 (04:43 +0000)] 
Add export macro for wxTreeListEvent so the non-inline class info and things can be found where they're exepcted

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

12 years agoInterface fixes for Phoenix
Robin Dunn [Thu, 7 Jun 2012 04:43:09 +0000 (04:43 +0000)] 
Interface fixes for Phoenix

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

12 years agoAdd missing wxRichToolTip::SetTitleFont implementation.
Robin Dunn [Thu, 7 Jun 2012 04:43:02 +0000 (04:43 +0000)] 
Add missing wxRichToolTip::SetTitleFont implementation.

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

12 years agoInterface fixes for Phoenix
Robin Dunn [Thu, 7 Jun 2012 04:42:57 +0000 (04:42 +0000)] 
Interface fixes for Phoenix

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

12 years agowxHtmlHelpWindow: Fix contents panel syncing with view.
Václav Slavík [Wed, 6 Jun 2012 17:18:15 +0000 (17:18 +0000)] 
wxHtmlHelpWindow: Fix contents panel syncing with view.

Simply opened page notification code. Fix it to really highlight the
page currently visible, instead of the previous one.

Fixes #14320.

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

12 years agoadd missing public keyword for base class
Robin Dunn [Wed, 6 Jun 2012 02:06:24 +0000 (02:06 +0000)] 
add missing public keyword for base class

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

12 years agoIf there is a sizer then use it's calculated minimum in wxStaticBox::DoGetBestSize
Robin Dunn [Tue, 5 Jun 2012 21:26:53 +0000 (21:26 +0000)] 
If there is a sizer then use it's calculated minimum in wxStaticBox::DoGetBestSize

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

12 years agoInterface fixes for Phoenix
Robin Dunn [Tue, 5 Jun 2012 21:26:48 +0000 (21:26 +0000)] 
Interface fixes for Phoenix

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

12 years agoInterface fixes for Phoenix
Robin Dunn [Tue, 5 Jun 2012 21:26:42 +0000 (21:26 +0000)] 
Interface fixes for Phoenix

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

12 years agoWorkaround for Ubuntu 12.04 run time warning
Paul Cornett [Tue, 5 Jun 2012 16:49:28 +0000 (16:49 +0000)] 
Workaround for Ubuntu 12.04 run time warning
"LIBDBUSMENU-GLIB-WARNING **: Trying to remove a child that doesn't believe we're it's parent."
Avoid calling gtk_widget_destroy() on a wxMenuBar attached to a frame
Fixes #14292

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

12 years agoDon't give incorrect example in wxTextEntry::GetInsertionPoint() docs.
Vadim Zeitlin [Tue, 5 Jun 2012 12:21:29 +0000 (12:21 +0000)] 
Don't give incorrect example in wxTextEntry::GetInsertionPoint() docs.

Using the text control position as index in GetValue() is wrong in general,
show the correct way of doing this.

Closes #14372.

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

12 years agoFix ribbon sample compilation after r71642.
Vadim Zeitlin [Tue, 5 Jun 2012 12:12:43 +0000 (12:12 +0000)] 
Fix ribbon sample compilation after r71642.

Add a missing header with declaration of wxMessageBox() for PCH-less
compilation.

Closes #14376.

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

12 years agoFix layout of wxStaticText, and possibly other controls.
Paul Cornett [Mon, 4 Jun 2012 17:36:51 +0000 (17:36 +0000)] 
Fix layout of wxStaticText, and possibly other controls.
GtkLabel perversely does not use its actual size to do layout, but will use its
size request. So restore calling gtk_widget_set_size_request() for all widgets,
which was removed in r71465. See #14374

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

12 years agoCorrected collection of common attributes, for clashing font size units.
Julian Smart [Mon, 4 Jun 2012 09:13:13 +0000 (09:13 +0000)] 
Corrected collection of common attributes, for clashing font size units.

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

12 years agoImplement support for wxRIBBON_PANEL_EXT_BUTTON wxRibbonPanel style.
Vadim Zeitlin [Sun, 3 Jun 2012 19:17:09 +0000 (19:17 +0000)] 
Implement support for wxRIBBON_PANEL_EXT_BUTTON wxRibbonPanel style.

Show the "extension button" in the ribbon panel if this style is specified.

Also generate a specific event if this button is clicked.

Closes #14283.

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

12 years agoAdd wxRibbonControl::GetAncestorRibbonBar() helper.
Vadim Zeitlin [Sun, 3 Jun 2012 19:17:03 +0000 (19:17 +0000)] 
Add wxRibbonControl::GetAncestorRibbonBar() helper.

New method allowing to find the ribbon bar containing the given window.

See #14283.

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

12 years agoUse wxString::t_str() in calls to Windows API functions in wxMSW.
Vadim Zeitlin [Sun, 3 Jun 2012 19:16:59 +0000 (19:16 +0000)] 
Use wxString::t_str() in calls to Windows API functions in wxMSW.

Use t_str() instead of wx_str() to make the code work correctly in UTF-8 build
in which wx_str() returns a pointer to UTF-8 buffer while we need a wchar_t
pointer for Windows.

Closes #14371.

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

12 years agoUse wxCOMPtr throughout wxWebViewIE to simplify the code and reduce the chance of...
Steve Lamerton [Sun, 3 Jun 2012 17:41:32 +0000 (17:41 +0000)] 
Use wxCOMPtr throughout wxWebViewIE to simplify the code and reduce the chance of memory leaks. Also mark PPV_ARGS_CHECK as inline so it can be used from multiple libraries.

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

12 years agoAdd support for MSVC 11 (a.k.a. MSVS 2012) to MSVC-specific setup.h.
Vadim Zeitlin [Fri, 1 Jun 2012 22:34:21 +0000 (22:34 +0000)] 
Add support for MSVC 11 (a.k.a. MSVS 2012) to MSVC-specific setup.h.

Use vc110 prefix for VC11.

Closes #14366.

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

12 years agoClear old selection when wxListBox becomes empty.
Vadim Zeitlin [Fri, 1 Jun 2012 22:34:17 +0000 (22:34 +0000)] 
Clear old selection when wxListBox becomes empty.

When UpdateOldSelections() is called from wxListBox::DoClear(), it must clear
the old selections array even for single selection list boxes, but it didn't
do this under non-MSW platforms.

Specifically check for the case of an empty listbox now and just forget the
old selections then. This fixes the problem of keeping stale old selections
and is also more efficient as we avoid the unnecessary GetSelections() call.

Really closes #14359.

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

12 years agoAdd wxMSW_CONV_LPCTSTR() and related macros and use them in wxBase.
Vadim Zeitlin [Fri, 1 Jun 2012 22:34:13 +0000 (22:34 +0000)] 
Add wxMSW_CONV_LPCTSTR() and related macros and use them in wxBase.

Add macros hiding the ugly casts needed to pass wxStrings to Windows API
functions and use them in a couple of places in wxBase to simplify the code.

Closes #14338.

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

12 years agoDisable wxUIActionSimulator wxGrid tests using mouse under wxGTK.
Vadim Zeitlin [Fri, 1 Jun 2012 16:21:08 +0000 (16:21 +0000)] 
Disable wxUIActionSimulator wxGrid tests using mouse under wxGTK.

Something is seriously wrong with simulated mouse events and wxGrid under
wxGTK, they seem to simply disappear sometimes. This results in unit tests
suite failure, so disable these tests for the next release as I just don't
understand how to fix them.

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

12 years agoAdd IsAutomaticTest() function to the unit tests.
Vadim Zeitlin [Fri, 1 Jun 2012 16:21:06 +0000 (16:21 +0000)] 
Add IsAutomaticTest() function to the unit tests.

This allows to easily test if we're running on a buildbot slave and disable
some difficult to debug test failures there.

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

12 years agoUse printf() instead of wxPrintf() in cppunit details listener.
Vadim Zeitlin [Fri, 1 Jun 2012 16:21:03 +0000 (16:21 +0000)] 
Use printf() instead of wxPrintf() in cppunit details listener.

Wide char output from wxPrintf() didn't appear at all under Linux because
stdout was switched into narrow stream mode by GNU libc due to initial use of
cout in the test.

Use printf() instead of wxPrintf() as we are only printing ASCII strings
anyhow. Of course, this is not a real fix but at least we can see the tests
results like this.

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

12 years agoCompilation fix to wxWebView under wxOSX/Carbon after r71620.
Vadim Zeitlin [Fri, 1 Jun 2012 15:25:28 +0000 (15:25 +0000)] 
Compilation fix to wxWebView under wxOSX/Carbon after r71620.

wxWindow::m_peer is private, use GetPeer() to access it.

See #14352.

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

12 years agoFix wxWebKitCtrl::RunScript() return value.
Vadim Zeitlin [Fri, 1 Jun 2012 15:25:25 +0000 (15:25 +0000)] 
Fix wxWebKitCtrl::RunScript() return value.

Replace comparisons of the type name of the returned value with isKindOfClass:
checks which are more reliable.

Closes #14358.

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

12 years agoAdd support for CP1258 (Vietnamese) and CP1361 (Korean Johab) encodings.
Vadim Zeitlin [Fri, 1 Jun 2012 11:01:46 +0000 (11:01 +0000)] 
Add support for CP1258 (Vietnamese) and CP1361 (Korean Johab) encodings.

Recognize these encodings names and translate them to/from the corresponding
charset constants in wxMSW.

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

12 years agoUse "GBK" as alternative name for CP936 encoding.
Vadim Zeitlin [Fri, 1 Jun 2012 11:01:37 +0000 (11:01 +0000)] 
Use "GBK" as alternative name for CP936 encoding.

This is the official name of this encoding, so recognize it as synonym.

See #14360.

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

12 years agoUse float instead of double division in wxHashMap code.
Vadim Zeitlin [Fri, 1 Jun 2012 11:01:34 +0000 (11:01 +0000)] 
Use float instead of double division in wxHashMap code.

We don't need double precision for determining the hash table fill rate and
using double constant also results in float-to-double promotion warnings from
gcc 4.7.

See #14362.

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

12 years agoKeep user-set wxFrame background color even if MSW system background changes.
Vadim Zeitlin [Fri, 1 Jun 2012 11:01:31 +0000 (11:01 +0000)] 
Keep user-set wxFrame background color even if MSW system background changes.

Don't override wxFrame background colour when the system background colour
changes if it was explicitly set by the user.

Closes #14364.

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

12 years agoUpdate old selections after clearing wxListBox in wxGTK.
Vadim Zeitlin [Fri, 1 Jun 2012 11:01:28 +0000 (11:01 +0000)] 
Update old selections after clearing wxListBox in wxGTK.

Don't keep stale selected item indices in m_oldSelections after clearing the
listbox, call UpdateOldSelections() from DoClear() in wxGTK just as we do in
the other ports.

Closes #14359.

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

12 years agoUse wxCLASSINFO() instead of deprecated CLASSINFO().
Vadim Zeitlin [Fri, 1 Jun 2012 11:01:24 +0000 (11:01 +0000)] 
Use wxCLASSINFO() instead of deprecated CLASSINFO().

No real changes, just use the version of the macro with a "wx" prefix.

Closes #14356.

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

12 years agoUse wxDynamicCast() instead of IsKindOf() checks.
Vadim Zeitlin [Fri, 1 Jun 2012 11:01:18 +0000 (11:01 +0000)] 
Use wxDynamicCast() instead of IsKindOf() checks.

wxDynamicCast() is less verbose (due to the absence of "CLASSINFO") and more
compatible with the standard dynamic_cast<>, so prefer to use it when possible.

See #14356.

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

12 years agoRemove unneeded dynamic cast in wxPropertyGrid.
Vadim Zeitlin [Fri, 1 Jun 2012 11:01:12 +0000 (11:01 +0000)] 
Remove unneeded dynamic cast in wxPropertyGrid.

It's completely useless to check that an object is of its own statically
declared type as this is always true, simply don't do it.

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

12 years agoRemove unnecessary dynamic cast in wxComboPopupWindow.
Vadim Zeitlin [Fri, 1 Jun 2012 11:01:09 +0000 (11:01 +0000)] 
Remove unnecessary dynamic cast in wxComboPopupWindow.

Objects of this type are either always of wxPopupTransientWindow type, in
which case just a static_cast<> is enough and we don't need a dynamic one, or
is never of its type in which case this code shouldn't be compiled and if it
is, then static_cast<> will correctly fail preventing it from compiling.

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

12 years agoDon't reset previous window event handler in PopEventHandler().
Vadim Zeitlin [Fri, 1 Jun 2012 11:01:05 +0000 (11:01 +0000)] 
Don't reset previous window event handler in PopEventHandler().

This is harmless but also useless as the previous event handler of a wxWindow
is always NULL anyhow, so simply don't do this. This is consistent with
PushEventHandler() which doesn't call SetPreviousHandler() for the window
itself neither.

Closes #14353.

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

12 years agoFix wxMac preprocessor check in wxWebView code.
Vadim Zeitlin [Fri, 1 Jun 2012 11:01:02 +0000 (11:01 +0000)] 
Fix wxMac preprocessor check in wxWebView code.

Fix typo in "__WXMAC__" in wxWebView under wxOSX/Carbon and also in
wxWebKitCtrl from where this code was copied.

Closes #14352.

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

12 years agoNo changes, just refactor wxGrid::Render() to simplify it.
Vadim Zeitlin [Fri, 1 Jun 2012 11:00:58 +0000 (11:00 +0000)] 
No changes, just refactor wxGrid::Render() to simplify it.

Introduce a couple of new helpers to make the main Render() function smaller
and more clear.

Closes #14347.

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

12 years agosilence warning about converting NULL to wxUIntPtr
Paul Cornett [Thu, 31 May 2012 16:29:30 +0000 (16:29 +0000)] 
silence warning about converting NULL to wxUIntPtr

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

12 years agosilence warning about __WXMSW__ not defined
Paul Cornett [Thu, 31 May 2012 16:28:42 +0000 (16:28 +0000)] 
silence warning about __WXMSW__ not defined

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

12 years agoA patch adding wxHTMLDataObject which can be used for handling the standard platform...
Robin Dunn [Wed, 30 May 2012 19:21:42 +0000 (19:21 +0000)] 
A patch adding wxHTMLDataObject which can be used for handling the standard platform formats for transfering HTML formatted text.

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

12 years agofixing build with wxUSE_PROTOCOL = 1 and wxUSE_SOCKETS = 0
Stefan Csomor [Wed, 30 May 2012 04:20:59 +0000 (04:20 +0000)] 
fixing build with wxUSE_PROTOCOL = 1 and wxUSE_SOCKETS = 0

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

12 years agoAdjust the client area origin and the client size of the MSW wxStaticBox according...
Robin Dunn [Wed, 30 May 2012 03:13:35 +0000 (03:13 +0000)] 
Adjust the client area origin and the client size of the MSW wxStaticBox according to the guidelines on http://msdn.microsoft.com/en-us/library/aa511279.aspx.  This is so widgets that are children of the static box will not overlap the label or box borders.

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

12 years agoInterface fixes for Phoenix
Robin Dunn [Wed, 30 May 2012 03:13:27 +0000 (03:13 +0000)] 
Interface fixes for Phoenix

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