]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
13 years agosupport wxFD_MULTIPLE
Stefan Csomor [Wed, 16 Feb 2011 06:59:53 +0000 (06:59 +0000)] 
support wxFD_MULTIPLE

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

13 years agofixing naming to conform to effective ownership, cleaning up releasing
Stefan Csomor [Wed, 16 Feb 2011 06:55:43 +0000 (06:55 +0000)] 
fixing naming to conform to effective ownership, cleaning up releasing

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

13 years agofix GCC warning
Paul Cornett [Wed, 16 Feb 2011 05:13:00 +0000 (05:13 +0000)] 
fix GCC warning

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

13 years agoFixed compilation when WXINTL_NO_GETTEXT_MACRO is defined.
Mattia Barbon [Tue, 15 Feb 2011 20:31:19 +0000 (20:31 +0000)] 
Fixed compilation when WXINTL_NO_GETTEXT_MACRO is defined.

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

13 years agoMake the source file non-executable.
Vadim Zeitlin [Tue, 15 Feb 2011 10:15:27 +0000 (10:15 +0000)] 
Make the source file non-executable.

The file ctrlcmn.cpp somehow got the executable bit in r66871, undo this.

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

13 years agoDon't increase button height in wxMSWButton::GetFittingSize().
Vadim Zeitlin [Mon, 14 Feb 2011 22:12:16 +0000 (22:12 +0000)] 
Don't increase button height in wxMSWButton::GetFittingSize().

This is unnecessary and resulted in too high buttons in some cases for buttons
with images. As we increase the button height to at least the standard value
later in all code using function anyhow, it's not necessary to do anything
with the height inside it.

Now the buttons with an image get the same height whether they have the text
or not.

This change also gets rid of (completely arbitrary) decision to use 11/10 of
the label height when computing the fitting button size and it's always nice
to get rid of dirty hacks like this.

Closes #12924.

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

13 years agoDon't make buttons with images too wide in wxMSW.
Vadim Zeitlin [Mon, 14 Feb 2011 22:12:10 +0000 (22:12 +0000)] 
Don't make buttons with images too wide in wxMSW.

We used to increase the button size to the standard size first and then add
the extra padding the buttons with images. This resulted in too much padding
for the buttons with short text labels and images.

Instead, add the padding for the image first and only then increase the button
size to the standard one if still needed.

See #12924.

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

13 years agoDon't add margins for buttons with text and images by default in wxMSW.
Vadim Zeitlin [Mon, 14 Feb 2011 22:12:04 +0000 (22:12 +0000)] 
Don't add margins for buttons with text and images by default in wxMSW.

For some reason wxXPButtonImageData added (big) margins around the button by
default resulting in too much padding. Simply remove these margins to make it
behave similarly to wxODButtonImageData.

See #12924.

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

13 years agoClarify wxButton::AdjustForBitmapSize() semantics in wxMSW.
Vadim Zeitlin [Mon, 14 Feb 2011 22:11:58 +0000 (22:11 +0000)] 
Clarify wxButton::AdjustForBitmapSize() semantics in wxMSW.

This method should only be called if we do have an image, assert (instead of
silently returning) if it's called when we don't.

Also explain in a comment why do we need to call CacheBestSize() only when we
have an image in DoGetBestSize().

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

13 years agosupport framelayout for choice
Stefan Csomor [Mon, 14 Feb 2011 19:13:04 +0000 (19:13 +0000)] 
support framelayout for choice

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

13 years agoRemove X11-specific wxWindowIsVisible() from common Unix file.
Vadim Zeitlin [Mon, 14 Feb 2011 12:30:43 +0000 (12:30 +0000)] 
Remove X11-specific wxWindowIsVisible() from common Unix file.

XGetWindowAttributes() used in this function resulted in link problems under
Fedora 14 because we don't explicitly link with libX11. Instead of doing this,
simply get rid of this function as it seems to be used in exactly one place in
wxX11 code only anyhow.

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

