]> git.saurik.com Git - wxWidgets.git/log
wxWidgets.git
14 years agoFix selection corner cases in wxOSX wxComboBox.
Vadim Zeitlin [Sun, 22 Aug 2010 22:15:32 +0000 (22:15 +0000)] 
Fix selection corner cases in wxOSX wxComboBox.

Don't crash in wxComboBox::GetString() if it's passed an invalid index.

Don't call GetString() with invalid index from GetStringSelection() if there
is no selection.

Do accept wxNOT_FOUND in SetSelectedItem() as it means, according to the docs,
that the existing selection should be reset.

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

14 years agoDon't crash in wxOSX::wxClipboard::Clear() if initialization failed.
Vadim Zeitlin [Sun, 22 Aug 2010 22:15:27 +0000 (22:15 +0000)] 
Don't crash in wxOSX::wxClipboard::Clear() if initialization failed.

Creating the clipboard may fail (e.g. when running from a ssh session to an OS
X machine), don't crash by passing NULL pointer to PasteboardClear() if this
happens but assert and return instead.

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

14 years agoWork around a crash on starting editing in wxGrid under wxOSX/Cocoa.
Vadim Zeitlin [Sun, 22 Aug 2010 22:15:22 +0000 (22:15 +0000)] 
Work around a crash on starting editing in wxGrid under wxOSX/Cocoa.

wxOSX/Cocoa currently generates unexpected focus loss events with the window
gaining focus being the same one as losing it. This is wrong and shouldn't
happen but as long as it does, filter these events out to at least allow
editing the grid to work.

See #12267.

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

14 years agoDon't send event from wxMSW::wxListCtrl::DeleteAllItems() if it did nothing.
Vadim Zeitlin [Sun, 22 Aug 2010 22:15:17 +0000 (22:15 +0000)] 
Don't send event from wxMSW::wxListCtrl::DeleteAllItems() if it did nothing.

wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS should only be sent if the control hadn't
been empty before. Document this behaviour and adjust wxMSW to match the
other platforms.

Also document the return value better.

Closes #12336.

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

14 years agoExtract X11 Display wrapper class in a private header.
Vadim Zeitlin [Sun, 22 Aug 2010 22:15:13 +0000 (22:15 +0000)] 
Extract X11 Display wrapper class in a private header.

No real changes, just extract a private Dpy class used by wxGTK to a header
and rename it to wxX11Display.

This will allow reusing it from X11 wxUIActionSimulator implementation in the
upcoming commits.

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

14 years agoAdd missing header required if wx/mousestate.h is included first.
Vadim Zeitlin [Sun, 22 Aug 2010 22:15:07 +0000 (22:15 +0000)] 
Add missing header required if wx/mousestate.h is included first.

This header uses wxPoint so it must include wx/gdicmn.h (instead of relying on
it having been already included).

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

14 years agoDon't report spurious errors from wxSocket in "no wait" mode.
Vadim Zeitlin [Sat, 21 Aug 2010 23:33:40 +0000 (23:33 +0000)] 
Don't report spurious errors from wxSocket in "no wait" mode.

In wxSOCKET_NOWAIT mode wxSOCKET_WOULDBLOCK is not a real error as it's
expected and should be just discarded. Failing to do this could result in the
following scenario:

1. Try to read a big buffer with wxSOCKET_NOWAIT (setting wxSocket error to
   wxSOCKET_WOULDBLOCK).
2. Process small part of it.
3. Read more data from wxSocket -- which now goes to the data containing
   already cached data without going to the socket itself and this without
   resetting the error.
4. Check wxSocket::Error() which turns out to be (still) true.

And this was exactly what happened in mysteriously failing unit test case
reading wxImage contents from a socket: the failure was difficult to reproduce
because it depended on how much data exactly did we read from the socket in
one go.

Fix this by resetting the error properly and reenable the unit test which was
previously disabled for the build bot, it should pass now.

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

14 years agoAllow calling wxGenericDirCtrl::GetPath() in multiple selection mode, fixes #12340...
Robert Roebling [Sat, 21 Aug 2010 10:17:13 +0000 (10:17 +0000)] 
Allow calling wxGenericDirCtrl::GetPath() in multiple selection mode, fixes  #12340 ([wxGenericDirCtrl] conflicts wxDirFilterListCtrl::OnSelFilter())

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

14 years agomake Set/GetLabel() set and return something (albeit unused) as per the docs, fixes...
Robert Roebling [Sat, 21 Aug 2010 09:54:30 +0000 (09:54 +0000)] 
make Set/GetLabel() set and return something (albeit unused) as per the docs, fixes #12350: wxWindow Get/SetLabel non-functional in GTK

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

