]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
13 years agoFix missing or broken interface items for Phoenix
Robin Dunn [Sun, 25 Sep 2011 04:30:49 +0000 (04:30 +0000)] 
Fix missing or broken interface items for Phoenix

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

13 years agoAdd support for handling new multi-arch under Debian.
Vadim Zeitlin [Fri, 23 Sep 2011 22:33:17 +0000 (22:33 +0000)] 
Add support for handling new multi-arch under Debian.

The libraries are now in /usr/lib/arch-linux-gnu and not /usr/lib{32,64} so
check for them there too.

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

13 years agoFix inconsistent DLL export declaration for wxBannerWindowNameStr too.
Vadim Zeitlin [Fri, 23 Sep 2011 12:15:58 +0000 (12:15 +0000)] 
Fix inconsistent DLL export declaration for wxBannerWindowNameStr too.

This variable is defined in "adv" library, not "core".

This is similar to the fix of r69184.

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

13 years agoFix inconsistent DLL export declaration for wxTreeListCtrlNameStr.
Vadim Zeitlin [Thu, 22 Sep 2011 12:53:47 +0000 (12:53 +0000)] 
Fix inconsistent DLL export declaration for wxTreeListCtrlNameStr.

This variable is defined in "adv" library, not "core".

See #13502.

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

13 years agoImprove appearance of wxTreeListCtrl during live resizing.
Vadim Zeitlin [Thu, 22 Sep 2011 10:36:01 +0000 (10:36 +0000)] 
Improve appearance of wxTreeListCtrl during live resizing.

When using the generic wxDataViewCtrl version, forcefully refresh it after
changing its size to avoid artefacts during resizing of wxTreeListCtrl.

Closes #13502.

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

13 years agoAlways give all the remaining space to the first wxTreeListCtrl column.
Vadim Zeitlin [Thu, 22 Sep 2011 10:35:58 +0000 (10:35 +0000)] 
Always give all the remaining space to the first wxTreeListCtrl column.

Under GTK the columns of wxDataViewCtrl (and hence wxTreeListCtrl) are always
resized to cover the entire control width. For consistency, also do it under
the other platforms and give the remaining space to the first column and not
to the last one as GTK does by default, as the first column is more important.

Do this even if this results in reducing the size of the column: presumably,
if the entire control itself can be resized, the user wouldn't bother resizing
the columns and, on the contrary, if the user did resize the columns, the
entire control size is unlikely to change, so in practice we don't risk
overriding the user preferences and reducing as well as increasing the first
column width works much better by default as it doesn't leave the other
columns invisible after making the control wider and than reverting it back to
its initial, more narrow, state again.

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

13 years agoFix scrolling in small wxVListBox with tall items.
Vadim Zeitlin [Wed, 21 Sep 2011 15:08:10 +0000 (15:08 +0000)] 
Fix scrolling in small wxVListBox with tall items.

Scrolling in a small wxVListBox with tall items (i.e. taller than the height
of wxVListBox itself) behaved wrongly: wrong item was being scrolled into view
and Page Up/Down didn't scroll as much as they should.

Fix both of these problems by checking for these corner cases explicitly.

Closes #13454.

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

13 years agoReplace erroneous comma with a semicolon in keyboard sample.
Vadim Zeitlin [Wed, 21 Sep 2011 15:08:06 +0000 (15:08 +0000)] 
Replace erroneous comma with a semicolon in keyboard sample.

Fix typo in the sample, comma was used instead of a semicolon. The code still
worked correctly but make it look correctly too now.

Closes #13453.

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

13 years agoChange wxSound ctor from in-memory data to use size_t/void *.
Vadim Zeitlin [Wed, 21 Sep 2011 15:08:02 +0000 (15:08 +0000)] 
Change wxSound ctor from in-memory data to use size_t/void *.

This constructor previously used int and, especially annoyingly, wxByte* for
the data. Use standard void* for untyped binary data instead.

Also document this ctor as it seems to be implemented in all ports.

Closes #13451.

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

13 years agoSend EVT_DATAVIEW_ITEM_CONTEXT_MENU events even when not clicking on an item.
Vadim Zeitlin [Wed, 21 Sep 2011 15:07:56 +0000 (15:07 +0000)] 
Send EVT_DATAVIEW_ITEM_CONTEXT_MENU events even when not clicking on an item.

Always send this event, even if the user right clicked outside of the client
area. This is useful for showing item-independent commands in the context
menu.

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

13 years agoImplement sorting in wxTreeListCtrl.
Vadim Zeitlin [Wed, 21 Sep 2011 15:07:53 +0000 (15:07 +0000)] 
Implement sorting in wxTreeListCtrl.

