wxWidgets.git
12 years agoDon't make private wxGraphicsContext-derived classes dynamically creatable.
Vadim Zeitlin [Sun, 9 Oct 2011 22:07:13 +0000 (22:07 +0000)] 
Don't make private wxGraphicsContext-derived classes dynamically creatable.

This doesn't make any sense because classes such as wxGDIPlusContext,
wxGDIPlusMeasuringContext and wxMacCoreGraphicsContext are private and don't
need to be creatable by name (only renderers potentially need to be) and was
inconsistent with Unix/Cairo backend in which these classes were not dynamic.

So remove wxRTTI macros from them in wxMSW/wxOSX as well as this allows us to
get rid of unnecessary default ctors.

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

12 years agoFixed non-existent wxCairoContext default ctor.
Vadim Zeitlin [Sun, 9 Oct 2011 22:07:10 +0000 (22:07 +0000)] 
Fixed non-existent wxCairoContext default ctor.

wxCairoContext class declared default ctor which wasn't implemented and even
couldn't be implemented because its base class didn't have any default ctor
neither.

Fix this by providing a ctor taking wxGraphicsRenderer* and implement it.

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

12 years agoAdded wxGraphicsBitmap::ConvertToImage().
Vadim Zeitlin [Sun, 9 Oct 2011 22:07:07 +0000 (22:07 +0000)] 
Added wxGraphicsBitmap::ConvertToImage().

Allow to convert wxGraphicsBitmap directly to wxImage, without passing by
wxBitmap.

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

12 years agoNo changes, just refactor wxCairoBitmapData ctor.
Vadim Zeitlin [Sun, 9 Oct 2011 22:07:04 +0000 (22:07 +0000)] 
No changes, just refactor wxCairoBitmapData ctor.

Extract the code for buffer and surface creation into separate helper
functions so that they could be reused by other constructors (to be added in
the next commits).

Also use cairo_format_stride_for_width(), if available, to compute the stride
for the surfaces we create instead of hard coding 4*width.

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

12 years agoDocument wxGraphicsBitmap and methods involving it.
Vadim Zeitlin [Sun, 9 Oct 2011 22:07:01 +0000 (22:07 +0000)] 
Document wxGraphicsBitmap and methods involving it.

Document wxGraphics{Context,Renderer}::CreateBitmap() and CreateSubBitmap()
and wxGraphicsContext::DrawBitmap() as well as the (trivial) class itself.

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

12 years agoImplement EVT_MOUSE_CAPTURE_LOST handling for wxPopupTransientWindow.
Vadim Zeitlin [Sun, 9 Oct 2011 22:02:05 +0000 (22:02 +0000)] 
Implement EVT_MOUSE_CAPTURE_LOST handling for wxPopupTransientWindow.

Handle mouse capture lost events instead of polling for the mouse status in
EVT_IDLE handler. This is not only more efficient but also catches the cases
when the capture was lost before OnIdle() could be executed which could result
in assertion failures and, before the previous commit, even crashes.

The idle-time code is still used for wxOSX/Carbon because it doesn't seem to
generate mouse capture loss events currently -- but should be removed as soon
as support for these events is added.

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

12 years agoImplement delayed destruction for wxPopupTransientWindow.
Vadim Zeitlin [Sun, 9 Oct 2011 22:02:02 +0000 (22:02 +0000)] 
Implement delayed destruction for wxPopupTransientWindow.

Windows of this class can be destroyed at any moment, even while some events
are still being processed, so delay the real destruction until we can be sure
that it's safe to delete the window.

This fixes problems (crashes due to dangling pointers) when the object is
deleted from the overridden OnDismiss(), for example.

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

12 years agoFix inheriting parent background colour in wxPanel in wxMSW.
Vadim Zeitlin [Sun, 9 Oct 2011 22:01:57 +0000 (22:01 +0000)] 
Fix inheriting parent background colour in wxPanel in wxMSW.

wxPanel didn't inherit the background colour set for its parent any more in
wxMSW because its HasTransparentBackground() didn't return true unless the
panel was a child of wxNotebook. This was wrong because not only themed
notebook background should be inherited but also any solid background
explicitly set for a panel parent.

Fix this by returning true from MSWHasInheritableBackground(), which is used
by wxPanel::HasTransparentBackground() under MSW, if the window has an
explicitly set and inheritable background colour.

Closes #13487.

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

12 years agoReturn true from wxDataViewMainWindow::ItemDeleted().
Václav Slavík [Sun, 9 Oct 2011 13:07:10 +0000 (13:07 +0000)] 
Return true from wxDataViewMainWindow::ItemDeleted().

Presumably, 'false' indicates failure, but there's no failure here: if
an item is not visible, because its parent wasn't expanded yet, it's
perfectly OK that we don't need to do anything.

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

12 years agoReuse existing MinGW defines for all compilers that are missing them.
Steve Lamerton [Sun, 9 Oct 2011 10:45:16 +0000 (10:45 +0000)] 
Reuse existing MinGW defines for all compilers that are missing them.

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

