]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
12 years agoRespect styles translated to WS_EX_XXX in wxMSW wxCheckBox and wxRadioButton.
Vadim Zeitlin [Sun, 23 Sep 2012 22:47:52 +0000 (22:47 +0000)] 
Respect styles translated to WS_EX_XXX in wxMSW wxCheckBox and wxRadioButton.

Take into account the window styles that translate to extended Windows styles
at MSW level.

Also override MSWGetStyle() in these classes, just as in most (all?) other
ones, for consistency instead of doing wx-to-MSW styles translation directly
in Create().

Notice that as a side effect of this change, border styles now work for
wxCheckBox which wasn't the case before. It's not clear if this is really
wanted but OTOH there doesn't seem to be any real reason to forbid them
neither.

Closes #14674.

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

12 years agoAllow wxWrapSizer to request more size than it used previously.
Vadim Zeitlin [Sat, 22 Sep 2012 16:16:52 +0000 (16:16 +0000)] 
Allow wxWrapSizer to request more size than it used previously.

The code in wxWrapSizer::CalcMin() ensured that the sizer never requested more
space than what it had been already given which, while clearly done
intentionally, seems to be wrong because it can never end up with enough space
for all its rows/columns unless it is set to up to expand in the containing
sizer.

In other words, the old code could return the size which was not enough to
show the sizer contents fully which is against CalcMin() contract.

Change this by simply removing the check for the new minimal size being less
than the old one. This allows the wrap sizer demo in the layout sample to work
correctly whereas before the sizer contents was completely invisible initially.

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

12 years agoMake wxWrapSizer demo in the layout sample more dynamic.
Vadim Zeitlin [Sat, 22 Sep 2012 16:16:30 +0000 (16:16 +0000)] 
Make wxWrapSizer demo in the layout sample more dynamic.

Allow adding checkboxes to and removing them from the wrap sizer to
demonstrate how it adjusts to its contents dynamically.

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

12 years agoCredit "sodev" with correct full name.
Vadim Zeitlin [Sat, 22 Sep 2012 16:16:07 +0000 (16:16 +0000)] 
Credit "sodev" with correct full name.

Amend the change log entry of r71701.

See #14380.

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

12 years agoFix crash on wxMediaCtrl creation in wxMSW.
Vadim Zeitlin [Fri, 21 Sep 2012 10:26:18 +0000 (10:26 +0000)] 
Fix crash on wxMediaCtrl creation in wxMSW.

