]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
13 years agoDon't duplicate wxImage::ConvertToDisabled() in wxAUI code.
Vadim Zeitlin [Sat, 9 Jul 2011 23:36:44 +0000 (23:36 +0000)] 
Don't duplicate wxImage::ConvertToDisabled() in wxAUI code.

Just reuse the existing function.

Also add an example of showing a disabled bitmap to the aui sample.

Closes #13303.

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

13 years agoOutput something from the console sample even if it's ran without arguments.
Vadim Zeitlin [Sat, 9 Jul 2011 23:36:38 +0000 (23:36 +0000)] 
Output something from the console sample even if it's ran without arguments.

Running console sample without parameters didn't do anything by default and
didn't output anything neither which was presumably rather confusing. Do
output a welcome message at least to indicate that something happened.

Closes #13299.

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

13 years agoImmediately update MSW cursor when ::SetCursor(wxNullCursor) is called.
Vadim Zeitlin [Sat, 9 Jul 2011 23:36:32 +0000 (23:36 +0000)] 
Immediately update MSW cursor when ::SetCursor(wxNullCursor) is called.

The cursor was previously reverted to the default one only when a next mouse
event was received. Do it immediately now to e.g. avoid showing the busy
cursor when the program is not busy any more.

Closes #12961.

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

13 years agoFix wxMSW wxSlider best size calculation and label layout.
Vadim Zeitlin [Sat, 9 Jul 2011 23:36:26 +0000 (23:36 +0000)] 
Fix wxMSW wxSlider best size calculation and label layout.

The best size calculation was wrong as the min/max labels height was
unnecessarily added to the slier total height even if though these labels are
positioned alongside the slider itself in horizontal layout case.

The slider also managed to position its value label completely outside the
space allocated to it (and the bug in DoGetBestSize() might have been an
attempt to work around this), don't do this any more. This also fixes the
wrongly centered vertical position of the min/max labels.

Closes #13291.

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

13 years agoMake coordinates transformations in wxDC really maximally precise.
Vadim Zeitlin [Sat, 9 Jul 2011 23:36:19 +0000 (23:36 +0000)] 
Make coordinates transformations in wxDC really maximally precise.

Use the maximal device space extent supported by Win32 GDI and only decrease
it if the scale is so small that keeping the device space extent maximal would
result in overflowing the int range for the logical space.

This makes coordinate translations exact even for huge coordinates, while they
could be significantly wrong before due to the integer rounding errors.

Closes #13284.

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

13 years agoAdded Robin Dunn's explanation on the relationship of wxBitmap and wxImage into inter...
John Chain [Sat, 9 Jul 2011 18:40:11 +0000 (18:40 +0000)] 
Added Robin Dunn's explanation on the relationship of wxBitmap and wxImage into interface doxygen section

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

13 years agoavoid scrolling to cleared-non existing- data, reload before, fixes #13318
Stefan Csomor [Sat, 9 Jul 2011 06:37:14 +0000 (06:37 +0000)] 
avoid scrolling to cleared-non existing- data, reload before, fixes #13318

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

13 years agoAdd wxDCImpl::MSWApplyGDIPlusTransform() to formalize wxRendererMSW hack.
Vadim Zeitlin [Thu, 7 Jul 2011 13:05:22 +0000 (13:05 +0000)] 
Add wxDCImpl::MSWApplyGDIPlusTransform() to formalize wxRendererMSW hack.

Replace the dynamic_cast<> used in wxMSW wxRenderer implementation code with a
virtual function call.

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

13 years agoMake wxGCDC::GetGraphicsContext() const.
Vadim Zeitlin [Thu, 7 Jul 2011 13:05:16 +0000 (13:05 +0000)] 
Make wxGCDC::GetGraphicsContext() const.

There is no reason for this accessor to not be const and it prevents other
methods using it from being const too, so change this.

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

13 years agoallow NULL parent menu
Stefan Csomor [Wed, 6 Jul 2011 11:02:38 +0000 (11:02 +0000)] 
allow NULL parent menu

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

13 years agofor 2.9.2
Chris Elliott [Tue, 5 Jul 2011 09:22:58 +0000 (09:22 +0000)] 
for 2.9.2

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

13 years agoImprove the description of the available files in readme.
Vadim Zeitlin [Mon, 4 Jul 2011 21:26:11 +0000 (21:26 +0000)] 
Improve the description of the available files in readme.

