Add wxDataViewModel::ChangeValue() and use it in wxDVC implementation.
authorVadim Zeitlin <vadim@wxwidgets.org>
Fri, 23 Oct 2009 23:49:16 +0000 (23:49 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Fri, 23 Oct 2009 23:49:16 +0000 (23:49 +0000)
commit795dac4c866d89804e625fa1d04cb70aba320183
tree1e06bd653096bd53fc28d92e16754b064dd95741
parent8c9833d09e4488206c1c6947486cd9289e0dbbb9
Add wxDataViewModel::ChangeValue() and use it in wxDVC implementation.

ChangeValue() is a trivial wrapper calling both SetValue() and ValueChanged().
It allows to replace many calls to SetValue() immediately followed by
ValueChanged() with a single function call which is significantly shorter and
less error-prone (e.g. most of the existing code didn't test SetValue() return
code at all).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62489 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/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