]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
12 years agoDocument wxHelpControllerBase so the type can be used in Phoenix
Robin Dunn [Sat, 7 Apr 2012 04:18:23 +0000 (04:18 +0000)] 
Document wxHelpControllerBase so the type can be used in Phoenix

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

12 years agowxHtmlHelpController derives from wxHelpControllerBase
Robin Dunn [Sat, 7 Apr 2012 04:18:16 +0000 (04:18 +0000)] 
wxHtmlHelpController derives from wxHelpControllerBase

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

12 years agoAdd a ctor that is compatible with the documented wxHelpController API
Robin Dunn [Sat, 7 Apr 2012 04:18:11 +0000 (04:18 +0000)] 
Add a ctor that is compatible with the documented wxHelpController API

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

12 years agoHandle Ctrl-O and Ctrl-L MSW wxWebView accelerators too.
Vadim Zeitlin [Fri, 6 Apr 2012 19:51:23 +0000 (19:51 +0000)] 
Handle Ctrl-O and Ctrl-L MSW wxWebView accelerators too.

Do the same thing for them as for Ctrl-N, Ctrl-F and Ctrl-P, they are also
used by the control.

Closes #14192.

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

12 years agoRemove special setup_gccxml.h for GCCXML.
Vadim Zeitlin [Fri, 6 Apr 2012 19:51:20 +0000 (19:51 +0000)] 
Remove special setup_gccxml.h for GCCXML.

This file doesn't seem to be needed and the open() declaration in it actually
results in errors when using the latest gccxml from cvs under Windows, so just
get rid of it entirely.

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

12 years agofixes #14193
Stefan Csomor [Fri, 6 Apr 2012 18:07:10 +0000 (18:07 +0000)] 
fixes #14193

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

12 years agoSet the menu itself as event object for EVT_MENU_{OPEN,CLOSED} in wxMSW.
Vadim Zeitlin [Thu, 5 Apr 2012 22:27:36 +0000 (22:27 +0000)] 
Set the menu itself as event object for EVT_MENU_{OPEN,CLOSED} in wxMSW.

Make wxMSW consistent with the other ports and set the menu itself, not the
window it is attached to, as the event object for the menu open/close events.

See #1595.

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

12 years agoReuse wxMenu::SendEvent() from wxFrameBase::ProcessCommand().
Vadim Zeitlin [Thu, 5 Apr 2012 22:27:32 +0000 (22:27 +0000)] 
Reuse wxMenu::SendEvent() from wxFrameBase::ProcessCommand().

Not only this avoids code duplication but it also fixes wrong code in
wxFrameBase version as it set the event object incorrectly to the frame itself
instead of setting it to the menu.

Added event object check to the menu events unit test.

Closes #1595.

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

12 years agoAdd a very simple unit test checking for menu events.
Vadim Zeitlin [Thu, 5 Apr 2012 22:27:29 +0000 (22:27 +0000)] 
Add a very simple unit test checking for menu events.

Just verify that an event with the expected id was generated. The test will be
extended later to test for other event fields such as its source object,
see #1595.

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

12 years agoUse wxFrame::FindItemInMenuBar() in ProcessCommand().
Vadim Zeitlin [Thu, 5 Apr 2012 22:27:26 +0000 (22:27 +0000)] 
Use wxFrame::FindItemInMenuBar() in ProcessCommand().

Don't duplicate FindItemInMenuBar() code in ProcessCommand() and, more
importantly, use the overridden version of FindItemInMenuBar() in MDI parent
frame in wxMSW to allow using ids corresponding to the active child frame menu
items.

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

12 years agoDon't change the icon when editing wxDataViewIconText cells in generic version.
Vadim Zeitlin [Thu, 5 Apr 2012 18:40:23 +0000 (18:40 +0000)] 
Don't change the icon when editing wxDataViewIconText cells in generic version.

wxDataViewIconTextRenderer changed the icon to that of the last item drawn by
it when editing a cell. Fix this by getting the original icon directly from
the model instead of from the last item.

Closes #14187.

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

12 years agoHide combobox popup when it is hidden itself in wxMSW.
Vadim Zeitlin [Thu, 5 Apr 2012 18:40:20 +0000 (18:40 +0000)] 
Hide combobox popup when it is hidden itself in wxMSW.

It was possible to hide the main part of a combobox control but keep its popup
shown and this notably happened in wxGrid when TAB was pressed while a
wxChoice cell editor was dropped down.

Avoid this Cheshire combobox syndrome by explicitly dismissing the popup when
a combobox is hidden.

Closes #3113.

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

12 years agoRefactor: move wxComboBox::MSWDoPopupOrDismiss() down to wxChoice.
Vadim Zeitlin [Thu, 5 Apr 2012 18:40:15 +0000 (18:40 +0000)] 
Refactor: move wxComboBox::MSWDoPopupOrDismiss() down to wxChoice.