14 years agomake Set/GetLabel() set and return title in wxTLW, fixes #12371: Dialog::GetLabel...
Robert Roebling [Sat, 21 Aug 2010 09:53:25 +0000 (09:53 +0000)] 
make Set/GetLabel() set and return title in wxTLW, fixes #12371: Dialog::GetLabel() Inconsistent behaviour across operating systems

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

14 years agoFix crash by checking if icon is valid before drawing it, fixes #12376: PATCH for...
Robert Roebling [Sat, 21 Aug 2010 09:39:09 +0000 (09:39 +0000)] 
Fix crash by checking if icon is valid before drawing it, fixes #12376: PATCH for Ribbon crash

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

14 years agoFix potential crash, fixes #12375: PATCH to fix help controller crash
Robert Roebling [Sat, 21 Aug 2010 09:36:12 +0000 (09:36 +0000)] 
Fix potential crash, fixes #12375: PATCH to fix help controller crash

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

14 years agoProperly implement Cleared() by calling row_deleted on every child of root, fixes...
Robert Roebling [Fri, 20 Aug 2010 20:51:17 +0000 (20:51 +0000)] 
Properly implement Cleared() by calling row_deleted on every child of root, fixes #12327: wxDataViewListCtrl Crash

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

14 years agoMention that not all standard IDs are stock IDs.
Vadim Zeitlin [Fri, 20 Aug 2010 18:13:51 +0000 (18:13 +0000)] 
Mention that not all standard IDs are stock IDs.

Also add a link to the list of stock IDs from the standard IDs documentation.

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

14 years agoinclude correct private.h for wxgtk1
Jouk Jansen [Fri, 20 Aug 2010 15:38:03 +0000 (15:38 +0000)] 
include correct private.h for wxgtk1

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

14 years agoMake it compile
Robert Roebling [Fri, 20 Aug 2010 15:22:52 +0000 (15:22 +0000)] 
Make it compile

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

14 years agoLink to wxRichMessageDialog in some places
Robert Roebling [Thu, 19 Aug 2010 18:29:46 +0000 (18:29 +0000)] 
Link to wxRichMessageDialog in some places

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

14 years agoMake it compile a bit more
Robert Roebling [Thu, 19 Aug 2010 18:17:51 +0000 (18:17 +0000)] 
Make it compile a bit more

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

14 years agoSlightly improve wx[Generic]RichMessageDialog layout.
Vadim Zeitlin [Thu, 19 Aug 2010 15:41:24 +0000 (15:41 +0000)] 
Slightly improve wx[Generic]RichMessageDialog layout.

Keep the icon at the top instead of centering it, this is more consistent with
the native behaviour under both MSW and GTK.

Get rid of an unnecessary sizer in wxGenericRichMessageDialog and give the
checkbox the right border to align with the rest of the dialog contents.

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

14 years agoMake the main message of wxGenericMessageDialog stand out.
Vadim Zeitlin [Thu, 19 Aug 2010 15:41:18 +0000 (15:41 +0000)] 
Make the main message of wxGenericMessageDialog stand out.

Use larger bold font for the main message in wxGenericMessageDialog if the
extended message is also given to make it stand out similarly to how it
happens in the native GTK and MSW dialogs.

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

14 years agoBetter close button placement on tabs, especially for bottom tab alignment
Julian Smart [Thu, 19 Aug 2010 12:12:59 +0000 (12:12 +0000)] 
Better close button placement on tabs, especially for bottom tab alignment

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

14 years agoupdate compile configuration for OpenVMS
Jouk Jansen [Thu, 19 Aug 2010 07:13:01 +0000 (07:13 +0000)] 
update compile configuration for OpenVMS

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

14 years agoCompilation fix for STL build in wxGtkCollatableString code.
Vadim Zeitlin [Thu, 19 Aug 2010 00:06:17 +0000 (00:06 +0000)] 
Compilation fix for STL build in wxGtkCollatableString code.

Include wx/string.h to define wxString used by this class.

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

14 years agoCompilation fix for non-PCH build in wxGenericRichMessageDialog code.
Vadim Zeitlin [Thu, 19 Aug 2010 00:06:12 +0000 (00:06 +0000)] 
Compilation fix for non-PCH build in wxGenericRichMessageDialog code.

Move IsCheckBoxChecked() to the .cpp file where wxCheckBox is fully defined
and not just forward declared (at least when not using PCH).

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

14 years agoCompilation fix for old SDKs in new native MSW wxHyperLinkCtrl code.
Vadim Zeitlin [Wed, 18 Aug 2010 23:57:26 +0000 (23:57 +0000)] 
Compilation fix for old SDKs in new native MSW wxHyperLinkCtrl code.

Define WC_LINK ourselves if it's not defined in the headers.

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

14 years agoVC6 compilation fix for native wxProgressDialog implementation.
Vadim Zeitlin [Wed, 18 Aug 2010 23:55:52 +0000 (23:55 +0000)] 
VC6 compilation fix for native wxProgressDialog implementation.