Allow the user to sort the control contents by clicking on the columns with
wxCOL_SORTABLE flag and also provide SetSortColumn() method to sort the
control programmatically.

Also add wxTreeListItemComparator class and SetItemComparator() method to
allow customizing the way the items are compared.

Update the sample to show how to define a custom comparator.

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

13 years agoReset previous sort column in generic wxDataViewColumn::SetSortOrder().
Vadim Zeitlin [Wed, 21 Sep 2011 15:07:49 +0000 (15:07 +0000)] 
Reset previous sort column in generic wxDataViewColumn::SetSortOrder().

The sort indicator on the column previously used for sorting was only reset
when the user clicked on the column header (by wxDataViewHeaderWindow code
that explicitly called wxDataViewCtrl::SetSortingColumnIndex()) but not when
wxDataViewCtrl::SetSortOrder() was called directly.

Fix this and take care of updating everything in SetSortOrder() itself. This
makes the code simpler and also means that calling SetSortOrder() from the
program now works as expected (it resulted in having sort indicators in two
columns at once before).

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

13 years agoRemove wxHeaderColumn::SetAsSortKey() and only use SetSortOrder().
Vadim Zeitlin [Wed, 21 Sep 2011 15:07:46 +0000 (15:07 +0000)] 
Remove wxHeaderColumn::SetAsSortKey() and only use SetSortOrder().

The two member functions, SetAsSortKey() and SetSortOrder(), were doing almost
the same thing but differently and the former was only used in the generic
wxDataViewCtrl implementation and not implemented in the native GTK/OS X one.

Remove SetAsSortKey() entirely and only keep UnsetAsSortKey() which is still
needed by generic/MSW wxDataViewCtrl. But only SetSortOrder() should now be
called to indicate that the column is used for sorting.

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

13 years agoAdd wxTreeListCtrl::GetView() and GetDataView().
Vadim Zeitlin [Wed, 21 Sep 2011 15:07:41 +0000 (15:07 +0000)] 
Add wxTreeListCtrl::GetView() and GetDataView().

It can be useful to have access to the window used to actually show the items
by wxTreeListCtrl, provide two accessors for m_view: a wxDataViewCtrl-specific
one and a generic one returning just a wxWindow that can be used to keep the
code isolated from wxDataViewCtrl.

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

13 years agoDon't limit window size to (0, 0) in wxSizer if getting display size failed.
Vadim Zeitlin [Wed, 21 Sep 2011 15:07:37 +0000 (15:07 +0000)] 
Don't limit window size to (0, 0) in wxSizer if getting display size failed.

It's possible that wxDisplay::GetClientArea() returns (0, 0) size indicating
that it failed. Don't set the maximal window size to (0, 0) in this case as
this prevents the user from seeing the window at all and just don't do
anything instead.

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

13 years agoRefresh wxDisplay when a monitor is added to or removed from the system.
Vadim Zeitlin [Wed, 21 Sep 2011 15:07:35 +0000 (15:07 +0000)] 
Refresh wxDisplay when a monitor is added to or removed from the system.

If a monitor was attached or detached while a wx program was running, the
monitor handles stored in wxDisplayFactoryMSW became invalid and all display
operations (e.g. getting display size) failed from this moment onwards
requiring a program restart to work again.

Fix this by updating the monitor handles when we get WM_SETTINGCHANGE as it is
sent when a monitor is added or removed (while it's also sent in quite a few
other cases re-enumerating the monitors shouldn't take very long so just do it
always).

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

13 years agoNo changes, just extract wxCreateHiddenWindow() declaration in a header.
Vadim Zeitlin [Wed, 21 Sep 2011 15:07:32 +0000 (15:07 +0000)] 
No changes, just extract wxCreateHiddenWindow() declaration in a header.

Add wx/msw/private/hiddenwin.h with wxCreateHiddenWindow() declaration instead
of declaring it manually in all the files using it.

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

13 years agoRemove pointless case insensitivity
Julian Smart [Tue, 20 Sep 2011 20:03:42 +0000 (20:03 +0000)] 
Remove pointless case insensitivity

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

13 years agoAdd GetExpanderColumnOrFirstOne() to avoid code duplication in generic wxDVC.
Vadim Zeitlin [Tue, 20 Sep 2011 18:37:11 +0000 (18:37 +0000)] 
Add GetExpanderColumnOrFirstOne() to avoid code duplication in generic wxDVC.

There were two strictly identical code snippets setting the expander column to
be the first one if it hadn't been set before, replace both of them with a
call to GetExpanderColumnOrFirstOne() function.

Also use this function instead of just GetExpanderColumn() (which might return
NULL) in a couple of places.

