]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
12 years agoAdd missing c_str() and similar calls to samples in STL build.
Vadim Zeitlin [Wed, 20 Jun 2012 17:54:42 +0000 (17:54 +0000)] 
Add missing c_str() and similar calls to samples in STL build.

Don't rely on implicit conversion of wxString to char*/wxChar*, it doesn't
exist in STL build. Add explicit c_str(), wc_str() or t_str() calls.

Closes #14420.

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

12 years agoUse C, not C++, comments in wx/gtk/chkconf.h.
Vadim Zeitlin [Wed, 20 Jun 2012 17:54:38 +0000 (17:54 +0000)] 
Use C, not C++, comments in wx/gtk/chkconf.h.

Remove C++ comments added in r71796.

See #14412.

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

12 years agoInterface tweaks for Phoenix
Robin Dunn [Wed, 20 Jun 2012 17:10:23 +0000 (17:10 +0000)] 
Interface tweaks for Phoenix

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

12 years agomake sure native font exists, before asking about fixed width
Stefan Csomor [Wed, 20 Jun 2012 10:34:30 +0000 (10:34 +0000)] 
make sure native font exists, before asking about fixed width

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

12 years agousing UTType constants wherever possible to avoid typos, checking for failed conversi...
Stefan Csomor [Wed, 20 Jun 2012 07:16:03 +0000 (07:16 +0000)] 
using UTType constants wherever possible to avoid typos, checking for failed conversions, leveraging native conversion of types, fixes #13442

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

12 years agosupporting promised file urls for transfer, see #14281
Stefan Csomor [Mon, 18 Jun 2012 20:27:35 +0000 (20:27 +0000)] 
supporting promised file urls for transfer, see #14281

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

12 years agoFixed #14417: wxRichTextCtrl crashes on LoadFile
Julian Smart [Mon, 18 Jun 2012 18:45:30 +0000 (18:45 +0000)] 
Fixed #14417: wxRichTextCtrl crashes on LoadFile

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

12 years agobuild fix for wxUSE_STL==1
Paul Cornett [Mon, 18 Jun 2012 16:11:36 +0000 (16:11 +0000)] 
build fix for wxUSE_STL==1

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

12 years agosupporting promised file urls for transfer, see #14281
Stefan Csomor [Mon, 18 Jun 2012 15:13:53 +0000 (15:13 +0000)] 
supporting promised file urls for transfer, see #14281

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

12 years agoInterface fixes for Phoenix
Robin Dunn [Mon, 18 Jun 2012 02:14:07 +0000 (02:14 +0000)] 
Interface fixes for Phoenix

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

12 years agoFixes for building wxGTK under Cygwin.
Vadim Zeitlin [Sun, 17 Jun 2012 21:35:14 +0000 (21:35 +0000)] 
Fixes for building wxGTK under Cygwin.

Test for __WXMSW__ instead of __CYGWIN__ to not affect building non-MSW ports
such as wxGTK under Cygwin.

See #14382.

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

12 years agoDisable creation of wxDIB from wxBitmap in non-wxMSW ports.
Vadim Zeitlin [Sun, 17 Jun 2012 21:35:10 +0000 (21:35 +0000)] 
Disable creation of wxDIB from wxBitmap in non-wxMSW ports.

wxDIB can now be used with wxGTK under Windows, i.e. when not using wxMSW
version of wxBitmap but it can't be created from wxBitmap then as it doesn't
have a corresponding HBITMAP.

Simply disable this functionality when not using wxMSW.

Closes #14414.

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

12 years agoMove wxBell() from base to core library.
Vadim Zeitlin [Sun, 17 Jun 2012 21:35:06 +0000 (21:35 +0000)] 
Move wxBell() from base to core library.

This allows to get rid of ugly preprocessor checks due to the fact that this
function could be defined in one or the other library depending on the port
used and also fix a problem with it being defined differently in the base
library depending on which GUI port (Carbon or Cocoa) was used under OS X.
It also fixes the problem with wxBell() in wxGTK under Windows.

Closes #14406.

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

12 years agoDisable options that don't work with wxGTK in wx/chkconf.h.
Vadim Zeitlin [Sun, 17 Jun 2012 21:35:01 +0000 (21:35 +0000)] 
Disable options that don't work with wxGTK in wx/chkconf.h.