13 years agoExplain wxSizer::SetVirtualSizeHints() deprecation.
Vadim Zeitlin [Mon, 14 Feb 2011 11:59:13 +0000 (11:59 +0000)] 
Explain wxSizer::SetVirtualSizeHints() deprecation.

Tell people that FitInside() should be used instead.

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

13 years agoFix VC2008 dependencies with Bakefile 0.2.9.
Václav Slavík [Sun, 13 Feb 2011 17:09:33 +0000 (17:09 +0000)] 
Fix VC2008 dependencies with Bakefile 0.2.9.

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

13 years agoMore wxControl::Ellipsize() tests.
Václav Slavík [Wed, 9 Feb 2011 19:52:50 +0000 (19:52 +0000)] 
More wxControl::Ellipsize() tests.

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

13 years agoDon't eliminate text completely in Ellipsize().
Václav Slavík [Wed, 9 Feb 2011 19:52:34 +0000 (19:52 +0000)] 
Don't eliminate text completely in Ellipsize().

If the shortened text is so short there's nothing left of the original,
show one character and "...". This is standard behaviour on both
Windows and OS X, in addition to making lot of sense.

Fixes #11360.

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

13 years agoCalculate ellipsized width exactly.
Václav Slavík [Wed, 9 Feb 2011 19:52:22 +0000 (19:52 +0000)] 
Calculate ellipsized width exactly.

Width calculation using partial extents is just an inaccurate
estimate: partial extents have sub-pixel precision and are rounded
by GetPartialTextExtents(). Use partial extents to
estimate string width and only verify it with GetTextExtent()
when it looks good.

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

13 years agoDon't shorten text too much in wxControl::Ellipsize().
Václav Slavík [Wed, 9 Feb 2011 19:52:10 +0000 (19:52 +0000)] 
Don't shorten text too much in wxControl::Ellipsize().

If the allowed width is so small that nothing reasonable can fit it,
overlap it. Ellipsized text must always contain "..." to indicate that
it was shortened, it isn't acceptable to omit it.

See #11360.

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

13 years agoEllipsization can't shorten 1-character string.
Václav Slavík [Wed, 9 Feb 2011 19:51:58 +0000 (19:51 +0000)] 
Ellipsization can't shorten 1-character string.

It doesn't make sense to attempt to shorten 1 character long string, so
don't do it. Note that 2 characters strings may be shortened (consider
e.g. "mm" in some typefaces).

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

13 years agoRemove "safety margin" from wxControl::Ellipsize().
Václav Slavík [Wed, 9 Feb 2011 19:51:47 +0000 (19:51 +0000)] 
Remove "safety margin" from wxControl::Ellipsize().

When ellipsizing kicks in, the text is much shorter than the available
space -- there's a "safety margin" of one character's width that is
always left unused. This appears to be some kludge that worked around
algorithm defects, not something that should really be needed.

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

13 years agoAdded missing wxBitmapComboBox::Insert() implementation
Jaakko Salli [Wed, 9 Feb 2011 19:11:13 +0000 (19:11 +0000)] 
Added missing wxBitmapComboBox::Insert() implementation

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

13 years agoTweak offset in the RichTextCtrlTestCase::UrlEvent() to make it pass.
Vadim Zeitlin [Tue, 8 Feb 2011 17:24:50 +0000 (17:24 +0000)] 
Tweak offset in the RichTextCtrlTestCase::UrlEvent() to make it pass.

The mouse was not positioned over the URL in this test so clicking it didn't
work. Tweak the offset to make it pass but it would be better to have some
more fool-proof way of finding the real position of the text in the control.

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

13 years agoUse wxLocale instead of setlocale() to change the locale in the tests.
Vadim Zeitlin [Tue, 8 Feb 2011 17:24:45 +0000 (17:24 +0000)] 
Use wxLocale instead of setlocale() to change the locale in the tests.