No real changes, just make this method available in wxChoice for the next
commit needs.

See #3113.

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

12 years agoRemove support for MetroWerks CodeWarrior compiler.
Vadim Zeitlin [Thu, 5 Apr 2012 18:40:11 +0000 (18:40 +0000)] 
Remove support for MetroWerks CodeWarrior compiler.

This compiler doesn't exist any more and was probably unsupported even in 2.8,
let alone 2.9, so remove all the __MWERKS__ tests to simplify things.

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

12 years agoRemove wrong const from wxMenu::GetMenuItems() documentation.
Vadim Zeitlin [Thu, 5 Apr 2012 18:40:00 +0000 (18:40 +0000)] 
Remove wrong const from wxMenu::GetMenuItems() documentation.

Only one of the overloads is const.

Closes #14169.

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

12 years agoNo real changes, just remove wxIsDebuggerRunning() stub from wxOSX.
Vadim Zeitlin [Thu, 5 Apr 2012 18:39:57 +0000 (18:39 +0000)] 
No real changes, just remove wxIsDebuggerRunning() stub from wxOSX.

There is no need to have a stub here when we already have in wx/debug.h, just
remove it.

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

12 years agoFix handling of the main window of composite controls in wxMSW wxToolTip.
Vadim Zeitlin [Thu, 5 Apr 2012 13:55:56 +0000 (13:55 +0000)] 
Fix handling of the main window of composite controls in wxMSW wxToolTip.

The main window itself should be added using DoAddHWND() and not
AddOtherWindow() as it is not, precisely, "other". This fixes removing and
updating it twice unnecessarily.

Closes #14184.

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

12 years agoNo real changes, just use clearer names for wxMSW wxToolTip methods.
Vadim Zeitlin [Thu, 5 Apr 2012 13:55:51 +0000 (13:55 +0000)] 
No real changes, just use clearer names for wxMSW wxToolTip methods.

Rename wxToolTip::DoAddOtherWindow() to DoAddHWND() as it should be used for
adding any window associated with the tooltip, either the main or an auxiliary
one. And rename wxToolTip::Add() to AddOtherWindow() because it shouldn't be
used for the main window.

See #14184.

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

12 years agoReally fix source coordinates handling in wxDC::Blit() in wxMSW.
Vadim Zeitlin [Thu, 5 Apr 2012 13:55:43 +0000 (13:55 +0000)] 
Really fix source coordinates handling in wxDC::Blit() in wxMSW.

It turns out that the changes r71028 were unnecessary (and actually harmful)
in most cases, they're only needed when a DIB is used as a source DC. So move
the manual coordinates adjustments to the branch of code using StretchDIBits()
and don't do it anywhere else.

Also don't list this as an incompatible change as wxMSW actually already
worked as the other ports in the majority of cases and list it as a simple bug
fix instead.

Closes #14188.

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

12 years agoAdd wxAffineMatrix2DBase class.
Robin Dunn [Wed, 4 Apr 2012 23:22:53 +0000 (23:22 +0000)] 
Add wxAffineMatrix2DBase class.

If a class is used somewhere as parameter or return value types then it needs to be documented, at least for Phoenix.

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

12 years agoFix wxRadioButtons without explicit wxRB_GROUP styles in wxGTK.
Vadim Zeitlin [Wed, 4 Apr 2012 22:30:30 +0000 (22:30 +0000)] 
Fix wxRadioButtons without explicit wxRB_GROUP styles in wxGTK.

If two radio buttons are created consecutively, they should be part of the
same radio group, even if wxRB_GROUP hadn't been explicitly used for the first
of them.

Do this is for consistency with wxMSW and also because the alternative
behaviour doesn't make much sense.

Also stop iterating too far backwards when searching for the group to be used
for a new radio button and add comments explaining what's going on here.

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

12 years agoRemove obsolete header used only with CodeWarrior MetroWerks compiler.
Vadim Zeitlin [Wed, 4 Apr 2012 22:16:24 +0000 (22:16 +0000)] 
Remove obsolete header used only with CodeWarrior MetroWerks compiler.

This compiler doesn't exist for modern OS X systems, no need to have the
headers used only with it as they just clatter the include directory and
confuse various tools parsing wx headers.

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

12 years agoAvoid overflowing the wake up when handling events in Unix console apps.
Vadim Zeitlin [Wed, 4 Apr 2012 14:36:45 +0000 (14:36 +0000)] 
Avoid overflowing the wake up when handling events in Unix console apps.

Generating many wake ups from the worker threads could result in overflowing
the buffer of the pipe used to communicate with the main thread which, in
turn, resulted in other serious problems (deadlocks...).