When building wxGTK under Windows, some MSW-specific options can be defined
but can't be implemented when using GTK, forcefully disable them.

Also a few others that could be implemented but that don't work currently.

Finally, forcefully enable Cairo support as wxGTK always needs it.

Closes #14412.

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

12 years agoDefine wxGTK GTK version symbols in GTK-specific setup.h.
Vadim Zeitlin [Sun, 17 Jun 2012 21:34:57 +0000 (21:34 +0000)] 
Define wxGTK GTK version symbols in GTK-specific setup.h.

When not using configure __WXGTKxxx__ symbols should still be defined, assume
we use a recent GTK 2.x version and define all of them.

Closes #14411.

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

12 years agoDon't use Unix-specific wxGTK utility functions under non-Unix.
Vadim Zeitlin [Sun, 17 Jun 2012 21:34:54 +0000 (21:34 +0000)] 
Don't use Unix-specific wxGTK utility functions under non-Unix.

Unix-specific functions shouldn't be used under Windows, add "#ifdef __UNIX__"
guards around them.

Closes #14410.

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

12 years agoProvide wxGetKeyState() studfor wxGTK under Windows.
Vadim Zeitlin [Sun, 17 Jun 2012 21:34:50 +0000 (21:34 +0000)] 
Provide wxGetKeyState() studfor wxGTK under Windows.

Under Unix this function is implemented in X11-specific code, so provide a
stub under Windows to at least avoid link errors.

Closes #14409.

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

12 years agoAdd wxUSE_COMPILER_TLS to allow disabling compiler TLS support.
Vadim Zeitlin [Sun, 17 Jun 2012 21:34:47 +0000 (21:34 +0000)] 
Add wxUSE_COMPILER_TLS to allow disabling compiler TLS support.

Compiler TLS support is broken under Win32/MSVC when used for a code which is
part of a dynamically loaded DLL, so allow disabling it.

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

12 years agoupdate version check for glib 2.32
Paul Cornett [Sun, 17 Jun 2012 17:08:35 +0000 (17:08 +0000)] 
update version check for glib 2.32

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

12 years agoNo real changes, just use wxSize::Get{Width,Height} and not Get{X,Y}.
Vadim Zeitlin [Fri, 15 Jun 2012 23:23:27 +0000 (23:23 +0000)] 
No real changes, just use wxSize::Get{Width,Height} and not Get{X,Y}.

Use more readable accessors in wxGrid code to avoid confusion between wxGrid
(x, y) coordinates and wxSize (x, y) fields.

Closes #14347.

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

12 years agoRemove unnecessary base class OnPaint() call from wxGenericColourDialog.
Vadim Zeitlin [Fri, 15 Jun 2012 23:23:23 +0000 (23:23 +0000)] 
Remove unnecessary base class OnPaint() call from wxGenericColourDialog.

Events should be skipped instead of calling the base class event handler
directly, but in this case even this is not needed as wxGenericColourDialog
takes care of processing the event completely.

Closes #14405.

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

12 years agoRemove left over conflict markers from documentation.
Vadim Zeitlin [Fri, 15 Jun 2012 23:23:20 +0000 (23:23 +0000)] 
Remove left over conflict markers from documentation.

Closes #14404.

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

12 years agoFix compilation of MSW wxFSVolume with non-wxMSW ports.
Vadim Zeitlin [Fri, 15 Jun 2012 23:23:16 +0000 (23:23 +0000)] 
Fix compilation of MSW wxFSVolume with non-wxMSW ports.

There is no way to construct wxIcon from HICON when not using wxMSW, just
leave it unimplemented for non-wxMSW ports.

Closes #14402.

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

12 years agoFix harmless MSVC warning about converting pointer to bool.
Vadim Zeitlin [Fri, 15 Jun 2012 23:23:14 +0000 (23:23 +0000)] 
Fix harmless MSVC warning about converting pointer to bool.

Compare the pointer with NULL explicitly to avoid "forcing value to bool"
warning C4800 from MSVC in richtext code.

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

12 years agoOnly use Unix sockets API under Unix in wxGTK.
Vadim Zeitlin [Fri, 15 Jun 2012 23:23:11 +0000 (23:23 +0000)] 
Only use Unix sockets API under Unix in wxGTK.

wxGTK can now be used under Windows where Unix sockets are not available, add
a __UNIX__ preprocessor check.

Closes #14407.

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

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