Don't use return with a void value, VC6 doesn't support this and it's
unnecessary here anyhow.

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

14 years agoUse task dialog for wxProgressDialog implementation in wxMSW.
Vadim Zeitlin [Wed, 18 Aug 2010 22:49:02 +0000 (22:49 +0000)] 
Use task dialog for wxProgressDialog implementation in wxMSW.

If available, the task dialog is now used for the wxProgressDialog under
Windows. This provides a much more native looking dialog which doesn't look
out of place under modern Windows versions, unlike the generic implementation.

The internals of the code had to be significantly changed as the task dialog
can only be shown modally so, to emulate wxProgressDialog modeless nature, a
separate thread is used for the progress dialog management.

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

14 years agoOnly use native wxHyperlinkCtrl in Unicode build under MSW.
Vadim Zeitlin [Wed, 18 Aug 2010 22:48:53 +0000 (22:48 +0000)] 
Only use native wxHyperlinkCtrl in Unicode build under MSW.

The native control is available to Unicode applications only so disable its
use in non-Unicode build.

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

14 years agoDon't use native MSW wxCommandLinkButton in wxUniversal.
Vadim Zeitlin [Wed, 18 Aug 2010 22:48:48 +0000 (22:48 +0000)] 
Don't use native MSW wxCommandLinkButton in wxUniversal.

Test for __WXUNIVERSAL__ when selecting the version of this class to use.

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

14 years agoAdd wxRichMessageDialog class.
Vadim Zeitlin [Wed, 18 Aug 2010 22:48:41 +0000 (22:48 +0000)] 
Add wxRichMessageDialog class.

This is a generalization of wxMessageDialog based on the native task dialog
under recent (Vista and later) Windows versions and implemented generically
for the other ports for now.

It provides the possibility to use additional controls in the message boxes
(checkbox useful for the "Don't ask me again" kind of dialogs and collapsible
detailed explanations field) and better look and feel under Windows.

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

14 years agoProvide a task-dialog based wxMSW wxMessageDialog implementation.
Vadim Zeitlin [Wed, 18 Aug 2010 22:48:28 +0000 (22:48 +0000)] 
Provide a task-dialog based wxMSW wxMessageDialog implementation.

Use the task dialog instead of the legacy message box for wxMessageDialog
implementation under wxMSW on recent (Vista and later) Windows versions.

As part of this change, remove wxMessageDialogWithCustomLabels and integrate
its functionality in wxMessageDialogBase itself as it's now used by all
platforms.

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

14 years agoHandle mnemonics correctly in wxGTK::wxCollapsiblePaneSetLabel().
Vadim Zeitlin [Wed, 18 Aug 2010 22:48:21 +0000 (22:48 +0000)] 
Handle mnemonics correctly in wxGTK::wxCollapsiblePaneSetLabel().

Convert mnemonics in wx format to the one used by GTK+, just as we already do
in the ctor.

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

14 years agoFix Yes/No/Cancel buttons order in wxGTK wxStdDialogButtonSizer.
Vadim Zeitlin [Wed, 18 Aug 2010 22:48:15 +0000 (22:48 +0000)] 
Fix Yes/No/Cancel buttons order in wxGTK wxStdDialogButtonSizer.

"Yes" and "No" buttons should be positioned next to each other for consistency
with the native message box instead of separating them with the "Cancel"
button.

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

14 years agoDocument recetnyl added name parameter in wxDataViewCtrl
Robert Roebling [Wed, 18 Aug 2010 21:40:24 +0000 (21:40 +0000)] 
Document recetnyl added name parameter in wxDataViewCtrl

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

14 years agoMention that you cannot call wxRadioButton::SetValue(false) if that radiobutton belon...
Robert Roebling [Wed, 18 Aug 2010 21:36:40 +0000 (21:36 +0000)] 
Mention that you cannot call wxRadioButton::SetValue(false) if that radiobutton belongs to a group

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

14 years agoGTK+ just won't let you uncheck any radiobutton that belongs to a group.
Robert Roebling [Wed, 18 Aug 2010 21:32:14 +0000 (21:32 +0000)] 
GTK+ just won't let you uncheck any radiobutton that belongs to a group.

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

14 years agomake wxChoice and wxComboBox sort in a case insensitive and locale adapted way, fixes...
Robert Roebling [Wed, 18 Aug 2010 21:29:53 +0000 (21:29 +0000)] 
make wxChoice and wxComboBox sort in a case insensitive and locale adapted way, fixes #12351: Incorrect sort order in wxChoice / wxComboBox

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

14 years agoMake wxListBox sort in a case insensitive way, fixes #12352: Incorrect sort order...
Robert Roebling [Wed, 18 Aug 2010 21:28:11 +0000 (21:28 +0000)] 
Make wxListBox sort in a case insensitive way, fixes #12352: Incorrect sort order in wxListBox

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