Avoid this by only writing to the pipe if it is empty.

Closes #14166.

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

12 years agoNo changes, just categorize change log entry correctly.
Vadim Zeitlin [Wed, 4 Apr 2012 14:36:39 +0000 (14:36 +0000)] 
No changes, just categorize change log entry correctly.

wxThread::SetConcurrency() should be in the non-GUI part, not wxUniv one.

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

12 years agoDon't link with QuickTime framework in 64 bit wxOSX builds.
Vadim Zeitlin [Tue, 3 Apr 2012 11:50:23 +0000 (11:50 +0000)] 
Don't link with QuickTime framework in 64 bit wxOSX builds.

This framework doesn't exist in 64 bits and so using it results in a warning
when building 64 bit libraries. Avoid this by omitting it if we are sure that
we target 64 bits only.

Closes #14144.

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

12 years agoAdded wxGraphicsContext::CreateMatrix(wxAffineMatrix2D) overload.
Vadim Zeitlin [Tue, 3 Apr 2012 11:50:19 +0000 (11:50 +0000)] 
Added wxGraphicsContext::CreateMatrix(wxAffineMatrix2D) overload.

Make it easy to convert generic wxAffineMatrix2D to native wxGraphicsMatrix.

Closes #13188.

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

12 years agoUpdate Makefile for OpenVMS
Jouk Jansen [Tue, 3 Apr 2012 06:25:03 +0000 (06:25 +0000)] 
Update Makefile for OpenVMS

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

12 years agoOverride DoThaw() in wxAuiNotebook correctly.
Vadim Zeitlin [Mon, 2 Apr 2012 18:26:03 +0000 (18:26 +0000)] 
Override DoThaw() in wxAuiNotebook correctly.

Don't "override" Thaw() in wxAuiNotebook as it's not virtual any more.
Override DoThaw() instead.

Also use wxBookCtrlBase instead of wxControl as the base class.

Closes #14179.

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

12 years agoDocument wxStreamBuffer::BufMode enum and fix dtor.
Vadim Zeitlin [Mon, 2 Apr 2012 16:07:44 +0000 (16:07 +0000)] 
Document wxStreamBuffer::BufMode enum and fix dtor.

Document the enum as it's used as parameter type by other methods and so needs
to be declared to make the header parsable.

Also fix wxStreamBuffer dtor documentation which was missing a tilde.

Closes #14174.

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

12 years agoFix wxArrayString::Item() and Last() documentation.
Vadim Zeitlin [Mon, 2 Apr 2012 16:07:41 +0000 (16:07 +0000)] 
Fix wxArrayString::Item() and Last() documentation.

Document both const and non-const versions of the methods.

Closes #14173.

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

12 years agoFix wxURI::HasUserInfo() name in the documentation.
Vadim Zeitlin [Mon, 2 Apr 2012 16:07:38 +0000 (16:07 +0000)] 
Fix wxURI::HasUserInfo() name in the documentation.

Use the correct name of an existing method instead of HasUser().

Closes #14172.

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

12 years agoFix wxTextFile::GetLine() documentation.
Vadim Zeitlin [Mon, 2 Apr 2012 16:07:34 +0000 (16:07 +0000)] 
Fix wxTextFile::GetLine() documentation.

Document both const and non-const overloads of this method instead of having
some strange (and non-existent) chimera of the two.

Closes #14171.

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

12 years agoRemove wrong consts from wxTextFile::Open() documentation.
Vadim Zeitlin [Mon, 2 Apr 2012 16:07:31 +0000 (16:07 +0000)] 
Remove wrong consts from wxTextFile::Open() documentation.

Open() is a non-const method.

See #14171.

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

12 years agoCorrect the return type of wxPersistenceManager methods in the documentation.
Vadim Zeitlin [Mon, 2 Apr 2012 16:07:28 +0000 (16:07 +0000)] 
Correct the return type of wxPersistenceManager methods in the documentation.

DisableSaving() and DisableRestoring() don't return anything.

Closes #14170.

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

12 years agoDocument pure virtual wxDropTarget methods correctly.
Vadim Zeitlin [Mon, 2 Apr 2012 16:07:24 +0000 (16:07 +0000)] 
Document pure virtual wxDropTarget methods correctly.

GetData(), OnData() and OnDrop() were not documented as being pure virtual.

Closes #14165.

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

12 years agoVietnamese translations update from Trần Ngọc Quân.
Vadim Zeitlin [Sun, 1 Apr 2012 17:27:15 +0000 (17:27 +0000)] 
Vietnamese translations update from Trần Ngọc Quân.

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

12 years agocorrect text drawing with background brush, fixes #14161
Stefan Csomor [Sun, 1 Apr 2012 13:37:53 +0000 (13:37 +0000)] 
correct text drawing with background brush, fixes #14161

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

