]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
13 years agoNo changes, just simplify the mask checks in wxImage::Paste().
Vadim Zeitlin [Tue, 26 Apr 2011 22:57:08 +0000 (22:57 +0000)] 
No changes, just simplify the mask checks in wxImage::Paste().

Replace the test of the form "(!a && b) || (a && b)" with a simple test for
"b" and then also replace the test for "b || (c && !b)" with just "b || c".
The end result is much easier to read and understand.

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

13 years agoOptimize alpha handling in wxImage::Rotate90() too.
Vadim Zeitlin [Tue, 26 Apr 2011 22:57:05 +0000 (22:57 +0000)] 
Optimize alpha handling in wxImage::Rotate90() too.

The changes of r66309 optimized the rotation of the pixel data by doing it in
entire strips instead of pixel by pixel, apply the same technique now to the
rotation of alpha data as well.

Closes #12739.

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

13 years agoFix assert when destroying wxDataViewCtrl being edited in wxGTK.
Vadim Zeitlin [Tue, 26 Apr 2011 22:57:01 +0000 (22:57 +0000)] 
Fix assert when destroying wxDataViewCtrl being edited in wxGTK.

If wxDataViewCtrl was destroyed while showing a generic editor, an assert
occurred in wxWindowBase dtor as the event handler pushed on it by the editor.

Fix this by calling CancelEditing() when the control is destroyed and also fix
the crash in CancelEditing() in wxGTK due to recursive calls to FinishEditing().

Closes #12683.

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

13 years agoNo changes, just get rid of wxDataViewColumn::GetConstGtkHandle().
Vadim Zeitlin [Tue, 26 Apr 2011 22:56:56 +0000 (22:56 +0000)] 
No changes, just get rid of wxDataViewColumn::GetConstGtkHandle().

If both const and non-const accessors are needed, it's custom to use the same
name for both but in this case we don't even need them as the const version
can always be used, so simply remove the weird and badly named (because the
returned handle is not const at all) GetConstGtkHandle().

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

13 years agoSpecialize std::numeric_limits<> for wxLongLong and wxULongLong.
Vadim Zeitlin [Tue, 26 Apr 2011 22:56:50 +0000 (22:56 +0000)] 
Specialize std::numeric_limits<> for wxLongLong and wxULongLong.

numeric_limits<> should be specialized for number-like types to allow using
them in a similar way to the built-in types.

Closes #13162.

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

13 years agoDon't change CC and CXX for the SDK options until after the compiler version has...
Robin Dunn [Tue, 26 Apr 2011 19:02:14 +0000 (19:02 +0000)] 
Don't change CC and CXX for the SDK options until after the compiler version has been chosen so it doesn't mess up the version tests.

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

13 years agoRemove lipo options, that hack is no longer needed since we are not supporting OSX...
Robin Dunn [Tue, 26 Apr 2011 17:39:53 +0000 (17:39 +0000)] 
Remove lipo options, that hack is no longer needed since we are not supporting OSX 10.3 any more.  Also some work to get framework builds working properly.

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

13 years agoUse DESTDIR properly and fix change-install-names script. Closes #12461
Robin Dunn [Tue, 26 Apr 2011 17:35:35 +0000 (17:35 +0000)] 
Use DESTDIR properly and fix change-install-names script.  Closes #12461

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

13 years agofixes #12220
Stefan Csomor [Tue, 26 Apr 2011 17:14:50 +0000 (17:14 +0000)] 
fixes #12220

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

13 years agoFix the size of the tree's text editing box on Cocoa
Robin Dunn [Mon, 25 Apr 2011 23:18:19 +0000 (23:18 +0000)] 
Fix the size of the tree's text editing box on Cocoa

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

13 years agoFixed filename in wxOSX-Cocoa's file dialog using extension of wrong file type.
Dimitri Schoolwerth [Mon, 25 Apr 2011 13:18:45 +0000 (13:18 +0000)] 
Fixed filename in wxOSX-Cocoa's file dialog using extension of wrong file type.

When using SetFilterIndex to indicate a different initial file type the dialog would still use the extension of the first file type (if the filename had no extension then unchecking "Hide extension" would append the first file type's extension). Fixed this by calling code, that formerly got called only from OnFilterSelected, to notify OS X of the file type change.

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

13 years agoDon't rely on RVO in wxON_BLOCK_EXIT_SET().
Václav Slavík [Sun, 24 Apr 2011 13:14:47 +0000 (13:14 +0000)] 
Don't rely on RVO in wxON_BLOCK_EXIT_SET().

MakeVarSetter() relies on the compiler always using RVO, as
VariableSetterImpl<> doesn't have correct copy ctor; worse yet, its use
wasn't detected at compile time.  With some compilers (e.g. VC++ 2008
with non-trivial variable types), this resulted in the variable being
reset too soon, immediately in the place where the macro was used.
Fixed by using the same technique already used in wxScopeGuardImpl. In
fact, VariableSetterImpl is just another special case of
wxScopeGuardImpl, so just derive from the latter.

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