Notice that there are still a lot of places in the code where the column 0 is
hard coded as being the expander column, this would need to be fixed to really
support non-first expander column.

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

13 years agoReset the expander column when clearing columns in generic wxDVC.
Vadim Zeitlin [Tue, 20 Sep 2011 18:37:08 +0000 (18:37 +0000)] 
Reset the expander column when clearing columns in generic wxDVC.

The expander column becomes invalid when all columns are cleared, don't keep
a dangling pointer.

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

13 years agoMove ravnsgaards build to brandt32 while its down.
Michael Wetherell [Tue, 20 Sep 2011 17:25:55 +0000 (17:25 +0000)] 
Move ravnsgaards build to brandt32 while its down.

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

13 years agoMinor fixes to code examples in wxPropertyGrid documentation.
Vadim Zeitlin [Sun, 18 Sep 2011 20:28:37 +0000 (20:28 +0000)] 
Minor fixes to code examples in wxPropertyGrid documentation.

Fix typo in wxPGProperty name and add missing parameter of GetVIterator()
call.

Closes #13486.

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

13 years agoFix test for wxUSE_TREELISTCTRL in configure.
Vadim Zeitlin [Sun, 18 Sep 2011 20:26:38 +0000 (20:26 +0000)] 
Fix test for wxUSE_TREELISTCTRL in configure.

wxUSE_TREECTRL was wrongly used instead.

Closes #13470.

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

13 years agoFIx broken or missing interface items for Phoenix
Robin Dunn [Sun, 18 Sep 2011 04:38:01 +0000 (04:38 +0000)] 
FIx broken or missing interface items for Phoenix

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

13 years agoFix format specifiers used for "unsigned long" in wxPG code.
Vadim Zeitlin [Sat, 17 Sep 2011 11:06:15 +0000 (11:06 +0000)] 
Fix format specifiers used for "unsigned long" in wxPG code.

"unsigned long" quantities must be formatted using "%l[xou]" and not just
"%[xou]" as the latter doesn't work correctly on 64 bit platforms.

Closes #13447.

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

13 years agoChange wxDIALOG_NO_PARENT to avoid clash with wxICON_EXCLAMATION.
Vadim Zeitlin [Sat, 17 Sep 2011 11:06:11 +0000 (11:06 +0000)] 
Change wxDIALOG_NO_PARENT to avoid clash with wxICON_EXCLAMATION.

Use 0x20 (wxAPPLY) instead of 0x100 (wxICON_EXCLAMATION) for
wxDIALOG_NO_PARENT as otherwise using wxICON_EXCLAMATION with wxMessageBox in
wxGTK (and possibly other ports, although not wxMSW which doesn't honour
wxDIALOG_NO_PARENT for message boxes at all) resulted in not using the
specified parent for the message box and, as a side effect, not centering it
on its parent neither.

Closes #13464.

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

13 years agoAdd wxUSE_TREELISTCTRL checks to treelist.cpp itself.
Vadim Zeitlin [Sat, 17 Sep 2011 11:06:05 +0000 (11:06 +0000)] 
Add wxUSE_TREELISTCTRL checks to treelist.cpp itself.

The contents of this file was still compiled even when wxUSE_TREELISTCTRL was
turned off. Fix this by adding the missing "#if wxUSE_TREELISTCTRL" check
around it.

Closes #13470.

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

13 years agoFix the library of wxGenericDirCtrl in the documentation.
Vadim Zeitlin [Sat, 17 Sep 2011 11:06:01 +0000 (11:06 +0000)] 
Fix the library of wxGenericDirCtrl in the documentation.

Closes #13482.

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

13 years agoOnly define wxUSE_WEBVIEW if wxWebView is really available.
Vadim Zeitlin [Fri, 16 Sep 2011 22:44:17 +0000 (22:44 +0000)] 
Only define wxUSE_WEBVIEW if wxWebView is really available.

Don't define wxUSE_WEBVIEW in configure if WebKit is not available under Unix
(we should also check for wxUSE_WEBVIEW_IE under Windows later) and add the
check that either wxUSE_WEBVIEW_WEBKIT or wxUSE_WEBVIEW_IE is defined if
wxUSE_WEBVIEW is to wx/chkconf.h.

This makes it possible to just check for wxUSE_WEBVIEW instead of checking for
wxUSE_WEBVIEW && (wxUSE_WEBVIEW_IE || wxUSE_WEBVIEW_WEBKIT) as the code did
previously which was ugly and error-prone.

Also, define wxUSE_WEBVIEW_IE in configure under MSW. Currently this supposes
that the required IE headers/libraries are available which is probably wrong,
we should add checks for them later.

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