Be more clear about what is provided. Add more URLs, everybody likes to click
them.

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

13 years agoRemove the note about wxUSE_STD_CONTAINERS.
Vadim Zeitlin [Mon, 4 Jul 2011 21:13:26 +0000 (21:13 +0000)] 
Remove the note about wxUSE_STD_CONTAINERS.

We finally didn't switch to using the standard containers by default so don't
leave misleading information in the change log (this should have been part of
r67735).

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

13 years agoFix crash when getting or setting wxComboBox value in wxUniv.
Vadim Zeitlin [Mon, 4 Jul 2011 21:09:24 +0000 (21:09 +0000)] 
Fix crash when getting or setting wxComboBox value in wxUniv.

Forward DoGetValue() and SetValue() to the associated wxTextCtrl.

Closes #13298.

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

13 years agoFix event types in wxMouseEvent::Aux1DClick() and Aux1DClick().
Vadim Zeitlin [Mon, 4 Jul 2011 17:22:49 +0000 (17:22 +0000)] 
Fix event types in wxMouseEvent::Aux1DClick() and Aux1DClick().

wxEVT_AUX[12]_UP were wrongly used instead of the correct wxEVT_AUX[12]_DCLICK.

Closes #13308.

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

13 years agoFix warnings about implicit double to int conversions in propgrid.
Vadim Zeitlin [Mon, 4 Jul 2011 16:43:40 +0000 (16:43 +0000)] 
Fix warnings about implicit double to int conversions in propgrid.

Use wxRound() instead of implicit casts to convert double to int. This not
only avoids warnings (e.g. when using g++ with -Wconversion) but also should
be (marginally) more precise.

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

13 years agoFix harmless warning about double to long long conversion.
Vadim Zeitlin [Mon, 4 Jul 2011 16:43:37 +0000 (16:43 +0000)] 
Fix harmless warning about double to long long conversion.

Work around g++ -Wconversion warning by writing out the casts explicitly.

A better solution would be to have wxLongLong::FromDouble() static function
but it would have to be done after 2.9.2.

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

13 years agoSuppress some harmless warnings about unused parameters in wxOSX.
Vadim Zeitlin [Mon, 4 Jul 2011 14:05:14 +0000 (14:05 +0000)] 
Suppress some harmless warnings about unused parameters in wxOSX.

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

13 years agoAlso accept VT_R4 (float) VARIANTs in wxMSW OLE code.
Vadim Zeitlin [Mon, 4 Jul 2011 14:05:11 +0000 (14:05 +0000)] 
Also accept VT_R4 (float) VARIANTs in wxMSW OLE code.

We don't support creating VT_R4 VARIANTs as wxVariant can only contain double,
not float, but we can still at least accept them on input.

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

13 years agoFix crash in wxDataViewProgressRenderer in non-Unicode build.
Vadim Zeitlin [Mon, 4 Jul 2011 09:03:00 +0000 (09:03 +0000)] 
Fix crash in wxDataViewProgressRenderer in non-Unicode build.

We can't use the column pointer in wxDataViewProgressRenderer ctor as it's not
set yet, so postpone setting the renderer label until later in non-Unicode
build which needs the font used by this column to do the conversion to UTF-8.

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

13 years agoAdd wxUSE_UNICODE guard around wxDF_UNICODETEXT in the sample.
Vadim Zeitlin [Mon, 4 Jul 2011 09:02:57 +0000 (09:02 +0000)] 
Add wxUSE_UNICODE guard around wxDF_UNICODETEXT in the sample.

Unicode text is not supported in non-Unicode builds.

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

13 years agoNo real changes, just remove trailing commas from enum.
Vadim Zeitlin [Sat, 2 Jul 2011 10:29:14 +0000 (10:29 +0000)] 
No real changes, just remove trailing commas from enum.

wxCompositionMode enum had a trailing comma not allowed by C++ 98 (and which
would result in warnings or errors with g++ pedantic switch).

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

13 years agoAdd wxCOMPOSITION_INVALID mode and use it to simplify the code.
Vadim Zeitlin [Sat, 2 Jul 2011 10:29:11 +0000 (10:29 +0000)] 
Add wxCOMPOSITION_INVALID mode and use it to simplify the code.

Having an invalid element in wxCompositionMode enum allows to directly return
it from TranslateRasterOp() function instead of needing a separate bool
parameter to indicate that a ROP couldn't be translated.