13 years agoDon't generate wxEVT_COMMAND_DATAVIEW_CACHE_HINT for empty control.
Vadim Zeitlin [Sat, 23 Apr 2011 18:01:36 +0000 (18:01 +0000)] 
Don't generate wxEVT_COMMAND_DATAVIEW_CACHE_HINT for empty control.

Don't send any cache hint events for empty wxDataViewCtrl. Sending them was
unnecessary, inconsistent with wxListCtrl (which doesn't send them when it's
empty) and the events also had incorrect range. Just don't create them at all
to avoid all these problems at once.

Closes #13132.

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

13 years agoDon't close arcs drawn in wxPostScriptDC.
Vadim Zeitlin [Sat, 23 Apr 2011 17:36:11 +0000 (17:36 +0000)] 
Don't close arcs drawn in wxPostScriptDC.

Draw arcs, not pies, in DoDrawArc(): simply remove the apparently unnecessary
last lineto and closepath PostScript statements.

Closes #13141.

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

13 years agoChange wxNotebook selection before sending page changed event in wxMSW.
Vadim Zeitlin [Sat, 23 Apr 2011 16:19:15 +0000 (16:19 +0000)] 
Change wxNotebook selection before sending page changed event in wxMSW.

wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED handler should see the new page selected
in the control, not the old one as was the case if the page was changed using
the mouse in wxMSW.

This should have been done together with the other changes of r66224, see its
commit message for more details.

Closes 13145.

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

13 years agoAdd wxDC::SetTransformMatrix() and related methods and implement them in wxMSW.
Vadim Zeitlin [Sat, 23 Apr 2011 16:03:10 +0000 (16:03 +0000)] 
Add wxDC::SetTransformMatrix() and related methods and implement them in wxMSW.

Add support for world transformations to wxDC too. Currently this is
implemented in wxMSW only but could be easily provided in the ports that use
wxGraphicsContext for wxDC implementation later.

Closes #13092.

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

13 years agoFix compilation error in recent change to wxSizeEvent generation.
Vadim Zeitlin [Sat, 23 Apr 2011 15:12:59 +0000 (15:12 +0000)] 
Fix compilation error in recent change to wxSizeEvent generation.

Wrong variable name was used in r67583, fix it.

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

13 years agoCorrect names of parameters in wxAffineMatrix2D documentation.
Vadim Zeitlin [Sat, 23 Apr 2011 14:53:42 +0000 (14:53 +0000)] 
Correct names of parameters in wxAffineMatrix2D documentation.

Some parameters were misnamed in @param paragraphs, fix this.

Closes #13143.

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

13 years agoAdd a simple unit test for wxParseCommonDialogsFilter().
Vadim Zeitlin [Sat, 23 Apr 2011 14:53:38 +0000 (14:53 +0000)] 
Add a simple unit test for wxParseCommonDialogsFilter().

Verify that this function (which is used for parsing the wildcard strings used
with file-related dialogs) works as expected and also asserts when given
invalid input.

See #4489.

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

13 years agoDocument that wxTreeCtrl::SelectItem() generates events.
Vadim Zeitlin [Sat, 23 Apr 2011 11:17:43 +0000 (11:17 +0000)] 
Document that wxTreeCtrl::SelectItem() generates events.

This is another exception to the general rule that program actions don't
generate any events so document it explicitly.

See #13153.

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

13 years agoSet event object correctly for the generated wxSizeEvents.
Vadim Zeitlin [Sat, 23 Apr 2011 11:17:40 +0000 (11:17 +0000)] 
Set event object correctly for the generated wxSizeEvents.

wxSizeEvent event object was not set correctly in at least a couple of places.
Do set it now.

Closes #13156.

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

13 years agoRemove duplicate negated option indicator in wxCmdLineParser help.
Vadim Zeitlin [Sat, 23 Apr 2011 11:17:36 +0000 (11:17 +0000)] 
Remove duplicate negated option indicator in wxCmdLineParser help.

The indicator of a negatable option (one with wxCMD_LINE_SWITCH_NEGATABLE
flag) appeared twice in the usage message, don't add it the second time.

Closes #13157.

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

13 years agoFix file paths in wxFileSystemWatcherEvent under OS X.
Vadim Zeitlin [Sat, 23 Apr 2011 11:17:33 +0000 (11:17 +0000)] 
Fix file paths in wxFileSystemWatcherEvent under OS X.

The separator between the watched directory and the name of the file in the
generated event was missing, add it now.

Closes #13161.

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