12 years agoInterface updates for Phoenix. Add wxNativeFontInfo.
Robin Dunn [Sun, 9 Oct 2011 01:28:20 +0000 (01:28 +0000)] 
Interface updates for Phoenix.  Add wxNativeFontInfo.

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

12 years agoWork around the fact that wxWebViewIE doesn't send page changing and page changed...
Steve Lamerton [Fri, 7 Oct 2011 21:25:59 +0000 (21:25 +0000)] 
Work around the fact that wxWebViewIE doesn't send page changing and page changed events during a refresh, yet IsBusy returns true.

Closes #13518

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

12 years agoHandle inline editing in generic wxDataViewCtrl as Windows 7 does.
Václav Slavík [Fri, 7 Oct 2011 17:24:06 +0000 (17:24 +0000)] 
Handle inline editing in generic wxDataViewCtrl as Windows 7 does.

Mimic the behavior of Windows 7's Explorer: edit the item that has focus
if it is selected or the first selected item if focus is out of
selection.

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

12 years agoAdd columns focus and keyboard navigation to generic wxDataViewCtrl.
Václav Slavík [Fri, 7 Oct 2011 15:03:02 +0000 (15:03 +0000)] 
Add columns focus and keyboard navigation to generic wxDataViewCtrl.

The UI tries to mimic Windows 7's Explorer's approach as much as
possible, taking inspiration in the GTK+ implementation when
appropriate. In particular, as long as the user doesn't use horizontal
navigation keys, everything looks as before and the user isn't bothered
with the existence of per-cell focus.

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

12 years agoAllow selected symbol to be scrolled into view initially
Julian Smart [Fri, 7 Oct 2011 03:51:23 +0000 (03:51 +0000)] 
Allow selected symbol to be scrolled into view initially

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

12 years agoFix various GCC warnings in wxWebView.
Steve Lamerton [Thu, 6 Oct 2011 17:55:43 +0000 (17:55 +0000)] 
Fix various GCC warnings in wxWebView.

Closes #13532

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

12 years agoEnsure we pass the correct type of string to EscapeFileNameCharsInURL in wxWebViewArc...
Steve Lamerton [Thu, 6 Oct 2011 10:01:17 +0000 (10:01 +0000)] 
Ensure we pass the correct type of string to EscapeFileNameCharsInURL in wxWebViewArchiveHandler.

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

12 years agoDelete the filesystem used by wxWebViewArchiveHandler when we are done with it. Fixes...
Steve Lamerton [Wed, 5 Oct 2011 21:21:51 +0000 (21:21 +0000)] 
Delete the filesystem used by wxWebViewArchiveHandler when we are done with it. Fixes a memory leak.

Closes #13500

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

12 years agoStore a pointer to each ClassFactory so we can correctly release it when the browser...
Steve Lamerton [Wed, 5 Oct 2011 17:23:51 +0000 (17:23 +0000)] 
Store a pointer to each ClassFactory so we can correctly release it when the browser closes. This fixes a few more memory leaks.

See #13500

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

12 years agoDelete the timer on close in the wxWebView sample. Fixes another memory leak.
Steve Lamerton [Wed, 5 Oct 2011 08:05:42 +0000 (08:05 +0000)] 
Delete the timer on close in the wxWebView sample. Fixes another memory leak.

See #13500

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

12 years agoAdd Get|SetPrintMode
Robin Dunn [Tue, 4 Oct 2011 21:37:06 +0000 (21:37 +0000)] 
Add Get|SetPrintMode

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

12 years agoFix wxTimePickerCtrl compilation without PCH too.
Vadim Zeitlin [Tue, 4 Oct 2011 17:03:28 +0000 (17:03 +0000)] 
Fix wxTimePickerCtrl compilation without PCH too.

Include commctrl.h explicitly when not using PCH (this completes fixes of
r69293).

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

12 years agoInterface fixes for Phoenix
Robin Dunn [Tue, 4 Oct 2011 07:45:08 +0000 (07:45 +0000)] 
Interface fixes for Phoenix

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

12 years agoFix wxDateTimePickerCtrl compilation without PCH.
Vadim Zeitlin [Sun, 2 Oct 2011 17:39:21 +0000 (17:39 +0000)] 
Fix wxDateTimePickerCtrl compilation without PCH.

Include the MSW private headers usually included from the PCH file.

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

12 years agoAdd new definitions required by MinGW for webview. Re-enable custom schemes as a...
Steve Lamerton [Sun, 2 Oct 2011 16:20:15 +0000 (16:20 +0000)] 
Add new definitions required by MinGW for webview. Re-enable custom schemes as a result.

See #13509

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

12 years agoFix current field highlighting in generic wxTimePickerCtrl under wxGTK.
Vadim Zeitlin [Sun, 2 Oct 2011 13:15:19 +0000 (13:15 +0000)] 
Fix current field highlighting in generic wxTimePickerCtrl under wxGTK.