Numeric validator tests rely on wxLocale::GetInfo() returning the decimal
point and calling setlocale() is not enough to ensure this under MSW, we must
use wxLocale for this currently.

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

13 years agodisabling multiline text controls correctly
Stefan Csomor [Tue, 8 Feb 2011 14:19:20 +0000 (14:19 +0000)] 
disabling multiline text controls correctly

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

13 years agoforward enable functionality to inner view in scrollview (eg for multiline textviews)
Stefan Csomor [Tue, 8 Feb 2011 14:11:56 +0000 (14:11 +0000)] 
forward enable functionality to inner view in scrollview (eg for multiline textviews)

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

13 years agoFix wxWrapSizer minimal size calculation.
Vadim Zeitlin [Tue, 8 Feb 2011 13:36:13 +0000 (13:36 +0000)] 
Fix wxWrapSizer minimal size calculation.

Add a unit test checking that wxWrapSizer::CalcMin() returns the expected
results.

Closes #12464.

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

13 years agoFix bytes to integers conversion in png2c script.
Vadim Zeitlin [Tue, 8 Feb 2011 13:36:06 +0000 (13:36 +0000)] 
Fix bytes to integers conversion in png2c script.

Use really correct coefficients for all the bytes.

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

13 years agoDefine KEY_WOW64_64KEY if it is missing from SDK headers.
Vadim Zeitlin [Tue, 8 Feb 2011 13:36:01 +0000 (13:36 +0000)] 
Define KEY_WOW64_64KEY if it is missing from SDK headers.

Fixes compilation with old SDKs, e.g. the one used by VC6.

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

13 years agocopy item text for app menu items from wx menus
Stefan Csomor [Tue, 8 Feb 2011 10:47:19 +0000 (10:47 +0000)] 
copy item text for app menu items from wx menus

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

13 years agoCorrect more wxEVT_AUXn_XXX event types names.
Vadim Zeitlin [Sun, 6 Feb 2011 01:01:14 +0000 (01:01 +0000)] 
Correct more wxEVT_AUXn_XXX event types names.

This completes the changes of r64414 and also removes the extraneous "MOUSE"
from the event types listed in the wxMouseEvent ctor documentation.

Closes #12095.

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

13 years agoUse better title by default in wxDocPrintout.
Vadim Zeitlin [Sun, 6 Feb 2011 01:01:09 +0000 (01:01 +0000)] 
Use better title by default in wxDocPrintout.

Use the document name instead of the default "Printout" if no title is
explicitly specified when creating wxDocPrintout.

Closes #12885.

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

13 years agoAllow accessing 64 bit registry from 32 bit MSW code and vice versa.
Vadim Zeitlin [Sun, 6 Feb 2011 01:01:01 +0000 (01:01 +0000)] 
Allow accessing 64 bit registry from 32 bit MSW code and vice versa.

Implement support for KEY_WOW64_32KEY and KEY_WOW64_64KEY in wxRegKey code.

Closes #10792.

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

13 years agoUse Explorer style for wxTreeCtrl with wxTR_TWIST_BUTTONS in wxMSW.
Vadim Zeitlin [Sun, 6 Feb 2011 01:00:48 +0000 (01:00 +0000)] 
Use Explorer style for wxTreeCtrl with wxTR_TWIST_BUTTONS in wxMSW.

The tree control style used by Explorer uses rotating triangles instead of the
standard "+/-" buttons and so seems to correspond relatively well to this
style. And this provides a possibility to have a more standard-looking tree
controls in wxWidgets programs.

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

13 years agoClean up wxMSW wxTreeCtrl code by removing obsolete workarounds.
Vadim Zeitlin [Sun, 6 Feb 2011 01:00:40 +0000 (01:00 +0000)] 
Clean up wxMSW wxTreeCtrl code by removing obsolete workarounds.