13 years agoSet page range in the print preview correctly.
Vadim Zeitlin [Sat, 23 Apr 2011 10:49:48 +0000 (10:49 +0000)] 
Set page range in the print preview correctly.

The valid pages range was set too early before, we need to postpone it until
after the OnPreparePrinting() call of the user-defined wxPrintout object as
only it can determine the number of pages (after running the pagination
algorithm) in general.

Set the pages range during the first call to RenderPageIntoDC() to fix this.

Also add wxPrintPageMaxCtrl class for symmetry with the existing
wxPrintPageTextCtrl and use a shared constant MAX_PAGE_NUMBER instead of hard
coded 99999. Slightly improve the layout of wxPrintPageMaxCtrl too.

Closes #12965.

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

13 years agoMake the source files non-executable again.
Vadim Zeitlin [Sat, 23 Apr 2011 10:41:29 +0000 (10:41 +0000)] 
Make the source files non-executable again.

Revert the (probably accidental) mode change of r67576.

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

13 years agoUse a relative link for wx-config so it will also work even when not located at the...
Robin Dunn [Fri, 22 Apr 2011 19:20:31 +0000 (19:20 +0000)] 
Use a relative link for wx-config so it will also work even when not located at the install prefix.  Ported from the wxPy-2.9.1.1 tag/branch.

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

13 years agoExplicitly specify the Mac SDK for wxPython builds
Robin Dunn [Fri, 22 Apr 2011 19:18:47 +0000 (19:18 +0000)] 
Explicitly specify the Mac SDK for wxPython builds

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

13 years agoReturn wxWindow* from wxDataViewCustomRenderer::CreateEditorCtrl().
Václav Slavík [Fri, 22 Apr 2011 18:25:32 +0000 (18:25 +0000)] 
Return wxWindow* from wxDataViewCustomRenderer::CreateEditorCtrl().

There's no reason to limit custom editor controls to wxControl, which
would rule out e.g. composite controls or any custom widgets.
Make appropriate changes to related functions and code too.

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

13 years agoosx 64 bit multilib build needs an explicit export as in this architecture our visibi...
Stefan Csomor [Fri, 22 Apr 2011 15:48:13 +0000 (15:48 +0000)] 
osx 64 bit multilib build needs an explicit export as in this architecture our visibility flags get respected for obj-c classes as well

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

13 years agoimplementation of HotKey, see #12354
Stefan Csomor [Fri, 22 Apr 2011 15:20:11 +0000 (15:20 +0000)] 
implementation of HotKey, see #12354

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

13 years agoCompilation fix for DEFINE_GUID uses.
Václav Slavík [Fri, 22 Apr 2011 14:50:20 +0000 (14:50 +0000)] 
Compilation fix for DEFINE_GUID uses.

DEFINE_GUID doesn't define the value, only declares an external
variable, unless initguid.h was included. This leads to linker errors.

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

13 years agoFixed wxUSE_STD_STRING==0 compilation.
Dimitri Schoolwerth [Fri, 22 Apr 2011 10:43:47 +0000 (10:43 +0000)] 
Fixed wxUSE_STD_STRING==0 compilation.

With at least MSVC9 numformatter.cpp wouldn't compile because of unknown identifiers related to locales. Include <locale.h> in case wxUSE_STD_STRING is set to 0.

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

13 years agoDefine ACO_AUTOAPPEND for MinGW/Cygwin.
Vadim Zeitlin [Thu, 21 Apr 2011 23:43:27 +0000 (23:43 +0000)] 
Define ACO_AUTOAPPEND for MinGW/Cygwin.

Apparently this symbol is not defined in MinGW headers neither, so do it
ourselves as well.

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

13 years agoUse "wx" prefix for the GUIDs we (re)define in wxMSW code.
Vadim Zeitlin [Thu, 21 Apr 2011 23:43:23 +0000 (23:43 +0000)] 
Use "wx" prefix for the GUIDs we (re)define in wxMSW code.

CLSID_AutoComplete became ambiguous with MinGW because it does define it in
its shlguid.h header (although MSVC/Platform SDK does not define this one) so
use a "wx" prefix for it to avoid ambiguity. Also use the same prefix for the
IID_IAutoCompleteDropDown value we define for consistency.

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

13 years agoRedefine IAutoCompleteDropDown in our code as it's not always available.
Vadim Zeitlin [Thu, 21 Apr 2011 15:47:37 +0000 (15:47 +0000)] 
Redefine IAutoCompleteDropDown in our code as it's not always available.

MinGW doesn't have shobjidl.h header file which is normally part of the
Platform SDK and doesn't have IAutoCompleteDropDown interface definition in
any of its headers at all, so define this interface and its IID ourselves to
make the code compile with it.

Notice that MinGW-64 does have the interface declaration but still doesn't
define IID_IAutoCompleteDropDown.

