]> git.saurik.com Git - wxWidgets.git/commitdiff
Some more explanations.
authorRobert Roebling <robert@roebling.de>
Sat, 7 Oct 2006 21:38:46 +0000 (21:38 +0000)
committerRobert Roebling <robert@roebling.de>
Sat, 7 Oct 2006 21:38:46 +0000 (21:38 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41679 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

docs/latex/wx/dataviewmodel.tex

index d5ea8cdd6344dcbefa71b7786b112d1fd92aeae0..925e62790bd7be9189282760cca560a0611bc0c7 100644 (file)
@@ -44,7 +44,27 @@ You need to override \helpref{GetNumberOfRows}{wxdataviewlistmodelgetnumberofrow
 \helpref{GetColType}{wxdataviewlistmodelgetcoltype} and
 \helpref{GetValue}{wxdataviewlistmodelgetvalue} in order to
 define the data model (which acts as an interface between 
-your actual data and the wxDataViewCtrl).
+your actual data and the wxDataViewCtrl). Since you will
+usually also allow the wxDataViewCtrl to change your data
+through its graphical interface, you will also have to override
+\helpref{SetValue}{wxdataviewlistmodelsetvalue} which the
+wxDataViewCtrl will call when a change to some data has been
+commited.
+
+The data that is presented through this data model is expected
+to change at run-time. You need to inform the data model that
+a change happens. Depending on what happened you need to call
+one of the following methods: 
+\helpref{ValueChanged}{wxdataviewlistmodelvaluechanged},
+\helpref{RowChanged}{wxdataviewlistmodelrowchanged},
+\helpref{RowAppended}{wxdataviewlistmodelrowappended},
+\helpref{RowPrepended}{wxdataviewlistmodelrowprepended},
+\helpref{RowInserted}{wxdataviewlistmodelrowinserted},
+\helpref{RowDeleted}{wxdataviewlistmodelrowdeleted},
+\helpref{RowsReordered}{wxdataviewlistmodelrowsreordered} or
+\helpref{RowsCleared}{wxdataviewlistmodelcleared}.
+
+
 
 wxDataViewModel and this class (as indeed the entire wxDataViewCtrl
 code) is using \helpref{wxVariant}{wxvariant} to store data and