12 years agoDocument wx{Single,Multi}ChoiceDialog styles in class documentation.
Vadim Zeitlin [Sun, 1 Apr 2012 10:26:37 +0000 (10:26 +0000)] 
Document wx{Single,Multi}ChoiceDialog styles in class documentation.

The styles should be documented in the class documentation, not the
documentation of individual constructors.

Closes #14162.

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

12 years agoInterface fixes for Phoenix
Robin Dunn [Sat, 31 Mar 2012 04:39:53 +0000 (04:39 +0000)] 
Interface fixes for Phoenix

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

12 years agoAdd NUM_CUSTOM
Robin Dunn [Sat, 31 Mar 2012 04:39:48 +0000 (04:39 +0000)] 
Add NUM_CUSTOM

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

12 years agoAdd wxGenericProgressDialog
Robin Dunn [Sat, 31 Mar 2012 04:39:43 +0000 (04:39 +0000)] 
Add wxGenericProgressDialog

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

12 years agoAdd missing dirctrl interface items for Phoenix
Robin Dunn [Fri, 30 Mar 2012 18:29:03 +0000 (18:29 +0000)] 
Add missing dirctrl interface items for Phoenix

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

12 years agoReturn run-time zlib version from wxGetZlibVersionInfo().
Vadim Zeitlin [Fri, 30 Mar 2012 12:16:58 +0000 (12:16 +0000)] 
Return run-time zlib version from wxGetZlibVersionInfo().

Return the version really used instead of the version the code was compiled
against.

Incidentally, this avoids the use of ZLIB_VERNUM not available in old (1.1)
versions of zlib, thus fixing compilation under Solaris 10.

Closes #14158.

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

12 years agoRemove nonsensical custom comparison code from wxDataViewIndexListModel.
Vadim Zeitlin [Thu, 29 Mar 2012 23:43:46 +0000 (23:43 +0000)] 
Remove nonsensical custom comparison code from wxDataViewIndexListModel.

This model was comparing its items by their positions in the list instead of
their values for some reason. This broke sorting in wxDataViewListCtrl using
this model and simply didn't make any sense.

Just remove the comparison code from wxDataViewIndexListModel entirely, the
base class version works just fine for it.

Closes #14116.

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

12 years agoRestore the correct brush in wxGCDC::GradientFill() methods.
Vadim Zeitlin [Thu, 29 Mar 2012 23:43:43 +0000 (23:43 +0000)] 
Restore the correct brush in wxGCDC::GradientFill() methods.

Both GradientFillLinear() and GradientFillConcentric() changed the brush on
the underlying wxGraphicsContext but didn't restore the default brush back.

Closes #14131.

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

12 years agoRemove setup0.h files from the list of headers in bakefile.
Vadim Zeitlin [Thu, 29 Mar 2012 23:17:26 +0000 (23:17 +0000)] 
Remove setup0.h files from the list of headers in bakefile.

These headers don't exist in official distributions as they're renamed to
setup.h in them. Moreover, they don't need to be installed anyhow when using
configure as the real setup.h is installed specially, so there is no real need
to have them in the list of headers.

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

12 years agoadding tabart.cpp file
Stefan Csomor [Thu, 29 Mar 2012 20:05:29 +0000 (20:05 +0000)] 
adding tabart.cpp file

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

12 years agoadding tabart.cpp file
Stefan Csomor [Thu, 29 Mar 2012 19:59:34 +0000 (19:59 +0000)] 
adding tabart.cpp file

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

12 years agoAdded missing DESTDIR to wx-config installation make rule.
Vadim Zeitlin [Thu, 29 Mar 2012 19:19:05 +0000 (19:19 +0000)] 
Added missing DESTDIR to wx-config installation make rule.

All paths should be prefixed by $(DESTDIR) but it was forgotten in "ln -s"
command.

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

12 years agowxTreeCtrl interface fixes for Phoenix
Robin Dunn [Thu, 29 Mar 2012 17:14:52 +0000 (17:14 +0000)] 
wxTreeCtrl interface fixes for Phoenix

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

12 years agoAllow closing wxAuiTabCtrl pages without switching to them.
Vadim Zeitlin [Thu, 29 Mar 2012 12:08:05 +0000 (12:08 +0000)] 
Allow closing wxAuiTabCtrl pages without switching to them.

Clicking on the page "x" close button switched to the page before doing
anything else which was unusual as other tabbed controls don't behave like
this.

Handle clicks on the close button specially and avoid switching to the page
which is about to be closed anyhow.

Closes #14150.

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

