]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
13 years agoMove "static" keyword out from wxDEPRECATED() macros to placate icc.
Vadim Zeitlin [Sat, 19 Feb 2011 12:32:59 +0000 (12:32 +0000)] 
Move "static" keyword out from wxDEPRECATED() macros to placate icc.

Intel compiler gives warnings if the static keyword is not at the beginning of
the declaration and this happened when using it inside wxDEPRECATED() and
related macros because the declaration started with __declspec(deprecated) or
__attribute__((deprecated)) instead.

To avoid this problem, simply move "static" outside the macro.

Closes #12932.

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

13 years agoCorrect signed/unsigned comparison in wxGridBagSizer code.
Vadim Zeitlin [Sat, 19 Feb 2011 12:32:53 +0000 (12:32 +0000)] 
Correct signed/unsigned comparison in wxGridBagSizer code.

Casting a signed value to unsigned type is a recipe for disaster if it
actually turns out to be negative because the comparison remains always false
and the loop becomes practically infinite. So cast the unsigned value to
signed int instead, this should be perfectly safe as the number of columns or
rows in a sizer can't exceed INT_MAX anyhow.

Notice that after the changes of the previous revision the signed value
should actually be always positive so this change is not strictly needed but
it is still safer to write the comparison like this.

See #12934.

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

13 years agoDon't accept invalid values for rows/columns in wxGBSpan ctor.
Vadim Zeitlin [Sat, 19 Feb 2011 12:32:48 +0000 (12:32 +0000)] 
Don't accept invalid values for rows/columns in wxGBSpan ctor.

wxGBSpan must have strictly positive row and column span as otherwise the grid
bag sizer code could enter an infinite loop trying to exceed a negative number
which it casted to an unsigned one. And while the cast itself is incorrect too
the program still behaves undesirably (produces a lot of asserts in debug
build and then crashes or crashes directly in release) if a zero size span is
used so it seems better to prevent this from happening.

Closes #12934.

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

13 years agoFix out of bounds string access in wxMSW wxDirDialog.
Vadim Zeitlin [Sat, 19 Feb 2011 00:30:32 +0000 (00:30 +0000)] 
Fix out of bounds string access in wxMSW wxDirDialog.

Using the initial directory of "/" (or "\\" or in fact any string consisting
solely of slashes and backslashes) resulted in a crash as the code incorrectly
tried to read the character before the beginning of the string.

Fix this by checking that the string is not empty before using s.end()-1
iterator.

Closes #12946.

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

13 years agoDon't ask for wxTextAttr colour if it doesn't have any in text sample.
Vadim Zeitlin [Sat, 19 Feb 2011 00:30:24 +0000 (00:30 +0000)] 
Don't ask for wxTextAttr colour if it doesn't have any in text sample.

This fixes an assert which could happen when showing the rich text editor.

Also show the colour in a more readable form if possible.

Closes #12950.

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

13 years agoCompilation fix for PCH-less wxOSX build.
Vadim Zeitlin [Sat, 19 Feb 2011 00:30:18 +0000 (00:30 +0000)] 
Compilation fix for PCH-less wxOSX build.

Forward declare wxChoice.

Closes #12953.

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

13 years agofixes #12935
Stefan Csomor [Fri, 18 Feb 2011 19:06:11 +0000 (19:06 +0000)] 
fixes #12935

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

13 years agobail out with error in case of carbon set for 64 bit architecture
Stefan Csomor [Fri, 18 Feb 2011 18:44:43 +0000 (18:44 +0000)] 
bail out with error in case of carbon set for 64 bit architecture

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

13 years agoprecomp header fixes
Stefan Csomor [Fri, 18 Feb 2011 18:25:23 +0000 (18:25 +0000)] 
precomp header fixes

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

13 years agoupdating sysopt string
Stefan Csomor [Fri, 18 Feb 2011 17:48:39 +0000 (17:48 +0000)] 
updating sysopt string

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

13 years agosupport for file-type popup, compatible for 10.4+, solves #12429
Stefan Csomor [Fri, 18 Feb 2011 17:29:31 +0000 (17:29 +0000)] 
support for file-type popup, compatible for 10.4+, solves #12429

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

