]>
git.saurik.com Git - wxWidgets.git/log
Paul Cornett [Sun, 24 Jun 2012 06:33:07 +0000 (06:33 +0000)]
implement wxCairoContext::GetPartialTextExtents for wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71855
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 23 Jun 2012 12:27:14 +0000 (12:27 +0000)]
Clarify wxFileOffset description a bit.
It wasn't clear how wxFileOffset was defined under Windows without
wxHAS_HUGE_FILES.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71844
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Sat, 23 Jun 2012 03:33:08 +0000 (03:33 +0000)]
properly handle stupidly small maximum size hints
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71843
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Sat, 23 Jun 2012 00:44:14 +0000 (00:44 +0000)]
Add simple document for wxGUIEventLoop
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71835
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Fri, 22 Jun 2012 06:41:56 +0000 (06:41 +0000)]
fix SetSizeHints when wxDefaultSize is given for min or max size
GTK does unexpected things if both min and max size are not explicitly set
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71831
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Thu, 21 Jun 2012 20:12:44 +0000 (20:12 +0000)]
Fixed #14429: Printing a large table in wxRichTextCtrl fails
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71830
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Thu, 21 Jun 2012 19:12:04 +0000 (19:12 +0000)]
Prevent index access error
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71828
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Thu, 21 Jun 2012 18:39:34 +0000 (18:39 +0000)]
Compilation fix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71827
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 21 Jun 2012 13:19:30 +0000 (13:19 +0000)]
Don't call gtk_window_set_geometry_hints() if there are no hints to set.
Calling gtk_window_set_geometry_hints() with the hints mask of 0 doesn't work
correctly and sets the window size to the smallest possible. Avoid this by
simply not calling this function at all if there is nothing to do.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71825
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 20 Jun 2012 18:24:22 +0000 (18:24 +0000)]
Add MSVS autoexp.dat fragment for some common wxWidgets types.
As we have gdb pretty printers under the version control, it makes sense to
also put MSVS visualizers there as well.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71824
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 20 Jun 2012 17:54:53 +0000 (17:54 +0000)]
Use wx/msw/winundef.h for wxGTK under Windows too.
Avoid clashes due to <windows.h> definitions in wxGTK too.
Closes #14427.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71823
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 20 Jun 2012 17:54:49 +0000 (17:54 +0000)]
No real changes, just simplify wxGDIPlusContext::GetTextExtent() a bit.
Don't call Font::GetSize() and FontFamily::GetEmHeight() thrice, just do it
once and store the results. This makes the code both simpler and shorter and
marginally more efficient.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71822
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 20 Jun 2012 17:54:46 +0000 (17:54 +0000)]
Fix text extent computation in wxMSW wxGraphicsContext.
The results were incorrect for italic or bold fonts as we hardcoded
FontStyleRegular instead of using the real font style.
Closes #14421.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71821
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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