In wxGTK, calling HighlightCurrentField() from EVT_SET_FOCUS handler was not
enough as the highlighting was overwritten by the default behaviour of
selecting the entire text control contents on focus gain.

Fix this by calling SetFocus() from HighlightCurrentField() before updating
the selection. This ensures that the correct field is always highlighted.

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

12 years agoAdded GTK+ screenshot of wxTimePickerCtrl.
Vadim Zeitlin [Sun, 2 Oct 2011 12:58:52 +0000 (12:58 +0000)] 
Added GTK+ screenshot of wxTimePickerCtrl.

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

12 years agoUse wxSP_WRAP for generic wxTimePicker spin button.
Vadim Zeitlin [Sun, 2 Oct 2011 12:58:48 +0000 (12:58 +0000)] 
Use wxSP_WRAP for generic wxTimePicker spin button.

This ensures that the spin button arrows are always enabled, as they should
be, even under wxGTK where wxSpinButton disables its arrows on its own if its
value reaches the end of its range and wxSP_WRAP is not used.

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

12 years agoRemove copied class definitions from missing.h. Disable custom scheme handling under...
Steve Lamerton [Sun, 2 Oct 2011 12:21:22 +0000 (12:21 +0000)] 
Remove copied class definitions from missing.h. Disable custom scheme handling under MinGW as it lacks the correct definitions.

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

12 years agoPut wxWebView library addition on top of changes list.
Vadim Zeitlin [Sun, 2 Oct 2011 11:32:20 +0000 (11:32 +0000)] 
Put wxWebView library addition on top of changes list.

This list is supposed to be roughly in importance order.

Also add a period at the end of wxAuiNotebook entry, let's try to be
consistent about using them.

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

12 years agoFix setting tooltips for wxSearchCtrl and other composite controls.
Vadim Zeitlin [Sun, 2 Oct 2011 11:28:54 +0000 (11:28 +0000)] 
Fix setting tooltips for wxSearchCtrl and other composite controls.

Propagate SetToolTip() call on wxCompositeWindow to all subwindows to ensure
that the tooltip is shown for all parts of the window.

Notice that this is still not ideal as the tooltip temporarily disappears when
mouse moves from one subwindow to another, instead of staying in place as it
does with "monolithic" windows and ideally we should find a way to avoid it
(should be possible at least under MSW with TTM_RELAYEVENT) but for now this
is already much better than nothing.

Closes #13523.

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

12 years agoAdd wxWindowBase::CopyToolTip() method.
Vadim Zeitlin [Sun, 2 Oct 2011 11:28:45 +0000 (11:28 +0000)] 
Add wxWindowBase::CopyToolTip() method.

This method simply sets the same tooltip for the window but making copy of,
instead of taking ownership of, the wxToolTip passed in.

It's not especially useful on its own but is needed by wxCompositeWindow and
might be handy elsewhere.

See #13523.

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

12 years agoRestore correct wxSearchCtrl size in wxMSW after wxTextCtrl changes.
Vadim Zeitlin [Sun, 2 Oct 2011 11:28:40 +0000 (11:28 +0000)] 
Restore correct wxSearchCtrl size in wxMSW after wxTextCtrl changes.

The code in generic wxSearchCtrl implementation was broken by the changes of
r69066 which deccreased the best height of border-less text controls.

Ideally we should probably change wxSearchCtrl::LayoutControls() to not be
sensitive at all to the exact value returned from wxTextCtrl::GetBestSize()
and just always centre everything vertically but this doesn't look simple to
do with the current code so just override wxSearchTextCtrl::DoGetBestSize() to
return the same size as wxTextCtrl used to return before to fix this for now.

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

12 years agoFix harmless warnings in hot key code in wxOSX.
Vadim Zeitlin [Sun, 2 Oct 2011 11:28:36 +0000 (11:28 +0000)] 
Fix harmless warnings in hot key code in wxOSX.

Don't compare signed and unsigned variables if possible (insert a cast in one
place where it wasn't).

Put WXUNUSED() around the unused parameters.

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

12 years agoFix harmless gcc initialization order warning.
Vadim Zeitlin [Sun, 2 Oct 2011 11:28:32 +0000 (11:28 +0000)] 
Fix harmless gcc initialization order warning.

Put the initializes in wxDataViewTreeNode constructor initialization list in
order of their declaration.

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

12 years agozh_TW translation update from cw.ahbong.
Vadim Zeitlin [Sun, 2 Oct 2011 11:27:20 +0000 (11:27 +0000)] 
zh_TW translation update from cw.ahbong.

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

12 years agoDerive wxAuiNotebook from wxBookCtrlBase. Document wxAuiNotebookEvent which now deriv...
Steve Lamerton [Sun, 2 Oct 2011 10:29:00 +0000 (10:29 +0000)] 
Derive wxAuiNotebook from wxBookCtrlBase. Document wxAuiNotebookEvent which now derives from wxBookCtrlEvent. Update the notebook sample to add wxAuiNotebook as an option.

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