14 years agoUse common inline version of wxHexToDec
Julian Smart [Wed, 18 Aug 2010 12:59:52 +0000 (12:59 +0000)] 
Use common inline version of wxHexToDec

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

14 years agoProvide native wxHyperlinkCtrl implementation for wxMSW.
Vadim Zeitlin [Tue, 17 Aug 2010 16:55:32 +0000 (16:55 +0000)] 
Provide native wxHyperlinkCtrl implementation for wxMSW.

Use the "syslink" native control to implement wxHyperlinkCtrl under (recent
enough, i.e. XP or later) versions of Windows.

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

14 years agoCompilation fix: include wx/button.h from wx/commandlinkbutton.h.
Vadim Zeitlin [Tue, 17 Aug 2010 16:12:28 +0000 (16:12 +0000)] 
Compilation fix: include wx/button.h from wx/commandlinkbutton.h.

Include the base class declaration to fix compilation under non-MSW.

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

14 years agoExport wxMSWButton::GetFittingSize() private function.
Vadim Zeitlin [Tue, 17 Aug 2010 15:13:14 +0000 (15:13 +0000)] 
Export wxMSWButton::GetFittingSize() private function.

It is now used by wxCommandLinkButton from adv library and so needs to be
exported from core.

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

14 years agoAdd new wxCommandLinkButton class.
Vadim Zeitlin [Tue, 17 Aug 2010 14:48:50 +0000 (14:48 +0000)] 
Add new wxCommandLinkButton class.

A command link button wraps a native MSW control under recent Windows versions
and is implemented generically as a simple bitmap button elsewhere.

In the future, GTK implementation should allow using a different font for the
button label and its note.

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

14 years agoLarge image-loading speedup and small attribute-loading speedup
Julian Smart [Tue, 17 Aug 2010 10:10:39 +0000 (10:10 +0000)] 
Large image-loading speedup and small attribute-loading speedup

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

14 years agofixes horizontal scrolling in textfields, fixes #12322
Stefan Csomor [Tue, 17 Aug 2010 06:21:53 +0000 (06:21 +0000)] 
fixes horizontal scrolling in textfields, fixes #12322

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

14 years agoIgnore non-existant string selection in wxComboBox::SetValue() in read-only mode...
Robert Roebling [Mon, 16 Aug 2010 17:48:28 +0000 (17:48 +0000)] 
Ignore non-existant string selection in wxComboBox::SetValue() in read-only mode, as per the very exact docs, fixes #12329: wxComboBox can set non-existing string in read only mode

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

14 years agoUncheck radiobutton when calling ::SetValue(false) as per wxMSW, fixes #12344: Cannot...
Robert Roebling [Mon, 16 Aug 2010 15:33:31 +0000 (15:33 +0000)] 
Uncheck radiobutton when calling ::SetValue(false) as per wxMSW, fixes #12344: Cannot set GTK wxRadioButton to fasle

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

14 years agoImprove EVT_SHOW documentation.
Vadim Zeitlin [Sun, 15 Aug 2010 21:14:11 +0000 (21:14 +0000)] 
Improve EVT_SHOW documentation.

Mention that it applies to the TLWs only and explain when it is generated (and
not generated).

Closes #12353.

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

14 years agoFix wxMSW compilation in wxUSE_STL==1 case.
Vadim Zeitlin [Sun, 15 Aug 2010 21:14:06 +0000 (21:14 +0000)] 
Fix wxMSW compilation in wxUSE_STL==1 case.

