wxWidgets.git
13 years agoAdded wxVariant::Convert() implementations for wx(U)LongLong_t, so that wxVariant...
Jaakko Salli [Sun, 25 Jul 2010 09:30:50 +0000 (09:30 +0000)] 
Added wxVariant::Convert() implementations for wx(U)LongLong_t, so that wxVariant can be converted to native 64-bit integer types on the same terms as it is converted to other numeric types (useful in e.g. template functions)

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

13 years agoSet 'Min' attribute for the sample wxFloatProperty
Jaakko Salli [Sun, 25 Jul 2010 09:23:25 +0000 (09:23 +0000)] 
Set 'Min' attribute for the sample wxFloatProperty

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

13 years agoUse default wxPropertyGrid validation failure behavior in the sample
Jaakko Salli [Sun, 25 Jul 2010 09:19:52 +0000 (09:19 +0000)] 
Use default wxPropertyGrid validation failure behavior in the sample

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

13 years agoMake SetFont() public (fixes #9641)
Jaakko Salli [Sun, 25 Jul 2010 07:39:17 +0000 (07:39 +0000)] 
Make SetFont() public (fixes #9641)

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

13 years agoOnly define WXUSINGDLL in DLL configurations when building wxscintilla.
Vadim Zeitlin [Sun, 25 Jul 2010 00:19:06 +0000 (00:19 +0000)] 
Only define WXUSINGDLL in DLL configurations when building wxscintilla.

WXUSINGDLL shouldn't be defined in static build configurations, this results
in warnings and might explain errors in MinGW build.

Closes #11966.

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

13 years agoNo real changes in makefile but avoid repetitious in bakefile.
Vadim Zeitlin [Sun, 25 Jul 2010 00:18:57 +0000 (00:18 +0000)] 
No real changes in makefile but avoid repetitious in bakefile.

Collect all preprocessor options needed for Scintilla compilation in
wxscintilla_cppflags template and use for both Scintilla compilation itself
and for the wx libraries using it.

The order of flags in the makefiles has changed but they are still the same
except for Borland makefile which now includes Borland-specific warning
suppression option everywhere it's needed and not just in multilib targets.

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

13 years agoNo changes, just remove hard TABs and fix a typo.
Vadim Zeitlin [Sun, 25 Jul 2010 00:18:51 +0000 (00:18 +0000)] 
No changes, just remove hard TABs and fix a typo.

Separate trivial changes from subsequent commits.

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

13 years agoUpdate the version tech note to remind to rebake.
Vadim Zeitlin [Sun, 25 Jul 2010 00:18:46 +0000 (00:18 +0000)] 
Update the version tech note to remind to rebake.

Insist on the fact that version.bkl (which is not updated by the script) must
be updated and makefiles rebaked after any version change.

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

13 years agoUpgrade version in the bakefiles to 2.9.2 as well and rebake.
Vadim Zeitlin [Sun, 25 Jul 2010 00:18:34 +0000 (00:18 +0000)] 
Upgrade version in the bakefiles to 2.9.2 as well and rebake.

Rebake makefiles to update the name used for the shared libraries to reflect
the new version.

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

13 years agoRemove asserts in wxMSW::wxTLW::SetIcons() and always set some icon.
Vadim Zeitlin [Sat, 24 Jul 2010 17:43:47 +0000 (17:43 +0000)] 
Remove asserts in wxMSW::wxTLW::SetIcons() and always set some icon.

In practice having the icons of the exact size for all versions of Windows is
not always possible, there are just too many of them. So set the icon of the
most suitable size if no exact match is found instead of asserting in this
case.

See #11146.

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

13 years agoFix buildbot build 'Linux i386 wxGTK stable STL' building wrong branch.
Michael Wetherell [Sat, 24 Jul 2010 15:32:57 +0000 (15:32 +0000)] 
Fix buildbot build 'Linux i386 wxGTK stable STL' building wrong branch.

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

13 years agoMake calls wxDataViewModel::ItemDeleted() etc. non-virtual as they are not supposed...
Robert Roebling [Sat, 24 Jul 2010 15:30:03 +0000 (15:30 +0000)] 
Make calls wxDataViewModel::ItemDeleted() etc. non-virtual as they are not supposed to be overridden

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

13 years agoDon't show empty sizers.
Vadim Zeitlin [Sat, 24 Jul 2010 12:27:34 +0000 (12:27 +0000)] 
Don't show empty sizers.

Revert the change of r44514 and do hide the empty sizers. Code relying on them
being shown/positioned should use wxRESERVE_SPACE_EVEN_IF_HIDDEN flag but
assuming it by default results in completely unexpected layouts, e.g. still
using margins around a sizer with hidden window if it contains an empty
sub-sizer.

Closes #11426.

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

13 years agoPostpone showing the notebook pages under wxOSX/Cocoa.
Vadim Zeitlin [Sat, 24 Jul 2010 12:27:29 +0000 (12:27 +0000)] 
Postpone showing the notebook pages under wxOSX/Cocoa.

Showing the selected notebook page immediately when it's selected can result
in the top level parent of the notebook being shown prematurely, so don't do
this until the notebook itself is shown.

Closes #12227.

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

13 years agoAdd EVT_RIBBONGALLERY_CLICKED event.
Vadim Zeitlin [Sat, 24 Jul 2010 12:27:25 +0000 (12:27 +0000)] 
Add EVT_RIBBONGALLERY_CLICKED event.

This event is sent whenever an item is clicked, even if it's already selected,
unlike the existing EVT_RIBBONGALLERY_SELECTED.

Closes #12128.

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

13 years agoRemove hard limit on number of pages in wxHtmlPrintout.
Vadim Zeitlin [Sat, 24 Jul 2010 12:27:18 +0000 (12:27 +0000)] 
Remove hard limit on number of pages in wxHtmlPrintout.

This seems to be a leftover from an old version in which the page breaks
positions were stored in a fixed size array. As the code uses a dynamic array
now there doesn't seem to be any reason to impose any limit on the number of
pages and some people did run into the old 999 pages limitation apparently.

Closes #11159.

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

13 years agoRemove selection showing code from the grid sample.
Vadim Zeitlin [Sat, 24 Jul 2010 11:56:11 +0000 (11:56 +0000)] 
Remove selection showing code from the grid sample.

This code is broken as it doesn't always show the selection correctly and
doesn't handle rows-or-columns selection mode at all. Until we can fix it
properly it's better to not have it at all so that at least people avoid
copying the wrong code into their own programs.

Closes #12195.

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

13 years agoDocument wxGridSelectRowsOrColumns selection mode.
Vadim Zeitlin [Sat, 24 Jul 2010 11:56:06 +0000 (11:56 +0000)] 
Document wxGridSelectRowsOrColumns selection mode.

See #12195.

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

13 years agoAdd test for a custom cursor to the image sample.
Vadim Zeitlin [Sat, 24 Jul 2010 11:49:05 +0000 (11:49 +0000)] 
Add test for a custom cursor to the image sample.

Load a cursor from PNG file to check that it appears as expected.

See #11989.

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

13 years agoFix AUI compilation without PCH after recent changes.
Vadim Zeitlin [Sat, 24 Jul 2010 11:23:17 +0000 (11:23 +0000)] 
Fix AUI compilation without PCH after recent changes.

r65061 broke PCH-less compilation as it used wxClientDC without (forward)
declaring it. Fix this and also correct wxAuiPaneInfo forward declaration.

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

13 years agoUpdate BUILD and DEBUG_{FLAG,INFO} documentation for wxMSW.
Vadim Zeitlin [Fri, 23 Jul 2010 23:44:05 +0000 (23:44 +0000)] 
Update BUILD and DEBUG_{FLAG,INFO} documentation for wxMSW.

The documentation was completely out of date and hence very misleading.

Closes #12244.

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

13 years agoRemove mentions of wxUSE_ODBC from documentation.
Vadim Zeitlin [Fri, 23 Jul 2010 23:44:00 +0000 (23:44 +0000)] 
Remove mentions of wxUSE_ODBC from documentation.

This option doesn't exist any more in 2.9.

See #12244.

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

13 years agoImplement wxAuiDefaultTabArt::Clone() using its copy ctor.
Vadim Zeitlin [Fri, 23 Jul 2010 23:33:51 +0000 (23:33 +0000)] 
Implement wxAuiDefaultTabArt::Clone() using its copy ctor.

Compiler-generated copy ctor works just fine for this class, there is really
no reason to reimplement it, especially wrongly (as it loses many and even
most of the fields), in Clone().

Closes #11388.

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

13 years agoEnsure that wxAuiNotebook::SetArtProvider() always does set it.
Vadim Zeitlin [Fri, 23 Jul 2010 23:33:46 +0000 (23:33 +0000)] 
Ensure that wxAuiNotebook::SetArtProvider() always does set it.

It used to only set the provider if the height of the tabs defined by the new
provider was different from the one used by the old one, otherwise the call
was optimized away. Fix this by explicitly setting the art provider for all
tabs in SetArtProvider() itself if UpdateTabCtrlHeight() didn't do it.

Closes #9738.

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

13 years agoFix waiting for IO on UDP sockets.
Vadim Zeitlin [Fri, 23 Jul 2010 23:33:40 +0000 (23:33 +0000)] 
Fix waiting for IO on UDP sockets.

We mistakenly considered them closed because they were not connected but UDP
sockets don't have to be -- unlike TCP ones.

Closes #11384.

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

13 years agoFix MSW compilation with wxUSE_DEFERRED_SIZING==0.
Vadim Zeitlin [Fri, 23 Jul 2010 23:33:36 +0000 (23:33 +0000)] 
Fix MSW compilation with wxUSE_DEFERRED_SIZING==0.

Add checks for wxUSE_DEFERRED_SIZING around the code using
wxWindow::m_pending{Size,Position}.

Closes #11348.

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

13 years agoJust call wxDocManager::CloseDocument() instead of duplicating it.
Vadim Zeitlin [Fri, 23 Jul 2010 23:33:32 +0000 (23:33 +0000)] 
Just call wxDocManager::CloseDocument() instead of duplicating it.

No real changes but avoid making the document deletion code even more opaque
by duplicating the code already existing as a function elsewhere.

Closes #11364.

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

13 years agoNo changes, just slightly improve docview sample code.
Vadim Zeitlin [Fri, 23 Jul 2010 23:33:27 +0000 (23:33 +0000)] 
No changes, just slightly improve docview sample code.

Call the base class version of OnClose() in the derived classes instead of
duplicating it.

Closes #11363.

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

13 years agoPropagate wxHtmlWindow layout direction to the wxDC it uses.
Vadim Zeitlin [Fri, 23 Jul 2010 23:33:23 +0000 (23:33 +0000)] 
Propagate wxHtmlWindow layout direction to the wxDC it uses.

While wxHtmlWindow doesn't support mixing LTR and RTL contents we can indeed
try to make it render pure RTL stuff correctly by setting up the wxDC used for
drawing accordingly.

Closes #1988.

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

13 years agoAdd support for CP-866 encoding to wxEncodingConverter.
Vadim Zeitlin [Fri, 23 Jul 2010 23:33:16 +0000 (23:33 +0000)] 
Add support for CP-866 encoding to wxEncodingConverter.

Recognize yet another Cyrillic encoding, a DOS OEM one.

Closes #2318.

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

13 years agoAdd support for auto-orientable toolbars to AUI.
Vadim Zeitlin [Fri, 23 Jul 2010 23:33:10 +0000 (23:33 +0000)] 
Add support for auto-orientable toolbars to AUI.

Allow wxAUI to change the toolbar orientation depending on where is it docked.
It is also now possible to specify wxAUI_TB_VERTICAL or HORIZONTAL to force
the toolbar to be always oriented in the given sense and to prevent it from
being docked at the sides incompatible with it.

Closes #11712.

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

13 years agoDon't assert in wxDataViewCtrl::ItemDeleted() if item doesn't exist.
Vadim Zeitlin [Fri, 23 Jul 2010 23:33:01 +0000 (23:33 +0000)] 
Don't assert in wxDataViewCtrl::ItemDeleted() if item doesn't exist.

It seems that it might be valid to delete the items that the GUI control
doesn't know anything about, e.g. this could happen when deleting a child of a
collapsed node in a tree model. So remove the asserts which were triggered in
this case as there doesn't seem to be any way to avoid them with the current
code.

Closes #11802.

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

13 years agoStore the result of wxWindow::NewControlId() in wxWindowIDRef.
Vadim Zeitlin [Fri, 23 Jul 2010 23:32:56 +0000 (23:32 +0000)] 
Store the result of wxWindow::NewControlId() in wxWindowIDRef.

The result of calling NewControlId() must be assigned to wxWindowIDRef to be
accounted for correctly, otherwise the id was marked as free while a reference
to it still existed resulting in asserts in id management code when we
attempted to reuse it.

Closes #11604.

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

13 years agoAllow passing multi-line strings to wxDC::DrawText(), even under MSW.
Vadim Zeitlin [Fri, 23 Jul 2010 23:32:52 +0000 (23:32 +0000)] 
Allow passing multi-line strings to wxDC::DrawText(), even under MSW.

Native wxMSW wxDC::DrawText() implementation doesn't support multi-line
strings so use the generic wxDC::DrawLabel() code instead. Drawing multi-line
strings now works at least in wxGTK and wxMSW, to be tested for the other
platforms.

Closes #12239.

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

13 years agoFix Cygwin 1.7 build.
Vadim Zeitlin [Fri, 23 Jul 2010 23:32:46 +0000 (23:32 +0000)] 
Fix Cygwin 1.7 build.

Avoid using Cygwin sockets as our code assumes that we use WinSock API under
Windows currently (this might change in the future) by defining
__USE_W32_SOCKETS.

Use new, safer and more efficient cygwin_conv_path() function.

Use t_str() instead of fn_str() with Windows API taking file names, under
Cygwin they are different and using fn_str() is incorrect.

A few other minor fixes.

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

13 years agoAdded wxFONTENCODING_EUC_KR alias for wxFONTENCODING_CP949.
Vadim Zeitlin [Fri, 23 Jul 2010 23:32:40 +0000 (23:32 +0000)] 
Added wxFONTENCODING_EUC_KR alias for wxFONTENCODING_CP949.

Although CP949 might not be exactly the same as EUC-KR it appears to be
similar enough and having a more familiar name for it is helpful for people
unfamiliar with Windows nomenclature.

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

13 years agoDefine colours for all wxSYS_COLOUR_XXX values in wxUniv.
Vadim Zeitlin [Fri, 23 Jul 2010 23:32:35 +0000 (23:32 +0000)] 
Define colours for all wxSYS_COLOUR_XXX values in wxUniv.

Ensure that we have enough elements in the array used by
wxSystemSettings::GetColour() in wxUniv to avoid the assert which happened
when e.g. wxSYS_COLOUR_LISTBOXTEXT was requested from it. This resulted in
an infinite stream of asserts and a crash when trying to use wxTreeCtrl in
wxUniv.

Closes #11702.

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

13 years agoFix mismatches between format strings and arguments.
Vadim Zeitlin [Fri, 23 Jul 2010 23:32:30 +0000 (23:32 +0000)] 
Fix mismatches between format strings and arguments.

This corrects the asserts which are now triggered when the actual arguments
don't match the format string.

Closes #12265.

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

13 years agofixes #12258
Stefan Csomor [Fri, 23 Jul 2010 06:58:36 +0000 (06:58 +0000)] 
fixes #12258

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

13 years agoFix harmless unused parameter warnings in wxDEBUG_LEVEL==0 build.
Vadim Zeitlin [Thu, 22 Jul 2010 13:42:49 +0000 (13:42 +0000)] 
Fix harmless unused parameter warnings in wxDEBUG_LEVEL==0 build.

These warnings were harmless as they concerned the parameters used inside
wxASSERTs only but there were hundreds if not thousands of them in
wx/strvararg.h alone so all the rest of build output was completely lost in
them.

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

13 years agoMake --disable-debug[_flag] configure option really work.
Vadim Zeitlin [Thu, 22 Jul 2010 13:42:43 +0000 (13:42 +0000)] 
Make --disable-debug[_flag] configure option really work.

We never defined wxDEBUG_LEVEL as 0 meaning that debugging code in wxWidgets
was always enabled, even if --disable-debug_flag or --disable-debug (which
implies it) was given.

Fix this now by adding -DwxDEBUG_LEVEL=0 to CPPFLAGS if necessary.

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

13 years agoFix compilation of wxSpinCtrlGenericBase when PCH are not used.
Vadim Zeitlin [Thu, 22 Jul 2010 13:42:38 +0000 (13:42 +0000)] 
Fix compilation of wxSpinCtrlGenericBase when PCH are not used.

This fixes PCH-less compilation broken by r65043.

Closes #12259 (again).

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

13 years agoFix explicitly setting focus to generic wxSpinCtrl.
Vadim Zeitlin [Thu, 22 Jul 2010 12:16:26 +0000 (12:16 +0000)] 
Fix explicitly setting focus to generic wxSpinCtrl.

The control itself can't accept focus as its window is disabled so set the
focus to its text part instead if SetFocus() is explicitly called.

Closes #12259.

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

13 years agoUpdate wxSpinCtrlDouble::m_digits in its SetDigits().
Vadim Zeitlin [Thu, 22 Jul 2010 12:16:19 +0000 (12:16 +0000)] 
Update wxSpinCtrlDouble::m_digits in its SetDigits().

We need to update the internally stored information about the number of digits
we use and not just update the control appearance accordingly.

Also don't do anything at all when the number of digits didn't really change.

Closes #12260.

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

13 years agoDocument wxVector<T>::swap().
Vadim Zeitlin [Thu, 22 Jul 2010 12:09:20 +0000 (12:09 +0000)] 
Document wxVector<T>::swap().

Closes #12253.

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

13 years agoAdd wxItemContainer::DetachClientObject() and use it in wxRearrangeList.
Vadim Zeitlin [Thu, 22 Jul 2010 12:09:15 +0000 (12:09 +0000)] 
Add wxItemContainer::DetachClientObject() and use it in wxRearrangeList.

Add a method to detach the item from an item control without deleting it and
use it in wxRearrangeList to correctly swap object client data without
deleting the pointers in the process.

Closes #12201.

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

13 years agoRemove executable bits from plist files.
Vadim Zeitlin [Thu, 22 Jul 2010 12:09:10 +0000 (12:09 +0000)] 
Remove executable bits from plist files.

These files probably don't need to be executable.

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

13 years agoReplace 2.9.1 version with 2.9.2.
Vadim Zeitlin [Thu, 22 Jul 2010 12:09:04 +0000 (12:09 +0000)] 
Replace 2.9.1 version with 2.9.2.

Also update the inc_release script to take src/wxWindows.xcodeproj into
account.

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

13 years agoDon't mention non-existent setup.exe in wxMSW installation notes.
Vadim Zeitlin [Thu, 22 Jul 2010 12:08:54 +0000 (12:08 +0000)] 
Don't mention non-existent setup.exe in wxMSW installation notes.

Also expand setup.h section.

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

13 years agoUpdate the tech note about making new releases with more information.
Vadim Zeitlin [Thu, 22 Jul 2010 12:08:50 +0000 (12:08 +0000)] 
Update the tech note about making new releases with more information.

Mention other release-related things and not only how to create the release
files.

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

13 years agoExplain better relationships between various TLW styles.
Vadim Zeitlin [Thu, 22 Jul 2010 12:08:45 +0000 (12:08 +0000)] 
Explain better relationships between various TLW styles.

In particular mention that wx{MINIMIZE,MAXIMIZE,CLOSE}_BOX can't be used
without wxCAPTION and that wxSYSTEM_MENU ought to be used with it too.

Closes #12246.

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

13 years agoscript for building chm docs and wxMSW exe
Chris Elliott [Wed, 21 Jul 2010 13:56:24 +0000 (13:56 +0000)] 
script for building chm docs and wxMSW exe

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

14 years agoCorrect printf parameter mismatch in wxWndProc.
Vadim Zeitlin [Sun, 18 Jul 2010 13:39:20 +0000 (13:39 +0000)] 
Correct printf parameter mismatch in wxWndProc.

LPARAM is a 64 bit type in Win64 and doesn't match the size expected by "%l"
printf format specifier. Instead of showing it as a 32 bit number in 32 bit
build and 64 bit in 64 bits, just truncate it to the lower 32 bits in any case
for now, this should be enough for the diagnostic messages.

Closes #12242.

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

14 years agoUpdate release notes file for 2.9.1 release.
Vadim Zeitlin [Sun, 18 Jul 2010 13:39:16 +0000 (13:39 +0000)] 
Update release notes file for 2.9.1 release.

Mention 2.9.1-specific stuff; remove obsolete information; update some URLs.

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

14 years agoUpdate AUI frame capture when it changes.
Vadim Zeitlin [Sun, 18 Jul 2010 11:55:54 +0000 (11:55 +0000)] 
Update AUI frame capture when it changes.

Set the updated label in wxAuiManager::Update() to ensure the labels stored
two places are always in sync.

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

14 years agoEnsure that validators work even in presence of pushed event handlers.
Vadim Zeitlin [Sun, 18 Jul 2010 11:53:08 +0000 (11:53 +0000)] 
Ensure that validators work even in presence of pushed event handlers.

Call pre-processing hooks for each of the handlers in the chain and not only
the first one. This ensures that a validator (which is invoked during the
pre-processing stage) of a window is used even if a window has an event
handler pushed on top of it.

Closes #12177.

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

14 years agoDon't reuse the same event object for multiple events in wxGTK.
Vadim Zeitlin [Sun, 18 Jul 2010 11:53:04 +0000 (11:53 +0000)] 
Don't reuse the same event object for multiple events in wxGTK.

The old code simply called SetEventType() to change the type of the event and
called HandleWindowEvent() again with it. This was incorrect as the event was
modified after being processed the first time, notably its WasProcessed() flag
was set and so wxApp::FilterEvent() wasn't called when it was being processed
the second time. In practice this meant that FilterEvent() was never called
for wxEVT_CHAR events -- for which it's nevertheless very useful to have as it
allows to implement application-wide keyboard processing.

Also refactor the code to avoid duplication, exactly the same event sending
code was used in gtk_window_key_press_callback() and gtk_wxwindow_commit_cb().
Extract it now in a private SendCharHookAndCharEvents() function.

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

14 years agoDon't run printf("%n") tests when _FORTIFY_SOURCE >= 2.
Vadim Zeitlin [Sun, 18 Jul 2010 11:52:58 +0000 (11:52 +0000)] 
Don't run printf("%n") tests when _FORTIFY_SOURCE >= 2.

This prevents the test from aborting on Linux distributions which ship with
"fortified" version of gcc, such as recent Ubuntu, Fedora and Gentoo.

Closes #12240.

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

14 years agoorganizing code, adding offset correction for update region when non native control...
Stefan Csomor [Sun, 18 Jul 2010 06:16:26 +0000 (06:16 +0000)] 
organizing code, adding offset correction for update region when non native control borders are used, fixes #12229

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

14 years agoAdd a script for finding all files using native eol style in svn.
Vadim Zeitlin [Sat, 17 Jul 2010 16:18:48 +0000 (16:18 +0000)] 
Add a script for finding all files using native eol style in svn.

This is a companion script for build/tools/git-make-release but can also be
useful independently.

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

14 years agoAdd scripts to make releases from a git-svn repository.
Vadim Zeitlin [Sat, 17 Jul 2010 16:17:37 +0000 (16:17 +0000)] 
Add scripts to make releases from a git-svn repository.

This can't replace the official release script yet as not everybody uses git
but they are much more convenient to use than the old ones for me and also
faster so I'm adding them to svn in case they can be useful to others.

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

14 years agoReally set svn:eol-style property.
Vadim Zeitlin [Sat, 17 Jul 2010 14:55:45 +0000 (14:55 +0000)] 
Really set svn:eol-style property.

The last commit used incorrect property name, remove the erroneous property
and set the correct svn:eol-style one.

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

14 years agoSet EOL style property to "native" for more files.
Vadim Zeitlin [Sat, 17 Jul 2010 13:46:04 +0000 (13:46 +0000)] 
Set EOL style property to "native" for more files.

Some files were using CR LF even in Unix checkouts unnecessarily, fix this.

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

14 years agoDon't redefine wxNO_EXCEPTIONS in wx/except.h if it's already defined.
Vadim Zeitlin [Sat, 17 Jul 2010 11:55:10 +0000 (11:55 +0000)] 
Don't redefine wxNO_EXCEPTIONS in wx/except.h if it's already defined.

This symbol can be defined on compiler command line already, don't redefine it
in this case to avoid a warning.

Closes #12235.

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

14 years agoDocument methods indicating what kind of client data is associated with an item conta...
Robert Roebling [Sat, 17 Jul 2010 08:40:05 +0000 (08:40 +0000)] 
Document methods indicating what kind of client data is associated with an item container (HasClientData() etc.)

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

14 years agoremoving early init, fixes #12231
Stefan Csomor [Sat, 17 Jul 2010 06:08:13 +0000 (06:08 +0000)] 
removing early init, fixes #12231

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

14 years agoDon't pass NULL to wxDir, rather hop over when trying to find dir with translation
Robert Roebling [Fri, 16 Jul 2010 10:31:38 +0000 (10:31 +0000)] 
Don't pass NULL to wxDir, rather hop over when trying to find dir with translation

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

14 years agoRemove dllexport declaration from a nested struct.
Vadim Zeitlin [Wed, 14 Jul 2010 23:06:20 +0000 (23:06 +0000)] 
Remove dllexport declaration from a nested struct.

Try a blind fix for VC6 linking problems in DLL build related to
wxFileTypeInfo ctor. This is unlikely to fix it but DLL-exporting a nested
struct which, moreover, has only inline methods, seems unnecessary and it just
might help too.

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

14 years agoDon't compile platform-specific methods when using wxUniversal.
Vadim Zeitlin [Wed, 14 Jul 2010 22:43:19 +0000 (22:43 +0000)] 
Don't compile platform-specific methods when using wxUniversal.

Various wxTextEntry::GetEditXXX() methods shouldn't be used in wxUniv build.

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

14 years agoDon't use wxRendererNative::DrawFocusRect() under Mac.
Vadim Zeitlin [Wed, 14 Jul 2010 14:52:28 +0000 (14:52 +0000)] 
Don't use wxRendererNative::DrawFocusRect() under Mac.

This function doesn't do the right thing there, it draws the focus border as
it's drawn around controls such as buttons. This border overflows the item
rectangle and results in garbage remaining on screen when selection changes.

See #12229.

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

14 years agoUse correct format specifiers in wxOSX/Carbon font caching code.
Vadim Zeitlin [Wed, 14 Jul 2010 14:52:23 +0000 (14:52 +0000)] 
Use correct format specifiers in wxOSX/Carbon font caching code.

The specifiers used didn't match the actual argument types resulting in the
asserts from the new wxPrintf() code. Correct them to match the real types.

Closes #12186.

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

14 years agoSuppress warnings about double to int truncation in wxHTML code.
Vadim Zeitlin [Wed, 14 Jul 2010 11:20:36 +0000 (11:20 +0000)] 
Suppress warnings about double to int truncation in wxHTML code.

Actually it's not totally clear if truncation or rounding was intended here
but when in doubt preserve the old code semantics.

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

14 years agoGenerate key events in generic wxDataViewCtrl implementation.
Vadim Zeitlin [Wed, 14 Jul 2010 11:12:03 +0000 (11:12 +0000)] 
Generate key events in generic wxDataViewCtrl implementation.

Forward wxEVT_CHAR events from wxDataViewMainWindow to the parent window so
that they could be processed at wxDataViewCtrl level.

Call DisableKeyboardScrolling() to ensure that cursor movement keys are not
always eaten by the parent window but can be used for the navigation in the
control if they're not processed by user.

Add a test keyboard handler to the dataview sample to check that handling keys
in wxDataViewCtrl does work.

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

14 years agoNo changes, just use better names in wxDataViewCtrl sample.
Vadim Zeitlin [Wed, 14 Jul 2010 11:11:58 +0000 (11:11 +0000)] 
No changes, just use better names in wxDataViewCtrl sample.

ID_DELETE_MUSIC button deleted selected items so use ID_DELETE_SEL and
OnDeleteSelected() handler for it instead.

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

14 years agowxArrayStringProperty::m_delimiter default value was missing. Also cleaned up relevan...
Jaakko Salli [Tue, 13 Jul 2010 15:54:45 +0000 (15:54 +0000)] 
wxArrayStringProperty::m_delimiter default value was missing. Also cleaned up relevant string formatting.

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

14 years agoReally fix interactive output test compilation in ANSI build.
Vadim Zeitlin [Tue, 13 Jul 2010 14:13:12 +0000 (14:13 +0000)] 
Really fix interactive output test compilation in ANSI build.

Use a temporary wxString to make sure the code compiles in both ANSI and STL
versions too.

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

14 years agoCompilation fix for wxUSE_FONTENUM==0 case.
Vadim Zeitlin [Tue, 13 Jul 2010 14:13:07 +0000 (14:13 +0000)] 
Compilation fix for wxUSE_FONTENUM==0 case.

Fix another error in minimal wxGTK buildbot build.

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

14 years agoFix file paths in the header comments.
Vadim Zeitlin [Tue, 13 Jul 2010 13:29:58 +0000 (13:29 +0000)] 
Fix file paths in the header comments.

Consistently use only "wx/foo.h" instead of "include/wx/foo.h" ("include" is
always implicit anyhow).

Also use "src/osx" instead of "src/mac" for the files in this directory.

See #12165.

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

14 years agoFix a few minor typos in comments.
Vadim Zeitlin [Tue, 13 Jul 2010 13:29:44 +0000 (13:29 +0000)] 
Fix a few minor typos in comments.

See #12165.

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

14 years agoGlobally rename all occurrences of "XCode" to "Xcode".
Vadim Zeitlin [Tue, 13 Jul 2010 13:29:38 +0000 (13:29 +0000)] 
Globally rename all occurrences of "XCode" to "Xcode".

The official spelling of the Apple IDE doesn't capitalize "C" so neither
should we.

See #12165.

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

14 years agoGlobally use "wxWindows licence" consistently.
Vadim Zeitlin [Tue, 13 Jul 2010 13:29:13 +0000 (13:29 +0000)] 
Globally use "wxWindows licence" consistently.

Use "wxWindows licence" and not "wxWidgets licence" (the latter doesn't
exist) and consistently spell "licence" using British spelling.

See #12165.

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

14 years agoRemove hard TABs from 3rd party files in src directory.
Vadim Zeitlin [Tue, 13 Jul 2010 13:27:19 +0000 (13:27 +0000)] 
Remove hard TABs from 3rd party files in src directory.

This is necessary to be able to commit upcoming changes to them.

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

14 years agoSend right and double click events in wxGrid when using native header.
Vadim Zeitlin [Tue, 13 Jul 2010 12:38:00 +0000 (12:38 +0000)] 
Send right and double click events in wxGrid when using native header.

Previously only simple left click event was sent in this case, now also
generate right and double click ones.

Closes #12156.

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

14 years agoFix wxMotif compilation with g++ 4.4.
Vadim Zeitlin [Tue, 13 Jul 2010 11:33:09 +0000 (11:33 +0000)] 
Fix wxMotif compilation with g++ 4.4.

wxMenu::CreateMenu() parameter called "index" was mistakenly wrapped in
WXUNUSED() making it invisible inside the function body and the (BSD string
function) index() was used instead. This somehow compiled before but not with
g++ 4.4. In any case, the code was wrong even when it did compile.

Remove WXUNUSED() from the parameter and also rename it to avoid clashes with
(semi-)standard function which can also be defined as macro on some systems.

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

14 years agoRevert the wxDataObjectComposite checks added by r58549.
Vadim Zeitlin [Tue, 13 Jul 2010 11:33:03 +0000 (11:33 +0000)] 
Revert the wxDataObjectComposite checks added by r58549.

The checks for data format duplication in wxDataObjectComposite::Add() added
by this revision were broken and didn't actually check anything. It also
doesn't seem clear why do we need them at all so simply remove them. See #10437
for more details.

This also closes #12113 as a side effect because the messages are not present
any more.

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

14 years agoRomanian translations update from Catalin.
Vadim Zeitlin [Tue, 13 Jul 2010 11:32:57 +0000 (11:32 +0000)] 
Romanian translations update from Catalin.

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

14 years agoOnly compile wxStd{Input,Output}Stream if wxUSE_STREAMS==1.
Vadim Zeitlin [Mon, 12 Jul 2010 22:50:51 +0000 (22:50 +0000)] 
Only compile wxStd{Input,Output}Stream if wxUSE_STREAMS==1.

This fixes compilation of minimal wxWidgets build.

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

14 years agoCompilation fix for wxAnyTestCase in ANSI-only build.
Vadim Zeitlin [Mon, 12 Jul 2010 22:50:47 +0000 (22:50 +0000)] 
Compilation fix for wxAnyTestCase in ANSI-only build.

Comparison of wxAny with wide strings is not available in this case.

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

14 years agoCompilation fix for "interactive" test in wxUSE_STL=1 build.
Vadim Zeitlin [Mon, 12 Jul 2010 22:50:41 +0000 (22:50 +0000)] 
Compilation fix for "interactive" test in wxUSE_STL=1 build.

wxString is not convertible (even explicitly) to char* in this case.

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

14 years agoBlind VC6 compilation fix for VarArgTestCase.
Vadim Zeitlin [Mon, 12 Jul 2010 22:50:37 +0000 (22:50 +0000)] 
Blind VC6 compilation fix for VarArgTestCase.

VC6 tries to use inaccessible copy ctor of the variable passed to
wxString::Format() for some reason.

Just disable the test for it, it's not worth trying to understand this
compiler, and our code gets tested with other ones anyhow.

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

14 years agoDisable test of format string with "%n" for MSVC 8+.
Vadim Zeitlin [Mon, 12 Jul 2010 22:50:32 +0000 (22:50 +0000)] 
Disable test of format string with "%n" for MSVC 8+.

MSVC 8 and later disables support for "%n" in printf() by default. And
although it provides a function to re-enable support for it, it doesn't seem
to work for the functions we use.

Just disable the test which results in CRT assert when using this compiler.

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

14 years agoDon't use dangling pointers in wxWindowMSW::HandleMenuChar().
Vadim Zeitlin [Mon, 12 Jul 2010 22:50:28 +0000 (22:50 +0000)] 
Don't use dangling pointers in wxWindowMSW::HandleMenuChar().

We used a pointer into the result of wx_str() for a temporary string which was
clearly wrong. Store the string we're manipulating to ensure that this doesn't
happen.

This in particular fixes keyboard navigation in the menus with owner-drawn
items.

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

14 years agoRemove scroll units duplication in wxGrid to fix setting them.
Vadim Zeitlin [Mon, 12 Jul 2010 22:50:23 +0000 (22:50 +0000)] 
Remove scroll units duplication in wxGrid to fix setting them.

For some unknown reason wxGrid decided to store its scroll units in its own
m_scrollLine[XY] variables instead of just using the base wxScrollWindow class
m_[xy]ScrollPixelsPerLine ones. And, of course, the two could get out of sync
because wxGrid didn't update the base class version correctly.

Just don't duplicate these values at all and use the base class fields. This
makes the code simpler and also fixes changing the size of the scroll units.

Closes #12221.

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

14 years agoMake Home and End keys work as expected in wxGrid.
Vadim Zeitlin [Mon, 12 Jul 2010 22:50:18 +0000 (22:50 +0000)] 
Make Home and End keys work as expected in wxGrid.

Go to the first/last cell of the current row when they're pressed instead of
starting the editor.

Closes #12222.

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

14 years agoFix text updated event generation in wxGTK wxComboBox.
Vadim Zeitlin [Mon, 12 Jul 2010 22:50:14 +0000 (22:50 +0000)] 
Fix text updated event generation in wxGTK wxComboBox.

The changes (cosmetic renaming, no less) in r64436 broke unit tests checking
for wxComboBox event generation because the extra text updated events were not
suppressed correctly any longer because wrong {Enable,Disable}Events() were
called instead of the correct GTK{Enable,Disable}Events().

Fix and slightly improve the code by disabling the events in overridden
EnableTextChangedEvents() itself and reuse its code from GTK-specific event
enabling functions.

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

14 years agoFix wxToggleButtonXmlHandler compilation with wxUniv.
Vadim Zeitlin [Mon, 12 Jul 2010 22:50:09 +0000 (22:50 +0000)] 
Fix wxToggleButtonXmlHandler compilation with wxUniv.

Remove nonsensical code involving operator ?: with wxString and wxBitmap
operands. No idea what was the intention behind it but it failed to even
compile in wxX11 build so the new version (which does compile) can't be worse.

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

14 years agoRemove 2.9.0 build slaves, they're not needed any more.
Vadim Zeitlin [Mon, 12 Jul 2010 22:50:05 +0000 (22:50 +0000)] 
Remove 2.9.0 build slaves, they're not needed any more.

We should restore them the next time we create a release branch but for now
these builds are not needed and just clutter the build bot UI.

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

14 years agoReplace remaining references to 2.9.0 with 2.9.1.
Vadim Zeitlin [Mon, 12 Jul 2010 22:49:59 +0000 (22:49 +0000)] 
Replace remaining references to 2.9.0 with 2.9.1.

Also update the tech note listing the places that need to be changed when a
new version is released and the script which updates them automatically.

Finally update a couple of copyright years.

Closes #12185.

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

14 years agoFix non-PCH builds (closes #12217)
Jaakko Salli [Sun, 11 Jul 2010 20:00:44 +0000 (20:00 +0000)] 
Fix non-PCH builds (closes #12217)

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

14 years agoAdded 'Delimiter' attribute for wxArrayStringProperty. Moved static ArrayStringToStri...
Jaakko Salli [Sun, 11 Jul 2010 17:04:23 +0000 (17:04 +0000)] 
Added 'Delimiter' attribute for wxArrayStringProperty. Moved static ArrayStringToString() to wxArrayStringProperty.

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