]> git.saurik.com Git - wxWidgets.git/commit - include/wx/osx/carbon/dataview.h
Harmonize wxDataViewCtrl::GetSelection() behaviour in all ports.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 22 Aug 2011 12:41:19 +0000 (12:41 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 22 Aug 2011 12:41:19 +0000 (12:41 +0000)
commitfa93d732e2afd376527d9c0eb726057f15f18868
tree9b2918ac0ce9c526e44ca1c5d07b8c068f2227fe
parentc3ad4d4a455aed28178d8a22c305e1a4d6b23f23
Harmonize wxDataViewCtrl::GetSelection() behaviour in all ports.

wxDataViewCtrl::GetSelection() now always returns invalid item if more than
a single item is selected in a multi-selection control.

Also add HasSelection() and GetSelectedItemsCount() to allow checking if any
items are selected.

Updated the documentation, all ports and added a test for all these functions.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68844 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
16 files changed:
docs/changes.txt
include/wx/dataview.h
include/wx/generic/dataview.h
include/wx/gtk/dataview.h
include/wx/osx/carbon/dataview.h
include/wx/osx/cocoa/dataview.h
include/wx/osx/core/dataview.h
include/wx/osx/dataview.h
interface/wx/dataview.h
src/common/datavcmn.cpp
src/generic/datavgen.cpp
src/gtk/dataview.cpp
src/osx/carbon/dataview.cpp
src/osx/cocoa/dataview.mm
src/osx/dataview_osx.cpp
tests/controls/dataviewctrltest.cpp