]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
13 years agoDocument wxAuiManager styles and flags.
Vadim Zeitlin [Thu, 29 Dec 2011 22:05:50 +0000 (22:05 +0000)] 
Document wxAuiManager styles and flags.

Closes #13689.

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

13 years agoDisable VC8+ deprecation warnings for standard functions at bakefile level.
Vadim Zeitlin [Thu, 29 Dec 2011 22:05:46 +0000 (22:05 +0000)] 
Disable VC8+ deprecation warnings for standard functions at bakefile level.

We already define the symbols needed to disable the warnings in wx/defs.h but
this isn't enough for third party code not including it, so define them in the
project settings directly.

Closes #11009.

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

13 years agoAdd wxRibbonButtonBar::InsertXXXButton() methods.
Vadim Zeitlin [Thu, 29 Dec 2011 22:05:39 +0000 (22:05 +0000)] 
Add wxRibbonButtonBar::InsertXXXButton() methods.

Allow inserting buttons into the ribbon bar and not only appending them.

Closes #13811.

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

13 years agoAllow using wxEVT_UPDATE_UI with wxRibbonButtonBar.
Vadim Zeitlin [Thu, 29 Dec 2011 22:05:34 +0000 (22:05 +0000)] 
Allow using wxEVT_UPDATE_UI with wxRibbonButtonBar.

Generate wxUpdateUIEvent for the ribbon buttons to allow updating their state
using wxEVT_UPDATE_UI. Also update the same to show this.

Closes #12003.

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

13 years agoDon't send idle events to the windows about to be destroyed.
Vadim Zeitlin [Thu, 29 Dec 2011 22:05:31 +0000 (22:05 +0000)] 
Don't send idle events to the windows about to be destroyed.

This is useless and can apparently result in some problems as of r25877 and
r25877 (from 8 years ago) added explicit checks preventing processing such
events in wxToolBar and wxMenu. Instead, simply don't generate these events in
the first place and also remove the now unnecessary checks for them.

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

13 years agoBetter fix for wxSpinCtrlGeneric enabling/disabling bug in wxMSW.
Vadim Zeitlin [Thu, 29 Dec 2011 22:05:27 +0000 (22:05 +0000)] 
Better fix for wxSpinCtrlGeneric enabling/disabling bug in wxMSW.