12 years agoAdd event descriptions to wxAuiNotebook.
Steve Lamerton [Sat, 1 Oct 2011 19:40:20 +0000 (19:40 +0000)] 
Add event descriptions to wxAuiNotebook.

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

12 years agoCorrectly initialise ref count in custom scheme class factory.
Steve Lamerton [Sat, 1 Oct 2011 19:22:28 +0000 (19:22 +0000)] 
Correctly initialise ref count in custom scheme class factory.

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

12 years agoUse wxAlphaPixelData if the source bitmap depth is 32 or if on wxGTK and there is...
Robin Dunn [Fri, 30 Sep 2011 23:40:02 +0000 (23:40 +0000)] 
Use wxAlphaPixelData if the source bitmap depth is 32 or if on wxGTK and there is a mask.  Add a separate pass on MSW if there is a mask to adjust the cairo surface's alpha to match the mask.

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

12 years agoFix the comparison direction in wxTextAttr::BitlistsEqPartial().
Vadim Zeitlin [Fri, 30 Sep 2011 15:26:39 +0000 (15:26 +0000)] 
Fix the comparison direction in wxTextAttr::BitlistsEqPartial().

The comparison was apparently reversed.

Closes #13521.

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

12 years agoFix assert in initial call to wxPostScriptDC::SetPen().
Vadim Zeitlin [Fri, 30 Sep 2011 15:26:36 +0000 (15:26 +0000)] 
Fix assert in initial call to wxPostScriptDC::SetPen().

Attempt to use wxPen::GetStyle() on the initially invalid pen resulted in an
assert, so don't do it and test for pen validity explicitly.

Closes #13524.

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

12 years agoCreate setup.h when building wxscintilla library.
Vadim Zeitlin [Fri, 30 Sep 2011 15:26:31 +0000 (15:26 +0000)] 
Create setup.h when building wxscintilla library.

This library includes some wx headers and so setup.h must be available when
it's being compiled but there was no rule to copy it in its projects, so add
it now.

Closes #13526.

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

12 years agoupdates for OpenVMS
Jouk Jansen [Fri, 30 Sep 2011 14:00:52 +0000 (14:00 +0000)] 
updates for OpenVMS

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

12 years agoUpdate OpenVMS compile support
Jouk Jansen [Fri, 30 Sep 2011 06:05:00 +0000 (06:05 +0000)] 
Update OpenVMS compile support

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

12 years agoUpdate setup fort OpenVMS
Jouk Jansen [Thu, 29 Sep 2011 14:19:09 +0000 (14:19 +0000)] 
Update setup fort OpenVMS

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

12 years agoFixes for OpenVMS on IA64
Jouk Jansen [Thu, 29 Sep 2011 13:47:38 +0000 (13:47 +0000)] 
Fixes for OpenVMS on IA64

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

12 years agoAdded XRC handler for wxTimePickerCtrl.
Vadim Zeitlin [Thu, 29 Sep 2011 13:43:23 +0000 (13:43 +0000)] 
Added XRC handler for wxTimePickerCtrl.

Add a trivial handler modeled after the existing wxDateCtrlXmlHandler.

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

12 years agoAdd wxTimePickerCtrl class.
Vadim Zeitlin [Thu, 29 Sep 2011 13:43:15 +0000 (13:43 +0000)] 
Add wxTimePickerCtrl class.

Implement wxTimePickerCtrl natively for MSW and add a generic implementation
(very loosely based on the original class by Paul Breen) for the other
platforms.

Also update the calendar sample to show the new control.

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

12 years agoCorrect wxDatePickerCtrl::GetValue() documentation and other minor fixes.
Vadim Zeitlin [Thu, 29 Sep 2011 13:43:05 +0000 (13:43 +0000)] 
Correct wxDatePickerCtrl::GetValue() documentation and other minor fixes.

The documentation for this method seems to have been copy-and-pasted from
somewhere else and didn't make any sense.

Also don't say that this control doesn't have any control-specific styles when
it does.

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

12 years agoRefactor wxDatePickerCtrl to derive from wxDateTimePickerCtrl.
Vadim Zeitlin [Thu, 29 Sep 2011 13:43:02 +0000 (13:43 +0000)] 
Refactor wxDatePickerCtrl to derive from wxDateTimePickerCtrl.

No real changes, just refactor wxMSW wxDatePickerCtrl to allow sharing code
with the upcoming wxTimePickerCtrl class. Even less changes for the other
platforms where wxDateTimePickerCtrl is trivial.

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

12 years agoVC6 compilation fixes for wxTreeListCtrl.
Vadim Zeitlin [Thu, 29 Sep 2011 12:29:38 +0000 (12:29 +0000)] 
VC6 compilation fixes for wxTreeListCtrl.

For some reason comparing wxTreeListItem with its associated Type doesn't work
when using VC6 ("error C2593: 'operator ==' is ambiguous") so help the compiler
to do it.

Also remove the unnecessary (and unsupported by VC6) return from void function.

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

