]>
git.saurik.com Git - wxWidgets.git/log
Vadim Zeitlin [Sat, 28 Apr 2012 22:24:31 +0000 (22:24 +0000)]
Document that wxDCClipper currently resets clipping region.
Unlike other similar classes, this one doesn't restore the previous clipping
region but just resets it because there is no way to get the current clipping
region from wxDC now. At least document this limitation until it can be fixed.
See #13834.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71296
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 27 Apr 2012 22:35:08 +0000 (22:35 +0000)]
Added note about WXWIN_COMPATIBILITY_2_6 being off in 2.9 by default.
Also list some concrete symbols which are not available any more and their
replacements.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71289
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Fri, 27 Apr 2012 11:39:52 +0000 (11:39 +0000)]
Restored the exact-fit-button horizontal margin calculation from 2.8 since it was too cramped.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71287
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Thu, 26 Apr 2012 01:29:00 +0000 (01:29 +0000)]
Typo fix, and add some missing methods.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71280
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Wed, 25 Apr 2012 11:42:31 +0000 (11:42 +0000)]
Fixed floating image layout when typing in subsequent paragraph
Now makes use of max size for images and keeps the image size reasonable
Added original image size so can usually avoid reloading image when recomputing
cached bitmap size
Takes into account bottom of the last floating image so scrollbars are
set correctly
Original image size is shown in disabled size controls
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71277
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Tue, 24 Apr 2012 11:22:18 +0000 (11:22 +0000)]
Added custom properties to style definitions and style sheets
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71276
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Tue, 24 Apr 2012 05:38:12 +0000 (05:38 +0000)]
Remove code to find topmost X window in SetTransparent().
The purpose of this code is unknown, but it may be intended to make WM
decorations transparent. But it causes a crash when docking an AUI panel.
And in my testing the decorations are transparent even without this code.
Fixes #4841
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71275
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Julian Smart [Mon, 23 Apr 2012 16:54:52 +0000 (16:54 +0000)]
Added flags to SetStyle with specific object
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71268
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Sat, 21 Apr 2012 00:07:31 +0000 (00:07 +0000)]
Fix missing and broken interface items for Phoenix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71247
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Fri, 20 Apr 2012 16:05:13 +0000 (16:05 +0000)]
defer queue-resize until after size-allocate processing, to keep it from being ignored by GTK3
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71246
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Fri, 20 Apr 2012 15:34:24 +0000 (15:34 +0000)]
silence warning about wxOSX_USE_COCOA not being defined
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71245
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Fri, 20 Apr 2012 05:41:54 +0000 (05:41 +0000)]
Make wxTaskBarIcon's ctor have the same API on all platforms even though setting the icon type can only be done on wxOSX-cocoa
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71242
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Fri, 20 Apr 2012 05:41:39 +0000 (05:41 +0000)]
Document SetDoubleBuffered
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71241
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Thu, 19 Apr 2012 17:15:40 +0000 (17:15 +0000)]
move widget resize handling from DoSetSize to DoMoveWindow
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71240
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Thu, 19 Apr 2012 16:51:06 +0000 (16:51 +0000)]
simplify default border code in DoSetSize
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71237
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Thu, 19 Apr 2012 16:44:59 +0000 (16:44 +0000)]
rearrange some code in DoSetSize to facilitate upcoming changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71236
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 19 Apr 2012 16:14:18 +0000 (16:14 +0000)]
Fix for wxUniv/GTK compilation.
wxWindowBase needs to be explicitly cast to wxWindow in wxUniv/GTK build but
this wasn't done in the changes of r70597.
Cloes #14235.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71235
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 19 Apr 2012 16:14:16 +0000 (16:14 +0000)]
Correct wxPaintDC base class in the documentation.
wxPaintDC derives from wxClientDC, not wxWindowDC.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71234
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Wed, 18 Apr 2012 16:30:11 +0000 (16:30 +0000)]
Adjust x,y parameters by pizza scroll offset in DoSetSize
This should cause no change in behavior, and is merely preparation for further changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71228
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 18 Apr 2012 09:23:05 +0000 (09:23 +0000)]
Don't set focus to hidden window in wxSetFocusToChild().
The window that had focus previously could be hidden now, but its parent could
be hidden as well so it's not enough to set focus to it but we need to loop
until we find a visible ancestor.
Closes #14230.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71227
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Tue, 17 Apr 2012 17:00:36 +0000 (17:00 +0000)]
Fix missing and broken interface items for Phoenix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71215
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Tue, 17 Apr 2012 16:57:12 +0000 (16:57 +0000)]
avoiding potential mismatch between true and expected state of wxGraphicsContext because it might have been changed through its direct API meanwhile, fixes #14226
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71214
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 17 Apr 2012 13:57:18 +0000 (13:57 +0000)]
Add possibility to change the test message box title in dialog sample.
All the other message box elements were configurable, so why not this one.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71213
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Tue, 17 Apr 2012 06:13:16 +0000 (06:13 +0000)]
building on 10.5
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71212
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Paul Cornett [Mon, 16 Apr 2012 15:45:52 +0000 (15:45 +0000)]
remove AdjustForParentClientOrigin call, it does nothing in wxGTK
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71211
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 16 Apr 2012 14:33:35 +0000 (14:33 +0000)]
Reset hover item when mouse leaves wxAuiToolBar.
The hover item was not reset properly in some circumstances, do it now.
Also check for the item being disabled in SetHoverItem() itself instead of
doing it several times before calling it.
Closes #14189.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71210
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 16 Apr 2012 14:30:02 +0000 (14:30 +0000)]
Fix wxCairoContext creation from wxWindow under MSW.
cairo_win32_surface_create() must be passed the window HDC and not HWND
itself, the old code calling it was broken.
Add WindowHDC object and pass its HDC to this function now to make it work.
Closes #14194.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71209
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 16 Apr 2012 14:29:59 +0000 (14:29 +0000)]
Add default ctor to wxMSW private WindowHDC helper class.
Allow to use objects of this class without any valid HWND, this is useful for
the derived classes which may, or may not, need the corresponding HDC.
See #14194.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71208
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 16 Apr 2012 14:19:13 +0000 (14:19 +0000)]
Fix type mismatch in wxLogTrace() call in wxSocket.
Cast socket handle to a 32 bit value as we use it with "%d" (or "%u" now as it
makes more sense) format specifier to avoid problems with type mismatches
under Win64.
Closes #14204.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71207
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 16 Apr 2012 13:53:49 +0000 (13:53 +0000)]
Add wxFSInputStream providing stream interface to wxFileSystem.
This class allows using virtual wxFSFiles with any wx functions taking
streams. E.g. it makes it possible to load images and animations from
wxFileSystem.
Closes #14185.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71206
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 16 Apr 2012 13:53:45 +0000 (13:53 +0000)]
Added wxWrapperInputStream class.
This stream allows to wrap another stream. This is a useful base class for
adapter classes providing stream interface on top of something else, like the
upcoming wxFSInputStream.
See #14185.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71205
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 16 Apr 2012 12:12:26 +0000 (12:12 +0000)]
Added support for page tooltips to wxAuiNotebook.
Allow setting tooltips for the tabs of the individual pages of wxAuiNotebook.
Closes #14216.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71204
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 16 Apr 2012 12:12:19 +0000 (12:12 +0000)]
Added wxAcceleratorEntry::ToRawString().
This function can be used to obtain language/locale-independent representation
of an accelerator. This is particularly useful for storing it in configuration
files.
Closes #14228.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71203
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 16 Apr 2012 12:12:15 +0000 (12:12 +0000)]
No real changes, just some typo fixes for previous commits.
Fix wxCOMPtr comment and don't use "s_" for non-static variable.
Closes #14227.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71202
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 15 Apr 2012 23:18:12 +0000 (23:18 +0000)]
Use new style directory selection dialog under Vista and later.
Use IFileDialog in wxDirDialog implementation if possible, it shows a much
more user-friendly dialog than the one used by SHBrowseForFolder().
Closes #11401.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71201
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 15 Apr 2012 23:18:08 +0000 (23:18 +0000)]
Added wxCOMPtr<> helper class.
This allows to avoid error-prone manual AddRef() and Release() calls when
writing COM code in wxMSW.
See #11401.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71200
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 15 Apr 2012 23:18:05 +0000 (23:18 +0000)]
Fix WXK_MENU handling in wxStyledTextCtrl.
Map it to SCK_MENU instead of treating it as a modifier and simply swallowing
it.
Closes #14205.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71199
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 15 Apr 2012 23:18:01 +0000 (23:18 +0000)]
No real changes, just fix misspellings in comments in wxGTK code.
Also remove a couple of wrong $Id$ expansions.
Closes #14203.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71198
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 14 Apr 2012 22:37:34 +0000 (22:37 +0000)]
Call wxThread::OnExit() from wxThread::Exit() in wxMSW too.
Exit() is documented to call OnExit() and the pthreads version of wxThread did
behave as documented, so make wxMSW follow it as well and explicitly call
OnExit() before exiting the thread.
Closes #14212.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71197
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 14 Apr 2012 22:31:57 +0000 (22:31 +0000)]
Add support for VT_I8 (long long) values to wxAutomationObject.
Just map VT_I8 to wxLongLong.
Closes #14210.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71196
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 14 Apr 2012 22:27:34 +0000 (22:27 +0000)]
Add support for horizontal mouse wheel events to wxGTK too.
Handle GDK_SCROLL_{RIGHT,LEFT} directions in scroll-event handler in wxGTK.
Closes #14221.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71195
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sat, 14 Apr 2012 22:27:31 +0000 (22:27 +0000)]
Fix the check for wxUSE_DATETIME in wxGenericValidator code.
The #endif was somehow added at a wrong place and too much
wxDateTime-unrelated code was disabled when wxUSE_DATETIME was off.
Closes #14222.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71194
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Sat, 14 Apr 2012 07:33:06 +0000 (07:33 +0000)]
make sure status item rect in bar is highlighted when clicked, fixes #13630
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71193
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Steve Lamerton [Thu, 12 Apr 2012 21:15:16 +0000 (21:15 +0000)]
Always check that we get a valid IDispatch* from get_Document as sometimes the call can succeed but return NULL.
Fixes #14182
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71192
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Thu, 12 Apr 2012 05:33:29 +0000 (05:33 +0000)]
Add missing interface items for Phoenix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71190
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Tue, 10 Apr 2012 03:27:55 +0000 (03:27 +0000)]
Add missing interface items for Phoenix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71172
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Tue, 10 Apr 2012 03:27:50 +0000 (03:27 +0000)]
Fix missing and broken interface items for Phoenix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71171
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Tue, 10 Apr 2012 03:27:44 +0000 (03:27 +0000)]
Remove the wxPython-only doc snippets from the C++ docs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71170
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Tue, 10 Apr 2012 03:27:28 +0000 (03:27 +0000)]
Minor tweak to improve understandability
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71169
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Tue, 10 Apr 2012 03:27:22 +0000 (03:27 +0000)]
Add CreateTextSizer
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71168
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 8 Apr 2012 18:10:29 +0000 (18:10 +0000)]
Always use UTF-8 for file names passed to GTK+ functions under MSW.
When building wxGTK under MSW, always use UTF-8 as file name encoding because
GTK+ doesn't use G_FILENAME_ENCODING there.
Add a helper wxGTK_CONV_FN() macro to hide the difference between the
platforms.
Closes #14035.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71154
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 8 Apr 2012 18:10:21 +0000 (18:10 +0000)]
No real changes, just add extra brackets to wxGTK_CONV() macro.
These brackets are probably not really necessary but add them just in case
they can help with parsing some strange expressions and for consistency with
the other wxGTK_CONV_XXX() macros.
See #14035.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71153
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 8 Apr 2012 18:10:11 +0000 (18:10 +0000)]
Compilation fixes for Cairo-based wxGraphicsContext code under MSW.
Include MSW-specific headers under MSW to fix various compilation problems
under MinGW.
Closes #14194.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71152
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 8 Apr 2012 13:25:41 +0000 (13:25 +0000)]
Fix typo in wxKeyEvent::GetKeyCode() documentation example.
Use GetKeyCode() instead of (undefined) "keycode" variable.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71151
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 8 Apr 2012 10:10:20 +0000 (10:10 +0000)]
Fix PCH-less compilation of graphicc.cpp under MSW too.
We need to include wx/window.h in all ports, not just wxGTK.
See #14194.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71148
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Sun, 8 Apr 2012 00:54:02 +0000 (00:54 +0000)]
Add the client and art IDs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71147
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Sat, 7 Apr 2012 04:18:28 +0000 (04:18 +0000)]
Mark which methods are pure virtual
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71134
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Sat, 7 Apr 2012 04:18:23 +0000 (04:18 +0000)]
Document wxHelpControllerBase so the type can be used in Phoenix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71133
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Sat, 7 Apr 2012 04:18:16 +0000 (04:18 +0000)]
wxHtmlHelpController derives from wxHelpControllerBase
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71132
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Sat, 7 Apr 2012 04:18:11 +0000 (04:18 +0000)]
Add a ctor that is compatible with the documented wxHelpController API
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71131
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 6 Apr 2012 19:51:23 +0000 (19:51 +0000)]
Handle Ctrl-O and Ctrl-L MSW wxWebView accelerators too.
Do the same thing for them as for Ctrl-N, Ctrl-F and Ctrl-P, they are also
used by the control.
Closes #14192.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71123
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 6 Apr 2012 19:51:20 +0000 (19:51 +0000)]
Remove special setup_gccxml.h for GCCXML.
This file doesn't seem to be needed and the open() declaration in it actually
results in errors when using the latest gccxml from cvs under Windows, so just
get rid of it entirely.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71122
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Fri, 6 Apr 2012 18:07:10 +0000 (18:07 +0000)]
fixes #14193
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71120
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 5 Apr 2012 22:27:36 +0000 (22:27 +0000)]
Set the menu itself as event object for EVT_MENU_{OPEN,CLOSED} in wxMSW.
Make wxMSW consistent with the other ports and set the menu itself, not the
window it is attached to, as the event object for the menu open/close events.
See #1595.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71115
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 5 Apr 2012 22:27:32 +0000 (22:27 +0000)]
Reuse wxMenu::SendEvent() from wxFrameBase::ProcessCommand().
Not only this avoids code duplication but it also fixes wrong code in
wxFrameBase version as it set the event object incorrectly to the frame itself
instead of setting it to the menu.
Added event object check to the menu events unit test.
Closes #1595.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71114
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 5 Apr 2012 22:27:29 +0000 (22:27 +0000)]
Add a very simple unit test checking for menu events.
Just verify that an event with the expected id was generated. The test will be
extended later to test for other event fields such as its source object,
see #1595.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71113
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 5 Apr 2012 22:27:26 +0000 (22:27 +0000)]
Use wxFrame::FindItemInMenuBar() in ProcessCommand().
Don't duplicate FindItemInMenuBar() code in ProcessCommand() and, more
importantly, use the overridden version of FindItemInMenuBar() in MDI parent
frame in wxMSW to allow using ids corresponding to the active child frame menu
items.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71112
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 5 Apr 2012 18:40:23 +0000 (18:40 +0000)]
Don't change the icon when editing wxDataViewIconText cells in generic version.
wxDataViewIconTextRenderer changed the icon to that of the last item drawn by
it when editing a cell. Fix this by getting the original icon directly from
the model instead of from the last item.
Closes #14187.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71105
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 5 Apr 2012 18:40:20 +0000 (18:40 +0000)]
Hide combobox popup when it is hidden itself in wxMSW.
It was possible to hide the main part of a combobox control but keep its popup
shown and this notably happened in wxGrid when TAB was pressed while a
wxChoice cell editor was dropped down.
Avoid this Cheshire combobox syndrome by explicitly dismissing the popup when
a combobox is hidden.
Closes #3113.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71104
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 5 Apr 2012 18:40:15 +0000 (18:40 +0000)]
Refactor: move wxComboBox::MSWDoPopupOrDismiss() down to wxChoice.
No real changes, just make this method available in wxChoice for the next
commit needs.
See #3113.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71103
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 5 Apr 2012 18:40:11 +0000 (18:40 +0000)]
Remove support for MetroWerks CodeWarrior compiler.
This compiler doesn't exist any more and was probably unsupported even in 2.8,
let alone 2.9, so remove all the __MWERKS__ tests to simplify things.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71102
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 5 Apr 2012 18:40:00 +0000 (18:40 +0000)]
Remove wrong const from wxMenu::GetMenuItems() documentation.
Only one of the overloads is const.
Closes #14169.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71101
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 5 Apr 2012 18:39:57 +0000 (18:39 +0000)]
No real changes, just remove wxIsDebuggerRunning() stub from wxOSX.
There is no need to have a stub here when we already have in wx/debug.h, just
remove it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71100
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 5 Apr 2012 13:55:56 +0000 (13:55 +0000)]
Fix handling of the main window of composite controls in wxMSW wxToolTip.
The main window itself should be added using DoAddHWND() and not
AddOtherWindow() as it is not, precisely, "other". This fixes removing and
updating it twice unnecessarily.
Closes #14184.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71097
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 5 Apr 2012 13:55:51 +0000 (13:55 +0000)]
No real changes, just use clearer names for wxMSW wxToolTip methods.
Rename wxToolTip::DoAddOtherWindow() to DoAddHWND() as it should be used for
adding any window associated with the tooltip, either the main or an auxiliary
one. And rename wxToolTip::Add() to AddOtherWindow() because it shouldn't be
used for the main window.
See #14184.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71096
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Thu, 5 Apr 2012 13:55:43 +0000 (13:55 +0000)]
Really fix source coordinates handling in wxDC::Blit() in wxMSW.
It turns out that the changes r71028 were unnecessary (and actually harmful)
in most cases, they're only needed when a DIB is used as a source DC. So move
the manual coordinates adjustments to the branch of code using StretchDIBits()
and don't do it anywhere else.
Also don't list this as an incompatible change as wxMSW actually already
worked as the other ports in the majority of cases and list it as a simple bug
fix instead.
Closes #14188.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71095
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Wed, 4 Apr 2012 23:22:53 +0000 (23:22 +0000)]
Add wxAffineMatrix2DBase class.
If a class is used somewhere as parameter or return value types then it needs to be documented, at least for Phoenix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71092
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 4 Apr 2012 22:30:30 +0000 (22:30 +0000)]
Fix wxRadioButtons without explicit wxRB_GROUP styles in wxGTK.
If two radio buttons are created consecutively, they should be part of the
same radio group, even if wxRB_GROUP hadn't been explicitly used for the first
of them.
Do this is for consistency with wxMSW and also because the alternative
behaviour doesn't make much sense.
Also stop iterating too far backwards when searching for the group to be used
for a new radio button and add comments explaining what's going on here.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71091
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 4 Apr 2012 22:16:24 +0000 (22:16 +0000)]
Remove obsolete header used only with CodeWarrior MetroWerks compiler.
This compiler doesn't exist for modern OS X systems, no need to have the
headers used only with it as they just clatter the include directory and
confuse various tools parsing wx headers.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71090
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 4 Apr 2012 14:36:45 +0000 (14:36 +0000)]
Avoid overflowing the wake up when handling events in Unix console apps.
Generating many wake ups from the worker threads could result in overflowing
the buffer of the pipe used to communicate with the main thread which, in
turn, resulted in other serious problems (deadlocks...).
Avoid this by only writing to the pipe if it is empty.
Closes #14166.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71089
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Wed, 4 Apr 2012 14:36:39 +0000 (14:36 +0000)]
No changes, just categorize change log entry correctly.
wxThread::SetConcurrency() should be in the non-GUI part, not wxUniv one.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71088
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 3 Apr 2012 11:50:23 +0000 (11:50 +0000)]
Don't link with QuickTime framework in 64 bit wxOSX builds.
This framework doesn't exist in 64 bits and so using it results in a warning
when building 64 bit libraries. Avoid this by omitting it if we are sure that
we target 64 bits only.
Closes #14144.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71086
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Tue, 3 Apr 2012 11:50:19 +0000 (11:50 +0000)]
Added wxGraphicsContext::CreateMatrix(wxAffineMatrix2D) overload.
Make it easy to convert generic wxAffineMatrix2D to native wxGraphicsMatrix.
Closes #13188.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71085
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Jouk Jansen [Tue, 3 Apr 2012 06:25:03 +0000 (06:25 +0000)]
Update Makefile for OpenVMS
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71084
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 2 Apr 2012 18:26:03 +0000 (18:26 +0000)]
Override DoThaw() in wxAuiNotebook correctly.
Don't "override" Thaw() in wxAuiNotebook as it's not virtual any more.
Override DoThaw() instead.
Also use wxBookCtrlBase instead of wxControl as the base class.
Closes #14179.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71081
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 2 Apr 2012 16:07:44 +0000 (16:07 +0000)]
Document wxStreamBuffer::BufMode enum and fix dtor.
Document the enum as it's used as parameter type by other methods and so needs
to be declared to make the header parsable.
Also fix wxStreamBuffer dtor documentation which was missing a tilde.
Closes #14174.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71080
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 2 Apr 2012 16:07:41 +0000 (16:07 +0000)]
Fix wxArrayString::Item() and Last() documentation.
Document both const and non-const versions of the methods.
Closes #14173.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71079
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 2 Apr 2012 16:07:38 +0000 (16:07 +0000)]
Fix wxURI::HasUserInfo() name in the documentation.
Use the correct name of an existing method instead of HasUser().
Closes #14172.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71078
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 2 Apr 2012 16:07:34 +0000 (16:07 +0000)]
Fix wxTextFile::GetLine() documentation.
Document both const and non-const overloads of this method instead of having
some strange (and non-existent) chimera of the two.
Closes #14171.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71077
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 2 Apr 2012 16:07:31 +0000 (16:07 +0000)]
Remove wrong consts from wxTextFile::Open() documentation.
Open() is a non-const method.
See #14171.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71076
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 2 Apr 2012 16:07:28 +0000 (16:07 +0000)]
Correct the return type of wxPersistenceManager methods in the documentation.
DisableSaving() and DisableRestoring() don't return anything.
Closes #14170.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71075
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Mon, 2 Apr 2012 16:07:24 +0000 (16:07 +0000)]
Document pure virtual wxDropTarget methods correctly.
GetData(), OnData() and OnDrop() were not documented as being pure virtual.
Closes #14165.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71074
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 1 Apr 2012 17:27:15 +0000 (17:27 +0000)]
Vietnamese translations update from Trần Ngọc Quân.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71070
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Stefan Csomor [Sun, 1 Apr 2012 13:37:53 +0000 (13:37 +0000)]
correct text drawing with background brush, fixes #14161
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71069
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Sun, 1 Apr 2012 10:26:37 +0000 (10:26 +0000)]
Document wx{Single,Multi}ChoiceDialog styles in class documentation.
The styles should be documented in the class documentation, not the
documentation of individual constructors.
Closes #14162.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71068
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Sat, 31 Mar 2012 04:39:53 +0000 (04:39 +0000)]
Interface fixes for Phoenix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71061
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Sat, 31 Mar 2012 04:39:48 +0000 (04:39 +0000)]
Add NUM_CUSTOM
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71060
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Sat, 31 Mar 2012 04:39:43 +0000 (04:39 +0000)]
Add wxGenericProgressDialog
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71059
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Robin Dunn [Fri, 30 Mar 2012 18:29:03 +0000 (18:29 +0000)]
Add missing dirctrl interface items for Phoenix
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71057
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775
Vadim Zeitlin [Fri, 30 Mar 2012 12:16:58 +0000 (12:16 +0000)]
Return run-time zlib version from wxGetZlibVersionInfo().
Return the version really used instead of the version the code was compiled
against.
Incidentally, this avoids the use of ZLIB_VERNUM not available in old (1.1)
versions of zlib, thus fixing compilation under Solaris 10.
Closes #14158.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71056
c3d73ce0 -8a6f-49c7-b76d-
6d57e0e08775