13 years agoCheck for wxUSE_WEBVIEW being defined.
Vadim Zeitlin [Fri, 16 Sep 2011 22:44:11 +0000 (22:44 +0000)] 
Check for wxUSE_WEBVIEW being defined.

All wxUSE_XXX options must be always defined as we test for them with #if and
not #ifdef, so check for this one too for consistency.

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

13 years agoFix wxFont::GetFaceName() for not realized yet fonts in wxMSW.
Vadim Zeitlin [Fri, 16 Sep 2011 22:44:04 +0000 (22:44 +0000)] 
Fix wxFont::GetFaceName() for not realized yet fonts in wxMSW.

GetFaceName() could be called for a font that hadn't been really used yet and
hence its wxFontRefData::m_hFont could be 0 and couldn't be used in
GetMSWFaceName().

Fix this by using GetHFONT() accessor instead of m_hFont directly to create
the font if necessary.

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

13 years agofixes for missing or broken interface items for Phoenix
Robin Dunn [Fri, 16 Sep 2011 17:03:01 +0000 (17:03 +0000)] 
fixes for missing or broken interface items for Phoenix

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

13 years agoFix int field of wxCommandEvents generated by menu items in wxMSW.
Vadim Zeitlin [Fri, 16 Sep 2011 13:23:14 +0000 (13:23 +0000)] 
Fix int field of wxCommandEvents generated by menu items in wxMSW.

Set the int field of wxCommandEvent generated by clicking on the menu items
correctly for not checkable items: it is supposed to be -1 and not 0 (which is
the value for checkable but currently unchecked items). This was already the
case for wxGTK and wxOSX and implied by the comments in the code.

Make wxMSW behave like this too and clearly document this behaviour.

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

13 years agoFix int field of wxCommandEvent generated by popup menu items in wxMSW.
Vadim Zeitlin [Fri, 16 Sep 2011 13:23:10 +0000 (13:23 +0000)] 
Fix int field of wxCommandEvent generated by popup menu items in wxMSW.

The intention of the code generating the event for popup menu items was to
pass false (0) or true (1) in the int field of wxCommandEvent to indicate
whether the item was checked or not but, because wxMenu::SendEvent() takes int
as second argument and not book, we passed either 0 or MF_CHECKED (== 8).

Fix this by correctly passing a boolean for checkable items.

See #11644.

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

13 years agoFix checked state for the popup menu items in the events generated by them.
Vadim Zeitlin [Fri, 16 Sep 2011 13:23:05 +0000 (13:23 +0000)] 
Fix checked state for the popup menu items in the events generated by them.

We incorrectly passed the sign-extended int id to ::GetMenuState() function
that expects an unsigned WORD id, so it never found the item if the WORD id
had the high bit set. Fix this by correctly passing the unsigned id to it.

Closes #11644.

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

13 years agoreverting change, for precompiled headers, unfortunately this means that WXROOT must...
Stefan Csomor [Thu, 15 Sep 2011 19:05:06 +0000 (19:05 +0000)] 
reverting change, for precompiled headers, unfortunately this means that WXROOT must not contain spaces unless properly escaped

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

13 years agoRepair compile sequenze for wxGTK on OpenVMS
Jouk Jansen [Thu, 15 Sep 2011 14:25:50 +0000 (14:25 +0000)] 
Repair compile sequenze for wxGTK on OpenVMS

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

13 years agoUse integral value for OLECMDID_OPTICAL_ZOOM as we cannot tell if an enum value is...
Steve Lamerton [Wed, 14 Sep 2011 16:45:50 +0000 (16:45 +0000)] 
Use integral value for OLECMDID_OPTICAL_ZOOM as we cannot tell if an enum value is already defined or not.

Fixes #13475

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

13 years agoUpdate configure to only define wxUSE_WEBVIEW_WEBKIT if all the required components...
Steve Lamerton [Wed, 14 Sep 2011 14:03:34 +0000 (14:03 +0000)] 
Update configure to only define wxUSE_WEBVIEW_WEBKIT if all the required components are available.

Fixes #13474

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

13 years agoCause a compile time error in the wxWebView sample if no backend exists.
Steve Lamerton [Wed, 14 Sep 2011 12:39:30 +0000 (12:39 +0000)] 
Cause a compile time error in the wxWebView sample if no backend exists.

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

13 years agoMake wxBookCtrlBase::GetSelection virtual, as per the documentation.
Steve Lamerton [Wed, 14 Sep 2011 08:24:06 +0000 (08:24 +0000)] 
Make wxBookCtrlBase::GetSelection virtual, as per the documentation.

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