So to be on the safe side just always define everything ourselves, as long as
we need to do it for one of the compilers, it's not more difficult to do it
for all of them.

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

13 years agoAdded ForceDelayedLayout
Julian Smart [Thu, 21 Apr 2011 12:44:26 +0000 (12:44 +0000)] 
Added ForceDelayedLayout

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

13 years agoMake use of SetFilterIndex in wxOSX-Cocoa's file dialog.
Dimitri Schoolwerth [Wed, 20 Apr 2011 14:54:56 +0000 (14:54 +0000)] 
Make use of SetFilterIndex in wxOSX-Cocoa's file dialog.

Previously the file type would solely be based on the extension of the passed filename. This is still done, but any valid filter index as set by the user will now take precedence.

See also #12429.

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

13 years agoFixed saving dialog's filter index always being -1 with wxOSX-Cocoa.
Dimitri Schoolwerth [Wed, 20 Apr 2011 07:53:07 +0000 (07:53 +0000)] 
Fixed saving dialog's filter index always being -1 with wxOSX-Cocoa.

This problem was reproducable using the Save file dialog in the dialogs sample.
The member m_filterIndex was only initialised to -1 and never set at another point. Set it to the filter's selection during ModalFinishedCallback.

Closes #13158.

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

13 years agofix conversion of gdk_input_add() to g_io_add_watch() from r67326
Paul Cornett [Tue, 19 Apr 2011 05:17:45 +0000 (05:17 +0000)] 
fix conversion of gdk_input_add() to g_io_add_watch() from r67326

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

13 years agoDo send wxEVT_UPDATE_UI events to hidden windows.
Vadim Zeitlin [Mon, 18 Apr 2011 23:50:14 +0000 (23:50 +0000)] 
Do send wxEVT_UPDATE_UI events to hidden windows.

Failing to send wxEVT_UPDATE_UI to hidden windows made it impossible to show
them from their update UI handler which was totally unexpected as the
documented wxUpdateUIEvent::Show() method could never be used.

Do send these events to the hidden windows themselves but avoid sending the
update UI events to the children of hidden windows as this is really useless
because any change of their state wouldn't be seen by the user anyhow (even if
the child is shown, it would still remain hidden until its parent is) and
would just waste time processing a lot of needless events.

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

13 years agoDon't send wxWindowDestroyEvent if we hadn't sent wxWindowCreateEvent.
Vadim Zeitlin [Mon, 18 Apr 2011 23:36:46 +0000 (23:36 +0000)] 
Don't send wxWindowDestroyEvent if we hadn't sent wxWindowCreateEvent.

Don't generate wxWindowDestroyEvent when destroying the windows that had been
never created for symmetry with wxWindowCreateEvent which wasn't sent for this
window neither.

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

13 years agoDon't assert when destroying a never created window in wxGTK.
Vadim Zeitlin [Mon, 18 Apr 2011 23:36:42 +0000 (23:36 +0000)] 
Don't assert when destroying a never created window in wxGTK.

The other ports don't assert if a default-constructed wxWindow object for
which Create() had never been called is Destroy()d and wxGTK shouldn't do this
neither.

The new behaviour is more logical but also fixes a problem with an assert in
wxOwnerDrawnComboBox that can currently be seen in wxGTK unit tests.

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

13 years agoCorrect a typo in DoAutoCompleteCustom() stub in wxMSW.
Vadim Zeitlin [Mon, 18 Apr 2011 13:47:51 +0000 (13:47 +0000)] 
Correct a typo in DoAutoCompleteCustom() stub in wxMSW.

Fix a compilation error introduced by r67518.

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

13 years agoUse Connect() to bind embedded wxTextCtrl events instead of event table. This seems...
Jaakko Salli [Mon, 18 Apr 2011 10:06:08 +0000 (10:06 +0000)] 
Use Connect() to bind embedded wxTextCtrl events instead of event table. This seems to be more reliable approach here, and fixes a bug with wxPropertyGrid's wxEditEnumProperty.

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

13 years agoIn wxComboCtrlBase::OnTextCtrlEvent(), make sure to call event.StopPropagation()...
Jaakko Salli [Mon, 18 Apr 2011 10:03:16 +0000 (10:03 +0000)] 
In wxComboCtrlBase::OnTextCtrlEvent(), make sure to call event.StopPropagation() only after it has been copied

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

13 years agoAlso show EVT_TEXT_ENTER in the combo sample
Jaakko Salli [Mon, 18 Apr 2011 09:58:27 +0000 (09:58 +0000)] 
Also show EVT_TEXT_ENTER in the combo sample

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

13 years agoCorrect wrong port-specific note in AutoCompleteFileNames() documentation.
Vadim Zeitlin [Sun, 17 Apr 2011 23:15:04 +0000 (23:15 +0000)] 
Correct wrong port-specific note in AutoCompleteFileNames() documentation.