This also incidentally fixes warnings about possibly uninitialized variables
in optimized g++ builds.

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

13 years agoAvoid g++ warnings about breaking strict aliasing rules in wxTreeCtrl.
Vadim Zeitlin [Sat, 2 Jul 2011 10:29:07 +0000 (10:29 +0000)] 
Avoid g++ warnings about breaking strict aliasing rules in wxTreeCtrl.

The standard TreeView_GetItemRect() macro resulted in warnings about breaking
strict aliasing rules as it passed a variable of one type via a pointer to
another one. Fix this by using a union and our own custom macro instead.

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

13 years agoDon't cause scroll events for position changes from SetScrollbars, broken in r67326.
Paul Cornett [Fri, 1 Jul 2011 17:44:49 +0000 (17:44 +0000)] 
Don't cause scroll events for position changes from SetScrollbars, broken in r67326.
Fixes #13301

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

13 years agoMention the EOL issue in readme.txt.
Vadim Zeitlin [Thu, 30 Jun 2011 21:31:39 +0000 (21:31 +0000)] 
Mention the EOL issue in readme.txt.

Emphasize that building Windows archives under Unix *or vice versa) is not
supported.

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

13 years agoupdate docs for windows checkout process 2/2
Chris Elliott [Thu, 30 Jun 2011 13:20:55 +0000 (13:20 +0000)] 
update docs for windows checkout process 2/2

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

13 years agoupdate docs for windows checkout process 1/2
Chris Elliott [Thu, 30 Jun 2011 13:17:51 +0000 (13:17 +0000)] 
update docs for windows checkout process 1/2

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

13 years agoInitialize variable in UTF{16,32} conversion code to avoid warnings.
Vadim Zeitlin [Thu, 30 Jun 2011 12:20:54 +0000 (12:20 +0000)] 
Initialize variable in UTF{16,32} conversion code to avoid warnings.

In optimized build g++ warned about the second element of two-element array
passed to encode_utf16() being possibly uninitialized. This wasn't really the
case but change the code just to avoid the warnings.

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

13 years agoWork around bogus g++ warnings about possibly missing return.
Vadim Zeitlin [Thu, 30 Jun 2011 12:20:47 +0000 (12:20 +0000)] 
Work around bogus g++ warnings about possibly missing return.

OS X g++ warned that "control may reach end of non-void function" in
wxRichTextHelpInfo::ShowHelp(). This wasn't really the case but change the
function logic slightly to (hopefully) suppress the warning.

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

13 years agoFix harmless warning about unused variable in isosurf sample.
Vadim Zeitlin [Thu, 30 Jun 2011 12:20:38 +0000 (12:20 +0000)] 
Fix harmless warning about unused variable in isosurf sample.

Don't declare and initialize a variable that we never use.

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

13 years agoFix warning about hiding a virtual function in propgrid sample.
Vadim Zeitlin [Thu, 30 Jun 2011 12:20:29 +0000 (12:20 +0000)] 
Fix warning about hiding a virtual function in propgrid sample.

The virtual ColourToString() method was hidden and not overridden in the
sample because it didn't use the last argument of the base class method.

Fix this in the most straightforward (albeit not necessarily the most correct)
way to at least ensure that the function is really overridden.

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

13 years agoChange the loop condition to avoid comparing unsigned value with 0.
Vadim Zeitlin [Wed, 29 Jun 2011 17:50:32 +0000 (17:50 +0000)] 
Change the loop condition to avoid comparing unsigned value with 0.

This resulted in (useful) g++ warning and didn't make any sense in any case.

Check for the loop variable value being 0 at the end of the loop instead now.
If the old code was correct it shouldn't change its behaviour and if not, this
might fix a bug.

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

13 years agoAlways initialize SelectInHDC::m_hgdiobj in wxMSW.
Vadim Zeitlin [Wed, 29 Jun 2011 17:50:30 +0000 (17:50 +0000)] 
Always initialize SelectInHDC::m_hgdiobj in wxMSW.

Leaving m_hgdiobj uninitialized probably didn't result in any problems
considering how this class is currently used but it did result in g++ warnings
about uninitialized member with aggressive warning flags and also could easily
become a problem in the future so just ensure that we always initialize it.

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

13 years agoFix two harmless gcc warnings about missing initializers.
Vadim Zeitlin [Wed, 29 Jun 2011 17:50:27 +0000 (17:50 +0000)] 
Fix two harmless gcc warnings about missing initializers.