13 years agoOnly build the wxWebView tests if there is an available backend.
Steve Lamerton [Wed, 14 Sep 2011 07:39:28 +0000 (07:39 +0000)] 
Only build the wxWebView tests if there is an available backend.

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

13 years agoCorrectly disable webkit backend if the appropriate headers cannot be found.
Steve Lamerton [Tue, 13 Sep 2011 21:26:41 +0000 (21:26 +0000)] 
Correctly disable webkit backend if the appropriate headers cannot be found.

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

13 years agoCorrect a typo in the wxWebView tests.
Steve Lamerton [Tue, 13 Sep 2011 19:39:38 +0000 (19:39 +0000)] 
Correct a typo in the wxWebView tests.

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

13 years agoDisable webkit backend if the appropriate headers cannot be found.
Steve Lamerton [Tue, 13 Sep 2011 12:06:06 +0000 (12:06 +0000)] 
Disable webkit backend if the appropriate headers cannot be found.

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

13 years agoUpdate wxWebView guards to stop backend compilation when wxUSE_WEBVIEW is 0.
Steve Lamerton [Mon, 12 Sep 2011 18:35:39 +0000 (18:35 +0000)] 
Update wxWebView guards to stop backend compilation when wxUSE_WEBVIEW is 0.

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

13 years agoEnsure that we have an available backend for wxWebView compilation.
Steve Lamerton [Mon, 12 Sep 2011 13:42:30 +0000 (13:42 +0000)] 
Ensure that we have an available backend for wxWebView compilation.

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

13 years agoUpdate setup for OpenVMS
Jouk Jansen [Mon, 12 Sep 2011 11:13:05 +0000 (11:13 +0000)] 
Update setup for OpenVMS

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

13 years agoadd compile support for thread sample on OpenVMS
Jouk Jansen [Mon, 12 Sep 2011 10:57:44 +0000 (10:57 +0000)] 
add compile support for thread sample on OpenVMS

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

13 years agoFix appending of non-leaf node to wxGTK's wxDataViewCtrl.
Václav Slavík [Mon, 12 Sep 2011 09:23:59 +0000 (09:23 +0000)] 
Fix appending of non-leaf node to wxGTK's wxDataViewCtrl.

This was accidentally broken in r68965: appending a branch node after
all others node resulted in corruption of m_nodes, as the node was never
added to the list.

Fixes #13467.

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

13 years agosupporting spaces
Stefan Csomor [Mon, 12 Sep 2011 07:12:27 +0000 (07:12 +0000)] 
supporting spaces

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

13 years agoFix best size computation for wxTextCtrl without borders in wxMSW.
Vadim Zeitlin [Sun, 11 Sep 2011 21:55:47 +0000 (21:55 +0000)] 
Fix best size computation for wxTextCtrl without borders in wxMSW.

wxTextCtrl with wxBORDER_NONE (and possibly wxTE_READONLY) style is often used
instead of a wxStaticText to allow copying the text, so make the size of such
control the same as size of the label. This ensures that it aligns correctly
with the label vertically while before the baselines were not aligned because
a border-less text control was rendered by MSW as a label but had a too big
size.

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

13 years agoEnsure that we have an available backend for wxWebView compilation.
Steve Lamerton [Sun, 11 Sep 2011 13:26:24 +0000 (13:26 +0000)] 
Ensure that we have an available backend for wxWebView compilation.

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

13 years agoStill resize wxSplitterWindow children even when sash position doesn't change.
Vadim Zeitlin [Sun, 11 Sep 2011 11:27:17 +0000 (11:27 +0000)] 
Still resize wxSplitterWindow children even when sash position doesn't change.

Since the changes if r68876, the splitter windows were not resized correctly
if the splitter size in the direction orthogonal to its own didn't change.
This was an unintended side effect of the changes in that commit as it only
wanted to avoid calling SetSashPositionAndNotify() in this case, but
SizeWindows() should still be called.

Ensure that we do call it always from wxSplitterWindow::OnSize() to fix this.

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

13 years agoRegenerate configure after webview branch merge.
Vadim Zeitlin [Sun, 11 Sep 2011 10:55:03 +0000 (10:55 +0000)] 
Regenerate configure after webview branch merge.

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

13 years agoUpdate setup files
Steve Lamerton [Sun, 11 Sep 2011 10:15:28 +0000 (10:15 +0000)] 
Update setup files

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

13 years agoRebake trunk after wxWebView merge and add missing project files for the wxWebView...
Steve Lamerton [Sun, 11 Sep 2011 10:12:19 +0000 (10:12 +0000)] 
Rebake trunk after wxWebView merge and add missing project files for the wxWebView library.

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