12 years agoFixed caret sizing problem around large objects by clipping the caret to the margins
Julian Smart [Thu, 29 Sep 2011 12:05:21 +0000 (12:05 +0000)] 
Fixed caret sizing problem around large objects by clipping the caret to the margins

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

12 years agoDon't always use the Cairo context for wxGCDC(wxMemoryDC). If a Cairo context is...
Robin Dunn [Thu, 29 Sep 2011 07:28:04 +0000 (07:28 +0000)] 
Don't always use the Cairo context for wxGCDC(wxMemoryDC).  If a Cairo context is wanted then the wxGCDC(wxGraphicsContext*) ctor should be used instead.  (I thought I had removed this code with my last commit of this file...)

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

12 years agoDelete the menu on close in the wxWebView sample. Fixes most of the memory leaks.
Steve Lamerton [Wed, 28 Sep 2011 19:44:35 +0000 (19:44 +0000)] 
Delete the menu on close in the wxWebView sample. Fixes most of the memory leaks.

See #13500

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

12 years agoFix compilation of wxWebView under mingw by adding missing definitions and dynamicall...
Steve Lamerton [Wed, 28 Sep 2011 14:54:56 +0000 (14:54 +0000)] 
Fix compilation of wxWebView under mingw by adding missing definitions and dynamically loading urlmon.

Fixes #13509

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

12 years agocorrecting typo in previous commit
Jouk Jansen [Wed, 28 Sep 2011 09:46:02 +0000 (09:46 +0000)] 
correcting typo in previous commit

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

12 years agoInclude support for OpenVMS IA64
Jouk Jansen [Wed, 28 Sep 2011 06:02:21 +0000 (06:02 +0000)] 
Include support for OpenVMS IA64

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

12 years agogiving in on native undo integration, as we don't have a NSUndoManager, fixes #13431
Stefan Csomor [Tue, 27 Sep 2011 07:21:44 +0000 (07:21 +0000)] 
giving in on native undo integration, as we don't have a NSUndoManager, fixes #13431

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

12 years agoCorrecting typo in commit 69203
Jouk Jansen [Tue, 27 Sep 2011 07:14:49 +0000 (07:14 +0000)] 
Correcting typo in commit 69203

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

12 years agoUpdate openVMS compile support
Jouk Jansen [Tue, 27 Sep 2011 05:56:37 +0000 (05:56 +0000)] 
Update openVMS compile support

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

12 years agoMore interface updates for Phoenix
Robin Dunn [Tue, 27 Sep 2011 03:34:29 +0000 (03:34 +0000)] 
More interface updates for Phoenix

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

12 years agoDisable webview on OpenVMS
Jouk Jansen [Mon, 26 Sep 2011 14:28:32 +0000 (14:28 +0000)] 
Disable webview on OpenVMS

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

12 years agoDon't use `install -d` to create directories.
Václav Slavík [Sun, 25 Sep 2011 15:48:50 +0000 (15:48 +0000)] 
Don't use `install -d` to create directories.

Always use `mkdir -p`, as install is problematic with regard to
permissions.

Fixes #13452.

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

12 years agoadding missing autorelease pool, since this can be called from anywhere, fixes #13449
Stefan Csomor [Sun, 25 Sep 2011 12:14:52 +0000 (12:14 +0000)] 
adding missing autorelease pool, since this can be called from anywhere, fixes #13449

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

12 years agoFix missing or broken interface items for Phoenix
Robin Dunn [Sun, 25 Sep 2011 04:30:49 +0000 (04:30 +0000)] 
Fix missing or broken interface items for Phoenix

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

12 years agoAdd support for handling new multi-arch under Debian.
Vadim Zeitlin [Fri, 23 Sep 2011 22:33:17 +0000 (22:33 +0000)] 
Add support for handling new multi-arch under Debian.

The libraries are now in /usr/lib/arch-linux-gnu and not /usr/lib{32,64} so
check for them there too.

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

12 years agoFix inconsistent DLL export declaration for wxBannerWindowNameStr too.
Vadim Zeitlin [Fri, 23 Sep 2011 12:15:58 +0000 (12:15 +0000)] 
Fix inconsistent DLL export declaration for wxBannerWindowNameStr too.

This variable is defined in "adv" library, not "core".

This is similar to the fix of r69184.

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

12 years agoFix inconsistent DLL export declaration for wxTreeListCtrlNameStr.
Vadim Zeitlin [Thu, 22 Sep 2011 12:53:47 +0000 (12:53 +0000)] 
Fix inconsistent DLL export declaration for wxTreeListCtrlNameStr.

This variable is defined in "adv" library, not "core".

See #13502.

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

12 years agoImprove appearance of wxTreeListCtrl during live resizing.
Vadim Zeitlin [Thu, 22 Sep 2011 10:36:01 +0000 (10:36 +0000)] 
Improve appearance of wxTreeListCtrl during live resizing.

When using the generic wxDataViewCtrl version, forcefully refresh it after
changing its size to avoid artefacts during resizing of wxTreeListCtrl.

Closes #13502.

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