Add values to make g++ -Wmissing-field-initializers warnings (implicitly
enabled by -Wextra) go away.

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

13 years agoMention that readme.txt needs to be updated before a release.
Vadim Zeitlin [Wed, 29 Jun 2011 17:50:08 +0000 (17:50 +0000)] 
Mention that readme.txt needs to be updated before a release.

Hopefully this means it won't be forgotten the next time.

Also mentioned that the new docs.wxwidgets.org link should be now already
created when the release is being done.

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

13 years agoAdd a tiny script for producing HTML documentation archives.
Vadim Zeitlin [Wed, 29 Jun 2011 17:50:05 +0000 (17:50 +0000)] 
Add a tiny script for producing HTML documentation archives.

Also update the release making document to point to it.

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

13 years agoFix typo in error message about incorrect syntax.
Vadim Zeitlin [Wed, 29 Jun 2011 17:50:02 +0000 (17:50 +0000)] 
Fix typo in error message about incorrect syntax.

Output the error to stderr, not a file called "2".

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

13 years agoUpdate the readme file for 2.9.2.
Vadim Zeitlin [Wed, 29 Jun 2011 17:49:59 +0000 (17:49 +0000)] 
Update the readme file for 2.9.2.

Just increment version number and year in a couple of places.

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

13 years agofix misisng html format files
Chris Elliott [Wed, 29 Jun 2011 11:33:13 +0000 (11:33 +0000)] 
fix misisng html format files

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

13 years agoUpdated copyright year before 2.9.2 release.
Vadim Zeitlin [Wed, 29 Jun 2011 09:22:35 +0000 (09:22 +0000)] 
Updated copyright year before 2.9.2 release.

Use 2011 instead of 2010 in the manual and in several .plist files.

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

13 years ago2.9.2-rc1 in file
Chris Elliott [Wed, 29 Jun 2011 08:46:13 +0000 (08:46 +0000)] 
2.9.2-rc1 in file

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

13 years agoReplace stc.{h,cpp} with the generated versions with all their typos.
Vadim Zeitlin [Wed, 29 Jun 2011 08:37:49 +0000 (08:37 +0000)] 
Replace stc.{h,cpp} with the generated versions with all their typos.

Revert the changes of r67280 which fixed several typos in these files as they
were getting modified each time gen_iface.py was rerun and we don't want to
touch the original Scintilla files to fix these typos.

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

13 years agoGenerate code using IsOk() instead of Ok() in stc.cpp.
Vadim Zeitlin [Wed, 29 Jun 2011 08:37:46 +0000 (08:37 +0000)] 
Generate code using IsOk() instead of Ok() in stc.cpp.

Modify the script generating this file itself to produce IsOk() instead of
Ok(). This replaces the changes of r67681 which only modified the generated
file.

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

13 years agoMove wxThreadEvent into wxBase.
Václav Slavík [Tue, 28 Jun 2011 17:24:37 +0000 (17:24 +0000)] 
Move wxThreadEvent into wxBase.

For this, it cannot derive from wxCommandEvent. Extracted the bits
from wxCommandEvent useful for passing data between threads into
wxEventBasicPayloadMixin helper class shared by both.

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

13 years agoAdd support for child documents to docview framework.
Vadim Zeitlin [Mon, 27 Jun 2011 00:09:37 +0000 (00:09 +0000)] 
Add support for child documents to docview framework.

Child documents are virtual documents corresponding to parts of their parent
document which can't be saved nor loaded independently of their parent and are
closed when the parent is closed.

This finally makes some use of wxDocument::m_documentParent field which was
always present in the docview code but never used before.

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

13 years agobringing target naming in line with other projects
Stefan Csomor [Sat, 25 Jun 2011 07:16:55 +0000 (07:16 +0000)] 
bringing target naming in line with other projects

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

13 years agoPaper size fix for wxOSX-cocoa
Robin Dunn [Sat, 25 Jun 2011 00:15:00 +0000 (00:15 +0000)] 
Paper size fix for wxOSX-cocoa

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

13 years agoFix code reading from the pipe stream in exec sample.
Vadim Zeitlin [Fri, 24 Jun 2011 13:10:23 +0000 (13:10 +0000)] 
Fix code reading from the pipe stream in exec sample.

We must be reading bytes, not (wide) characters.