13 years agoFix missing and broken interface items for Phoenix
Robin Dunn [Sun, 11 Sep 2011 00:35:32 +0000 (00:35 +0000)] 
Fix missing and broken interface items for Phoenix

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

13 years agoMerge the new wxWebView classes from the SOC2011_WEBVIEW branch.
Steve Lamerton [Sat, 10 Sep 2011 18:09:12 +0000 (18:09 +0000)] 
Merge the new wxWebView classes from the SOC2011_WEBVIEW branch.

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

13 years agoupdate WarpPointer for GTK3
Paul Cornett [Sat, 10 Sep 2011 16:02:59 +0000 (16:02 +0000)] 
update WarpPointer for GTK3

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

13 years agoMerge in from trunk r68684 - r69046
Steve Lamerton [Sat, 10 Sep 2011 15:09:22 +0000 (15:09 +0000)] 
Merge in from trunk r68684 - r69046

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

13 years agoEnable the HWND of the task dialog to be fetched with GetHandle if it is being used.
Robin Dunn [Sat, 10 Sep 2011 03:26:37 +0000 (03:26 +0000)] 
Enable the HWND of the task dialog to be fetched with GetHandle if it is being used.

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

13 years agoAllow setting colours and font of wxTreeListCtrl.
Vadim Zeitlin [Thu, 8 Sep 2011 21:15:24 +0000 (21:15 +0000)] 
Allow setting colours and font of wxTreeListCtrl.

Use wxCompositeWindow<> to propagate changes of colours and font to
wxDataViewCtrl that wxTreeListCtrl uses internally.

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

13 years agonon-pch build fix
Paul Cornett [Wed, 7 Sep 2011 16:57:42 +0000 (16:57 +0000)] 
non-pch build fix

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

13 years agoremove unnecessary GTK declarations from defs.h, move things only used once to the...
Paul Cornett [Wed, 7 Sep 2011 16:56:50 +0000 (16:56 +0000)] 
remove unnecessary GTK declarations from defs.h, move things only used once to the place that needs them

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

13 years agomove addition of -lX11 to better place
Paul Cornett [Tue, 6 Sep 2011 16:35:53 +0000 (16:35 +0000)] 
move addition of -lX11 to better place

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

13 years agodon't disable cast checks in debug builds
Paul Cornett [Tue, 6 Sep 2011 16:24:49 +0000 (16:24 +0000)] 
don't disable cast checks in debug builds

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

13 years agoremove unused __WXGTK12__ symbol
Paul Cornett [Tue, 6 Sep 2011 16:09:51 +0000 (16:09 +0000)] 
remove unused __WXGTK12__ symbol

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

13 years agoremove (very) obsolete GTK version check
Paul Cornett [Tue, 6 Sep 2011 15:54:12 +0000 (15:54 +0000)] 
remove (very) obsolete GTK version check

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

13 years agofix for non-pch builds
Robin Dunn [Tue, 6 Sep 2011 04:17:44 +0000 (04:17 +0000)] 
fix for non-pch builds

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

13 years agoAvoid infinite recursion on Mac in comboctrl, and fix an uninitialized pointer in...
Robin Dunn [Mon, 5 Sep 2011 20:08:04 +0000 (20:08 +0000)] 
Avoid infinite recursion on Mac in comboctrl, and fix an uninitialized pointer in propgrid

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

13 years agoFix crash in wxDataViewCtrl::UpdateColWidths().
Václav Slavík [Mon, 5 Sep 2011 15:40:56 +0000 (15:40 +0000)] 
Fix crash in wxDataViewCtrl::UpdateColWidths().

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

13 years agowxDataViewCtrl: enable F2 editing with multiple selection too.
Václav Slavík [Mon, 5 Sep 2011 14:25:31 +0000 (14:25 +0000)] 
wxDataViewCtrl: enable F2 editing with multiple selection too.

This matches the native (and thus expected) behavior of Windows
Explorer: edit the first item in selection. It's also better than
ignoring user's key presses.

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

13 years agoAdd persistence support for wxSplitterWindow.
Vadim Zeitlin [Sun, 4 Sep 2011 23:01:45 +0000 (23:01 +0000)] 
Add persistence support for wxSplitterWindow.

New wxPersistentSplitter class allows to easily save and restore the splitter
position in config.

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

13 years agosetting the image position after the label is set, otherwise image_only will have...
Stefan Csomor [Sat, 3 Sep 2011 16:19:28 +0000 (16:19 +0000)] 
setting the image position after the label is set, otherwise image_only will have the potential label over the image

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

13 years agoUse ProcessWindowEvent() in generic wxDataViewCtrl code.
Václav Slavík [Sat, 3 Sep 2011 13:14:31 +0000 (13:14 +0000)] 
Use ProcessWindowEvent() in generic wxDataViewCtrl code.

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