Remove wxUSE_COMCTL32_SAFELY that hasn't been needed for years, the current
code seems to work just fine on all the systems so remove this obsolete
workaround to simplify it.

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

13 years agoLink console programs with PNG library in monolithic build.
Vadim Zeitlin [Sat, 5 Feb 2011 20:25:09 +0000 (20:25 +0000)] 
Link console programs with PNG library in monolithic build.

PNG images are used by the main wxWidgets library itself now and so linking
with the monolithic wx library introduces dependencies on PNG as well, even
for the console applications. Link them with linpng to avoid linker errors.

Closes #12889.

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

13 years agoCorrect decoding of 4-byte integers in png2c script.
Vadim Zeitlin [Sat, 5 Feb 2011 20:24:52 +0000 (20:24 +0000)] 
Correct decoding of 4-byte integers in png2c script.

Wrong multiplier was used for the most significant byte. Fix it even though it
doesn't risk to be a problem in practice as the images of such gigantic size
would surely break some limit anyhow.

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

13 years agoRe-enable generation of wxEVT_MOVE_{START,END} events under wxMSW.
Vadim Zeitlin [Sat, 5 Feb 2011 20:24:47 +0000 (20:24 +0000)] 
Re-enable generation of wxEVT_MOVE_{START,END} events under wxMSW.

Handling of WM_{ENTER,EXIT}SIZEMOVE was disabled as a side-effect of r47927,
possibly unintentionally. Revert this change to generate these events again.

Also document that they're MSW-only for now.

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

13 years agoDon't adjust menu item positions for title for menubar menus in wxMSW.
Vadim Zeitlin [Sat, 5 Feb 2011 16:38:53 +0000 (16:38 +0000)] 
Don't adjust menu item positions for title for menubar menus in wxMSW.

The code in wxMSW menu code which accounted for the extra items used to show
popup menu title has become incorrect since the changes of r66178 as now the
non-popup menus have titles as well.

Correct the check to only do the adjustment for the popup menus.

Closes #12922.

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

13 years agoDeprecate second parameter of wxSlider::SetTickFreq().
Vadim Zeitlin [Sat, 5 Feb 2011 16:36:30 +0000 (16:36 +0000)] 
Deprecate second parameter of wxSlider::SetTickFreq().

This parameter was never needed nor properly documented. Simply remove it from
SetTickFreq() and keep the overload still taking it for backwards
compatibility only.

Closes #12907.

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

13 years agoImplement restoring default video mode under OS X.
Vadim Zeitlin [Sat, 5 Feb 2011 16:36:18 +0000 (16:36 +0000)] 
Implement restoring default video mode under OS X.

Use CGRestorePermanentDisplayConfiguration() to implement switching to default
video mode in wxOSX wxDisplay implementation.

Closes #12914.

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

13 years agoCheck for WLAN interface names in wxDialUpManager under Unix.
Vadim Zeitlin [Sat, 5 Feb 2011 16:14:24 +0000 (16:14 +0000)] 
Check for WLAN interface names in wxDialUpManager under Unix.

Recognize "wlan" and "ath" interfaces as well as the "eth" ones.

Closes 12923.

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

13 years agoFix for lines not wrapping soon enough if tabs are present
Julian Smart [Thu, 3 Feb 2011 20:05:33 +0000 (20:05 +0000)] 
Fix for lines not wrapping soon enough if tabs are present

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

13 years agoRebake everything using bakefile 0.2.9.
Vadim Zeitlin [Thu, 3 Feb 2011 15:02:45 +0000 (15:02 +0000)] 
Rebake everything using bakefile 0.2.9.

Update configure and bakefile.m4 for the new version too.

Also add the missing makefiles and projects for the XTI sample.

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

13 years agoAvoid incompatible operand types
Jouk Jansen [Thu, 3 Feb 2011 10:59:50 +0000 (10:59 +0000)] 
Avoid incompatible operand types

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