Closes #13290.

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

13 years agoadaption to new configurations
Stefan Csomor [Thu, 23 Jun 2011 16:05:08 +0000 (16:05 +0000)] 
adaption to new configurations

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

13 years agoUpdate printing sample to compile again after r68026.
Vadim Zeitlin [Thu, 23 Jun 2011 08:02:12 +0000 (08:02 +0000)] 
Update printing sample to compile again after r68026.

The sample was using Initialize() overload that doesn't exist any longer, use
InitializeWithModality() instead.

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

13 years agoFix bug with out of range date in wxMSW wxDatePickerCtrl under XP too.
Vadim Zeitlin [Wed, 22 Jun 2011 22:58:11 +0000 (22:58 +0000)] 
Fix bug with out of range date in wxMSW wxDatePickerCtrl under XP too.

The bug fix of r67990 relied on DateTime_SetSystemtime() returning FALSE if
setting the date failed but, unfortunately, this function doesn't behave
correctly under XP (and presumably earlier systems) and returns TRUE even if
it didn't actually change the date because it was out of range.

Implement an alternative solution not relying on this function return value
but simply checking the range ourselves.

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

13 years agoRestore wxPreviewFrame::Initialize(void) and add InitializeWithModality().
Vadim Zeitlin [Wed, 22 Jun 2011 22:58:07 +0000 (22:58 +0000)] 
Restore wxPreviewFrame::Initialize(void) and add InitializeWithModality().

The changes of r67619 changed the signature of the virtual Initialize() method
and in doing so broke the existing code overriding it. Avoid this problem by
restoring the old method signature and adding a function with a different name
providing the new functionality.

Also notice in the documentation that there is no real need to override
Initialize() in any case (but this doesn't change the fact that there is
existing code that does do it).

See #13108.

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

13 years agoUse strdup() even in strict ANSI mode with MinGW.
Vadim Zeitlin [Wed, 22 Jun 2011 22:58:04 +0000 (22:58 +0000)] 
Use strdup() even in strict ANSI mode with MinGW.

MinGW headers define MSVC-compatible _strdup() even in strict ANSI mode so we
can always use it with MinGW.

This fixes a linking problem when wx itself was built without strict ANSI but
the program using it does use strict ANSI mode (e.g. due to the use of
-std=c++0x g++ option).

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

13 years agoAvoid crash on startup when using single mode in docview sample.
Vadim Zeitlin [Wed, 22 Jun 2011 22:57:59 +0000 (22:57 +0000)] 
Avoid crash on startup when using single mode in docview sample.

The view doesn't have any associated frame when using the special "single
view" mode in the sample, so don't try to show it when creating a new view.

This resulted in a crash when starting the sample with --single command line
parameter.

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

13 years agocarbon prebuilt
Stefan Csomor [Wed, 22 Jun 2011 20:21:30 +0000 (20:21 +0000)] 
carbon prebuilt

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

13 years agonew settings
Stefan Csomor [Wed, 22 Jun 2011 20:19:35 +0000 (20:19 +0000)] 
new settings

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

13 years agowxcocoa prebuilt
Stefan Csomor [Wed, 22 Jun 2011 19:45:02 +0000 (19:45 +0000)] 
wxcocoa prebuilt

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

13 years agonew settings
Stefan Csomor [Wed, 22 Jun 2011 19:41:15 +0000 (19:41 +0000)] 
new settings

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

13 years agonew settings
Stefan Csomor [Wed, 22 Jun 2011 17:40:41 +0000 (17:40 +0000)] 
new settings

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

13 years agonew settings, removing incorrect setup
Stefan Csomor [Wed, 22 Jun 2011 17:11:46 +0000 (17:11 +0000)] 
new settings, removing incorrect setup

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

13 years agonew settings for iphone
Stefan Csomor [Wed, 22 Jun 2011 17:10:08 +0000 (17:10 +0000)] 
new settings for iphone

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

13 years agonew settings for iphone
Stefan Csomor [Wed, 22 Jun 2011 17:09:56 +0000 (17:09 +0000)] 
new settings for iphone

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

13 years agoadding new xcconfigs
Stefan Csomor [Wed, 22 Jun 2011 16:15:59 +0000 (16:15 +0000)] 
adding new xcconfigs

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

13 years agoFixed shift-click selection
Julian Smart [Tue, 21 Jun 2011 09:56:32 +0000 (09:56 +0000)] 
Fixed shift-click selection

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