13 years agosupport non precomp builds
Stefan Csomor [Fri, 18 Feb 2011 07:26:15 +0000 (07:26 +0000)] 
support non precomp builds

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

13 years agoFixed bug #9856: wxSizer::Replace( size_t, wxSizerItem *) doesn't call SetContainingSizer
Julian Smart [Thu, 17 Feb 2011 09:53:06 +0000 (09:53 +0000)] 
Fixed bug #9856: wxSizer::Replace( size_t, wxSizerItem *) doesn't call SetContainingSizer

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

13 years agoactivating high-res support via artprov mac
Stefan Csomor [Thu, 17 Feb 2011 09:46:27 +0000 (09:46 +0000)] 
activating high-res support via artprov mac

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

13 years agopatch applied with thanks, fixes #10524
Stefan Csomor [Thu, 17 Feb 2011 06:46:09 +0000 (06:46 +0000)] 
patch applied with thanks, fixes #10524

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

13 years agoCorrect example of wxRegKey use in its documentation.
Vadim Zeitlin [Wed, 16 Feb 2011 23:51:08 +0000 (23:51 +0000)] 
Correct example of wxRegKey use in its documentation.

Don't check for the key existence, it ought to exist if we create it like
this.

Also don't allocate wxRegKey object on the heap unnecessarily.

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

13 years agoRemove WXDLLIMPEXP_CORE from VC6 wxCompositeWindow declaration.
Vadim Zeitlin [Wed, 16 Feb 2011 23:45:04 +0000 (23:45 +0000)] 
Remove WXDLLIMPEXP_CORE from VC6 wxCompositeWindow declaration.

Hopefully not using WXDLLIMPEXP_CORE here should fix VC6 warnings about using
non dll-interface class as a base class for a dll-interface one.

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

13 years agoDon't use native MSW wxProgressDialog version in wxUniv.
Vadim Zeitlin [Wed, 16 Feb 2011 23:45:00 +0000 (23:45 +0000)] 
Don't use native MSW wxProgressDialog version in wxUniv.

The native version should only be used in the native port.

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

13 years agoCompile wxUIActionSimulator in wxUniv builds.
Vadim Zeitlin [Wed, 16 Feb 2011 23:44:55 +0000 (23:44 +0000)] 
Compile wxUIActionSimulator in wxUniv builds.

Move wxUIActionSimulator implementation files to low level sources to ensure
that they are included in wxUniv builds.

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

13 years agoadding edit menu in order to be able to support native edit menu commands (osx)
Stefan Csomor [Wed, 16 Feb 2011 18:51:15 +0000 (18:51 +0000)] 
adding edit menu in order to be able to support native edit menu commands (osx)

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

13 years agosupport native edit menu handling (cocoa enables menu items in built-in modal dialogs...
Stefan Csomor [Wed, 16 Feb 2011 18:32:31 +0000 (18:32 +0000)] 
support native edit menu handling (cocoa enables menu items in built-in modal dialogs automagically, if they have the proper selectors)

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

13 years agotoolbar support in all orientations
Stefan Csomor [Wed, 16 Feb 2011 18:31:16 +0000 (18:31 +0000)] 
toolbar support in all orientations

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

13 years agotoolbar support in all orientations
Stefan Csomor [Wed, 16 Feb 2011 18:30:55 +0000 (18:30 +0000)] 
toolbar support in all orientations

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

13 years agoremove ununsed member
Stefan Csomor [Wed, 16 Feb 2011 16:37:24 +0000 (16:37 +0000)] 
remove ununsed member

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

13 years agoconforming to deprecation recommendation for 10.6
Stefan Csomor [Wed, 16 Feb 2011 16:10:30 +0000 (16:10 +0000)] 
conforming to deprecation recommendation for 10.6

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

13 years agosupport for file types in save panel
Stefan Csomor [Wed, 16 Feb 2011 07:38:48 +0000 (07:38 +0000)] 
support for file types in save panel

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

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