13 years agofixes #10978
Stefan Csomor [Thu, 3 Feb 2011 10:20:01 +0000 (10:20 +0000)] 
fixes #10978

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

13 years agoswitching to assert
Stefan Csomor [Wed, 2 Feb 2011 13:49:44 +0000 (13:49 +0000)] 
switching to assert

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

13 years agoAdded support for reading comments from a GIF image.
Dimitri Schoolwerth [Wed, 2 Feb 2011 11:19:30 +0000 (11:19 +0000)] 
Added support for reading comments from a GIF image.

Applied (modified) patch by troelsk. Changed comments (which are allowed per frame in an animated GIF) to be read using wxIMAGE_OPTION_GIF_COMMENT with wxImage.GetOption. Added unit tests for reading and writing GIF comments.

Closes #12843.

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

13 years agotesting for define alone is sufficient and more portable
Stefan Csomor [Wed, 2 Feb 2011 07:56:38 +0000 (07:56 +0000)] 
testing for define alone is sufficient and more portable

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

13 years agofixing searchctrl on osx_cocoa, changing type for peer to wxSearchCtrl
Stefan Csomor [Wed, 2 Feb 2011 07:55:57 +0000 (07:55 +0000)] 
fixing searchctrl on osx_cocoa, changing type for peer to wxSearchCtrl

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

13 years agoguard against null ptr access
Stefan Csomor [Wed, 2 Feb 2011 07:36:18 +0000 (07:36 +0000)] 
guard against null ptr access

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

13 years agoAccount for first removal char with wxELLIPSIZE_MIDDLE.
Václav Slavík [Mon, 31 Jan 2011 18:23:32 +0000 (18:23 +0000)] 
Account for first removal char with wxELLIPSIZE_MIDDLE.

wxControl::Ellipsize() in wxELLIPSIZE_MIDDLE mode starts the
string-shortening loop with the removal interval initially set to remove
only the len/2-th character. But it didn't add its size to the running
total of removal characters' length, thus always removing one more
character. Fixed by making the initial interval 0-sized rather than
1-sized.

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

13 years agoRemove chars one-by-one with wxELLIPSIZE_MIDDLE.
Václav Slavík [Mon, 31 Jan 2011 18:23:29 +0000 (18:23 +0000)] 
Remove chars one-by-one with wxELLIPSIZE_MIDDLE.

Previously, Ellipsize() would always remove two characters at a time in
wxELLIPSIZE_MIDDLE mode. This was clearly a bug: it led to shortening
the text more than was strictly necessary.

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

13 years agoFix vertical rules rendering in generic wxDataViewCtrl.
Václav Slavík [Mon, 31 Jan 2011 16:54:03 +0000 (16:54 +0000)] 
Fix vertical rules rendering in generic wxDataViewCtrl.

Vertical rules are now drawn in the last pixel of a column instead of in
the first, so that they align perfectly with native MSW wxHeaderCtrl as
well as for consistency with MSW native list control.  There's no
vertical rule at the most-left side of the control anymore.

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

13 years agoadding support for wxCANCEL_DEFAULT
Stefan Csomor [Sun, 30 Jan 2011 19:01:37 +0000 (19:01 +0000)] 
adding support for wxCANCEL_DEFAULT

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

13 years agoOLE uses VARIANT_TRUE and not TRUE for its boolean values.
Vadim Zeitlin [Sat, 29 Jan 2011 14:20:42 +0000 (14:20 +0000)] 
OLE uses VARIANT_TRUE and not TRUE for its boolean values.

VARIANT_TRUE is -1, unlike TRUE which is just 1, and we must use the former
and not the latter with OLE VARIANT values.

Closes #12910.

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

13 years agoRevert "Set up pages range in the wxMSW print dialog correctly."
Vadim Zeitlin [Sat, 29 Jan 2011 13:55:40 +0000 (13:55 +0000)] 
Revert "Set up pages range in the wxMSW print dialog correctly."