12 years agoAlways give all the remaining space to the first wxTreeListCtrl column.
Vadim Zeitlin [Thu, 22 Sep 2011 10:35:58 +0000 (10:35 +0000)] 
Always give all the remaining space to the first wxTreeListCtrl column.

Under GTK the columns of wxDataViewCtrl (and hence wxTreeListCtrl) are always
resized to cover the entire control width. For consistency, also do it under
the other platforms and give the remaining space to the first column and not
to the last one as GTK does by default, as the first column is more important.

Do this even if this results in reducing the size of the column: presumably,
if the entire control itself can be resized, the user wouldn't bother resizing
the columns and, on the contrary, if the user did resize the columns, the
entire control size is unlikely to change, so in practice we don't risk
overriding the user preferences and reducing as well as increasing the first
column width works much better by default as it doesn't leave the other
columns invisible after making the control wider and than reverting it back to
its initial, more narrow, state again.

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

12 years agoFix scrolling in small wxVListBox with tall items.
Vadim Zeitlin [Wed, 21 Sep 2011 15:08:10 +0000 (15:08 +0000)] 
Fix scrolling in small wxVListBox with tall items.

Scrolling in a small wxVListBox with tall items (i.e. taller than the height
of wxVListBox itself) behaved wrongly: wrong item was being scrolled into view
and Page Up/Down didn't scroll as much as they should.

Fix both of these problems by checking for these corner cases explicitly.

Closes #13454.

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

12 years agoReplace erroneous comma with a semicolon in keyboard sample.
Vadim Zeitlin [Wed, 21 Sep 2011 15:08:06 +0000 (15:08 +0000)] 
Replace erroneous comma with a semicolon in keyboard sample.

Fix typo in the sample, comma was used instead of a semicolon. The code still
worked correctly but make it look correctly too now.

Closes #13453.

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

12 years agoChange wxSound ctor from in-memory data to use size_t/void *.
Vadim Zeitlin [Wed, 21 Sep 2011 15:08:02 +0000 (15:08 +0000)] 
Change wxSound ctor from in-memory data to use size_t/void *.

This constructor previously used int and, especially annoyingly, wxByte* for
the data. Use standard void* for untyped binary data instead.

Also document this ctor as it seems to be implemented in all ports.

Closes #13451.

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

12 years agoSend EVT_DATAVIEW_ITEM_CONTEXT_MENU events even when not clicking on an item.
Vadim Zeitlin [Wed, 21 Sep 2011 15:07:56 +0000 (15:07 +0000)] 
Send EVT_DATAVIEW_ITEM_CONTEXT_MENU events even when not clicking on an item.

Always send this event, even if the user right clicked outside of the client
area. This is useful for showing item-independent commands in the context
menu.

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

12 years agoImplement sorting in wxTreeListCtrl.
Vadim Zeitlin [Wed, 21 Sep 2011 15:07:53 +0000 (15:07 +0000)] 
Implement sorting in wxTreeListCtrl.

Allow the user to sort the control contents by clicking on the columns with
wxCOL_SORTABLE flag and also provide SetSortColumn() method to sort the
control programmatically.

Also add wxTreeListItemComparator class and SetItemComparator() method to
allow customizing the way the items are compared.

Update the sample to show how to define a custom comparator.

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

12 years agoReset previous sort column in generic wxDataViewColumn::SetSortOrder().
Vadim Zeitlin [Wed, 21 Sep 2011 15:07:49 +0000 (15:07 +0000)] 
Reset previous sort column in generic wxDataViewColumn::SetSortOrder().

The sort indicator on the column previously used for sorting was only reset
when the user clicked on the column header (by wxDataViewHeaderWindow code
that explicitly called wxDataViewCtrl::SetSortingColumnIndex()) but not when
wxDataViewCtrl::SetSortOrder() was called directly.

Fix this and take care of updating everything in SetSortOrder() itself. This
makes the code simpler and also means that calling SetSortOrder() from the
program now works as expected (it resulted in having sort indicators in two
columns at once before).

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

12 years agoRemove wxHeaderColumn::SetAsSortKey() and only use SetSortOrder().
Vadim Zeitlin [Wed, 21 Sep 2011 15:07:46 +0000 (15:07 +0000)] 
Remove wxHeaderColumn::SetAsSortKey() and only use SetSortOrder().

The two member functions, SetAsSortKey() and SetSortOrder(), were doing almost
the same thing but differently and the former was only used in the generic
wxDataViewCtrl implementation and not implemented in the native GTK/OS X one.

Remove SetAsSortKey() entirely and only keep UnsetAsSortKey() which is still
needed by generic/MSW wxDataViewCtrl. But only SetSortOrder() should now be
called to indicate that the column is used for sorting.

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

12 years agoAdd wxTreeListCtrl::GetView() and GetDataView().
Vadim Zeitlin [Wed, 21 Sep 2011 15:07:41 +0000 (15:07 +0000)] 
Add wxTreeListCtrl::GetView() and GetDataView().