13 years agoset default deployment and compiler flags
Stefan Csomor [Tue, 21 Jun 2011 09:01:21 +0000 (09:01 +0000)] 
set default deployment and compiler flags

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

13 years agoset default deployment and compiler flags
Stefan Csomor [Tue, 21 Jun 2011 08:57:05 +0000 (08:57 +0000)] 
set default deployment and compiler flags

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

13 years agouse same flags as command line build
Stefan Csomor [Tue, 21 Jun 2011 08:55:05 +0000 (08:55 +0000)] 
use same flags as command line build

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

13 years agoFix bug when setting an out of range date in wxMSW wxDatePickerCtrl.
Vadim Zeitlin [Sun, 19 Jun 2011 22:46:45 +0000 (22:46 +0000)] 
Fix bug when setting an out of range date in wxMSW wxDatePickerCtrl.

The internally stored date value was getting out of sync with the real date in
the control itself when SetValue() was called with a date out of the currently
set range. This resulted in an assert failure and other unpleasantness later.

Fix the bug and add a unit test checking for it (and also with some other
basic wxDatePickerCtrl checks).

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

13 years agoExtract wxDateTime-related cppunit helpers in a separate header file.
Vadim Zeitlin [Sun, 19 Jun 2011 22:46:42 +0000 (22:46 +0000)] 
Extract wxDateTime-related cppunit helpers in a separate header file.

No real changes, just refactor the code to allow using CPPUNIT_ASSERT_EQUAL
with wxDateTime in other tests in the future.

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

13 years agoDocument surprising behaviour of wxDatePickerCtrl::GetRange() in wxMSW.
Vadim Zeitlin [Sun, 19 Jun 2011 22:46:39 +0000 (22:46 +0000)] 
Document surprising behaviour of wxDatePickerCtrl::GetRange() in wxMSW.

wxMSW native control always has a built-in lower limit as MSW doesn't support
the dates before the year 1601 so wxDatePickerCtrl::GetRange() always returns
a valid range start, even if SetRange() hadn't been called to set it.

As this can be unexpected, document this behaviour clearly.

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

13 years agoImplement wxCalendarCtrl::SetDateRange() in the native GTK version.
Vadim Zeitlin [Sun, 19 Jun 2011 22:46:36 +0000 (22:46 +0000)] 
Implement wxCalendarCtrl::SetDateRange() in the native GTK version.

While GTK+ doesn't support imposing ranges for dates selection natively, we
can do it ourselves by preventing the user from selecting any date outside of
the currently valid range.

This allows to use ranges under all platforms and not only in wxCalendarCtrl
itself but in wxDatePickerCtrl as well.

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

13 years agoSuppress harmless gcc warnings about enum elements unhandled in switch.
Vadim Zeitlin [Sun, 19 Jun 2011 22:46:32 +0000 (22:46 +0000)] 
Suppress harmless gcc warnings about enum elements unhandled in switch.

Latest mingw64 MinGW compiler has the headers required for enabling
wxUSE_DBGHELP, fix the warnings given by g++ when compiling wxDbgHelpDLL code.

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

13 years agofix GTKGetLabel() and DoApplyWidgetStyle(): children are GtkWidget, not GtkBoxChild
Paul Cornett [Sun, 19 Jun 2011 20:52:26 +0000 (20:52 +0000)] 
fix GTKGetLabel() and DoApplyWidgetStyle(): children are GtkWidget, not GtkBoxChild

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

13 years agoadding universal as devices
Stefan Csomor [Sat, 18 Jun 2011 19:40:22 +0000 (19:40 +0000)] 
adding universal as devices

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

13 years agoadding universal as devices
Stefan Csomor [Sat, 18 Jun 2011 16:47:37 +0000 (16:47 +0000)] 
adding universal as devices

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

13 years agoadding instantiated xcodeproj
Stefan Csomor [Sat, 18 Jun 2011 16:46:42 +0000 (16:46 +0000)] 
adding instantiated xcodeproj

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

13 years agoremoving obsolete flags, switching to universal builds
Stefan Csomor [Sat, 18 Jun 2011 15:53:10 +0000 (15:53 +0000)] 
removing obsolete flags, switching to universal builds

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

13 years agofixing iphone build
Stefan Csomor [Sat, 18 Jun 2011 15:23:39 +0000 (15:23 +0000)] 
fixing iphone build

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