This patch changed the relative order of calls to wxPrintout::GetPageInfo()
and OnPreparePrinting(), breaking the existing code and the documentation
promise about OnPreparePrinting() being called first, so revert it.

Reverts r66549.
See #12819.
Closes #12911.

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

13 years agoUpdate OpenVMS makefile
Jouk Jansen [Fri, 28 Jan 2011 15:01:01 +0000 (15:01 +0000)] 
Update OpenVMS makefile

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

13 years agoAllow writing a comment to each GIF frame.
Dimitri Schoolwerth [Fri, 28 Jan 2011 08:36:34 +0000 (08:36 +0000)] 
Allow writing a comment to each GIF frame.

Don't write a comment as part of the GIF header during the first frame only but write a possible comment for each wxImage in an animation.

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

13 years agoAdded support for writing a long comment to a GIF image.
Dimitri Schoolwerth [Fri, 28 Jan 2011 08:10:01 +0000 (08:10 +0000)] 
Added support for writing a long comment to a GIF image.

Instead of limiting a comment to a maximum length of 255 bytes write multiple comment data blocks (each a Pascal string) followed by the block terminator.

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

13 years agoclang fix, fixes #12332
Stefan Csomor [Fri, 28 Jan 2011 07:35:07 +0000 (07:35 +0000)] 
clang fix, fixes #12332

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

13 years agoChanged the procedure for writing a comment to a GIF image.
Dimitri Schoolwerth [Fri, 28 Jan 2011 07:27:34 +0000 (07:27 +0000)] 
Changed the procedure for writing a comment to a GIF image.

Use wxImage.SetOption with newly introduced wxIMAGE_OPTION_GIF_COMMENT to set a GIF's image comment now. Formerly this was done (since recently) using wxGIFHandler::ms_comment which has now been removed.

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

13 years agobetter way to silence unused parameter warning
Paul Cornett [Fri, 28 Jan 2011 06:18:33 +0000 (06:18 +0000)] 
better way to silence unused parameter warning

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

13 years agoProperly account for floated panes while restoring maximized pane.
Bryan Petty [Fri, 28 Jan 2011 02:21:42 +0000 (02:21 +0000)] 
Properly account for floated panes while restoring maximized pane.

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

13 years agoclang fixes, fixes #12332
Stefan Csomor [Thu, 27 Jan 2011 18:35:01 +0000 (18:35 +0000)] 
clang fixes, fixes #12332

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

13 years agoclang fix
Stefan Csomor [Thu, 27 Jan 2011 17:15:40 +0000 (17:15 +0000)] 
clang fix

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

13 years agoDocument wxEVT_COMMAND_SPINCTRL_UPDATED in EVT_SPINCTRL description.
Vadim Zeitlin [Thu, 27 Jan 2011 13:27:14 +0000 (13:27 +0000)] 
Document wxEVT_COMMAND_SPINCTRL_UPDATED in EVT_SPINCTRL description.

Also mention the name of the event type when documenting the corresponding
event table macro.

Closes #12897.

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

13 years agoFix link errors under Cygwin with wxUSE_GRAPHICS_CONTEXT==1.
Vadim Zeitlin [Thu, 27 Jan 2011 13:27:09 +0000 (13:27 +0000)] 
Fix link errors under Cygwin with wxUSE_GRAPHICS_CONTEXT==1.

Define ourselves _GdipStringFormatCachedGenericTypographic variable referenced
by Cygwin GDI+ headers to fix linking errors due to the fact that we don't
link with gdiplus.lib at all but load gdiplus.dll dynamically.

Closes #11716.

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

13 years ago__BIG_ENDIAN__ is either defined AND has a value of 1, or it is not defined at all...
Stefan Csomor [Thu, 27 Jan 2011 13:00:16 +0000 (13:00 +0000)] 
__BIG_ENDIAN__ is either defined AND has a value of 1, or it is not defined at all, so #ifdef is sufficient

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