13 years agoExtracted wxDataViewMainWindow left/right keys handling into separate methods.
Václav Slavík [Sat, 3 Sep 2011 13:14:28 +0000 (13:14 +0000)] 
Extracted wxDataViewMainWindow left/right keys handling into separate methods.

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

13 years agoRename wxDataViewMainWindow::OnArrowChar to OnVerticalNavigation.
Václav Slavík [Sat, 3 Sep 2011 13:14:25 +0000 (13:14 +0000)] 
Rename wxDataViewMainWindow::OnArrowChar to OnVerticalNavigation.

The method handled much more than just arrow characters and it didn't
handle all arrow characters.

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

13 years agoSlightly more efficient wxDataViewCtrl::StartEditor().
Václav Slavík [Sat, 3 Sep 2011 13:14:23 +0000 (13:14 +0000)] 
Slightly more efficient wxDataViewCtrl::StartEditor().

Don't compute item rect until we know for sure that the item actually is
editable.

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

13 years agoFix generic wxDataViewCtrl Enter handling to conform to Windows UI.
Václav Slavík [Sat, 3 Sep 2011 13:14:20 +0000 (13:14 +0000)] 
Fix generic wxDataViewCtrl Enter handling to conform to Windows UI.

Spacebar is used to activate columns (e.g. toggle a checkbox).  Enter
activates the item, i.e. sends wxEVT_COMMAND_ITEM_ACTIVATED. If that
event isn't handled, Enter acts the same as Space.

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

13 years agoFix some broken or add some missing interface declarations for Phoenix
Robin Dunn [Sat, 3 Sep 2011 01:39:02 +0000 (01:39 +0000)] 
Fix some broken or add some missing interface declarations for Phoenix

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

13 years agoDon't warn about wxMetaFile in configure by default.
Vadim Zeitlin [Thu, 1 Sep 2011 18:43:07 +0000 (18:43 +0000)] 
Don't warn about wxMetaFile in configure by default.

Only warn if an explicit --enable-metafile was given, otherwise just turn it
on only for the platforms that do support it, similarly to what was done for
--enable-hotkey in the previous commit.

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

13 years agoAdd wxUSE_HOTKEY support to configure.
Vadim Zeitlin [Thu, 1 Sep 2011 18:43:03 +0000 (18:43 +0000)] 
Add wxUSE_HOTKEY support to configure.

Add --enable-hotkey switch to allow enabling hot keys support and enable it by
default under MSW and OS X that do support them but disable it elsewhere to
avoid unnecessary warnings about them being unsupported.

See #12354.

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

13 years agofixes #13443, thanks :-)
Stefan Csomor [Thu, 1 Sep 2011 16:20:24 +0000 (16:20 +0000)] 
fixes #13443, thanks :-)

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

13 years agoFix deleting and clearing wxTreeListCtrl columns.
Vadim Zeitlin [Wed, 31 Aug 2011 17:22:11 +0000 (17:22 +0000)] 
Fix deleting and clearing wxTreeListCtrl columns.

The model columns were not updated before, resulting in a mismatch between
view and model columns if ClearColumns() followed by AppendColumn() was
called.

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

13 years agoAdd items to correct position in wxDataViewCtrl:ItemAdded.
Václav Slavík [Wed, 31 Aug 2011 09:36:27 +0000 (09:36 +0000)] 
Add items to correct position in wxDataViewCtrl:ItemAdded.

In both the generic and GTK+ versions, ItemAdded() always appended the
new item, regardless of its position among its siblings  in the model.

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

13 years agoGeneric wxDataViewCtrl: resize autosized columns at idle time.
Václav Slavík [Wed, 31 Aug 2011 09:04:41 +0000 (09:04 +0000)] 
Generic wxDataViewCtrl: resize autosized columns at idle time.

This is much more efficient than doing it immediately when adding large
number of items into a control with lots of them.

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

13 years agoFixed dlmsw.cpp compilation with older SDKs and at run-time for systems prior to...
Dimitri Schoolwerth [Tue, 30 Aug 2011 15:20:05 +0000 (15:20 +0000)] 
Fixed dlmsw.cpp compilation with older SDKs and at run-time for systems prior to XP SP1.

Kernel32's SetDllDirectory is only available since XP SP1 and as such also not available in the SDK that comes by default with for example VS6. Attempt to retrieve the function from the DLL at run-time instead. Regression since r68935.

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

13 years agoBetter support for flat lists in wxTreeListCtrl.
Vadim Zeitlin [Tue, 30 Aug 2011 13:40:44 +0000 (13:40 +0000)] 
Better support for flat lists in wxTreeListCtrl.