12 years agoFix focus handling logic in generic wxListCtrl.
Vadim Zeitlin [Thu, 29 Mar 2012 00:10:53 +0000 (00:10 +0000)] 
Fix focus handling logic in generic wxListCtrl.

Don't override SetFocus() to set the focus to the main window, this isn't
enough as we can be given the focus by the underlying toolkit itself, without
our SetFocus() being called -- this happened in wxGTK when focus was changed
from the keyboard using TAB and in this case it didn't get to the main window
but remaining on the wxListCtrl itself meaning that keyboard input wasn't
processed at all.

Use wxNavigationEnabled<> now to ensure that OnSetFocus() and related methods
do the right thing instead now.

Also get rid of OnSetFocus() in wxListHeaderWindow, it's better to override
AcceptsFocus() to return false to avoid getting focus in the first place.

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

12 years agoMinor changes, just trim trailing spaces in webview code.
Steve Lamerton [Wed, 28 Mar 2012 18:00:30 +0000 (18:00 +0000)] 
Minor changes, just trim trailing spaces in webview code.

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

12 years agoDocument that wxDateTime::UNow() returns UTC time.
Vadim Zeitlin [Wed, 28 Mar 2012 11:29:40 +0000 (11:29 +0000)] 
Document that wxDateTime::UNow() returns UTC time.

This wasn't clear and was probably surprising as this is different from Now()
behaviour.

See #14149.

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

12 years agoadding correct behavior for move events as the are issued under OSX
Stefan Csomor [Wed, 28 Mar 2012 09:13:40 +0000 (09:13 +0000)] 
adding correct behavior for move events as the are issued under OSX

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

12 years agoCorrectly use QueryInterface in GetDocument to ensure that we only return an IHTMLDoc...
Steve Lamerton [Tue, 27 Mar 2012 19:33:59 +0000 (19:33 +0000)] 
Correctly use QueryInterface in GetDocument to ensure that we only return an IHTMLDocument2 pointer if one is available. Check GetDocument being NULL when used. This fixes the displaying of non-html documents such as pdfs.

Fixes #14060

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

12 years agoAdd missing interface items for listctrl.
Robin Dunn [Tue, 27 Mar 2012 17:28:56 +0000 (17:28 +0000)] 
Add missing interface items for listctrl.

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

12 years agoHonour source wxDC coordinate system in wxDC::Blit() in wxMSW.
Vadim Zeitlin [Tue, 27 Mar 2012 12:28:04 +0000 (12:28 +0000)] 
Honour source wxDC coordinate system in wxDC::Blit() in wxMSW.

wxGTK and wxOSX already did this so do it in wxMSW as well.

Update the documentation to make this explicit.

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

12 years agoMake wxDC::Blit() and StretchBlit() documentation more useful.
Vadim Zeitlin [Tue, 27 Mar 2012 12:28:01 +0000 (12:28 +0000)] 
Make wxDC::Blit() and StretchBlit() documentation more useful.

Enumerating the list of parameters in the method description is not especially
helpful, don't do it. Explain the functions relationship instead.

Also don't say that StretchBlit() is not implemented in wxGTK because it does
work there (using the generic implementation using wxDC scale).

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

12 years agoSet wxTextAreaBase::m_filename in the methods of this class itself.
Vadim Zeitlin [Tue, 27 Mar 2012 11:58:09 +0000 (11:58 +0000)] 
Set wxTextAreaBase::m_filename in the methods of this class itself.

m_filename member was declared in wxTextAreaBase but set only in the
overridden wxTextCtrlBase methods. This meant that it wasn't updated correctly
in wxStyledTextCtrl which also derives from wxTextAreaBase and so saving
SaveFile() with empty file name didn't work there even when the control had
been originally loaded from a file.

Move the code updating m_filename to wxTextAreaBase itself to fix this. This
also simplifies the code as it's now not necessary to override
Do{Load,Save}File() in wxTextCtrlBase at all.

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

12 years agoUse IsDescendant() in wxTopLevelWindow::IsActive() implementation.
Vadim Zeitlin [Tue, 27 Mar 2012 11:58:05 +0000 (11:58 +0000)] 
Use IsDescendant() in wxTopLevelWindow::IsActive() implementation.

Avoid wxGetTopLevelParent() which doesn't work for the strange TLWs which
override IsTopLevel() to return false, as wxMDIChildFrame does in wxMSW.
Using IsDescendant() works in any case and also is arguably more clear.

Closes #3063.

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

12 years agoAdded wxWindow::IsDescendant() helper.
Vadim Zeitlin [Tue, 27 Mar 2012 11:58:02 +0000 (11:58 +0000)] 
Added wxWindow::IsDescendant() helper.

This function checks if another window is a direct or indirect child of this
one, which can be needed in a number of situations.

See #3063.

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