This function is only implemented in wxMSW, not wxGTK2.

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

13 years agoImplement auto-completion support for wxTextEntry in wxOSX/Cocoa.
Vadim Zeitlin [Sun, 17 Apr 2011 23:14:15 +0000 (23:14 +0000)] 
Implement auto-completion support for wxTextEntry in wxOSX/Cocoa.

Both completing a set of fixed strings and dynamic completion using a custom
completer are supported, although completing the file names remains MSW-only
for now.

Note that, unlike under MSW, auto-completion under Mac is not automatic and
has to be triggered manually by calling complete: method. This is done by
pressing F5 key by default. In the future we should call it automatically on a
timer event to make it more obviously discoverable.

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

13 years agoRefactor: extract wxTextCompleterFixed from wxMSW to a header.
Vadim Zeitlin [Sun, 17 Apr 2011 23:14:11 +0000 (23:14 +0000)] 
Refactor: extract wxTextCompleterFixed from wxMSW to a header.

This class will be used in other ports too so don't make it private to wxMSW
(although it still remains private to wxWidgets for now as it doesn't make
much sense to use it in user code).

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

13 years agoRemoved wxOSX conditional code from generic calendar control.
Dimitri Schoolwerth [Sun, 17 Apr 2011 21:47:56 +0000 (21:47 +0000)] 
Removed wxOSX conditional code from generic calendar control.

Tested the calendar sample with Cocoa and Carbon to determine the behaviour and looks are still the same.

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

13 years agoImproved year control of generic calendar being too narrow when using a locale with...
Dimitri Schoolwerth [Sun, 17 Apr 2011 21:46:22 +0000 (21:46 +0000)] 
Improved year control of generic calendar being too narrow when using a locale with long month names.

See #11444.

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

13 years agoRemoved invalid use of sizeFlags parameter for SetSize call in generic calendar control.
Dimitri Schoolwerth [Sun, 17 Apr 2011 21:45:36 +0000 (21:45 +0000)] 
Removed invalid use of sizeFlags parameter for SetSize call in generic calendar control.

In r39715 the height parameter of a call to SetSize was changed to -1, however the previous coordinate value remained and became the fifth parameter which represents bit flags. Simply removed the fifth parameter.

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

13 years agoAdd wxAffineMatrix2D and related classes.
Vadim Zeitlin [Sun, 17 Apr 2011 00:09:56 +0000 (00:09 +0000)] 
Add wxAffineMatrix2D and related classes.

This class represents an affine 2D transformation and will be used in wxDC for
now and maybe in wxGC later.

Closes #13143.

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

13 years agoFix wxXmlDocument::SetRoot() broken by recent changes.
Vadim Zeitlin [Sun, 17 Apr 2011 00:09:45 +0000 (00:09 +0000)] 
Fix wxXmlDocument::SetRoot() broken by recent changes.

Support for wxXML_PI_NODE introduced in r67346 broke SetRoot() and, because of
this, saving XML documents.

Correct this and add a unit test for this method.

Closes #13135.

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

13 years agoDefine wxTextEntry::DoAutoCompleteStrings() stub in wxMSW code too.
Vadim Zeitlin [Sat, 16 Apr 2011 23:17:44 +0000 (23:17 +0000)] 
Define wxTextEntry::DoAutoCompleteStrings() stub in wxMSW code too.

Forgot to define this function in !HAS_AUTOCOMPLETE case. This fixes linking
problems with old compilers/headers such as VC6 with its original SDK.

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

13 years agoSplit wxTextCompleter into a base class and wxTextCompleterSimple.
Vadim Zeitlin [Sat, 16 Apr 2011 17:27:34 +0000 (17:27 +0000)] 
Split wxTextCompleter into a base class and wxTextCompleterSimple.

Allow overriding either the iterator-like methods of the base class or the
single and possibly more convenient, albeit slightly less efficient, method of
the derived wxTextCompleterSimple class.

This makes it possible to completely delegate to wxTextCompleter from wxMSW
IEnumString implementation and actually makes the code there easier, even if
it it still not quite trivial because of multi-threading concerns.

It also would make it possible to show the completions progressively, as they
are retrieved, in a future generic implementation of auto-completion (MSW
native implementation doesn't do this unfortunately and waits until all of the
completions become available before showing them).

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

13 years agoDon't block the main UI thread while generating completions in wxMSW.
Vadim Zeitlin [Sat, 16 Apr 2011 17:27:30 +0000 (17:27 +0000)] 
Don't block the main UI thread while generating completions in wxMSW.

The native IAutoComplete implementation takes care to retrieve the completions
from a background thread to prevent the UI from freezing while they're being
generated, but we worked against it by always generating all the completions
from the main thread and just enumerating them from the background one.