To really ensure that the window containing the components of wxSpinCtrlGeneric
is never enabled under MSW (as we want to avoid this to ensure that any input
always goes to its children and not the window itself, see #12045), override
DoEnable() and not Enable(). This takes care of the case when the control gets
implicitly disabled because its parent is.

Closes #13142.

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

13 years agoStore row/column selection more appropriately in wxGrid.
Vadim Zeitlin [Thu, 29 Dec 2011 22:05:23 +0000 (22:05 +0000)] 
Store row/column selection more appropriately in wxGrid.

Use wxGridSelection::m_rowSelection and m_colSelection for storing the
selected rows/columns respectively instead of storing them in m_blockXXX
arrays. This makes more sense and allows to easily implement the proper
handling of Ctrl-clicking in the row or column selection modes.

Closes #12638.

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

13 years agoMention wxEVT_COMMAND_TOGGLEBUTTON_CLICKED explicitly in the documentation.
Vadim Zeitlin [Thu, 29 Dec 2011 22:05:19 +0000 (22:05 +0000)] 
Mention wxEVT_COMMAND_TOGGLEBUTTON_CLICKED explicitly in the documentation.

Document the event type together with the event table macro.

See #11943.

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

13 years agoDisplay help string for ribbon tools in a tool tip.
Vadim Zeitlin [Thu, 29 Dec 2011 22:05:15 +0000 (22:05 +0000)] 
Display help string for ribbon tools in a tool tip.

Show the help string of the ribbon item currently being hovered over in a
tooltip.

Closes #11879.

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

13 years agoDo not put semicolons after the definition of an inline function.
Stefan Neis [Thu, 29 Dec 2011 14:42:13 +0000 (14:42 +0000)] 
Do not put semicolons after the definition of an inline function.
Even though most compilers just ignore this, it's just wrong and if you
do get warnings about header files, they can become quite overwhelming.
Forward port of r70163.

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

13 years agoInclude some more declarations & defines.
Stefan Neis [Thu, 29 Dec 2011 14:36:22 +0000 (14:36 +0000)] 
Include some more declarations & defines.

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

13 years agoReordered "extern" and WXDLLIMPEXP_CORE specifiers; fixes #13816.
Stefan Neis [Thu, 29 Dec 2011 11:26:05 +0000 (11:26 +0000)] 
Reordered "extern" and WXDLLIMPEXP_CORE specifiers; fixes #13816.

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

13 years agoRestore wxEVT_MENU_CLOSE generation under Windows 95 after r70151.
Vadim Zeitlin [Wed, 28 Dec 2011 17:47:21 +0000 (17:47 +0000)] 
Restore wxEVT_MENU_CLOSE generation under Windows 95 after r70151.

WM_UNINITMENUPOPUP is "only" available since Windows 98/2000 so restore the
old code using WM_EXITMENULOOP as fall back, just to avoid any regressions for
people who might still be using these systems.

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

13 years agoCompilation fix for VC6 after r70151.
Vadim Zeitlin [Wed, 28 Dec 2011 17:32:32 +0000 (17:32 +0000)] 
Compilation fix for VC6 after r70151.

VC6 standard SDK didn't define WM_UNINITMENUPOPUP, so define it for it.

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

13 years agoAdd standard art providers at the bottom of the art providers stack.
Vadim Zeitlin [Wed, 28 Dec 2011 13:51:29 +0000 (13:51 +0000)] 
Add standard art providers at the bottom of the art providers stack.

This ensures that any user-defined art providers will be in front of them,
even when they are added at module-initialization time i.e. possibly before
the standard ones.

Closes #12519.

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

13 years agoUse best controller size in wxBookCtrl best size calculation.
Vadim Zeitlin [Wed, 28 Dec 2011 13:51:25 +0000 (13:51 +0000)] 
Use best controller size in wxBookCtrl best size calculation.

Don't use GetControllerSize() which returns the actual, not the best, size of
the controller.

Closes #11793.

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

13 years agoImprove layout in the samples to avoid problems under Mac.
Vadim Zeitlin [Wed, 28 Dec 2011 13:51:21 +0000 (13:51 +0000)] 
Improve layout in the samples to avoid problems under Mac.

Changes the samples to look better under Mac and avoid the worst problems such
as overlapping buttons or truncated controls.

Closes #11651.

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

13 years agoComplete wxEVT_MENU_{OPEN,CLOSE} implementation in wxMSW and wxOSX.
Vadim Zeitlin [Wed, 28 Dec 2011 13:51:17 +0000 (13:51 +0000)] 
Complete wxEVT_MENU_{OPEN,CLOSE} implementation in wxMSW and wxOSX.

Set the wxMenu correctly for wxEVT_MENU_CLOSE events in wxMSW.

Set the menu id correctly to allow wxMenuEvent::IsPopup() to work for both
wxEVT_MENU_OPEN and wxEVT_MENU_CLOSE in wxOSX.

Closes #11313.

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

13 years agoUse memmove() instead of memcpy() in wxString::AssignCopy().
Vadim Zeitlin [Wed, 28 Dec 2011 13:51:13 +0000 (13:51 +0000)] 
Use memmove() instead of memcpy() in wxString::AssignCopy().

This at least allows the code like "s = s.c_str()" to work correctly when
using our own wxString implementation, even it doesn't fix all
self-assignment-related bugs (again, when using our own implementation only,
there is no bug when using std::basic_string as underlying implementation).

This is a cherry pick of r63008 from 2.8 branch.

See #11245.

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

13 years agoDisable final failing wxWebView test. It fails on the buildbot but not locally.
Steve Lamerton [Wed, 28 Dec 2011 10:01:05 +0000 (10:01 +0000)] 
Disable final failing wxWebView test. It fails on the buildbot but not locally.

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

13 years agoCompilation fix for PCH-less build after r70122.
Vadim Zeitlin [Tue, 27 Dec 2011 17:32:29 +0000 (17:32 +0000)] 
Compilation fix for PCH-less build after r70122.

Include the header declaring wxClientDC.

Closes #13809.

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

13 years agoCompilation fix for wxUniv/X11 with wxUSE_STL==1.
Vadim Zeitlin [Tue, 27 Dec 2011 01:21:50 +0000 (01:21 +0000)] 
Compilation fix for wxUniv/X11 with wxUSE_STL==1.

Don't rely on implicit conversion from wxString to wchar_t*.

Closes #13790.

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

13 years agoUpdate the value of read-only wxComboBox in wxUniv.
Vadim Zeitlin [Tue, 27 Dec 2011 01:21:46 +0000 (01:21 +0000)] 
Update the value of read-only wxComboBox in wxUniv.

Fix regression in combobox appearance: it never showed the selected value when
it was read-only any more.

Closes #13688.

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

13 years agoFix warning about non-virtual dtor in wxDataViewCtrlInternal.
Vadim Zeitlin [Tue, 27 Dec 2011 01:21:43 +0000 (01:21 +0000)] 
Fix warning about non-virtual dtor in wxDataViewCtrlInternal.

This class doesn't need a virtual dtor but g++ warned about its absence
because it unnecessarily defined a virtual method. Just make this method
non-virtual to avoid the warning.

Closes #13395.

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

13 years agoSuppress gcc -Wint-to-pointer-cast warnings in GTK wxDataViewCtrl.
Vadim Zeitlin [Tue, 27 Dec 2011 01:21:39 +0000 (01:21 +0000)] 
Suppress gcc -Wint-to-pointer-cast warnings in GTK wxDataViewCtrl.

Use wxUIntToPtr to avoid the warnings about casts from smaller (in 64 bit
build) int type to pointer.

Closes #13394.

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

13 years agoDon't use deprecated wxArtProvider::Insert().
Vadim Zeitlin [Tue, 27 Dec 2011 01:21:36 +0000 (01:21 +0000)] 
Don't use deprecated wxArtProvider::Insert().

Ironically, it was 2.6 compatibility code that was using the function
deprecated after 2.8. In any case, just use the newest name for it.

Closes #13393.

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

13 years agoFix the size of the font returned by wxTextCtrl::GetStyle() in MSW.
Vadim Zeitlin [Tue, 27 Dec 2011 01:21:33 +0000 (01:21 +0000)] 
Fix the size of the font returned by wxTextCtrl::GetStyle() in MSW.

CHARFORMAT stores height in 1/20th of a point, not pixels. Add the correct
conversion to the units used by LOGFONT.

See #13384.

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

13 years agoRecognize background-color style in wxHtmlWindow.
Vadim Zeitlin [Tue, 27 Dec 2011 01:21:29 +0000 (01:21 +0000)] 
Recognize background-color style in wxHtmlWindow.

Just treat it as a synonym for "background" i.e. the same as HTML3 BGCOLOR.

Closes #13173.

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

13 years agoAdd support for more CSS styles to SPAN tag in wxHtmlWindow.
Vadim Zeitlin [Tue, 27 Dec 2011 01:21:26 +0000 (01:21 +0000)] 
Add support for more CSS styles to SPAN tag in wxHtmlWindow.

Add limited support font-family, font-style and text-decoration.

Closes #13170.

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

13 years agoIncrease the tolerance in wxStopWatch unit test.
Vadim Zeitlin [Mon, 26 Dec 2011 12:57:49 +0000 (12:57 +0000)] 
Increase the tolerance in wxStopWatch unit test.

Sleeping can take more time than expected when running on the build slaves,
probably because the machine is heavily loaded. Increase the tolerance to
prevent this from resulting in test failures.

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

13 years agoApplied patch in #13777 (wxRichTextCtrl scroll and delete not refreshed)
Julian Smart [Sun, 25 Dec 2011 17:04:51 +0000 (17:04 +0000)] 
Applied patch in #13777 (wxRichTextCtrl scroll and delete not refreshed)

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

13 years agoAlways link with expat in monolithic build.
Vadim Zeitlin [Sun, 25 Dec 2011 13:28:01 +0000 (13:28 +0000)] 
Always link with expat in monolithic build.

Fix linking errors when using wxXML in sttaic monolithic build: in this case
we must link with expat but it was listed too early, before wxWidgets
libraries using it, in the bakefile-generated makefiles.

Now add it to the end of the linker command line too by including -lexpat in
EXTRALIBS_FOR_BASE which are appended to the linker arguments.

Notice that now -lexpat is linked twice because it is still added by
<wx-lib>xml</wx-lib> in bakefiles, even in monolithic build, but I don't know
how to avoid it and it is harmless anyhow.

Closes #12573.

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

13 years agoAdded a warning about multi-cells in wxGrid::DeleteRows() docs.
Vadim Zeitlin [Sun, 25 Dec 2011 12:52:56 +0000 (12:52 +0000)] 
Added a warning about multi-cells in wxGrid::DeleteRows() docs.

Currently deleting rows or columns intersecting a multi-cell is simply not
supported and results in an immediate crash.

See #4238.

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

13 years agorestore call to GetTabSize removed in r69880, it is needed to set x_extent
Paul Cornett [Sun, 25 Dec 2011 00:57:27 +0000 (00:57 +0000)] 
restore call to GetTabSize removed in r69880, it is needed to set x_extent

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

13 years agoReally fix the use of deprecated methods in wxGrid test.
Vadim Zeitlin [Sat, 24 Dec 2011 18:30:52 +0000 (18:30 +0000)] 
Really fix the use of deprecated methods in wxGrid test.

The changes of r70111 were wrong, the unit test for wxGrid really did intend
to test the deprecated methods so restore them -- but only in
WXWIN_COMPATIBILITY_2_8 case.

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

13 years agoImplement wxNotebook::CalcSizeFromPage() for wxGTK.
Vadim Zeitlin [Sat, 24 Dec 2011 18:19:26 +0000 (18:19 +0000)] 
Implement wxNotebook::CalcSizeFromPage() for wxGTK.

The implementation is far from perfect as it relies on hard-coded margins but
is better than nothing as it allows wxNotebook best size determination and
SetPageSize() method to work correctly.

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

13 years agoDon't use deprecated methods in wxGrid test.
Vadim Zeitlin [Sat, 24 Dec 2011 17:58:32 +0000 (17:58 +0000)] 
Don't use deprecated methods in wxGrid test.

Don't use the methods defined only when building 2.8-compatible mode to let
the tests compile even with WXWIN_COMPATIBILITY_2_8 off. This only worked
before because of the wrong tests in grid.h but broke after the fixes of
r70098.

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

13 years agoremove improper use of paste operator
Paul Cornett [Sat, 24 Dec 2011 16:46:26 +0000 (16:46 +0000)] 
remove improper use of paste operator

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

13 years agoFix fatal bug with deleting the old contents in wxScopedArray::reset().
Vadim Zeitlin [Sat, 24 Dec 2011 15:43:14 +0000 (15:43 +0000)] 
Fix fatal bug with deleting the old contents in wxScopedArray::reset().

"delete" was wrongly used instead of "delete[]".

Closes #13806.

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

13 years agoUse the correct function type cast in EVT_WEBKIT_NEW_WINDOW.
Vadim Zeitlin [Sat, 24 Dec 2011 15:43:12 +0000 (15:43 +0000)] 
Use the correct function type cast in EVT_WEBKIT_NEW_WINDOW.

Use wxWebKitNewWindowEventHandler to perform a proper static_cast<>, which
detects incorrect casts during compilation, instead of
wxWebKitNewWindowEventFunction which was just doing an unsafe C-style cast.

Cloes #13805.

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

13 years agoAdd EVT_FSWATCHER event table macro.
Vadim Zeitlin [Sat, 24 Dec 2011 15:43:08 +0000 (15:43 +0000)] 
Add EVT_FSWATCHER event table macro.

It was documented, and ought to have existed anyhow for consistency with
wxEVT_FSWATCHER, but wasn't defined. Do it now.

Closes #13804.

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

13 years agoAdd EVT_WINDOW_MODAL_DIALOG_CLOSED() event table macro.
Vadim Zeitlin [Sat, 24 Dec 2011 15:43:05 +0000 (15:43 +0000)] 
Add EVT_WINDOW_MODAL_DIALOG_CLOSED() event table macro.

Add it for consistency with wxEVT_WINDOW_MODAL_DIALOG_CLOSED.

See #13804.

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

13 years agoFix typo in wxEVT_COMMAND_RICHTEXT_LEFT_DCLICK in documentation.
Vadim Zeitlin [Sat, 24 Dec 2011 15:43:01 +0000 (15:43 +0000)] 
Fix typo in wxEVT_COMMAND_RICHTEXT_LEFT_DCLICK in documentation.

It was misspelt as wxEVT_COMMAND_RICHTEXT_DLEFT_CLICK.

Closes #13802.

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

13 years agoRemove references to defunct event types in comments.
Vadim Zeitlin [Sat, 24 Dec 2011 15:42:57 +0000 (15:42 +0000)] 
Remove references to defunct event types in comments.

No real changes, just complete the changes of r58039 by removing the
references to non-existent (any more) event types from the comments too.

Closes #13801.

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

13 years agoApplied #13803: wxRichTextCtrl: missing event-table macro (dghart)
Julian Smart [Sat, 24 Dec 2011 11:39:40 +0000 (11:39 +0000)] 
Applied #13803: wxRichTextCtrl: missing event-table macro (dghart)

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

13 years agoDisable some wxWebView tests that fail on the buildbot but not locally.
Steve Lamerton [Sat, 24 Dec 2011 10:08:37 +0000 (10:08 +0000)] 
Disable some wxWebView tests that fail on the buildbot but not locally.

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

13 years agoFix typo in ADD_RAW_IID macro.
Steve Lamerton [Sat, 24 Dec 2011 10:05:31 +0000 (10:05 +0000)] 
Fix typo in ADD_RAW_IID macro.

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

13 years agoAdd some extra yields to wxWebView unit tests to hopefully fix some of the failing...
Steve Lamerton [Fri, 23 Dec 2011 19:16:47 +0000 (19:16 +0000)] 
Add some extra yields to wxWebView unit tests to hopefully fix some of the failing buildbot runs.

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

13 years agodon't use deprecated function
Paul Cornett [Fri, 23 Dec 2011 17:38:30 +0000 (17:38 +0000)] 
don't use deprecated function

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

13 years agofix tests for WXWIN_COMPATIBILITY_2_8, closes #13800
Paul Cornett [Fri, 23 Dec 2011 05:59:59 +0000 (05:59 +0000)] 
fix tests for WXWIN_COMPATIBILITY_2_8, closes #13800

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

13 years agoUse OLE helper macros in wxWebView to reduce the amount of duplicated code.
Steve Lamerton [Thu, 22 Dec 2011 19:16:12 +0000 (19:16 +0000)] 
Use OLE helper macros in wxWebView to reduce the amount of duplicated code.

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

13 years agoAdd new ADD_RAW_IID OLE helper macro to allow use with classes that do not start...
Steve Lamerton [Thu, 22 Dec 2011 19:14:58 +0000 (19:14 +0000)] 
Add new ADD_RAW_IID OLE helper macro to allow use with classes that do not start with IID_I.

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

13 years agoMark various OLE helper functions as DLL exported so they can be used from other...
Steve Lamerton [Thu, 22 Dec 2011 19:08:43 +0000 (19:08 +0000)] 
Mark various OLE helper functions as DLL exported so they can be used from other libraries.

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

13 years agoremove SetBackgroundStyle call from OnInternalIdle, it should be done from realize...
Paul Cornett [Thu, 22 Dec 2011 18:21:41 +0000 (18:21 +0000)] 
remove SetBackgroundStyle call from OnInternalIdle, it should be done from realize handler, closes #13799

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

13 years agoFix wxLogFormatter compilation under MSW.
Vadim Zeitlin [Thu, 22 Dec 2011 16:36:47 +0000 (16:36 +0000)] 
Fix wxLogFormatter compilation under MSW.

Fix wxMSW compilation after the changes of r70086.

Closes #13792.

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

13 years agoDramatically optimise inserting many items in wxGenericListCtrl.
Vadim Zeitlin [Thu, 22 Dec 2011 14:47:54 +0000 (14:47 +0000)] 
Dramatically optimise inserting many items in wxGenericListCtrl.

During each item insertion SetItem() was called and this resulted in a call to
GetItemRect() which, in turn, re-laid out all items in the control meaning
that the relatively expensive wxListMainWindow::RecalculatePositions() was
called N times when inserting N items.

Reduce this to just a single call by not refreshing the item in SetItem() if
everything is going to be redrawn soon anyhow.

This decreases the time needed to insert a couple of thousands of items in
icon view from several minutes to less than a second.

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

13 years agoAdd wxLogFormatter to allow easier wxLog output customization.
Vadim Zeitlin [Thu, 22 Dec 2011 13:35:01 +0000 (13:35 +0000)] 
Add wxLogFormatter to allow easier wxLog output customization.

Delegate the log string creation to wxLogFormatter. This allows defining a
custom object of a class derived from it to customize the log output instead
of having to override DoLogRecord() in wxLog itself.

Closes #13792.

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

13 years agoAvoid a problem in Phoenix by making UpdateMacScrollWindow not be pure virtual.
Robin Dunn [Thu, 22 Dec 2011 01:26:11 +0000 (01:26 +0000)] 
Avoid a problem in Phoenix by making UpdateMacScrollWindow not be pure virtual.

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

13 years agoInterface fixes for Phoenix
Robin Dunn [Thu, 22 Dec 2011 01:25:18 +0000 (01:25 +0000)] 
Interface fixes for Phoenix

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

13 years agorebaked Xcode proj for cocoa after date & timectrls were added
Stefan Csomor [Wed, 21 Dec 2011 16:27:43 +0000 (16:27 +0000)] 
rebaked Xcode proj for cocoa after date & timectrls were added

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

13 years agoCorrect generic wxListCtrl display of items with icons in list mode.
Vadim Zeitlin [Wed, 21 Dec 2011 13:56:50 +0000 (13:56 +0000)] 
Correct generic wxListCtrl display of items with icons in list mode.

The changes of r70066 improved the layout for icon and small icon modes but
broke it for the list mode if items had icons because the item width should
account for the icon as well in this case. Simply disable the code added in
this revision when in list mode, we don't need to do anything then anyhow as
the layout already worked correctly for it.

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

13 years agoGuard against a possible crash in wxListCtrl::DeleteColumn().
Vadim Zeitlin [Wed, 21 Dec 2011 13:56:47 +0000 (13:56 +0000)] 
Guard against a possible crash in wxListCtrl::DeleteColumn().

We could crash when deleting a column after switching to report view from icon
view. As deleting a column works just fine under MSW in this case, make it
work in the generic version as well.

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

13 years agoDocument wxListCtrl::InReportView() and IsVirtual().
Vadim Zeitlin [Wed, 21 Dec 2011 13:07:18 +0000 (13:07 +0000)] 
Document wxListCtrl::InReportView() and IsVirtual().

These functions are more convenient than directly testing for styles and are
already used outside wxWidgets do make them officially part of the public API.

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

13 years agoIgnore extra modify events after rename in wxFileSystemWatcher.
Vadim Zeitlin [Wed, 21 Dec 2011 00:26:06 +0000 (00:26 +0000)] 
Ignore extra modify events after rename in wxFileSystemWatcher.

Document that such extra events may occur and generally improve the event
types documentation.

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

13 years agoProvide native implementation of wx{Date,Time}PickerCtrl for wxOSX/Cocoa.
Vadim Zeitlin [Tue, 20 Dec 2011 21:27:14 +0000 (21:27 +0000)] 
Provide native implementation of wx{Date,Time}PickerCtrl for wxOSX/Cocoa.

Use NSDatePicker to implement both of these controls. Almost all of
wxDatePickerCtrl styles are not supported in the native version but the basic
functionality does work and looks much better than the generic version (which
is still available as wxDatePickerCtrlGeneric if needed) under Mac.

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

13 years agoAdded helpers for translating between wxDateTime and NSDate.
Vadim Zeitlin [Tue, 20 Dec 2011 21:27:09 +0000 (21:27 +0000)] 
Added helpers for translating between wxDateTime and NSDate.

These functions will be used in the upcoming native implementations of
wxDatePickerCtrl and wxTimePickerCtrl but could also be reused elsewhere in
wxOSX/Cocoa, notably in wxDataViewCtrl where strange ad hoc code is currently
used.

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

13 years agoAdded wxTimePickerCtrl page to the widgets sample.
Vadim Zeitlin [Tue, 20 Dec 2011 21:27:06 +0000 (21:27 +0000)] 
Added wxTimePickerCtrl page to the widgets sample.

Even if this page is pretty trivial, add it for consistency with
wxDatePickerCtrl.

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

13 years agoReorganized the date picker page of the widgets sample.
Vadim Zeitlin [Tue, 20 Dec 2011 21:27:02 +0000 (21:27 +0000)] 
Reorganized the date picker page of the widgets sample.

Make it possible to set the picker styles and set its range and not only the
current value.

Also log the events generated by it.

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

13 years agoUkrainian translations update from Yuri Chornoivan.
Vadim Zeitlin [Tue, 20 Dec 2011 21:22:31 +0000 (21:22 +0000)] 
Ukrainian translations update from Yuri Chornoivan.

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

13 years agoFix horizontal alignment in icon view in generic wxListCtrl.
Vadim Zeitlin [Tue, 20 Dec 2011 21:21:38 +0000 (21:21 +0000)] 
Fix horizontal alignment in icon view in generic wxListCtrl.

Ensure that all the items in the same column have the same width, so that
their labels are centred.

Closes #9227.

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

13 years agoBrazilian Portuguese translations update from Felipe.
Vadim Zeitlin [Tue, 20 Dec 2011 17:42:04 +0000 (17:42 +0000)] 
Brazilian Portuguese translations update from Felipe.

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

13 years agoFix crash in wxRegion in wxOSX/Carbon.
Vadim Zeitlin [Tue, 20 Dec 2011 15:39:42 +0000 (15:39 +0000)] 
Fix crash in wxRegion in wxOSX/Carbon.

Apparently some code expects to be able to call wxRegion::GetWXHRGN() even on
an invalid wxRegion. Return NULL in this case instead of crashing.

This fixes crash on startup of the widgets sample.

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

13 years agoAdd support for webview library to MSW bakefile presets.
Vadim Zeitlin [Tue, 20 Dec 2011 13:27:59 +0000 (13:27 +0000)] 
Add support for webview library to MSW bakefile presets.

The webview library wasn't linked in correctly when using MSW bakefile
presets. Fix this by adding the corresponding <sys-lib> for it (this needs to
be done for MSW only, under Unix it's handled by wx-config).

Closes #13789.

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

13 years agoMention the dialog focus regression fix in wxMSW in the change log.
Vadim Zeitlin [Tue, 20 Dec 2011 13:24:48 +0000 (13:24 +0000)] 
Mention the dialog focus regression fix in wxMSW in the change log.

See #13765.

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

13 years agoInterface tweaks and fixes for Phoenix
Robin Dunn [Mon, 19 Dec 2011 22:39:02 +0000 (22:39 +0000)] 
Interface tweaks and fixes for Phoenix

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

13 years agoAdded missing semi-colon in versioninfo.h interface header.
Bryan Petty [Mon, 19 Dec 2011 21:16:01 +0000 (21:16 +0000)] 
Added missing semi-colon in versioninfo.h interface header.

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

13 years agoCleaned up some of the code in wxSlider::DoMoveWindow.
Dimitri Schoolwerth [Mon, 19 Dec 2011 13:14:24 +0000 (13:14 +0000)] 
Cleaned up some of the code in wxSlider::DoMoveWindow.

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

13 years agoAdded support for wxEXEC_MAKE_GROUP_LEADER to wxExecute().
Vadim Zeitlin [Mon, 19 Dec 2011 12:54:48 +0000 (12:54 +0000)] 
Added support for wxEXEC_MAKE_GROUP_LEADER to wxExecute().

Map it to the native CREATE_NEW_PROCESS_GROUP flag as it's broadly similar to
Unix semantics.

Closes #13676.

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

13 years agoAdd possibility to set item background in generic wxDataViewCtrl.
Vadim Zeitlin [Mon, 19 Dec 2011 12:54:38 +0000 (12:54 +0000)] 
Add possibility to set item background in generic wxDataViewCtrl.

Added wxDataViewItemAttr::SetBackgroundColour() and code to honour it in the
generic implementation of wxDataViewCtrl.

Closes #12621.

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

13 years agoDon't use dummy "inline" in wxDEPRECATED_CONSTRUCTOR definition.
Vadim Zeitlin [Mon, 19 Dec 2011 12:54:32 +0000 (12:54 +0000)] 
Don't use dummy "inline" in wxDEPRECATED_CONSTRUCTOR definition.

Apparently we need this bogus "inline" for g++ < 3.4 but there is no reason to
use it for the other compilers and this results in linking errors with e.g.
MSVC, so remove it.

Closes #13775.

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

13 years agoFixed min and max label values not being swapped when using wxSL_INVERSE in a horizon...
Dimitri Schoolwerth [Mon, 19 Dec 2011 12:28:42 +0000 (12:28 +0000)] 
Fixed min and max label values not being swapped when using wxSL_INVERSE in a horizontal MSW slider.

Changed wxSlider::GetLabelsSize to let the widthMin and widthMax values contain the width of what the minimum (always on the left/top) and maximum (always on the right/bottom) _label_ will contain. This is not the same as the minimum and maximum _value_ in case of using wxSL_INVERSE.

Also don't swap the position of the min/max labels in a horizontal slider with wxSL_INVERSE (just how the labels already stay in place in a vertical slider, regardless of wxSL_INVERSE usage), nor their width.

Regression since r65941.

Fixes #13416.

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

13 years agoRemoved useless if statement in slider code.
Dimitri Schoolwerth [Mon, 19 Dec 2011 12:16:52 +0000 (12:16 +0000)] 
Removed useless if statement in slider code.

The y position of the slider is already taken care of by the variable ySlider, changing labelOffset has no use.

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

13 years agoDon't move the slider's value label if it's not being used.
Dimitri Schoolwerth [Mon, 19 Dec 2011 12:12:31 +0000 (12:12 +0000)] 
Don't move the slider's value label if it's not being used.

An if statement was missing brackets and still moving the value label.

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

13 years agoAdd a reminder to update version.bkl to inc_release script.
Vadim Zeitlin [Sun, 18 Dec 2011 14:38:47 +0000 (14:38 +0000)] 
Add a reminder to update version.bkl to inc_release script.

While docs/tech/tn0011.txt does document this, it's still too simple to forget
to update version.bkl, as my experience shows, so add a reminder to the script
itself too.

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

13 years agoUpdate version to 2.9.4 in version.bkl too and rebake everything.
Vadim Zeitlin [Sun, 18 Dec 2011 14:35:50 +0000 (14:35 +0000)] 
Update version to 2.9.4 in version.bkl too and rebake everything.

Change the version for Unix shared libraries too.

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

13 years agoAdded wxFilePickerCtrl::SetInitialDirectory().
Vadim Zeitlin [Sun, 18 Dec 2011 12:34:47 +0000 (12:34 +0000)] 
Added wxFilePickerCtrl::SetInitialDirectory().

This method allows to configure the initial directory to be shown when
browsing for files in an initially empty wxFileDirPickerCtrl.

It is also available for wxDirPickerCtrl but is less useful there.

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

13 years agoNo changes, just use wxScopedPtr instead of explicit "delete".
Vadim Zeitlin [Sun, 18 Dec 2011 12:27:04 +0000 (12:27 +0000)] 
No changes, just use wxScopedPtr instead of explicit "delete".

Use wxScopedPtr in wxGenericFileDirButton to ensure that the dialog created by
it is always destroyed, even if an exception is thrown while showing the
dialog or while processing the event we generate after showing it.

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

13 years agoEnsure wxWebViewIE::SetPage clears the existing content before writing the new output...
Steve Lamerton [Sun, 18 Dec 2011 11:51:52 +0000 (11:51 +0000)] 
Ensure wxWebViewIE::SetPage clears the existing content before writing the new output. Also add a basic unit test to verify correctness in the future.

Fixes #13770

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

13 years agoMake wxPalette ctor and Create() const-correct in wxMSW.
Vadim Zeitlin [Sat, 17 Dec 2011 23:52:47 +0000 (23:52 +0000)] 
Make wxPalette ctor and Create() const-correct in wxMSW.

The input data is never modified so should be const (it is also documented as
being const and actually is const in the other ports).

Closes #13776.

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

13 years agoDefine wxBitmapComboBox::Insert(void* clientData) overload in wxMSW.
Vadim Zeitlin [Sat, 17 Dec 2011 23:52:43 +0000 (23:52 +0000)] 
Define wxBitmapComboBox::Insert(void* clientData) overload in wxMSW.

This overload was declared in the header but not implemented, do add its
definition too.

Closes #13774.

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

13 years agoCorrected the name of EVT_WEB_VIEW_ERROR event table macro.
Vadim Zeitlin [Sat, 17 Dec 2011 23:52:40 +0000 (23:52 +0000)] 
Corrected the name of EVT_WEB_VIEW_ERROR event table macro.

It was mistakenly spelt EVT_WEB_VIEW_ERRROR.

Closes #13772.

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

13 years agoNo changes, just fix typo in an example in webview docs.
Vadim Zeitlin [Sat, 17 Dec 2011 23:52:36 +0000 (23:52 +0000)] 
No changes, just fix typo in an example in webview docs.

See #13772.

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

13 years agoDon't activate MSW dialogs when setting their initial size.
Vadim Zeitlin [Sat, 17 Dec 2011 23:04:50 +0000 (23:04 +0000)] 
Don't activate MSW dialogs when setting their initial size.

As the dialog is not shown yet at this moment, activating it didn't work
correctly and the dialog didn't get the focus when it was shown later.
Fix this by preventing ::SetWindowPos() from activating it, which it does by
default.

Closes #13765.

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

13 years agoFixed unreferenced parameter warning.
Dimitri Schoolwerth [Sat, 17 Dec 2011 01:13:22 +0000 (01:13 +0000)] 
Fixed unreferenced parameter warning.

Parameter xmpData was unused in wxImage::Create when compiling with wxUSE_XPM set to 0.

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

13 years agoIncremented the version number to 2.9.4 everywhere.
Vadim Zeitlin [Fri, 16 Dec 2011 22:12:49 +0000 (22:12 +0000)] 
Incremented the version number to 2.9.4 everywhere.

The misc/scripts/inc_release script was used to update the versions.

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

13 years agoTry to get more information about wxFileSystemWatcher unit test failures.
Vadim Zeitlin [Fri, 16 Dec 2011 21:11:19 +0000 (21:11 +0000)] 
Try to get more information about wxFileSystemWatcher unit test failures.

Log the original and new paths of the rename event to help debugging the extra
modification events detected during the buildbot builds.

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

13 years agoDon't use wxTE_DONTWRAP style in Lines() wxTextCtrl unit case.
Vadim Zeitlin [Fri, 16 Dec 2011 19:57:17 +0000 (19:57 +0000)] 
Don't use wxTE_DONTWRAP style in Lines() wxTextCtrl unit case.

The last check in this test couldn't pass under MSW as it relied on the (long)
line of text being wrapped but the style used for the control prevented this
from happening. Not sure how could it have ever worked before but in any case
removing wxTE_DONTWRAP does make the test pass.

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

13 years agoKeep the item being updated selected in wxMSW wxChoice::SetString().
Vadim Zeitlin [Fri, 16 Dec 2011 19:47:58 +0000 (19:47 +0000)] 
Keep the item being updated selected in wxMSW wxChoice::SetString().

Changing the text of the selected wxChoice (or wxComboBox, as it derives from
it in wxMSW) item made it unselected. Fix this by explicitly restoring the
selection to the item if needed.

Closes #13769.

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

13 years agoCorrected test for region validity in wxMSW wxRegion::DoOffset().
Vadim Zeitlin [Fri, 16 Dec 2011 19:47:55 +0000 (19:47 +0000)] 
Corrected test for region validity in wxMSW wxRegion::DoOffset().

Checking M_REGION is not enough as the region can be invalid (meaning
m_refData dereferenced inside M_REGION is NULL itself) and not just not
initialized, so it resulted in crashes and not just the expected assert
failure when wxRegion::Offset() was called for an invalid region.

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

13 years agoUse IsThisEnabled() to test if AUI child is enabled, not IsEnabled().
Vadim Zeitlin [Fri, 16 Dec 2011 19:33:31 +0000 (19:33 +0000)] 
Use IsThisEnabled() to test if AUI child is enabled, not IsEnabled().

IsEnabled() returns false if the parent window is disabled and calling
Enable() does not help with this, so we could keep trying and trying to enable
the window unsuccessfully if it was reenabled while its parent was disabled,
resulting in a never-ending stream of EVT_IDLE events.

Closes #13767.

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