12 years agoCorrected scale factor for the use of DC PPI instead of printer PPI in wxRTC code
Julian Smart [Mon, 26 Mar 2012 16:57:05 +0000 (16:57 +0000)] 
Corrected scale factor for the use of DC PPI instead of printer PPI in wxRTC code

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

12 years agonon-pch build fix, closes #14140
Paul Cornett [Mon, 26 Mar 2012 15:44:31 +0000 (15:44 +0000)] 
non-pch build fix, closes #14140

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

12 years agoArabic translations update from Fatma Mehanna.
Vadim Zeitlin [Mon, 26 Mar 2012 11:52:14 +0000 (11:52 +0000)] 
Arabic translations update from Fatma Mehanna.

Also backport the translations to 2.8 branch.

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

12 years agoNo changes, just small cleanup in AUI GTK tab art drawing code.
Vadim Zeitlin [Mon, 26 Mar 2012 11:24:01 +0000 (11:24 +0000)] 
No changes, just small cleanup in AUI GTK tab art drawing code.

Use more clear variable names; remove commented out assignments to inexistent
variables.

Closes #14139.

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

12 years agoFix gap box coordinates in GTK AUI tab art code.
Vadim Zeitlin [Mon, 26 Mar 2012 11:23:58 +0000 (11:23 +0000)] 
Fix gap box coordinates in GTK AUI tab art code.

Closes #14138.

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

12 years agoMinor fix to wxGraphicsContext::SetInterpolationQuality() in wxMSW.
Vadim Zeitlin [Mon, 26 Mar 2012 11:23:54 +0000 (11:23 +0000)] 
Minor fix to wxGraphicsContext::SetInterpolationQuality() in wxMSW.

Only update the internal variable if we really succeeded in changing the
interpolation mode.

See #14134.

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

12 years agoremove unneeded includes and forward declaration
Paul Cornett [Sun, 25 Mar 2012 23:34:42 +0000 (23:34 +0000)] 
remove unneeded includes and forward declaration

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

12 years agoremove unused variable
Paul Cornett [Sun, 25 Mar 2012 23:33:43 +0000 (23:33 +0000)] 
remove unused variable

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

12 years agoreplace wxBitmap::SetPixbuf() with wxBitmap ctor taking pixbuf
Paul Cornett [Sun, 25 Mar 2012 23:33:18 +0000 (23:33 +0000)] 
replace wxBitmap::SetPixbuf() with wxBitmap ctor taking pixbuf

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

12 years agoFix generic wxTimePickerCtrl on DST change dates.
Vadim Zeitlin [Sun, 25 Mar 2012 23:17:04 +0000 (23:17 +0000)] 
Fix generic wxTimePickerCtrl on DST change dates.

Do not use the date when DST changes as the date part of wxDateTime object
used by wxTimePickerGeneric internally as this introduces problems with times
that can't be represented at all -- and so can't be entered into the control.
Use arbitrary date on which DST does not change to avoid this.

Closes #14137.

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

12 years agoAdded wxTimePickerCtrl::GetTime() and SetTime().
Vadim Zeitlin [Sun, 25 Mar 2012 23:17:01 +0000 (23:17 +0000)] 
Added wxTimePickerCtrl::GetTime() and SetTime().

These methods, taking broken down time representation, avoid the problems
arising due to DST complications when using wxDateTime to represent the time
as special care needs to be taken in this case to avoid using the date part
corresponding to a DST change date at which time is discontinuous.

Document the problem with the old functions and use the new ones in the
sample.

See #14137.

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

12 years agobuild fixes
Paul Cornett [Sun, 25 Mar 2012 19:15:54 +0000 (19:15 +0000)] 
build fixes

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

12 years agoImplement native tab art for wxAUI in wxGTK.
Vadim Zeitlin [Sun, 25 Mar 2012 17:56:04 +0000 (17:56 +0000)] 
Implement native tab art for wxAUI in wxGTK.

Use native wxAuiTabArt implementation in wxGTK, it better conforms to the
system style.

Closes #14098.

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

12 years agoRefactor wxAUI: extract wxAuiTabArt in a separate file.
Vadim Zeitlin [Sun, 25 Mar 2012 17:55:59 +0000 (17:55 +0000)] 
Refactor wxAUI: extract wxAuiTabArt in a separate file.

No real changes, just extract wxAuiTabArt into its own file. Also rename
wxAuiDefaultTabArt to wxAuiSimpleTabArt in preparation for having other tab
art classes as the default one.

See #14098.

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

12 years agoExplicitly include wx/aui/dockart.h from the file needing it.
Vadim Zeitlin [Sun, 25 Mar 2012 17:55:52 +0000 (17:55 +0000)] 
Explicitly include wx/aui/dockart.h from the file needing it.