Change this now and call wxTextCompleter::GetCompletions() method from the
background thread itself to never block the main one.

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

13 years agoUse ACO_AUTOAPPEND option for text completion in wxMSW.
Vadim Zeitlin [Sat, 16 Apr 2011 17:27:26 +0000 (17:27 +0000)] 
Use ACO_AUTOAPPEND option for text completion in wxMSW.

This option appends the first candidate completion value to the text control
itself making it more user-friendly as it reduces the amount of typing needed
to enter it.

See #11465.

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

13 years agoAdded private wxEVT_AFTER_CHAR event for wxMSW implementation needs.
Vadim Zeitlin [Sat, 16 Apr 2011 17:27:21 +0000 (17:27 +0000)] 
Added private wxEVT_AFTER_CHAR event for wxMSW implementation needs.

This event is sent by wxMSW after the default handling of WM_CHAR has taken
place. It can be used to define an event handler triggered by key presses and
having access to the new value of the control, updated to take the last key
press into account.

This event will be used by auto-completion implementation for wxMSW only for
now.

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

13 years agoAdd support for dynamic auto-completion in wxTextEntry.
Vadim Zeitlin [Sat, 16 Apr 2011 17:27:16 +0000 (17:27 +0000)] 
Add support for dynamic auto-completion in wxTextEntry.

Add wxTextCompleter class which allows to return the possible completions
dynamically and wxTextCompleter::AutoComplete() overload using it. So far this
is only implemented for wxMSW.

Also fix calling wxTextEntry::AutoComplete(wxArrayString) multiple times under
MSW, this didn't correctly update the list of shown completions before.

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

13 years agoNo changes, just simplify preprocessor checks in wxMSW wxTextEntry.
Vadim Zeitlin [Sat, 16 Apr 2011 17:27:11 +0000 (17:27 +0000)] 
No changes, just simplify preprocessor checks in wxMSW wxTextEntry.

Separate !HAS_AUTOCOMPLETE stub versions from the real one as the code was
too difficult to read otherwise and would become even more so after the
addition of the upcoming custom auto-completer support.

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

13 years agoRefactor wxTextEntry::AutoComplete() to simply call DoAutoCompleteXXX().
Vadim Zeitlin [Sat, 16 Apr 2011 17:27:04 +0000 (17:27 +0000)] 
Refactor wxTextEntry::AutoComplete() to simply call DoAutoCompleteXXX().

No real changes, just make the public AutoComplete() non-virtual and add
virtual DoAutoCompleteXXX() methods to make it easier to add new public
AutoComplete() overloads in the upcoming commits.

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

13 years agoadding missing part when using the native paint CGContextRef on osx, see #11853
Stefan Csomor [Sat, 16 Apr 2011 16:59:44 +0000 (16:59 +0000)] 
adding missing part when using the native paint CGContextRef on osx, see #11853

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

13 years agosupprting flag for pixel offsetting for msw, see #11853
Stefan Csomor [Sat, 16 Apr 2011 13:07:11 +0000 (13:07 +0000)] 
supprting flag for pixel offsetting for msw, see #11853

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

13 years agosupprting flag for pixel offsetting for osx, see #11853
Stefan Csomor [Sat, 16 Apr 2011 13:05:17 +0000 (13:05 +0000)] 
supprting flag for pixel offsetting for osx, see #11853

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

13 years agosupprting flag for pixel offsetting for cairo, see #11853
Stefan Csomor [Sat, 16 Apr 2011 12:47:22 +0000 (12:47 +0000)] 
supprting flag for pixel offsetting for cairo, see #11853

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

13 years agosupport generic flag for pixel offsetting, see #11853
Stefan Csomor [Sat, 16 Apr 2011 12:21:37 +0000 (12:21 +0000)] 
support generic flag for pixel offsetting, see #11853

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

13 years agoReplaced C++ comments with C ones in C files.
Dimitri Schoolwerth [Fri, 15 Apr 2011 19:18:34 +0000 (19:18 +0000)] 
Replaced C++ comments with C ones in C files.

Replaced C++ comments (occurring outside of __cplusplus blocks) in files that contain the warning "THIS IS A C FILE" with C comments.

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

13 years agoworkaround for broken window managers which claim to support _NET_REQUEST_FRAME_EXTEN...
Paul Cornett [Fri, 15 Apr 2011 18:31:57 +0000 (18:31 +0000)] 
workaround for broken window managers which claim to support _NET_REQUEST_FRAME_EXTENTS, but don't respond to it
see #13146

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