It can be useful to have access to the window used to actually show the items
by wxTreeListCtrl, provide two accessors for m_view: a wxDataViewCtrl-specific
one and a generic one returning just a wxWindow that can be used to keep the
code isolated from wxDataViewCtrl.

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

12 years agoDon't limit window size to (0, 0) in wxSizer if getting display size failed.
Vadim Zeitlin [Wed, 21 Sep 2011 15:07:37 +0000 (15:07 +0000)] 
Don't limit window size to (0, 0) in wxSizer if getting display size failed.

It's possible that wxDisplay::GetClientArea() returns (0, 0) size indicating
that it failed. Don't set the maximal window size to (0, 0) in this case as
this prevents the user from seeing the window at all and just don't do
anything instead.

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

12 years agoRefresh wxDisplay when a monitor is added to or removed from the system.
Vadim Zeitlin [Wed, 21 Sep 2011 15:07:35 +0000 (15:07 +0000)] 
Refresh wxDisplay when a monitor is added to or removed from the system.

If a monitor was attached or detached while a wx program was running, the
monitor handles stored in wxDisplayFactoryMSW became invalid and all display
operations (e.g. getting display size) failed from this moment onwards
requiring a program restart to work again.

Fix this by updating the monitor handles when we get WM_SETTINGCHANGE as it is
sent when a monitor is added or removed (while it's also sent in quite a few
other cases re-enumerating the monitors shouldn't take very long so just do it
always).

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

12 years agoNo changes, just extract wxCreateHiddenWindow() declaration in a header.
Vadim Zeitlin [Wed, 21 Sep 2011 15:07:32 +0000 (15:07 +0000)] 
No changes, just extract wxCreateHiddenWindow() declaration in a header.

Add wx/msw/private/hiddenwin.h with wxCreateHiddenWindow() declaration instead
of declaring it manually in all the files using it.

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

12 years agoRemove pointless case insensitivity
Julian Smart [Tue, 20 Sep 2011 20:03:42 +0000 (20:03 +0000)] 
Remove pointless case insensitivity

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

12 years agoAdd GetExpanderColumnOrFirstOne() to avoid code duplication in generic wxDVC.
Vadim Zeitlin [Tue, 20 Sep 2011 18:37:11 +0000 (18:37 +0000)] 
Add GetExpanderColumnOrFirstOne() to avoid code duplication in generic wxDVC.

There were two strictly identical code snippets setting the expander column to
be the first one if it hadn't been set before, replace both of them with a
call to GetExpanderColumnOrFirstOne() function.

Also use this function instead of just GetExpanderColumn() (which might return
NULL) in a couple of places.

Notice that there are still a lot of places in the code where the column 0 is
hard coded as being the expander column, this would need to be fixed to really
support non-first expander column.

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

12 years agoReset the expander column when clearing columns in generic wxDVC.
Vadim Zeitlin [Tue, 20 Sep 2011 18:37:08 +0000 (18:37 +0000)] 
Reset the expander column when clearing columns in generic wxDVC.

The expander column becomes invalid when all columns are cleared, don't keep
a dangling pointer.

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

12 years agoMove ravnsgaards build to brandt32 while its down.
Michael Wetherell [Tue, 20 Sep 2011 17:25:55 +0000 (17:25 +0000)] 
Move ravnsgaards build to brandt32 while its down.

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

12 years agoMinor fixes to code examples in wxPropertyGrid documentation.
Vadim Zeitlin [Sun, 18 Sep 2011 20:28:37 +0000 (20:28 +0000)] 
Minor fixes to code examples in wxPropertyGrid documentation.

Fix typo in wxPGProperty name and add missing parameter of GetVIterator()
call.

Closes #13486.

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

12 years agoFix test for wxUSE_TREELISTCTRL in configure.
Vadim Zeitlin [Sun, 18 Sep 2011 20:26:38 +0000 (20:26 +0000)] 
Fix test for wxUSE_TREELISTCTRL in configure.

wxUSE_TREECTRL was wrongly used instead.

Closes #13470.

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

12 years agoFIx broken or missing interface items for Phoenix
Robin Dunn [Sun, 18 Sep 2011 04:38:01 +0000 (04:38 +0000)] 
FIx broken or missing interface items for Phoenix

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

12 years agoFix format specifiers used for "unsigned long" in wxPG code.
Vadim Zeitlin [Sat, 17 Sep 2011 11:06:15 +0000 (11:06 +0000)] 
Fix format specifiers used for "unsigned long" in wxPG code.

"unsigned long" quantities must be formatted using "%l[xou]" and not just
"%[xou]" as the latter doesn't work correctly on 64 bit platforms.

Closes #13447.

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

12 years agoChange wxDIALOG_NO_PARENT to avoid clash with wxICON_EXCLAMATION.
Vadim Zeitlin [Sat, 17 Sep 2011 11:06:11 +0000 (11:06 +0000)] 
Change wxDIALOG_NO_PARENT to avoid clash with wxICON_EXCLAMATION.