src/aui/tabmdi.cpp needs wxAuiDockArt declaration as it uses it, don't rely on
wx/aui/dockart.h being included from other wxAUI headers and include it from
here explicitly.

See #14098.

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

12 years agoAdd a private GetNotebookWidget() accessor to wxGTK.
Vadim Zeitlin [Sun, 25 Mar 2012 17:55:49 +0000 (17:55 +0000)] 
Add a private GetNotebookWidget() accessor to wxGTK.

This is similar to the other existing functions and allows to access
GtkNotebook-specific style.

See #14098.

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

12 years agoExport wxGTK private widget creation functions from core library.
Vadim Zeitlin [Sun, 25 Mar 2012 17:55:45 +0000 (17:55 +0000)] 
Export wxGTK private widget creation functions from core library.

This is necessary to allow using them from other libraries, e.g. wxAUI that
will do it in the upcoming commits.

See #14098.

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

12 years agoInclude <wx/textctrl.h> from <wx/combobox.h> for compatibility.
Vadim Zeitlin [Sun, 25 Mar 2012 17:55:42 +0000 (17:55 +0000)] 
Include <wx/textctrl.h> from <wx/combobox.h> for compatibility.

The wxComboBox header itself doesn't need <wx/textctrl.h> but there exists
code using wxComboBox with wxTextCtrl styles and events that doesn't include
<wx/textctrl.h> explicitly because it wasn't necessary in 2.8. So include it
from wx/combobox.h to avoid breaking this code after an upgrade to 2.9.

Closes #14132.

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

12 years agoReturn valid pointers from wxDateTime::ParseXXX() with non-wxString strings.
Vadim Zeitlin [Sun, 25 Mar 2012 16:45:53 +0000 (16:45 +0000)] 
Return valid pointers from wxDateTime::ParseXXX() with non-wxString strings.

The pointer returned by wxDateTime::ParseXXX() methods could point into a
buffer of a temporary wxString created to wrap a char* or wchar_t* argument so
dereferencing it was illegal.

Fix this by defining separate overloads for char*/wchar_t* arguments returning
pointers into the original string.

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

12 years agoAdd helper wxString::IterOffsetInMBStr() method.
Vadim Zeitlin [Sun, 25 Mar 2012 16:45:50 +0000 (16:45 +0000)] 
Add helper wxString::IterOffsetInMBStr() method.

This method can be used to recover the pointer in char* buffer containing
multi-byte string representation corresponding to the given iterator which is
useful for implementing backwards-compatible functions that must be able to
return such pointers.

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

12 years agoCorrect Eric Jensen name in the change log.
Vadim Zeitlin [Sun, 25 Mar 2012 12:14:53 +0000 (12:14 +0000)] 
Correct Eric Jensen name in the change log.

See #14134.

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

12 years agoFix bug with parsing time formats during DST periods.
Vadim Zeitlin [Sun, 25 Mar 2012 00:31:47 +0000 (00:31 +0000)] 
Fix bug with parsing time formats during DST periods.

wxDateTime::ParseFormat() used todays date as fall back when parsing all
formats, including those involving times, which meant that its results
depended on whether DST was active at the time of the parsing which was
clearly wrong.

Fix this by using a fixed date on which DST is known not to be active as fall
back date.

This fixes unit test failures in DateTimeTestCase::TestTimeFormat() when it
was ran on a DST transition date.

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

12 years agoAdd a gdb pretty printer for wxDateTime.
Vadim Zeitlin [Sun, 25 Mar 2012 00:31:38 +0000 (00:31 +0000)] 
Add a gdb pretty printer for wxDateTime.

Format it using Python datetime module in the standard ISO notation.

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

12 years agoAllow hiding rows in wxGrid with HideRow().
Vadim Zeitlin [Sat, 24 Mar 2012 18:24:19 +0000 (18:24 +0000)] 
Allow hiding rows in wxGrid with HideRow().

HideRow() was simply ignored as SetRowSize(row, 0) didn't do anything. Check
for the special value of 0 and allow it, just as it was done for the columns
since r57336.

See #14133.

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

12 years agoImplement wxGraphicsContext::SetInterpolationQuality() for wxMSW.
Vadim Zeitlin [Sat, 24 Mar 2012 18:24:15 +0000 (18:24 +0000)] 
Implement wxGraphicsContext::SetInterpolationQuality() for wxMSW.

Provide implementation of the previously stubbed out method.

Closes #14134.

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

12 years agoavoid reported problem with RHEL 5 GTK+ 2.10 where selection is reset by a clipboard...
Paul Cornett [Fri, 23 Mar 2012 16:50:13 +0000 (16:50 +0000)] 
avoid reported problem with RHEL 5 GTK+ 2.10 where selection is reset by a clipboard callback, closes #13277

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

