X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1ab4aff2738d8511da32e787796606646799f0ac..10ff9c616e00e4074dfdc2ac9e354605cc129c22:/docs/latex/wx/dataviewindexlistmodel.tex diff --git a/docs/latex/wx/dataviewindexlistmodel.tex b/docs/latex/wx/dataviewindexlistmodel.tex index 74d35d2c52..c334f0e6a0 100644 --- a/docs/latex/wx/dataviewindexlistmodel.tex +++ b/docs/latex/wx/dataviewindexlistmodel.tex @@ -8,6 +8,13 @@ This model also provides its own \helpref{Compare}{wxdataviewindexlistmodelcompare} method which sorts the model's data by the index. +This model is special in the it is implemented differently under OS X +and other platforms. Under OS X a wxDataViewItem is always persistent +and this is also the case for this class. Under other platforms, the +meaning of a wxDataViewItem is changed to reflect a row number for +wxDataViewIndexListModel. The consequence of this is that +wxDataViewIndexListModel can be used as a virtual model with an +almost infinate number of items on platforms other than OS X. \wxheading{Derived from} @@ -38,6 +45,16 @@ Destructor. Compare method that sorts the items by their index. +\membersection{wxDataViewIndexListModel::GetAttr}\label{wxdataviewindexlistmodelgetattr} + +\func{bool}{GetAttr}{\param{unsigned int }{row}, \param{unsigned int }{col}, \param{wxDataViewItemAttr\& }{attr}} + +Oberride this to indicate that the row has special font attributes. +This only affects the +\helpref{wxDataViewTextRendererText}{wxdataviewtextrendererattr} renderer. + +See also \helpref{wxDataViewItemAttr}{wxdataviewitemattr}. + \membersection{wxDataViewIndexListModel::GetItem}\label{wxdataviewindexlistmodelgetitem} \constfunc{wxDataViewItem}{GetItem}{\param{unsigned int }{row}} @@ -50,12 +67,6 @@ Returns the wxDataViewItem at the given {\it row}. Returns the position of given {\it item}. -\membersection{wxDataViewIndexListModel::GetRowCount}\label{wxdataviewindexlistmodelgetrowcount} - -\func{unsigned int}{GetRowCount}{\void} - -Override this to indicate the number of rows. - \membersection{wxDataViewIndexListModel::GetValue}\label{wxdataviewindexlistmodelgetvalue} \constfunc{void}{GetValue}{\param{wxVariant\& }{variant}, \param{unsigned int }{row}, \param{unsigned int }{col}} @@ -102,4 +113,4 @@ Call this after a value has been changed. \func{bool}{SetValue}{\param{const wxVariant\& }{variant}, \param{unsigned int }{row}, \param{unsigned int }{col}} -Called in order to set a value in the model. \ No newline at end of file +Called in order to set a value in the model.