Use 0x20 (wxAPPLY) instead of 0x100 (wxICON_EXCLAMATION) for
wxDIALOG_NO_PARENT as otherwise using wxICON_EXCLAMATION with wxMessageBox in
wxGTK (and possibly other ports, although not wxMSW which doesn't honour
wxDIALOG_NO_PARENT for message boxes at all) resulted in not using the
specified parent for the message box and, as a side effect, not centering it
on its parent neither.

Closes #13464.

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

12 years agoAdd wxUSE_TREELISTCTRL checks to treelist.cpp itself.
Vadim Zeitlin [Sat, 17 Sep 2011 11:06:05 +0000 (11:06 +0000)] 
Add wxUSE_TREELISTCTRL checks to treelist.cpp itself.

The contents of this file was still compiled even when wxUSE_TREELISTCTRL was
turned off. Fix this by adding the missing "#if wxUSE_TREELISTCTRL" check
around it.

Closes #13470.

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

12 years agoFix the library of wxGenericDirCtrl in the documentation.
Vadim Zeitlin [Sat, 17 Sep 2011 11:06:01 +0000 (11:06 +0000)] 
Fix the library of wxGenericDirCtrl in the documentation.

Closes #13482.

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

12 years agoOnly define wxUSE_WEBVIEW if wxWebView is really available.
Vadim Zeitlin [Fri, 16 Sep 2011 22:44:17 +0000 (22:44 +0000)] 
Only define wxUSE_WEBVIEW if wxWebView is really available.

Don't define wxUSE_WEBVIEW in configure if WebKit is not available under Unix
(we should also check for wxUSE_WEBVIEW_IE under Windows later) and add the
check that either wxUSE_WEBVIEW_WEBKIT or wxUSE_WEBVIEW_IE is defined if
wxUSE_WEBVIEW is to wx/chkconf.h.

This makes it possible to just check for wxUSE_WEBVIEW instead of checking for
wxUSE_WEBVIEW && (wxUSE_WEBVIEW_IE || wxUSE_WEBVIEW_WEBKIT) as the code did
previously which was ugly and error-prone.

Also, define wxUSE_WEBVIEW_IE in configure under MSW. Currently this supposes
that the required IE headers/libraries are available which is probably wrong,
we should add checks for them later.

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

12 years agoCheck for wxUSE_WEBVIEW being defined.
Vadim Zeitlin [Fri, 16 Sep 2011 22:44:11 +0000 (22:44 +0000)] 
Check for wxUSE_WEBVIEW being defined.

All wxUSE_XXX options must be always defined as we test for them with #if and
not #ifdef, so check for this one too for consistency.

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

12 years agoFix wxFont::GetFaceName() for not realized yet fonts in wxMSW.
Vadim Zeitlin [Fri, 16 Sep 2011 22:44:04 +0000 (22:44 +0000)] 
Fix wxFont::GetFaceName() for not realized yet fonts in wxMSW.

GetFaceName() could be called for a font that hadn't been really used yet and
hence its wxFontRefData::m_hFont could be 0 and couldn't be used in
GetMSWFaceName().

Fix this by using GetHFONT() accessor instead of m_hFont directly to create
the font if necessary.

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

12 years agofixes for missing or broken interface items for Phoenix
Robin Dunn [Fri, 16 Sep 2011 17:03:01 +0000 (17:03 +0000)] 
fixes for missing or broken interface items for Phoenix

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

12 years agoFix int field of wxCommandEvents generated by menu items in wxMSW.
Vadim Zeitlin [Fri, 16 Sep 2011 13:23:14 +0000 (13:23 +0000)] 
Fix int field of wxCommandEvents generated by menu items in wxMSW.

Set the int field of wxCommandEvent generated by clicking on the menu items
correctly for not checkable items: it is supposed to be -1 and not 0 (which is
the value for checkable but currently unchecked items). This was already the
case for wxGTK and wxOSX and implied by the comments in the code.

Make wxMSW behave like this too and clearly document this behaviour.

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

12 years agoFix int field of wxCommandEvent generated by popup menu items in wxMSW.
Vadim Zeitlin [Fri, 16 Sep 2011 13:23:10 +0000 (13:23 +0000)] 
Fix int field of wxCommandEvent generated by popup menu items in wxMSW.

The intention of the code generating the event for popup menu items was to
pass false (0) or true (1) in the int field of wxCommandEvent to indicate
whether the item was checked or not but, because wxMenu::SendEvent() takes int
as second argument and not book, we passed either 0 or MF_CHECKED (== 8).

Fix this by correctly passing a boolean for checkable items.

See #11644.

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

12 years agoFix checked state for the popup menu items in the events generated by them.
Vadim Zeitlin [Fri, 16 Sep 2011 13:23:05 +0000 (13:23 +0000)] 
Fix checked state for the popup menu items in the events generated by them.

We incorrectly passed the sign-extended int id to ::GetMenuState() function
that expects an unsigned WORD id, so it never found the item if the WORD id
had the high bit set. Fix this by correctly passing the unsigned id to it.

Closes #11644.

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