13 years agoRemoved wxPG_DOUBLE_BUFFER constant. Now all wxPG rendering is done double-buffered...
Jaakko Salli [Fri, 15 Apr 2011 09:23:23 +0000 (09:23 +0000)] 
Removed wxPG_DOUBLE_BUFFER constant. Now all wxPG rendering is done double-buffered, regardless of the platform. Code path with wxPG_DOUBLE_BUFFER = 0 did not render correctly (fixes #13140). In future should probably use wxAutoBufferedPaintDC or something similar, but this will require non-trivial code changes and testing.

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

13 years agoRebuild textctrl events using copy ctor
Jaakko Salli [Thu, 14 Apr 2011 13:22:40 +0000 (13:22 +0000)] 
Rebuild textctrl events using copy ctor

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

13 years agowxEVT_COMMAND_TEXT_UPDATED events from wxComboCtrl's embedded wxTextCtrl kept confusi...
Jaakko Salli [Wed, 13 Apr 2011 16:39:06 +0000 (16:39 +0000)] 
wxEVT_COMMAND_TEXT_UPDATED events from wxComboCtrl's embedded wxTextCtrl kept confusing wxPropertyGrid::HandleCustomEditorEvent(). We need to ignore them.

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

13 years agoCompletely re-construct the wxComboCtrl textctrl-events instead of just redirecting...
Jaakko Salli [Wed, 13 Apr 2011 16:35:59 +0000 (16:35 +0000)] 
Completely re-construct the wxComboCtrl textctrl-events instead of just redirecting them

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

13 years agopreparing for completions support
Stefan Csomor [Wed, 13 Apr 2011 09:22:17 +0000 (09:22 +0000)] 
preparing for completions support

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

13 years agoDescribe what re-implemented wxComboPopup::DestroyPopup() should do
Jaakko Salli [Tue, 12 Apr 2011 09:35:04 +0000 (09:35 +0000)] 
Describe what re-implemented wxComboPopup::DestroyPopup() should do

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

13 years agoUpdate Makefile for OpenVMS
Jouk Jansen [Mon, 11 Apr 2011 10:23:37 +0000 (10:23 +0000)] 
Update Makefile for OpenVMS

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

13 years agorevoke OpenVMS dependend part of r67326
Jouk Jansen [Mon, 11 Apr 2011 09:36:56 +0000 (09:36 +0000)] 
revoke OpenVMS dependend part of r67326

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

13 years agoRe-define push_back() in wxSortedArrayString to behave correctly.
Vadim Zeitlin [Sun, 10 Apr 2011 15:36:07 +0000 (15:36 +0000)] 
Re-define push_back() in wxSortedArrayString to behave correctly.

Adding items to wxSortedArrayString should always keep them sorted but while
Add() did this, push_back() didn't breaking the class invariant.

Redefine push_back() in _WX_DEFINE_SORTED_TYPEARRAY_2 macro to fix this and
add a unit test checking that wxSortedArrayString::push_back() does work now.

Closes #13134.

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

13 years agoAllow customizing AUI tab colours in wxAuiTabArt.
Vadim Zeitlin [Sun, 10 Apr 2011 15:36:03 +0000 (15:36 +0000)] 
Allow customizing AUI tab colours in wxAuiTabArt.

Add wxAuiTabArt::SetColour() and SetActiveColour() methods and provide trivial
default implementation of them in wxAuiDefaultTabArt to allow customizing the
tab colours.

Closes #11411.

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

13 years agoFix off by one pixel error when drawing active tab in wxAUI.
Vadim Zeitlin [Sun, 10 Apr 2011 15:36:00 +0000 (15:36 +0000)] 
Fix off by one pixel error when drawing active tab in wxAUI.

The active tab had a drawing artefact because its gradient background was
drawn in a rectangle one pixel too short.

See #11411.

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

13 years agoCorrect Javanese language code.
Vadim Zeitlin [Sun, 10 Apr 2011 15:35:56 +0000 (15:35 +0000)] 
Correct Javanese language code.

It is "jv" and not "jw", the latter was an error in a previous edition of ISO
639 standard and was corrected since then.

Closes #13131.

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

13 years agoCorrection to position in character insertion event when also deleting selected text.
Julian Smart [Sat, 9 Apr 2011 10:28:45 +0000 (10:28 +0000)] 
Correction to position in character insertion event when also deleting selected text.

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

13 years agofixing configure builds for iphone
Stefan Csomor [Sat, 9 Apr 2011 09:22:51 +0000 (09:22 +0000)] 
fixing configure builds for iphone

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

13 years agosee #9715
Stefan Csomor [Fri, 8 Apr 2011 16:31:12 +0000 (16:31 +0000)] 
see #9715

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

13 years agoworkaround OSX bug, fixes #4555
Stefan Csomor [Fri, 8 Apr 2011 15:09:38 +0000 (15:09 +0000)] 
workaround OSX bug, fixes #4555

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

13 years agosupport 3.X deployment
Stefan Csomor [Fri, 8 Apr 2011 12:16:41 +0000 (12:16 +0000)] 
support 3.X deployment

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

13 years agoUpdate OpenVMS compile support
Jouk Jansen [Fri, 8 Apr 2011 08:08:10 +0000 (08:08 +0000)] 
Update OpenVMS compile support

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

13 years agoadding 10.5 APIs to avoid CGErrors, fixes #13121
Stefan Csomor [Thu, 7 Apr 2011 12:55:36 +0000 (12:55 +0000)] 
adding 10.5 APIs to avoid CGErrors, fixes #13121

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

13 years agobuild fix for wxUSE_LOG==0
Paul Cornett [Wed, 6 Apr 2011 17:04:12 +0000 (17:04 +0000)] 
build fix for wxUSE_LOG==0

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

13 years agoavoid GCC warning "suggest braces around empty body in an ‘else’ statement"
Paul Cornett [Wed, 6 Apr 2011 17:03:31 +0000 (17:03 +0000)] 
avoid GCC warning "suggest braces around empty body in an ‘else’ statement"

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

13 years agofix typo from r67326
Paul Cornett [Wed, 6 Apr 2011 17:02:28 +0000 (17:02 +0000)] 
fix typo from r67326

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

13 years agoFix vararg function in wxXml unit test broken by recent changes.
Vadim Zeitlin [Wed, 6 Apr 2011 16:37:24 +0000 (16:37 +0000)] 
Fix vararg function in wxXml unit test broken by recent changes.

The changes in r67345 changed CheckXml() vararg function to take a reference
as the first argument but this doesn't work with va_start(), so revert to
using a pointer here.

This fixes the current unit test failures in the XML tests.

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

13 years agoAvoid dereferencing invalid iterator in wxMessageDialog code.
Vadim Zeitlin [Wed, 6 Apr 2011 14:37:36 +0000 (14:37 +0000)] 
Avoid dereferencing invalid iterator in wxMessageDialog code.

The iterator wxString::rbegin().base()+1 is invalid so check that we don't use
it.

Closes #13126.

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

13 years agoCorrectly restore the old locale in wxXLocale functions.
Vadim Zeitlin [Wed, 6 Apr 2011 14:37:32 +0000 (14:37 +0000)] 
Correctly restore the old locale in wxXLocale functions.

In non-wxHAS_XLOCALE_SUPPORT case we didn't restore the original locale
correctly in wxStrtoxxx_l() functions as the return value of wxSetlocale() was
incorrectly assumed to be the old locale instead of the new one.

Fix this and also replace the macros used by the old code with a small helper
class, this simplifies the code and is less ugly.

Finally add a unit test which failed before these changes when the program ran
in any non-C locale but passes now.

Closes #13117.

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

13 years agoFix incorrect use of setlocale() in wxLocale::IsAvailable().
Vadim Zeitlin [Wed, 6 Apr 2011 14:37:27 +0000 (14:37 +0000)] 
Fix incorrect use of setlocale() in wxLocale::IsAvailable().

The return value of setlocale() was used incorrectly in this code: it
represents the newly set locale and not the previously active one so we didn't
actually restore the original locale before.

Fix the code and check that we do actually restore the locale in a new unit
test for it.

See #13117.

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

13 years agoUpdate OpenVMS compile support
Jouk Jansen [Wed, 6 Apr 2011 08:53:57 +0000 (08:53 +0000)] 
Update OpenVMS compile support

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

13 years agoFix for broken wxGTK1 compilation
Jouk Jansen [Wed, 6 Apr 2011 08:47:45 +0000 (08:47 +0000)] 
Fix for broken wxGTK1 compilation

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

13 years agoDon't do anything in WX_ASSERT_FAILS_WITH_ASSERT when wxDEBUG_LEVEL==0.
Vadim Zeitlin [Tue, 5 Apr 2011 22:29:58 +0000 (22:29 +0000)] 
Don't do anything in WX_ASSERT_FAILS_WITH_ASSERT when wxDEBUG_LEVEL==0.

We can't test for assert failure when using a build of wxWidgets in which
asserts don't exist at all.

Closes #13119.

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

13 years agoFix VarArgTestCase compilation when type traits are unavailable.
Vadim Zeitlin [Tue, 5 Apr 2011 22:29:55 +0000 (22:29 +0000)] 
Fix VarArgTestCase compilation when type traits are unavailable.

When type traits are unavailable we can't check whether a type can be passed
to a vararg function but we still need to pass a copyable object to
wxString::Format() for the code to compile, even if we just want to check that
it will fail with the assert at run-time.

Closes #13118.

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

13 years agobuild fix for gtk1
Paul Cornett [Tue, 5 Apr 2011 15:50:54 +0000 (15:50 +0000)] 
build fix for gtk1

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