13 years agoupdating project format to 3.2
Stefan Csomor [Sat, 18 Jun 2011 14:30:10 +0000 (14:30 +0000)] 
updating project format to 3.2

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

13 years agoremoving old settings
Stefan Csomor [Sat, 18 Jun 2011 14:21:13 +0000 (14:21 +0000)] 
removing old settings

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

13 years agoFix g++ warnings about initialized variables being declared extern.
Vadim Zeitlin [Fri, 17 Jun 2011 21:53:32 +0000 (21:53 +0000)] 
Fix g++ warnings about initialized variables being declared extern.

Don't declare variables extern when initializing them, this is already the
case implicitly anyhow and explicit "extern" results in g++ warnings.

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

13 years agoUse GdipStringFormatCachedGenericTypographic hack for MinGW as well.
Vadim Zeitlin [Fri, 17 Jun 2011 21:53:28 +0000 (21:53 +0000)] 
Use GdipStringFormatCachedGenericTypographic hack for MinGW as well.

When using GDI+ with MinGW, the same hack as for Cygwin is needed (see r66787)
as it uses the same w32api headers and libraries for GDI+ support (if it has
them at all).

See #11716.

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

13 years agoDon't use __declspec(dllexport) for MinGW gcc 4.5 and later.
Vadim Zeitlin [Fri, 17 Jun 2011 21:53:26 +0000 (21:53 +0000)] 
Don't use __declspec(dllexport) for MinGW gcc 4.5 and later.

Due to the changes in gcc 4.5, copies of dllexported inline functions are now
generated in all object files including their declarations, increasing their
sizes tenfold, and they are also now instantiated in the DLL itself increasing
its size fourfold. Moreover, linking such a gigantic DLL requires inordinate
amounts of memory and takes a very long time, see some statistics at
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43601.

To avoid all these problems, don't use dllexport at all any more but rely on
binutils support for auto export/import which seems to work fine and results
in much smaller DLLs which are created much faster.

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

13 years agoAvoid problems with conflicting UINT16 definitions in Cygwin headers.
Vadim Zeitlin [Fri, 17 Jun 2011 21:53:22 +0000 (21:53 +0000)] 
Avoid problems with conflicting UINT16 definitions in Cygwin headers.

UINT16 is incorrectly defined inside Gdiplus namespace in w32api gdiplus.h
used by Cygwin and MinGW resulting in compilation errors about ambiguous
symbols.

Fix this by forcefully redefining UINT16 in our own code.

Closes #13113.

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

13 years agoFix wxStringOutputStream in wxUSE_UNICODE_UTF8 build.
Vadim Zeitlin [Thu, 16 Jun 2011 16:22:15 +0000 (16:22 +0000)] 
Fix wxStringOutputStream in wxUSE_UNICODE_UTF8 build.

For some reason the conversion of the bytes written to this stream to Unicode
was only done in wxUSE_UNICODE_WCHAR build but not in wxUSE_UNICODE_UTF8 one.
Do it in any wxUSE_UNICODE build now.

This allows to use wxStringOutputStream under Unix again, in particular it
fixes an assert in samples/html/zip when trying to load the raw contents of a
ZIP file in wxHtmlWindow.

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

13 years agoItalian translations update from Roberto Boriotti.
Vadim Zeitlin [Thu, 16 Jun 2011 16:14:01 +0000 (16:14 +0000)] 
Italian translations update from Roberto Boriotti.

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

13 years agoDisable wxFileSystemWatcher in configure if threads are disabled.
Vadim Zeitlin [Thu, 16 Jun 2011 15:19:55 +0000 (15:19 +0000)] 
Disable wxFileSystemWatcher in configure if threads are disabled.

wxFileSystemWatcher requires threads under MSW so disable it automatically in
configure if --disable-threads was used to avoid compilation errors in
wx/msw/chkconf.h later.

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

13 years agoSuppress various harmless warnings in MinGW build with -Wconversion.
Vadim Zeitlin [Thu, 16 Jun 2011 15:14:02 +0000 (15:14 +0000)] 
Suppress various harmless warnings in MinGW build with -Wconversion.

No real changes, simply add casts to make the implicit conversions that g++
warns about when using -Wconversion explicit.

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

13 years agoMake wxUIActionSimulator mouse move events marginally more precise.
Vadim Zeitlin [Thu, 16 Jun 2011 15:13:59 +0000 (15:13 +0000)] 
Make wxUIActionSimulator mouse move events marginally more precise.