13 years agofixing return type
Stefan Csomor [Thu, 27 Jan 2011 12:38:24 +0000 (12:38 +0000)] 
fixing return type

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

13 years agoclang warnings
Stefan Csomor [Thu, 27 Jan 2011 11:54:19 +0000 (11:54 +0000)] 
clang warnings

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

13 years agogood catch by clang ...
Stefan Csomor [Thu, 27 Jan 2011 11:53:51 +0000 (11:53 +0000)] 
good catch by clang ...

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

13 years agoclang warnings
Stefan Csomor [Thu, 27 Jan 2011 11:37:37 +0000 (11:37 +0000)] 
clang warnings

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

13 years agoreverting inadvertent commit
Stefan Csomor [Thu, 27 Jan 2011 11:04:45 +0000 (11:04 +0000)] 
reverting inadvertent commit

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

13 years agosupporting clang 2.0 under xcode, see #12332
Stefan Csomor [Thu, 27 Jan 2011 11:00:26 +0000 (11:00 +0000)] 
supporting clang 2.0 under xcode, see #12332

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

13 years agokeeping opaqueness and backgroundcolor in synch with bgstyle
Stefan Csomor [Wed, 26 Jan 2011 18:49:02 +0000 (18:49 +0000)] 
keeping opaqueness and backgroundcolor in synch with bgstyle

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

13 years agoper default wx' static text items have a transparent background
Stefan Csomor [Wed, 26 Jan 2011 18:46:59 +0000 (18:46 +0000)] 
per default wx' static text items have a transparent background

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

13 years agoartmac extended for cocoa
Stefan Csomor [Wed, 26 Jan 2011 16:15:39 +0000 (16:15 +0000)] 
artmac extended for cocoa

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

13 years agofixing toplevel position
Stefan Csomor [Wed, 26 Jan 2011 15:55:20 +0000 (15:55 +0000)] 
fixing toplevel position

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

13 years agohinting support
Stefan Csomor [Wed, 26 Jan 2011 15:54:03 +0000 (15:54 +0000)] 
hinting support

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

13 years agoPNG is the native format on iOS
Stefan Csomor [Wed, 26 Jan 2011 15:53:31 +0000 (15:53 +0000)] 
PNG is the native format on iOS

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