A wxDECLARE_NO_ASSIGN_CLASS() was recently added to ClassRegInfo but storing
it in a vector requires it to be "Assignable" so this broke compilation in STL
case (wxVector<> doesn't enforce this requirement currently).

Make ClassRegInfo assignable again to fix this.

Closes #12355.

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

14 years agoRevert "Make wxComboBox::Popup() and ::Dismiss() emit events"
Vadim Zeitlin [Sun, 15 Aug 2010 21:14:02 +0000 (21:14 +0000)] 
Revert "Make wxComboBox::Popup() and ::Dismiss() emit events"

This reverts commit r65310 which was not, in fact, necessary as the events
were already sent.

See #12335.

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

14 years agoMake wxComboBox::Popup() and ::Dismiss() emit events as per the docs, fixes (wxComboB...
Robert Roebling [Sun, 15 Aug 2010 16:16:22 +0000 (16:16 +0000)] 
Make wxComboBox::Popup() and ::Dismiss() emit events as per the docs, fixes (wxComboBox not sending popup and dismiss events)

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

14 years agoAllow wxVariant::Convert(wxUniChar* value) to convert single-character string into...
Jaakko Salli [Fri, 13 Aug 2010 20:12:03 +0000 (20:12 +0000)] 
Allow wxVariant::Convert(wxUniChar* value) to convert single-character string into a character.

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

14 years agoFix harmless MSVC warning about double to float conversion.
Vadim Zeitlin [Fri, 13 Aug 2010 11:57:45 +0000 (11:57 +0000)] 
Fix harmless MSVC warning about double to float conversion.

Make the constant double as well as it's compared with other doubles in the
code below.

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

14 years agoUpdate wxWinCE compilation instructions.
Vadim Zeitlin [Fri, 13 Aug 2010 09:55:32 +0000 (09:55 +0000)] 
Update wxWinCE compilation instructions.

Remove obsolete information about eVC. Give the example of using bakefile to
generate VC[89] CE projects directly.

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

14 years agono-op change to get build bot running
Stefan Csomor [Fri, 13 Aug 2010 04:23:37 +0000 (04:23 +0000)] 
no-op change to get build bot running

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

14 years agono-op change to get build bot running
Stefan Csomor [Thu, 12 Aug 2010 08:25:16 +0000 (08:25 +0000)] 
no-op change to get build bot running

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

14 years agoNew build slave for wxQt
Javier Torres [Wed, 11 Aug 2010 23:11:24 +0000 (23:11 +0000)] 
New build slave for wxQt

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

14 years agoImprove wxRibbonMSWArtProvider's colour scheme generation when the primary and/or...
Peter Cawley [Wed, 11 Aug 2010 16:51:02 +0000 (16:51 +0000)] 
Improve wxRibbonMSWArtProvider's colour scheme generation when the primary and/or secondary colours are grey (see ticket #12331).

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

14 years agoHandle wxDefaultSize correctly in wxNonOwnedWindow under wxOSX.
Vadim Zeitlin [Wed, 11 Aug 2010 16:04:00 +0000 (16:04 +0000)] 
Handle wxDefaultSize correctly in wxNonOwnedWindow under wxOSX.

Creating a wxNonOwnedWindow with default size created tiny, practically
invisible windows because the default size was only taken care of at
wxTopLevelWindow level but not in wxNonOwnedWindow itself. In particular, this
broke creation of wxMDIChildFrames with the default size as this class only
derived from wxNonOwnedWindow and not from wxTopLevelWindow under OS X. It
also probably wasn't intentional as the code did use {Width,Height}Default()
functions but they were wxWindow methods and not the wxTopLevelWindow
(confusingly and error-pronely) named the same.

Fix this, remove the now redundant checks for the default size in
wxTopLevelWindow itself and also rationalize and condense the checks for the
default position and size components in wxNonOwnedWindow::Create().

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

14 years agoMake wxTopLevelWindow::GetDefaultSize() public and document it.
Vadim Zeitlin [Wed, 11 Aug 2010 16:03:55 +0000 (16:03 +0000)] 
Make wxTopLevelWindow::GetDefaultSize() public and document it.

This method is/will be needed by wxNonOwnedWindow in wxOSX but couldn't be
used as long as it was protected, so make it public. And as it seems that it
might be useful outside of wx itself, document it as well.

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

14 years agoAdd wxPoint::IsFullySpecified() and SetDefaults().
Vadim Zeitlin [Wed, 11 Aug 2010 16:03:51 +0000 (16:03 +0000)] 
Add wxPoint::IsFullySpecified() and SetDefaults().

These methods do the same thing as wxSize methods with the same names and are
useful for the same reasons.

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

14 years agoFix handling of help buttons with non-empty label under OS X.
Vadim Zeitlin [Wed, 11 Aug 2010 16:03:46 +0000 (16:03 +0000)] 
Fix handling of help buttons with non-empty label under OS X.

Creating a button with wxID_HELP and a non-empty label used to always show
this label, even if it was just a standard "Help" or "&Help". This didn't work
at all as the help buttons under OS X are too small to show any label.

To fix this, use normal buttons, not help ones, if a really custom label is
used to ensure that it can be seen. And to still use the correct help buttons
in as many cases as possible, ignore the standard "Help" label and its
variants and don't show it at all.

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

14 years agoUse correct format specifiers in wxString::Printf().
Vadim Zeitlin [Wed, 11 Aug 2010 16:03:04 +0000 (16:03 +0000)] 
Use correct format specifiers in wxString::Printf().

Using %d with size_t argument resulted in asserts, fix it.

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

14 years agoFix line indices translation in wxGrid::DoEndDragResizeLine().
Vadim Zeitlin [Tue, 10 Aug 2010 22:39:04 +0000 (22:39 +0000)] 
Fix line indices translation in wxGrid::DoEndDragResizeLine().

We used the translation in wrong direction, i.e. interpreted x coordinates as
rows and y coordinates as columns. This could result in passing invalid cell
indices to GetCellSize() and was generally completely wrong.

Closes #12311.

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

14 years agoWIP
Vadim Zeitlin [Tue, 10 Aug 2010 22:39:00 +0000 (22:39 +0000)] 
WIP

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

14 years agoDon't set Unicode key code in key events to non-Unicode values in wxGTK.
Vadim Zeitlin [Tue, 10 Aug 2010 22:38:54 +0000 (22:38 +0000)] 
Don't set Unicode key code in key events to non-Unicode values in wxGTK.

Only assign the wx key code wxKeyEvent::m_uniChar if it's a key corresponding
to an ASCII symbol, don't do it for the values outside of ASCII range such as
all the special WXK_ constants. It doesn't make sense to generate Unicode key
codes for e.g. cursor key presses.

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

14 years agoUse wxPanel as controls parent in wrapsizer sample.
Vadim Zeitlin [Tue, 10 Aug 2010 21:48:22 +0000 (21:48 +0000)] 
Use wxPanel as controls parent in wrapsizer sample.

Follow our own advice about never creating controls directly on the frame and
using an intermediate wxPanel in our own sample. This is better style and
makes it look better under Windows.

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

14 years agoInherit notebook background recursively under wxMSW.
Vadim Zeitlin [Tue, 10 Aug 2010 21:48:17 +0000 (21:48 +0000)] 
Inherit notebook background recursively under wxMSW.

With MSWSetTransparentBackground() hack only the panel which was the immediate
child of wxNotebook (i.e. its page) inherited the notebook background but not
its children. This resulted in jarring background discontinuities when nested
panels were used.

Fix this by inheriting notebook background in all child panels by testing for
the return value of the parents MSWHasInheritableBackground() method in
wxPanel::HasTransparentBackground() recursively.

Closes #12317.

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

14 years agoFix wxBitmapButton initial best size determination in wxMSW.
Vadim Zeitlin [Tue, 10 Aug 2010 18:58:06 +0000 (18:58 +0000)] 
Fix wxBitmapButton initial best size determination in wxMSW.

This was broken during wxButton/wxBitmapButton merge and wxBitmapButton was
not created with the correct initial size if the default size was specified
when creating it any longer. Fix this by calling SetInitialSize() once again
after setting the bitmap.

See #12323.

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

14 years agoKeep the button bitmap centered if the button has no label in wxMSW.
Vadim Zeitlin [Tue, 10 Aug 2010 18:58:02 +0000 (18:58 +0000)] 
Keep the button bitmap centered if the button has no label in wxMSW.

We should only honour the bitmap alignment if the button shows both the bitmap
and the label. If only the bitmap is shown (e.g. when wxBitmapButton is used),
it should always be centered as it used to be done in 2.8.

Closes #12323.

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

14 years agoRemove obsolete and out of date Xcode project file.
Vadim Zeitlin [Tue, 10 Aug 2010 18:57:56 +0000 (18:57 +0000)] 
Remove obsolete and out of date Xcode project file.

The project files under build/osx should now be used, this Xcode project file
was out of date and couldn't be updated automatically.

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

14 years agoRevert MSW window classes uniquification patch.
Vadim Zeitlin [Tue, 10 Aug 2010 18:57:51 +0000 (18:57 +0000)] 
Revert MSW window classes uniquification patch.

Making the class names unique doesn't seem to be necessary so revert the patch
which appended unique pointer value to their names (r57030).

See #9031.

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

14 years agoDon't use bitmap still selected in wxMemoryDC in image sample.
Vadim Zeitlin [Tue, 10 Aug 2010 18:57:47 +0000 (18:57 +0000)] 
Don't use bitmap still selected in wxMemoryDC in image sample.

The bitmap must be deselected from wxMemoryDC before being used in any other
way but the sample didn't do this. Fix this by simply destroying the DC as
soon as we don't need it, this makes bitmap available for other use as well.

Closes #12310.

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

14 years agoUse window position in screen coordinates in wxDisplay::GetFromWindow().
Vadim Zeitlin [Tue, 10 Aug 2010 18:57:42 +0000 (18:57 +0000)] 
Use window position in screen coordinates in wxDisplay::GetFromWindow().

To determine the display to which the window belongs we must use the window
position in screen coordinates returned by wxWindow::GetScreenRect() and not
the positioned returned by GetRect() which is the same only for the top level
windows but not for the child ones.

Closes #12318.

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

14 years agoCorrect documentation of majorDimension in wxRadioBox ctor.
Vadim Zeitlin [Tue, 10 Aug 2010 18:57:36 +0000 (18:57 +0000)] 
Correct documentation of majorDimension in wxRadioBox ctor.

The default value of this parameter is 0, not 1. Also add the explanation of
what using 0 actually means.

Closes #12325.

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

14 years agoRemove obsolete stc makefile.
Vadim Zeitlin [Tue, 10 Aug 2010 18:57:31 +0000 (18:57 +0000)] 
Remove obsolete stc makefile.

This makefile is not used any more since stc was integrated into wx core.

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

14 years agoAdd wxDataViewCtrl::{Set,Get}CurrentItem().
Vadim Zeitlin [Tue, 10 Aug 2010 12:53:03 +0000 (12:53 +0000)] 
Add wxDataViewCtrl::{Set,Get}CurrentItem().

Current item is the same as the selected item in single selection mode but in
multiple selection mode there was no way to neither get this item nor change
it before so add the new functions to allow doing this now.

The new methods are implemented for the generic, GTK and OS X/Cocoa versions
but only stubs are provided for OS X/Carbon.

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

14 years agoDon't lose selection in wxDataViewCtrl::Select() under Mac.
Vadim Zeitlin [Mon, 9 Aug 2010 21:17:51 +0000 (21:17 +0000)] 
Don't lose selection in wxDataViewCtrl::Select() under Mac.

Calling Select() for an item should not deselect the other selected items in
multiple selection mode. This is consistent with the GTK and generic versions
behaviour and also just makes more sense but also document that this is indeed
the desired behaviour just in case.

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

14 years agoMoved wxPGProperty::SetFlag() to protected API since it does not have any side-effect...
Jaakko Salli [Sun, 8 Aug 2010 12:22:08 +0000 (12:22 +0000)] 
Moved wxPGProperty::SetFlag() to protected API since it does not have any side-effects that are usually desired in the user code. Added wxPGProperty::SetAutoUnspecified() since wxPG_PROP_AUTO_UNSPECIFIED can no longer be set (conveniently) with SetFlag().

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

14 years agoRemoved spurious semicolon that prevented compilation
Jaakko Salli [Sun, 8 Aug 2010 11:59:34 +0000 (11:59 +0000)] 
Removed spurious semicolon that prevented compilation

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

14 years agoAdded wxPGProperty::Enable() for conveniency. Refactored related code and improved...
Jaakko Salli [Sun, 8 Aug 2010 11:41:20 +0000 (11:41 +0000)] 
Added wxPGProperty::Enable() for conveniency. Refactored related code and improved related documentation.

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

14 years agoAdd name argument to wxDataViewCtrl ctor for consistency.
Vadim Zeitlin [Sun, 8 Aug 2010 11:37:57 +0000 (11:37 +0000)] 
Add name argument to wxDataViewCtrl ctor for consistency.

As all the other wxWidgets controls take the parameter in their ctor/Create()
it's unexpected that wxDataViewCtrl does not. Add the name parameter and pass
it to wxWindowBase::CreateBase() as usual.

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

14 years agoDon't export wxDataViewCtrlInternal unnecessarily.
Vadim Zeitlin [Sun, 8 Aug 2010 11:37:50 +0000 (11:37 +0000)] 
Don't export wxDataViewCtrlInternal unnecessarily.

wxDataViewCtrlInternal is a private class used only inside wxWidgets itself
and doesn't need to be exported from the shared library, so remove the
unnecessary WXDLLIMPEXP_ADV from its declaration.

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

14 years agoFix dataview sample compilation with wxUSE_DRAG_AND_DROP==0.
Vadim Zeitlin [Sun, 8 Aug 2010 11:37:46 +0000 (11:37 +0000)] 
Fix dataview sample compilation with wxUSE_DRAG_AND_DROP==0.

This allows to build it under wxX11. Unfortunately it still doesn't work at
all there.

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

14 years agoUse helper class instead of manually calling gtk_tree_path_free().
Vadim Zeitlin [Sun, 8 Aug 2010 11:37:41 +0000 (11:37 +0000)] 
Use helper class instead of manually calling gtk_tree_path_free().

No real changes, just simplify the code and make it more obviously correct by
ensuring that all temporary tree paths are always destroyed because they are
assigned to a wxGtkTreePath object which does it in its dtor instead of
calling gtk_tree_path_free() manually every time.

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

14 years agoAdd wxDataViewCtrl::GTKPathToItem() function and use it.
Vadim Zeitlin [Sun, 8 Aug 2010 11:37:37 +0000 (11:37 +0000)] 
Add wxDataViewCtrl::GTKPathToItem() function and use it.

No real changes, just refactor the code to use a function mapping GtkTreeIter
to our wxDataViewItem and use it instead of duplicating its code everywhere.

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

14 years agoInclude wx/defs.h before testing for wxUSE_CHECKLISTBOX.
Vadim Zeitlin [Sun, 8 Aug 2010 11:35:55 +0000 (11:35 +0000)] 
Include wx/defs.h before testing for wxUSE_CHECKLISTBOX.

We need to include wx/defs.h that (indirectly) defines wxUSE_CHECKLISTBOX
before testing for it in wx/checklst.h, otherwise the test may fail if the
latter header is the first wx header included by the user code.

Closes #12306.

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

14 years agoCorrect a print format specifier mismatch in wxFileConfig::Parse().
Vadim Zeitlin [Sun, 8 Aug 2010 11:35:49 +0000 (11:35 +0000)] 
Correct a print format specifier mismatch in wxFileConfig::Parse().

Pass an int and not a size_t to a %d.

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

14 years agoAdded the documentation for wxMemoryBuffer::AppendData(), it was lost in the Doxygen...
Bryan Petty [Fri, 6 Aug 2010 20:14:39 +0000 (20:14 +0000)] 
Added the documentation for wxMemoryBuffer::AppendData(), it was lost in the Doxygen conversion.

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

14 years agoFix DnD in generic wxDataViewCtrl when scrolled.
Václav Slavík [Fri, 6 Aug 2010 16:28:46 +0000 (16:28 +0000)] 
Fix DnD in generic wxDataViewCtrl when scrolled.

wxDataViewMainWindow drag and drop code incorrectly used Y coordinate
where X axis should be used to check whether the mouse is inside columns
area. This manifested itself as refusing to accept drops once the
control was sufficiently scrolled down.

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

14 years agoFix attributes escaping when writing XML.
Václav Slavík [Wed, 4 Aug 2010 14:57:30 +0000 (14:57 +0000)] 
Fix attributes escaping when writing XML.

wxXmlDocument didn't correctly escape some characters that the spec says
must be escaped. Behaves correctly now.

Fixes #12275.

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

14 years agoDon't reset bullet number and outline number when applying style sheet.
Julian Smart [Tue, 3 Aug 2010 17:15:33 +0000 (17:15 +0000)] 
Don't reset bullet number and outline number when applying style sheet.

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

14 years agoFix MSVC warning about int->bool conversion.
Václav Slavík [Tue, 3 Aug 2010 12:59:30 +0000 (12:59 +0000)] 
Fix MSVC warning about int->bool conversion.

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

14 years agoFix Tab navigation when focused control is disabled.
Václav Slavík [Sun, 1 Aug 2010 10:11:53 +0000 (10:11 +0000)] 
Fix Tab navigation when focused control is disabled.

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

14 years agoFix wxDataViewCtrl to omit expander space for all kinds of lists.
Václav Slavík [Thu, 29 Jul 2010 20:54:00 +0000 (20:54 +0000)] 
Fix wxDataViewCtrl to omit expander space for all kinds of lists.

List-only models don't have expanders and so the control shouldn't
reserve any space for them; the notion of expander column doesn't make
sense here.

Previously, this was done correctly only for wxDataViewVirtualListModel;
"ordinary" list models, such as the one used by wxDataViewListCtrl, were
treated as generic tree models and 0th column had ugly empty space
reserved for (never used) expander.

This patch fixes it by adding IsListModel() helper function in
addition to existing IsVirtualListModel(). Some of the
IsVirtualListModel() tests were changed into IsListModel() checks as
appropriate.

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

14 years agoAdd ability to render checkbox in undeterminate state, fixes #12290: wxRendererGTK...
Robert Roebling [Thu, 29 Jul 2010 16:57:09 +0000 (16:57 +0000)] 
Add ability to render checkbox in undeterminate state, fixes #12290: wxRendererGTK does not support wx.CONTROL_UNDETERMINED for checkboxes

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

14 years agoFix gcc warning in wxDataViewListCtrl::ItemToRow().
Václav Slavík [Thu, 29 Jul 2010 15:30:11 +0000 (15:30 +0000)] 
Fix gcc warning in wxDataViewListCtrl::ItemToRow().

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

14 years agoFix wxOSX wxTextCtrl refactoring of r65129.
Vadim Zeitlin [Wed, 28 Jul 2010 18:22:26 +0000 (18:22 +0000)] 
Fix wxOSX wxTextCtrl refactoring of r65129.

Add the Init() calls in wxNSTextFieldControl ctors forgotten the last time.

Closes #12284.

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

14 years agoAllow non-modal windows shown from modal dialogs to work in wxOSX.
Vadim Zeitlin [Wed, 28 Jul 2010 18:22:20 +0000 (18:22 +0000)] 
Allow non-modal windows shown from modal dialogs to work in wxOSX.

Use kCGUtilityWindowLevel for such windows instead of kCGFloatingWindowLevel
and also call setWorksWhenModal:YES.

Closes #12187.

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

14 years agoAdd association between wxOSX wxTextWidgetImpl and wxTextEntry.
Vadim Zeitlin [Wed, 28 Jul 2010 11:27:01 +0000 (11:27 +0000)] 
Add association between wxOSX wxTextWidgetImpl and wxTextEntry.

This allows to always find the correct wxTextEntry to use in the
implementation of text-related widgets without using any casts. Notably, the
wrong up-cast of wxWindow to wxTextCtrl in wxNSTextFieldControl::controlAction()
which resulted in a crash when the window was actually a wxComboBox can now be
fixed.

Closes #12284.

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