Round the values instead of truncating them when converting from pixel values
to Win32 ::mouse_event() 0..65535 scale. This probably doesn't make any real
difference in practice but seems more correct and also avoids g++ warnings.

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

13 years agoUse symbolic WAIT_FAILED constant instead of raw -1.
Vadim Zeitlin [Thu, 16 Jun 2011 15:13:56 +0000 (15:13 +0000)] 
Use symbolic WAIT_FAILED constant instead of raw -1.

No real changes, just make the code slightly more readable by using a symbolic
constant instead of a magic value.

This also avoids g++ warnings about implicit conversion of a signed value (-1)
to unsigned type (DWORD).

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

13 years agoRound the values in wxDC coordinate calculations.
Vadim Zeitlin [Thu, 16 Jun 2011 15:13:52 +0000 (15:13 +0000)] 
Round the values in wxDC coordinate calculations.

Make the conversion of logical coordinates to the device ones more precise by
avoiding errors due to truncation of floating point values to integer ones.

See #13284.

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

13 years agoRound font sizes in AdjustToSymbolicSize() instead of truncating.
Vadim Zeitlin [Thu, 16 Jun 2011 15:13:49 +0000 (15:13 +0000)] 
Round font sizes in AdjustToSymbolicSize() instead of truncating.

This was mainly done to suppress g++ warning about implicit float to int
conversion but it also seems to make more sense to round the value here
instead of truncating it to int.

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

13 years agoadd src/gtk/anybutton.cpp to OpenVMS makefile
Jouk Jansen [Thu, 16 Jun 2011 09:07:13 +0000 (09:07 +0000)] 
add src/gtk/anybutton.cpp to OpenVMS makefile

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

13 years agoUse wxAnyButton's DoGetBestSize for toggle buttons
Robin Dunn [Thu, 16 Jun 2011 00:43:22 +0000 (00:43 +0000)] 
Use wxAnyButton's DoGetBestSize for toggle buttons

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

13 years agoGeneric wxHyperlinkCtrl appearance and behaviour improvements.
Vadim Zeitlin [Wed, 15 Jun 2011 21:56:23 +0000 (21:56 +0000)] 
Generic wxHyperlinkCtrl appearance and behaviour improvements.

Show focus rectangle around the control when it has focus. Also handle the
space key to trigger the link.

Also allow using either the native or generic version of the class in the
widgets sample.

Closes #11285.

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

13 years agoDon't crash in wxOSX wxTextEntry if the window wasn't created yet.
Vadim Zeitlin [Wed, 15 Jun 2011 21:56:18 +0000 (21:56 +0000)] 
Don't crash in wxOSX wxTextEntry if the window wasn't created yet.

Assert instead of crashing in wxTextEntry method if the associated window
hadn't been fully created yet.

Closes #13218.

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

13 years agoFall back to the valid normal bitmap if no state-specific bitmap is set.
Vadim Zeitlin [Wed, 15 Jun 2011 21:31:48 +0000 (21:31 +0000)] 
Fall back to the valid normal bitmap if no state-specific bitmap is set.

After the recent changes we could try to use an invalid bitmap in wxMSW toggle
button code as GetNormalState() could return State_Pressed and then we used
the bitmap for the pressed state unconditionally even if it wasn't set.

It seems more correct to always fall back to the normal bitmap as the pressed
state is already taken into account by GetButtonState().

This fixes unit test failures under MSW after the button classes refactoring.

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

13 years agoFix keyboard navigation in wxGrid with reordered columns.
Vadim Zeitlin [Wed, 15 Jun 2011 13:33:10 +0000 (13:33 +0000)] 
Fix keyboard navigation in wxGrid with reordered columns.

Don't mix up column internal indices and display positions in wxGrid keyboard
navigation code.

This ensures that pressing left/right cursor arrows always moves the cursor to
the previous/next column on the display, even if the columns were reordered.

Closes #13281.

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

13 years agoRename some parameters in wxGrid code to make them more clear.
Vadim Zeitlin [Wed, 15 Jun 2011 13:33:07 +0000 (13:33 +0000)] 
Rename some parameters in wxGrid code to make them more clear.

No real changes, just call the variables containing display positions "pos"
and not "line" in wxGridOperations to avoid giving the impression that they
contain indices.

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