13 years agoavoid populating the array with NULL controls during creation (SetWindowVariant calli...
Stefan Csomor [Wed, 26 Jan 2011 15:52:41 +0000 (15:52 +0000)] 
avoid populating the array with NULL controls during creation (SetWindowVariant calling SetFont crashing)

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

13 years agosupport for hints, fixing textfield implementation on iOS
Stefan Csomor [Wed, 26 Jan 2011 15:51:39 +0000 (15:51 +0000)] 
support for hints, fixing textfield implementation on iOS

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

13 years agoMaximize for iPhone
Stefan Csomor [Wed, 26 Jan 2011 07:42:33 +0000 (07:42 +0000)] 
Maximize for iPhone

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

13 years agosupporting a null cgimage so that we don't get exceptions, only an wxbitmap that...
Stefan Csomor [Tue, 25 Jan 2011 18:47:12 +0000 (18:47 +0000)] 
supporting a null cgimage so that we don't get exceptions, only an wxbitmap that is !Ok()

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

13 years agosupport for separator (fixed width spacE)
Stefan Csomor [Tue, 25 Jan 2011 18:46:01 +0000 (18:46 +0000)] 
support for separator (fixed width spacE)

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

13 years agoadding constructor from CGImageRef
Stefan Csomor [Tue, 25 Jan 2011 15:47:05 +0000 (15:47 +0000)] 
adding constructor from CGImageRef

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

13 years agoFixed heap corruption when reading a corrupted RLE TGA image.
Dimitri Schoolwerth [Tue, 25 Jan 2011 11:23:42 +0000 (11:23 +0000)] 
Fixed heap corruption when reading a corrupted RLE TGA image.

There were no boundary checks in place to verify an indicated repeat of pixels would still be inside the image's data. Added these checks and a unit test making sure these kind of TGAs now fail to load.

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

13 years agoFixed typo in wxFileName::GetHumanReadableSize docs.
Dimitri Schoolwerth [Tue, 25 Jan 2011 08:15:55 +0000 (08:15 +0000)] 
Fixed typo in wxFileName::GetHumanReadableSize docs.

Closes #12898.

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

13 years agoSave the mode in SetMode
Robin Dunn [Tue, 25 Jan 2011 05:14:30 +0000 (05:14 +0000)] 
Save the mode in SetMode

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

13 years agoAdd wxRTTI macros for the wxSimpleHtmlListBox class
Robin Dunn [Tue, 25 Jan 2011 05:03:17 +0000 (05:03 +0000)] 
Add wxRTTI macros for the wxSimpleHtmlListBox class

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

13 years agoremove deprecated voidp, closes #12896
Paul Cornett [Mon, 24 Jan 2011 17:36:44 +0000 (17:36 +0000)] 
remove deprecated voidp, closes #12896

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

13 years agofixing toolbar repositioning (iOS)
Stefan Csomor [Mon, 24 Jan 2011 16:45:58 +0000 (16:45 +0000)] 
fixing toolbar repositioning (iOS)

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

13 years agoguarding code in case of delayed controller release
Stefan Csomor [Mon, 24 Jan 2011 16:45:25 +0000 (16:45 +0000)] 
guarding code in case of delayed controller release

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

13 years agoDon't allow user to resize non-resizable columns to best size.
Václav Slavík [Mon, 24 Jan 2011 14:35:33 +0000 (14:35 +0000)] 
Don't allow user to resize non-resizable columns to best size.

Double-clicking columns separator resizes the column to the best width
for its content. This should only be done for resizeable columns,
though.

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

13 years agoRemove incorrect comment.
Václav Slavík [Mon, 24 Jan 2011 14:35:30 +0000 (14:35 +0000)] 
Remove incorrect comment.

UpdateColumnWidthToFit() is in fact used when double-clicking columns separators.

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

13 years agodirect constructor from CGImageRef
Stefan Csomor [Mon, 24 Jan 2011 13:17:59 +0000 (13:17 +0000)] 
direct constructor from CGImageRef

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

13 years agoTo work around harmless memory leaks reported by Visual C++ static runtime libs,...
Jaakko Salli [Sun, 23 Jan 2011 10:13:49 +0000 (10:13 +0000)] 
To work around harmless memory leaks reported by Visual C++ static runtime libs, assume that C++ typeid operator works well with VC++ 9.0 and later (fixes #12023)

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

13 years agoloading png and jpg from resource bundle
Stefan Csomor [Sun, 23 Jan 2011 10:10:45 +0000 (10:10 +0000)] 
loading png and jpg from resource bundle

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

13 years agoReverted for a quiet life
Julian Smart [Sat, 22 Jan 2011 21:25:13 +0000 (21:25 +0000)] 
Reverted for a quiet life

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

13 years agoDon't pointlessly forbid calling AddGrowableRow/Col before adding items.
Julian Smart [Sat, 22 Jan 2011 20:43:55 +0000 (20:43 +0000)] 
Don't pointlessly forbid calling AddGrowableRow/Col before adding items.

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

13 years agowxDataViewCtrl: fix autosized columns recalculation.
Václav Slavík [Sat, 22 Jan 2011 19:02:02 +0000 (19:02 +0000)] 
wxDataViewCtrl: fix autosized columns recalculation.

The code and its assumptions were correct only for generic wxHeaderCtrl,
it didn't work for MSW implementation. Fixed by updating all columns
every time.

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