Override wxDataViewModel::IsListModel() to return true if wxTreeListCtrl
doesn't have any depth. This results in better display when using the generic
implementation of wxDataViewCtrl as no space is reserved for the (unnecessary)
expanders in this case.

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

13 years agoFix computation of the item offset in generic wxDataViewCtrl code.
Vadim Zeitlin [Tue, 30 Aug 2011 13:40:40 +0000 (13:40 +0000)] 
Fix computation of the item offset in generic wxDataViewCtrl code.

We need to account for the expander even for the items that don't have
children when computing their offset as their parent still does have it,
contributing to the total offset.

This corrects the fixes of r68836 to also work for the leaf items.

Also rename expanderOffset variable to more clear itemOffset.

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

13 years agoUpdate makefiles for OpenVMS
Jouk Jansen [Tue, 30 Aug 2011 09:51:21 +0000 (09:51 +0000)] 
Update makefiles for OpenVMS

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

13 years agofixes #13438 (building OSX min >= 10.6), thanks :-)
Stefan Csomor [Tue, 30 Aug 2011 09:02:11 +0000 (09:02 +0000)] 
fixes #13438 (building OSX min >= 10.6), thanks :-)

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

13 years agoadding command - comma as shortcut of stockitem wxID_PRERENCES on OSX - and make...
Stefan Csomor [Tue, 30 Aug 2011 07:01:25 +0000 (07:01 +0000)] 
adding command - comma as shortcut of stockitem wxID_PRERENCES on OSX - and make sure it's working by adapting ToString()

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

13 years agoRegenerated Xcode projects.
Dimitri Schoolwerth [Mon, 29 Aug 2011 19:09:16 +0000 (19:09 +0000)] 
Regenerated Xcode projects.

Updated the Xcode projects to include latest source additions and newer settings from template *_in.xcodeproj project files.

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

13 years agoSend wxEVT_COMMAND_DATAVIEW_ITEM_ACTIVATED if WXOnActivate() returned false too.
Václav Slavík [Mon, 29 Aug 2011 17:25:38 +0000 (17:25 +0000)] 
Send wxEVT_COMMAND_DATAVIEW_ITEM_ACTIVATED if WXOnActivate() returned false too.

This is consistent with wxGTK implementation and generally makes sense:
when the renderer cannot handle activation, whole-item activation should
be tried next.

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

13 years agoMake generic wxDataViewToggleRenderer react to activation.
Václav Slavík [Mon, 29 Aug 2011 17:25:33 +0000 (17:25 +0000)] 
Make generic wxDataViewToggleRenderer react to activation.

Previously it only responded to single-clicks, which was to avoid the
need to double-click checkboxes. Fixed to react to activation via
double-click or keyboard too.

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

13 years agoActivate cells from keyboard too in generic wxDataViewCtrl.
Václav Slavík [Mon, 29 Aug 2011 17:25:25 +0000 (17:25 +0000)] 
Activate cells from keyboard too in generic wxDataViewCtrl.

wxDataViewCtrl only called WXOnActivate() in reaction to double-click.
When Enter/Spacebar was pressed, only
wxEVT_COMMAND_DATAVIEW_ITEM_ACTIVATED was sent, without calling
OnActivate() even if it was possible.

Fixed to handle both kinds of input identically.

Because there's currently no way to change current focus to a particular
column (as GtkTreeView can do), call WXOnActivate() on the first
activatable column.

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

13 years agoFixed drawing a check box in the undetermined state for non-themed MSW apps.
Dimitri Schoolwerth [Mon, 29 Aug 2011 16:06:32 +0000 (16:06 +0000)] 
Fixed drawing a check box in the undetermined state for non-themed MSW apps.

wxRendererMSW::DoDrawFrameControl (used for systems prior to XP or when theming is disabled) didn't check for the wxCONTROL_UNDETERMINED flag yet. Set the appropriate styles when the flag is used to fix drawing check boxes in their third state (as used in for example the treelist sample).

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

13 years agoMake it possible to TAB to wxTreeListCtrl contents.
Vadim Zeitlin [Mon, 29 Aug 2011 14:46:56 +0000 (14:46 +0000)] 
Make it possible to TAB to wxTreeListCtrl contents.

Even though wxTreeListCtrl contains just one child window it still needs to
derive from wxNavigationEnabled<> to allow focus getting to its sole child.

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

13 years agoFix spelling error in an error message in wxObjectXmlReader.
Vadim Zeitlin [Mon, 29 Aug 2011 12:33:40 +0000 (12:33 +0000)] 
Fix spelling error in an error message in wxObjectXmlReader.

No other changes.

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