12 years agoDon't cache incorrect length in wxString::DoUngetWriteBuf().
Vadim Zeitlin [Fri, 23 Mar 2012 15:13:16 +0000 (15:13 +0000)] 
Don't cache incorrect length in wxString::DoUngetWriteBuf().

The length here is the size of the buffer in bytes and is not necessarily the
string length in code points (notably not for non-ASCII strings in UTF-8
build).

Closes #14130.

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

12 years agoDon't cache incorrect length in wxString::assign(char*, size_t).
Vadim Zeitlin [Fri, 23 Mar 2012 15:13:13 +0000 (15:13 +0000)] 
Don't cache incorrect length in wxString::assign(char*, size_t).

The length of the string here is specified in bytes and is not the same as the
string length for non-ASCII UTF-8 strings, so don't cache it as the string
length.

Just invalidate the cached length instead as we simply don't know what the
real length of the string is going to be.

See #14130.

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

12 years agoFix caching wrong length in wxString(str, len) ctor in UTF-8 build.
Vadim Zeitlin [Fri, 23 Mar 2012 15:13:08 +0000 (15:13 +0000)] 
Fix caching wrong length in wxString(str, len) ctor in UTF-8 build.

A length greater than that of the source string could be passed to this ctor.
This worked correctly, i.e. created a string which was a copy of the source
one but cached a wrong length for it.

Avoid this by explicitly checking the length before caching it in
wxString::assign(str, len).

See #14130.

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

12 years agoupdate setup for OpenVMS
Jouk Jansen [Fri, 23 Mar 2012 09:30:14 +0000 (09:30 +0000)] 
update setup for OpenVMS

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

12 years agofix building with GTK+ < 2.8
Paul Cornett [Thu, 22 Mar 2012 18:09:43 +0000 (18:09 +0000)] 
fix building with GTK+ < 2.8

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

12 years agoImplement horizontal mouse wheel events support for wxMSW.
Vadim Zeitlin [Thu, 22 Mar 2012 00:27:02 +0000 (00:27 +0000)] 
Implement horizontal mouse wheel events support for wxMSW.

Handle WM_MOUSEHWHEEL messages and translate them to the corresponding
wxMouseEvents.

Closes #14105.

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

12 years agoUse enum for wxMouseEvent::m_wheelAxis instead of int.
Vadim Zeitlin [Thu, 22 Mar 2012 00:26:59 +0000 (00:26 +0000)] 
Use enum for wxMouseEvent::m_wheelAxis instead of int.

This variable can take only 2 values, use symbolic names for them instead of
difficult to understand 0 and 1.

See ##14105.

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

12 years agoUse pthread_setconcurrency() in wxThread::SetConcurrency().
Vadim Zeitlin [Thu, 22 Mar 2012 00:12:40 +0000 (00:12 +0000)] 
Use pthread_setconcurrency() in wxThread::SetConcurrency().

Use POSIX function if available instead of only using Solaris-specific
thr_setconcurrency() which is not found in modern Linux systems any more.

Closes #2115.

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

12 years agoAvoid assert when deleting columns if there is more columns than there are column...
Robin Dunn [Wed, 21 Mar 2012 16:42:00 +0000 (16:42 +0000)] 
Avoid assert when deleting columns if there is more columns than there are column labels

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

12 years agoFix display of "const" methods in wxGTK assert dialog.
Vadim Zeitlin [Wed, 21 Mar 2012 00:11:12 +0000 (00:11 +0000)] 
Fix display of "const" methods in wxGTK assert dialog.

Don't separate the function name and its arguments types in 2 different
columns in the assert dialog, this doesn't really work with const methods as
"const" can't be separated from the function like this. The old code just
didn't take "const" into account at all and mangled all the const methods by
showing ") cons" (no typo) at the end.

Just show everything in one column to avoid the problem and also simplify the
code.

Closes #14104.

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

12 years agoRemove empty and unnecessary wxFontDialogBase destructor.
Vadim Zeitlin [Tue, 20 Mar 2012 23:31:25 +0000 (23:31 +0000)] 
Remove empty and unnecessary wxFontDialogBase destructor.

This fixes build with wxUSE_FONTMAP==0 as this dtor was only defined inside
"#if wxUSE_FONTMAP" section. Instead of fixing this, just get rid of this dtor
entirely as it was unnecessary anyhow.

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

12 years agoFix wxMSW compilation when wxUSE_FONTMAP==0.
Vadim Zeitlin [Tue, 20 Mar 2012 23:26:39 +0000 (23:26 +0000)] 
Fix wxMSW compilation when wxUSE_FONTMAP==0.

Don't use wxFontMapper::GetEncodingName() in wxFontEnumerator if wxFontMapper
is not available.

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