A valid RECT pointer must be passed to DoVerb(OLEIVERB_INPLACEACTIVATE) but
r72027 (see #14209) broke this and passed it NULL resulting in an instant
crash.

Revert this part of the change and do pass out window client area.

Closes #14682.

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

12 years agoFix wxPluginLibrary wxClassInfo pointers initialization.
Vadim Zeitlin [Thu, 20 Sep 2012 23:12:51 +0000 (23:12 +0000)] 
Fix wxPluginLibrary wxClassInfo pointers initialization.

The values of m_ourFirst and m_ourLast were inversed in wxPluginLibrary ctor.
Fix this and explain in a comment that "first" and "last" here refer to the
order in the linked list and not the chronological order.

Closes #14483.

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

12 years agoFix wrong configure test for abi::__forced_unwind in previous commit.
Vadim Zeitlin [Thu, 20 Sep 2012 23:12:28 +0000 (23:12 +0000)] 
Fix wrong configure test for abi::__forced_unwind in previous commit.

The previous commit was accidental and contained an initial version of the
patch which didn't test for NPTL abi::__forced_unwind correctly and just
tested whether cxxabi.h header was available.

Tighten the check to work on the other systems and check for __forced_unwind
existence itself.

Also check for cxxabi.h before testing for __cxa_demangle as there is no need
to try to compile another test program if we already know that this entire
header is unavailable anyhow.

See #14626.

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

12 years agoRethrow abi::__forced_unwind in wxThread code under Unix.
Vadim Zeitlin [Thu, 20 Sep 2012 23:00:44 +0000 (23:00 +0000)] 
Rethrow abi::__forced_unwind in wxThread code under Unix.

We must always rethrow the special abi::__forced_unwind exception when
handling exception in threads under Linux as the NPTL simply terminates the
process at first opportunity if this exception is not rethrown.

See http://udrepper.livejournal.com/21541.html for more details.

Closes #14626.

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

12 years agoAdd public (but not documented) wxCheckBox::MSWMakeOwnerDrawn().
Vadim Zeitlin [Thu, 20 Sep 2012 22:15:37 +0000 (22:15 +0000)] 
Add public (but not documented) wxCheckBox::MSWMakeOwnerDrawn().

It can be useful to explicitly make a check box owner drawn, so make the
private MakeOwnerDrawn() public and add "MSW" prefix to it to allow doing this
from the user code.

Closes #14679.

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

12 years agoFix and enhance support for client data in wxRibbonButtonBar.
Vadim Zeitlin [Thu, 20 Sep 2012 20:02:25 +0000 (20:02 +0000)] 
Fix and enhance support for client data in wxRibbonButtonBar.

Add the possibility to retrieve the client data associated with a button and
not only set it (which wasn't very useful on its own).

Also allow having both typed (owned) and untyped (not owned) client data, as
in the other wxWidgets controls.

To avoid confusion between two different kinds of data, remove "client_data"
argument from the functions adding buttons and provide separate methods with
distinct names for setting and getting client data.

Closes #14630.

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

12 years agoAdd wxRibbonButtonBarEvent::GetButton().
Vadim Zeitlin [Thu, 20 Sep 2012 20:02:02 +0000 (20:02 +0000)] 
Add wxRibbonButtonBarEvent::GetButton().

Allow to retrieve the button associated with the given button bar event.

See #14630.

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

12 years agoAdd wxRibbonButtonBar::GetActiveItem() and GetHoveredItem().
Vadim Zeitlin [Thu, 20 Sep 2012 20:01:36 +0000 (20:01 +0000)] 
Add wxRibbonButtonBar::GetActiveItem() and GetHoveredItem().

Add accessors for the button being currently clicked or hovered over.

See #14630.

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

12 years agoAdd wxRibbonButtonBar::GetItem(), GetItemById() and GetItemId().
Vadim Zeitlin [Thu, 20 Sep 2012 20:01:12 +0000 (20:01 +0000)] 
Add wxRibbonButtonBar::GetItem(), GetItemById() and GetItemId().

Allow accessing the ribbon bar buttons either by index or ID.

See #14630.

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

12 years agoFix alpha handling in Scintilla when not using wxGraphicsContext.
Vadim Zeitlin [Thu, 20 Sep 2012 20:00:48 +0000 (20:00 +0000)] 
Fix alpha handling in Scintilla when not using wxGraphicsContext.

When using raw bitmap data access classes such as wxAlphaPixelData we must
destroy them to ensure that the changes done via them are committed to the
bitmap before drawing the bitmap.

Just add an extra block (the diff should be viewed ignoring white space to see
the only significant change) to ensure that wxAlphaPixelData is destroyed
before DrawBitmap() is called.

Closes #14680.

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

12 years agoDocument ShowWithoutActivating
Robin Dunn [Thu, 20 Sep 2012 16:42:27 +0000 (16:42 +0000)] 
Document ShowWithoutActivating

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

12 years agoMake it possible to TAB-navigate among wxStaticBox children.
Vadim Zeitlin [Thu, 20 Sep 2012 16:00:07 +0000 (16:00 +0000)] 
Make it possible to TAB-navigate among wxStaticBox children.

As wxStaticBox can now contain child windows, derive it from
wxNavigationEnabled<> to allow TAB-navigating among them. Without this, it was
impossible to switch focus from keyboard to any of the controls inside
wxStaticBox.

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

12 years agoNo real changes, just remove an unnecessary variable assignment.
Vadim Zeitlin [Thu, 20 Sep 2012 15:47:03 +0000 (15:47 +0000)] 
No real changes, just remove an unnecessary variable assignment.

Initialize m_gtk_model with its correct value immediately, without setting it
to NULL first.

Closes #14673.

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

12 years agoBetter documentation for wxRect::Set{Left,Top}().
Vadim Zeitlin [Thu, 20 Sep 2012 15:46:40 +0000 (15:46 +0000)] 
Better documentation for wxRect::Set{Left,Top}().

These functions also change the rectangle right/bottom position, unlike
Set{Right,Bottom}() that change its width/height respectively. This is not
very logical but impossible to change for compatibility reasons, so at least
document it clearly.

Closes #14678.

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

12 years agoQuote wxExecute() arguments in wxDebugReportUpload when using curl.
Vadim Zeitlin [Thu, 20 Sep 2012 15:46:18 +0000 (15:46 +0000)] 
Quote wxExecute() arguments in wxDebugReportUpload when using curl.

Quote the argument to curl as it might contain spaces.

Closes #14677.

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

12 years agobackport wxspinctrl::get/setbase form gtk ->gtk1
Jouk Jansen [Thu, 20 Sep 2012 12:33:05 +0000 (12:33 +0000)] 
backport wxspinctrl::get/setbase form gtk ->gtk1

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

12 years agoAdd wxStyledTextCtrl::AnnotationClearLine().
Vadim Zeitlin [Thu, 20 Sep 2012 10:20:42 +0000 (10:20 +0000)] 
Add wxStyledTextCtrl::AnnotationClearLine().

Simply set NULL annotation text for the given line.

Closes #12960.

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

12 years agoAdd wxStyledTextCtrl::SelectNone() to the template header file too.
Vadim Zeitlin [Thu, 20 Sep 2012 10:20:18 +0000 (10:20 +0000)] 
Add wxStyledTextCtrl::SelectNone() to the template header file too.

This method was only added to the generated include/wx/stc/stc.h but not to
src/stc/stc.h.in from which it is created in r72490, do update the latter file
too now.

See #12960.

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

12 years agoFix incorrect code sorting pages by their widths in wxRibbon.
Vadim Zeitlin [Thu, 20 Sep 2012 10:19:54 +0000 (10:19 +0000)] 
Fix incorrect code sorting pages by their widths in wxRibbon.

The "sneaky obj array trickery" wasn't very sneaky but was just plain wrong
and misused object array of pages in a way that was invalid and didn't crash
just because of sheer luck.

Rewrite this code to use a temporary wxVector of pages that can be sorted
independently of the main m_pages array. This is 100% safe and also more
clear.

Closes #14625.

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

12 years agocompleting the removal of PICT
Stefan Csomor [Wed, 19 Sep 2012 21:18:55 +0000 (21:18 +0000)] 
completing the removal of PICT

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

12 years agoUpdate the wxSpinCtrlDouble documentation so SetIncrement refers to SetDigits
Steve Lamerton [Wed, 19 Sep 2012 20:23:53 +0000 (20:23 +0000)] 
Update the wxSpinCtrlDouble documentation so SetIncrement refers to SetDigits

Closes #12342

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

12 years agoAdd define for MAC_OS_X_VERSION_10_7 if there isn't one already
Robin Dunn [Wed, 19 Sep 2012 18:55:07 +0000 (18:55 +0000)] 
Add define for MAC_OS_X_VERSION_10_7 if there isn't one already

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

12 years agobracing 10.7+ constant
Stefan Csomor [Wed, 19 Sep 2012 14:09:30 +0000 (14:09 +0000)] 
bracing 10.7+ constant

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

12 years agoworkaround for non-standard icon sizes under 64 bit
Stefan Csomor [Wed, 19 Sep 2012 12:36:24 +0000 (12:36 +0000)] 
workaround for non-standard icon sizes under 64 bit

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

12 years agoUpdate setup.h for OpenVMS
Jouk Jansen [Wed, 19 Sep 2012 11:28:12 +0000 (11:28 +0000)] 
Update setup.h for OpenVMS

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

12 years agofixing incorrect scrolling - which happened at least under OSX ...
Stefan Csomor [Wed, 19 Sep 2012 08:18:15 +0000 (08:18 +0000)] 
fixing incorrect scrolling - which happened at least under OSX ...

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

12 years agoUpdate wxGTK.spec to work with openSUSE build server.
Vadim Zeitlin [Wed, 19 Sep 2012 07:53:13 +0000 (07:53 +0000)] 
Update wxGTK.spec to work with openSUSE build server.

Changes from Marcin Wojdyr fixing issues for different RPM-using systems:

- added all necessary BuildRequires fields
- for openSuse wxGTK-gl package is named libwx_gtk*_gl... (it's
enforced that package with one shared lib has name matching the
library name)
- added missing '%dir's - on some distros rpms didn't built without it
- Fedora, Suse and Mandriva have all different set of known Groups,
I've changed group from 'X11/Libraries' to 'System/Libraries' -- it's
defined at least in Suse and Mandriva. (in recent distro releases
Group can be skipped, so it's becoming irrelevant).
- removed 'Packager' field and dots ending Summary field - AFAIR these
were errors on Opensuse
- added '= %{version}' to Provides
- for Redhat5 use GCC4.4 (build crashed with default 4.2)

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

12 years agoLet wxWindow::Fit[Inside]() work even for windows without children.
Vadim Zeitlin [Wed, 19 Sep 2012 07:50:07 +0000 (07:50 +0000)] 
Let wxWindow::Fit[Inside]() work even for windows without children.

The best [virtual] size of the window is usually determined by its children
but it's also possible to have a min size constraint set on the window sizer
so set the window to its best size in Fit() independently of whether it has
children or not.

Closes #14668.

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

12 years agoMore s/loose/lose/ in wxEncodingConverter comments.
Vadim Zeitlin [Tue, 18 Sep 2012 22:45:38 +0000 (22:45 +0000)] 
More s/loose/lose/ in wxEncodingConverter comments.

Finish the changes started by r72500 and lose the remaining loosely used
words.

Closes #14665.

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

12 years agoShow tooltips for the too long items in generic wxTreeCtrl.
Vadim Zeitlin [Tue, 18 Sep 2012 22:45:15 +0000 (22:45 +0000)] 
Show tooltips for the too long items in generic wxTreeCtrl.

Show the full item text in a tooltip if the entire text can't be shown on
screen.

Closes #14667.

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

12 years agoFix wxMSW compilation in STL build after the changes of r72472,
Vadim Zeitlin [Tue, 18 Sep 2012 00:03:45 +0000 (00:03 +0000)] 
Fix wxMSW compilation in STL build after the changes of r72472,

Call t_str() to explicitly convert wxString to wxChar* as implicit conversion
is not available in STL build.

Closes #14666.

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

12 years agoSet svn properties on recently added files.
Dimitri Schoolwerth [Mon, 17 Sep 2012 23:35:26 +0000 (23:35 +0000)] 
Set svn properties on recently added files.

Added svn:eol-style (set to native) and svn:keywords (set to Id) for .cpp and .h files that were added since r72218.

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

12 years agoRebake after addition of richtexttabspage.h in r72497.
Vadim Zeitlin [Mon, 17 Sep 2012 12:18:52 +0000 (12:18 +0000)] 
Rebake after addition of richtexttabspage.h in r72497.

See #14644.

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

12 years agoDon't show hidden wxGrid rows/columns when they're auto-sized.
Vadim Zeitlin [Mon, 17 Sep 2012 11:07:55 +0000 (11:07 +0000)] 
Don't show hidden wxGrid rows/columns when they're auto-sized.

Fix the problem introduced in r72491 which resulted in wxGrid rows/columns
being shown after auto-sizing even if they had been hidden.

Closes #14133.

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

12 years agoNo changes, just fix some typos in the comments in the headers.
Vadim Zeitlin [Mon, 17 Sep 2012 11:07:30 +0000 (11:07 +0000)] 
No changes, just fix some typos in the comments in the headers.

Closes #14665.

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

12 years agoNo real changes, just remove an unneeded variable initialization.
Vadim Zeitlin [Sun, 16 Sep 2012 23:09:38 +0000 (23:09 +0000)] 
No real changes, just remove an unneeded variable initialization.

Closes #14664.

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

12 years agoUpdates
Julian Smart [Sun, 16 Sep 2012 15:35:39 +0000 (15:35 +0000)] 
Updates

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

12 years agoAdded include/wx/richtext/richtexttabspage.h to files.bkl
Julian Smart [Sun, 16 Sep 2012 15:31:05 +0000 (15:31 +0000)] 
Added include/wx/richtext/richtexttabspage.h to files.bkl

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

12 years agoNo changes, just silence some MSVC 11 static analyzer warnings.
Vadim Zeitlin [Sat, 15 Sep 2012 23:20:23 +0000 (23:20 +0000)] 
No changes, just silence some MSVC 11 static analyzer warnings.

This is an aborted attempt to make wxWidgets code compile without warnings
when using MSVC 11 /analyze option, as it was supposed to have become much
better. Unfortunately it still produces way too many false positives to be
really useful, in particular NULL pointer detection is completely broken as
even the code such as (from object.cpp):

        wxClassInfo *info = sm_first;
        while (info)
        {
            if ( info->m_next == this )
                ...
        }

provokes tons of warnings about "info" being NULL inside the loop which is
clearly impossible.

So this commit just fixes a few obvious warnings, mostly about variable
shadowing but also a couple about possibly passing NULL to memcpy().

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

12 years agoAdd help button support to wxRibbonBar.
Vadim Zeitlin [Sat, 15 Sep 2012 23:19:59 +0000 (23:19 +0000)] 
Add help button support to wxRibbonBar.

Optionally show standard "Help" question mark button in the ribbon top right
corner and generate the appropriate event for it.

Closes #14576.

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

12 years agoFix text origin and bounding box computations in wxSVGFileDC.
Vadim Zeitlin [Sat, 15 Sep 2012 23:19:35 +0000 (23:19 +0000)] 
Fix text origin and bounding box computations in wxSVGFileDC.

Text origin was calculated incorrectly for the rotated text and the bounding
box was wrong even in non-rotated case.

Fix this by using correct definition of the text anchor according to the SVG
specification and add a test to the svg sample demonstrating this.

Closes #14489.

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

12 years agoNo real changes, just slightly simplify wxSVGFileDCImpl code.
Vadim Zeitlin [Sat, 15 Sep 2012 23:19:11 +0000 (23:19 +0000)] 
No real changes, just slightly simplify wxSVGFileDCImpl code.

Move m_graphics_changed check inside NewGraphics() itself instead of checking
whether it's true each time before calling it, it is better to both test the
flag and reset it inside this function rather than do the first part in the
caller and the second one in the callee.

Also rename the function to NewGraphicsIfNeeded() to make its meaning more
clear.

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

12 years agoMinor fixes to wxSVGFileDC implementation.
Vadim Zeitlin [Sat, 15 Sep 2012 23:18:47 +0000 (23:18 +0000)] 
Minor fixes to wxSVGFileDC implementation.

Update W3C recommendation URL; Mention Inkscape; replace wrong wxSVGFileDC
occurrence with wxDC.

See #14462.

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

12 years agoPreserve size of wxGrid rows/columns when hiding and showing them back.
Vadim Zeitlin [Sat, 15 Sep 2012 23:18:23 +0000 (23:18 +0000)] 
Preserve size of wxGrid rows/columns when hiding and showing them back.

Previously, if a wxGrid row or column was hidden by setting its size to 0, its
original size was lost. Change this so that it's preserved now and can be
restored by setting the size to the special -1 value later.

Closes #14133.

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

12 years agoFix wxGrid::PosToLinePos() in presence of hidden rows or columns.
Vadim Zeitlin [Sat, 15 Sep 2012 23:17:57 +0000 (23:17 +0000)] 
Fix wxGrid::PosToLinePos() in presence of hidden rows or columns.

The optimization of the binary search inside this function failed if any
rows/columns were hidden and so were of zero size.

See #14133.

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

12 years agoFix wxGrid::AutoSizeColOrRow() logic for multicells.
Vadim Zeitlin [Sat, 15 Sep 2012 23:17:34 +0000 (23:17 +0000)] 
Fix wxGrid::AutoSizeColOrRow() logic for multicells.

This fixes the regression of r64885 and also tries to make the code more
clear by setting the variables explicitly to their correct values.

Closes #14611.

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

12 years agoHandle underlined and strikethrough attributes in wxGTK native font info.
Vadim Zeitlin [Sat, 15 Sep 2012 23:17:12 +0000 (23:17 +0000)] 
Handle underlined and strikethrough attributes in wxGTK native font info.

These attributes were not handled by wxFont::GetNativeFontInfoDesc() as it
only serialized the Pango font description which doesn't support them.

Fix this by handling these attributes explicitly and prepending them to the
Pango font string if necessary.

Closes #14559.

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

12 years agoTake into account wxFONTFLAG_STRIKETHROUGH in wxGTK wxFont ctor.
Vadim Zeitlin [Sat, 15 Sep 2012 23:16:46 +0000 (23:16 +0000)] 
Take into account wxFONTFLAG_STRIKETHROUGH in wxGTK wxFont ctor.

Honour wxFONTFLAG_STRIKETHROUGH in wxFont ctor taking flags as this is the
only way to create a strike-through font currently.

See #14559.

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

12 years agoFix spelling in the comments in wxPropertyGrid code.
Vadim Zeitlin [Fri, 14 Sep 2012 22:26:54 +0000 (22:26 +0000)] 
Fix spelling in the comments in wxPropertyGrid code.

No real changes.

Closes #14645.

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

12 years agoAllow using horizontal cursor navigation keys in non-readonly wxComboCtrl.
Vadim Zeitlin [Fri, 14 Sep 2012 22:26:31 +0000 (22:26 +0000)] 
Allow using horizontal cursor navigation keys in non-readonly wxComboCtrl.

Don't intercept Left/Right/Home/End keys until the control is read-only,
otherwise they're more useful for navigating in its text part than in its
drop-down.

Closes #14648.

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

12 years agoNo changes, just remove an unused variable from CHM code.
Vadim Zeitlin [Fri, 14 Sep 2012 22:26:09 +0000 (22:26 +0000)] 
No changes, just remove an unused variable from CHM code.

Closes #14655.

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

12 years agoNo changes, just remove unnecessary variable initialization.
Vadim Zeitlin [Fri, 14 Sep 2012 22:25:46 +0000 (22:25 +0000)] 
No changes, just remove unnecessary variable initialization.

Combine variable declaration and initialization.

Closes #14659.

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

12 years agoCzech translations update from Zbynek Schwarz.
Vadim Zeitlin [Fri, 14 Sep 2012 10:27:36 +0000 (10:27 +0000)] 
Czech translations update from Zbynek Schwarz.

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

12 years agoRelax wxMessageDialog style checks, assume wxOK by default.
Vadim Zeitlin [Thu, 13 Sep 2012 17:16:11 +0000 (17:16 +0000)] 
Relax wxMessageDialog style checks, assume wxOK by default.

Don't complain if neither wxOK nor wxYES[_NO] are specified but just assume
wxOK by default. This allows the code calling wxMessageBox() with just an icon
flag to continue to work in the same way in 2.9 as it did in 2.8.

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

12 years agoNo changes, just remove unneeded variable initialziation in wxAUI.
Vadim Zeitlin [Thu, 13 Sep 2012 17:15:48 +0000 (17:15 +0000)] 
No changes, just remove unneeded variable initialziation in wxAUI.

Initialize the variables to the correct values when defining them instead of
initializing them as 0 first and then assigning them the real value.

Closes #14652.

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

12 years agoAdd wxBITMAP_PNG() macro similar to wxBITMAP() but for PNG images.
Vadim Zeitlin [Thu, 13 Sep 2012 17:15:25 +0000 (17:15 +0000)] 
Add wxBITMAP_PNG() macro similar to wxBITMAP() but for PNG images.

Just as wxBITMAP() provides a portable way of loading bitmaps from either
Windows BMP resources or embedded XPM data depending on the platform,
wxBITMAP_PNG() hides the difference between loading bitmaps from PNG resources
under Windows and embedded PNG data elsewhere.

Also add wxBITMAP_PNG_FROM_DATA() macro which always loads PNG data from
memory: it's needed anyhow as part of wxBITMAP_PNG() implementation and some
people may prefer to always use it under all platforms.

Finally modify the image sample to demonstrate loading PNG images from both
resources and memory. This involved creation of a new Windows .rc file for it
and copying its data files to Resources bundle directory under OS X.

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

12 years agoAdd wxBitmap::NewFromPNGData() for creating bitmaps from PNG data.
Vadim Zeitlin [Thu, 13 Sep 2012 17:15:00 +0000 (17:15 +0000)] 
Add wxBitmap::NewFromPNGData() for creating bitmaps from PNG data.

This simple function can be used to create a wxBitmap from the raw image data
in PNG format. It is just a thin wrapper around wxImage load functions under
almost all platforms but has two advantages:

1. It can be implemented natively for some platforms (currently only OS X).
2. It can be used in a single expression as it doesn't require creating a
   temporary wxMemoryInputStream and this will be required by wxBITMAP_PNG()
   macro that will be added soon.

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

12 years agoDon't ignore invalid files entered into wxFileDirPickerCtrlBase.
Vadim Zeitlin [Thu, 13 Sep 2012 17:14:37 +0000 (17:14 +0000)] 
Don't ignore invalid files entered into wxFileDirPickerCtrlBase.

File/directory picker controls with wxFLP_FILE_MUST_EXIST/wxDIRP_DIR_MUST_EXIST
style simply ignored any value entered by user if it didn't correspond to an
existing file/directory. This meant that the program didn't use the value that
was shown on the screen resulting in very confusing UI -- e.g. a program could
complain that no value was entered when actually it was and just corresponded
to a non-existing file.

As we can't prevent the entry of arbitrary strings in the text field of the
file picker control, stop pretending that we can validate it and just update
the control value, and send the corresponding event, whenever the text control
value changes.

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

12 years agoExtract "Close" button creation from wxInfoBarGeneric into new function.
Vadim Zeitlin [Thu, 13 Sep 2012 17:14:14 +0000 (17:14 +0000)] 
Extract "Close" button creation from wxInfoBarGeneric into new function.

Such buttons may be needed in other places and it's not obvious to create
them, so add a new public wxBitmapButton::NewCloseButton() method to allow
creating them easily.

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

12 years agoProvide up to date documentation for wxLoadUserResource().
Vadim Zeitlin [Thu, 13 Sep 2012 17:13:50 +0000 (17:13 +0000)] 
Provide up to date documentation for wxLoadUserResource().

Document the new and preferred overload avoiding copying the data. Also
document the new (since 2.9.1) parameters of the old one.

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

12 years agoChange wxMSW-specific wxLoadUserResource() to accept standard RT_XXX types.
Vadim Zeitlin [Thu, 13 Sep 2012 17:13:28 +0000 (17:13 +0000)] 
Change wxMSW-specific wxLoadUserResource() to accept standard RT_XXX types.

Resource types can be either strings for custom types or integers casted to a
TCHAR* for the standard ones. Using wxString for the resource type prevented
us from using the latter as any attempt to initialize wxString for such a
pseudo-string resulted in an immediate crash.

Change wxLoadUserResource() resource type parameter type to wxChar* to avoid
this and allow passing standard resource types, such as RT_RCDATE, to this
function directly.

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

12 years agoDon't initialize alpha twice when loading wxImage from resources.
Vadim Zeitlin [Thu, 13 Sep 2012 17:13:05 +0000 (17:13 +0000)] 
Don't initialize alpha twice when loading wxImage from resources.

Calling InitAlpha() when we already had loaded alpha from the resource data
results in an assert. Fix this by only initializing alpha if don't have it
yet.

Closes #14643.

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

12 years agoFix wxFindWindowAtPoint() with nested windows in wxMSW.
Vadim Zeitlin [Thu, 13 Sep 2012 17:12:42 +0000 (17:12 +0000)] 
Fix wxFindWindowAtPoint() with nested windows in wxMSW.

Return the deepest child of the window and not the first one as this function
needs to return the window that is at the top of Z-order.

Closes #14591.

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

12 years agoFix "pos" argument description in wxTreeCtrl::InsertItem() documentation.
Vadim Zeitlin [Thu, 13 Sep 2012 17:12:19 +0000 (17:12 +0000)] 
Fix "pos" argument description in wxTreeCtrl::InsertItem() documentation.

Closes #14640.

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

12 years agoFix setting colours for the edit control part of wxComboBox.
Vadim Zeitlin [Thu, 13 Sep 2012 17:11:56 +0000 (17:11 +0000)] 
Fix setting colours for the edit control part of wxComboBox.

Recognize this control as part of wxComboBox and so handle WM_CTLCOLOR for it.

To do this, override ContainsHWND() in wxComboBox and use it, on the parent
window, in wxControl::DoMSWControlColor(), if we fail to find the window
directly.

Closes #811.

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

12 years agoAdded support for wxTEXT_ATTR_EFFECT_SMALL_CAPITALS.
Julian Smart [Wed, 12 Sep 2012 18:58:30 +0000 (18:58 +0000)] 
Added support for wxTEXT_ATTR_EFFECT_SMALL_CAPITALS.

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

12 years agoAdd generic wxFileSystem support to wxWebView using wxWebViewFSHandler.
Steve Lamerton [Tue, 11 Sep 2012 09:26:58 +0000 (09:26 +0000)] 
Add generic wxFileSystem support to wxWebView using wxWebViewFSHandler.

Closes #14623.

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

12 years agoMove wxWebViewIE missing definitions to webview_missing.h and add new definitions...
Steve Lamerton [Mon, 10 Sep 2012 20:02:58 +0000 (20:02 +0000)] 
Move wxWebViewIE missing definitions to webview_missing.h and add new definitions required for Find.

These are required as some compilers, notably MinGW and VC6, do not include up to date headers. Fixes #14621.

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

12 years agolayout adaption, current sizer code leads to too much white space
Stefan Csomor [Mon, 10 Sep 2012 12:49:16 +0000 (12:49 +0000)] 
layout adaption, current sizer code leads to too much white space

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

12 years agoFix handling of wxTextEntry hints in wxGTK.
Vadim Zeitlin [Sun, 9 Sep 2012 20:28:22 +0000 (20:28 +0000)] 
Fix handling of wxTextEntry hints in wxGTK.

Recent changes (r71308) optimizing away setting the text of the text entry if
it didn't really change completely broke the generic text hints implementation
as e.g. clearing the hint didn't change anything because the entry was already
logically empty anyhow.

Fix this by simply comparing the new value with the real value of the entry
returned by DoGetValue() and not GetValue() that takes hints into account.

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

12 years agoFix deprecating warning introduced in r72446.
Vadim Zeitlin [Sun, 9 Sep 2012 13:37:06 +0000 (13:37 +0000)] 
Fix deprecating warning introduced in r72446.

Use wxVScrolledWindow::ScrollToRow() instead of the old and ambiguous
ScrollToLine() which is only preserved for compatibility reasons.

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

12 years agoAllow using versions of libnotify < 0.7 in wxGTK.
Vadim Zeitlin [Sun, 9 Sep 2012 13:36:43 +0000 (13:36 +0000)] 
Allow using versions of libnotify < 0.7 in wxGTK.

libnotify 0.4.5 included in Ubuntu Lucid (10.04) can be used for implementing
wxNotificationMessage too, there is only a minor difference with 0.7 API. So
while we stick check for 0.7 initially, accept lower versions too if 0.7 is
not available.

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

12 years agoSet modifiers properly for the key events with AltGr in wxGTK.
Vadim Zeitlin [Sun, 9 Sep 2012 13:36:20 +0000 (13:36 +0000)] 
Set modifiers properly for the key events with AltGr in wxGTK.

Just as under Windows, represent AltGr as a combination of wxMOD_CONTROL and
wxMOD_ALT.

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

12 years agoRemove workarounds for wxTextCtrl::SetValue() events in pickers code.
Vadim Zeitlin [Sun, 9 Sep 2012 13:35:57 +0000 (13:35 +0000)] 
Remove workarounds for wxTextCtrl::SetValue() events in pickers code.

Simply use ChangeValue() instead of SetValue() to avoid the unwanted events
instead of using guard variables.

No real changes but the code is simpler and shorter now.

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

12 years agoAdd a test of wxFilePickerCtrl::GetValue() to the widgets sample.
Vadim Zeitlin [Sun, 9 Sep 2012 13:35:34 +0000 (13:35 +0000)] 
Add a test of wxFilePickerCtrl::GetValue() to the widgets sample.

Make the current value of the control visible in its page.

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

12 years agoAdd an informational message to the file picker page of widgets sample.
Vadim Zeitlin [Sun, 9 Sep 2012 13:35:12 +0000 (13:35 +0000)] 
Add an informational message to the file picker page of widgets sample.

No real changes, just indicate that clicking the "Set initial directory"
button was indeed taken into account.

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

12 years agoSimplify and correct setting of initial directory for wxFilePickerCtrl.
Vadim Zeitlin [Sun, 9 Sep 2012 13:34:49 +0000 (13:34 +0000)] 
Simplify and correct setting of initial directory for wxFilePickerCtrl.

Create wxFileDialog with correct initial directory and default file name from
the very beginning instead of updating it later. This makes the code simpler
and also actually makes it work as the initial directory setting was
overwritten by setting the default path later even if it didn't contain any
directory component.

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

12 years agoFix harmless virtual function hiding warning in wxMSW build.
Vadim Zeitlin [Sun, 9 Sep 2012 13:34:25 +0000 (13:34 +0000)] 
Fix harmless virtual function hiding warning in wxMSW build.

Override the other StrokeLines() overload in wxGDIPlusContext just to avoid
the warning about hiding a base class virtual method from MinGW compiler.

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

12 years agoFix wxKeyEvent::GetKeyCode() descripotion: it doesn't depend on locale.
Vadim Zeitlin [Sun, 9 Sep 2012 10:46:37 +0000 (10:46 +0000)] 
Fix wxKeyEvent::GetKeyCode() descripotion: it doesn't depend on locale.

GetKeyCode() will always return valid key codes for Latin-1 symbols but won't
do it for other non-ASCII Unicode characters even if they are representable in
the current locale.

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

12 years agoDo not use wxIsprint() in EVT_CHAR example in the documentation.
Vadim Zeitlin [Sun, 9 Sep 2012 10:46:14 +0000 (10:46 +0000)] 
Do not use wxIsprint() in EVT_CHAR example in the documentation.

This is incorrect as wxIsprint() is locale-dependent and only really works as
expected in UTF-8 locales (which are never used under Windows). Instead, just
test for control characters directly.

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

12 years agoEnsure the selected style is visible.
Julian Smart [Sun, 9 Sep 2012 09:38:15 +0000 (09:38 +0000)] 
Ensure the selected style is visible.

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

12 years agoItalian translations update from Roberto Boriotti.
Vadim Zeitlin [Sun, 9 Sep 2012 08:34:59 +0000 (08:34 +0000)] 
Italian translations update from Roberto Boriotti.

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

12 years agoDon't try to determine the clicked item ourselves in wxMSW wxListBox.
Vadim Zeitlin [Sun, 9 Sep 2012 00:44:26 +0000 (00:44 +0000)] 
Don't try to determine the clicked item ourselves in wxMSW wxListBox.

This doesn't work when the listbox is scrolled as the result of a click to
make the selected item fully visible and results in the index of the item
being off by 1 in the generated event which is a pretty serious problem.

Fix it by simply retrieving the item from the listbox itself, without doing
any hit testing. This seems to give the correct result in all cases and also
makes the code much simpler as we don't have to use 2 different ways of
finding the item depending on whether it was selected using the keyboard or
the mouse and makes it unnecessary to keep track of how the selection was done
completely, i.e. reverts r64498 which is not needed any more.

Closes #14635.

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

12 years agoDocument wxDropTarget::GetDataObject().
Vadim Zeitlin [Sun, 9 Sep 2012 00:44:03 +0000 (00:44 +0000)] 
Document wxDropTarget::GetDataObject().

Closes #14631.

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

12 years agoDon't use StringFormat::GenericTypographic() in MSW wxGraphicsContext.
Vadim Zeitlin [Sun, 9 Sep 2012 00:43:40 +0000 (00:43 +0000)] 
Don't use StringFormat::GenericTypographic() in MSW wxGraphicsContext.

Using this string format results in very condensed strings when using small
fonts. The results of GDI+ font rendering are still pretty bad even without it
but they are at least slightly better.

Closes #14537.

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

12 years agoUse a single global StringFormat in all wxMSW wxGraphicsContext code.
Vadim Zeitlin [Sun, 9 Sep 2012 00:43:18 +0000 (00:43 +0000)] 
Use a single global StringFormat in all wxMSW wxGraphicsContext code.

Instead of creating StringFormat in DrawText() and Get[Partial]TextExtent[s],
create it once and simply use it from both functions.

This might be slightly more efficient as we don't waste time recreating it but
the main advantage is that it ensures that these functions use the same string
format and no discrepancies between them are possible.

See #14537.

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

12 years agoOutput the values of all USE_XXX options to build.cfg file in MSW builds.
Vadim Zeitlin [Sun, 9 Sep 2012 00:42:55 +0000 (00:42 +0000)] 
Output the values of all USE_XXX options to build.cfg file in MSW builds.

USE_RTTI, USE_AUI, USE_PROPGRID, USE_RIBBON, USE_RICHTEXT, USE_STC and USE_XRC
options were not output to the build configuration file, unlike the rest of
them.

Do output those ones as well now for consistency.

Also sort the options corresponding to different wx libraries alphabetically.

Closes #14608.

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

12 years agoDocument wxWindow InheritsBackgroundColour() and UseBgCol() methods.
Vadim Zeitlin [Sun, 9 Sep 2012 00:42:31 +0000 (00:42 +0000)] 
Document wxWindow InheritsBackgroundColour() and UseBgCol() methods.

These functions were present in the interface header but didn't have their own
documentation and somehow inherited the documentation of the first function in
the same section which didn't make any sense for them. Do document them now.

Closes #14607.

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

12 years agoLink MSW-specific event loop files in wxUniv/MSW.
Vadim Zeitlin [Sun, 9 Sep 2012 00:42:03 +0000 (00:42 +0000)] 
Link MSW-specific event loop files in wxUniv/MSW.

This fixes wxUniv build after the changes of r72008.

Closes #14606.

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

12 years agoUndid accidental modification of wxTaskBarIcon in the last commit.
Vadim Zeitlin [Sat, 8 Sep 2012 21:51:02 +0000 (21:51 +0000)] 
Undid accidental modification of wxTaskBarIcon in the last commit.

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

12 years agoFix narrow/wide string concatenation in recently added wxSizerFlags assert.
Vadim Zeitlin [Sat, 8 Sep 2012 21:48:57 +0000 (21:48 +0000)] 
Fix narrow/wide string concatenation in recently added wxSizerFlags assert.

This fixes MSVC build after r72434.

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

12 years agoFix some typos in the comments in wxOSX code.
Vadim Zeitlin [Sat, 8 Sep 2012 16:03:34 +0000 (16:03 +0000)] 
Fix some typos in the comments in wxOSX code.

Closes #14636.

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

12 years agoCheck validity of wxSizerFlags::Border() direction parameter.
Vadim Zeitlin [Sat, 8 Sep 2012 15:46:50 +0000 (15:46 +0000)] 
Check validity of wxSizerFlags::Border() direction parameter.

Catch the misguided attempts to pass the size of the border as the first
parameter of the Border(direction, size) overload.

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

12 years agoEnable GL_CULL_FACE in OpenGL samples.
Vadim Zeitlin [Sat, 8 Sep 2012 15:46:27 +0000 (15:46 +0000)] 
Enable GL_CULL_FACE in OpenGL samples.

Without it, the hidden faces are shown resulting in wrong display of both the
cube and the penguin, at least with Mesa (but it also seems to be the correct
thing to do according to OpenGL documentation).

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

12 years agoFix VC6 compilation after r72430.
Václav Slavík [Sat, 8 Sep 2012 10:53:40 +0000 (10:53 +0000)] 
Fix VC6 compilation after r72430.

VC6 doesn't handle for loop scope correctly.

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

12 years agoAdd MUI_LANGUAGE_NAME to wx/msw/missing.h.
Václav Slavík [Sat, 8 Sep 2012 10:53:16 +0000 (10:53 +0000)] 
Add MUI_LANGUAGE_NAME to wx/msw/missing.h.

Fixes VC6 compilation after r72430.

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