2 \section{\class{wxDataViewIndexListModel
}}\label{wxdataviewindexlistmodel
}
4 wxDataViewIndexListModel is a specialized data model which lets
5 you address an item by its position (row) rather than its
6 wxDataViewItem (which you can obtain from this class).
7 This model also provides its own
8 \helpref{Compare
}{wxdataviewindexlistmodelcompare
} method
9 which sorts the model's data by the index.
12 \wxheading{Derived from
}
14 \helpref{wxDataViewModel
}{wxdataviewmodel
}
16 \wxheading{Include files
}
20 \latexignore{\rtfignore{\wxheading{Members
}}}
23 \membersection{wxDataViewIndexListModel::wxDataViewIndexListModel
}\label{wxdataviewindexlistmodelwxdataviewindexlistmodel
}
25 \func{}{wxDataViewIndexListModel
}{\param{unsigned int
}{initial
\_size =
0}}
29 \membersection{wxDataViewIndexListModel::
\destruct{wxDataViewIndexListModel
}}\label{wxdataviewindexlistmodeldtor
}
31 \func{}{\destruct{wxDataViewIndexListModel
}}{\void}
35 \membersection{wxDataViewIndexListModel::Compare
}\label{wxdataviewindexlistmodelcompare
}
37 \func{int
}{Compare
}{\param{const wxDataViewItem\&
}{item1
},
\param{const wxDataViewItem\&
}{item2
},
\param{unsigned int
}{column
},
\param{bool
}{ascending
}}
39 Compare method that sorts the items by their index.
41 \membersection{wxDataViewIndexListModel::GetItem
}\label{wxdataviewindexlistmodelgetitem
}
43 \constfunc{wxDataViewItem
}{GetItem
}{\param{unsigned int
}{row
}}
45 Returns the wxDataViewItem at the given
{\it row
}.
47 \membersection{wxDataViewIndexListModel::GetRow
}\label{wxdataviewindexlistmodelgetrow
}
49 \constfunc{unsigned int
}{GetRow
}{\param{const wxDataViewItem\&
}{item
}}
51 Returns the position of given
{\it item
}.
53 \membersection{wxDataViewIndexListModel::GetRowCount
}\label{wxdataviewindexlistmodelgetrowcount
}
55 \func{unsigned int
}{GetRowCount
}{\void}
57 Override this to indicate the number of rows.
59 \membersection{wxDataViewIndexListModel::GetValue
}\label{wxdataviewindexlistmodelgetvalue
}
61 \constfunc{void
}{GetValue
}{\param{wxVariant\&
}{variant
},
\param{unsigned int
}{row
},
\param{unsigned int
}{col
}}
63 Override this to allow getting values from the model.
65 \membersection{wxDataViewIndexListModel::RowAppended
}\label{wxdataviewindexlistmodelrowappended
}
67 \func{void
}{RowAppended
}{\void}
69 Call this after a row has been appended to the model.
71 \membersection{wxDataViewIndexListModel::RowChanged
}\label{wxdataviewindexlistmodelrowchanged
}
73 \func{void
}{RowChanged
}{\param{unsigned int
}{row
}}
75 Call this after a row has been changed.
77 \membersection{wxDataViewIndexListModel::RowDeleted
}\label{wxdataviewindexlistmodelrowdeleted
}
79 \func{void
}{RowDeleted
}{\param{unsigned int
}{row
}}
81 Call this after a row has been deleted.
83 \membersection{wxDataViewIndexListModel::RowInserted
}\label{wxdataviewindexlistmodelrowinserted
}
85 \func{void
}{RowInserted
}{\param{unsigned int
}{before
}}
87 Call this after a row has been inserted at the given position.
89 \membersection{wxDataViewIndexListModel::RowPrepended
}\label{wxdataviewindexlistmodelrowprepended
}
91 \func{void
}{RowPrepended
}{\void}
93 Call this after a row has been prepended to the model.
95 \membersection{wxDataViewIndexListModel::RowValueChanged
}\label{wxdataviewindexlistmodelrowvaluechanged
}
97 \func{void
}{RowValueChanged
}{\param{unsigned int
}{row
},
\param{unsigned int
}{col
}}
99 Call this after a value has been changed.
101 \membersection{wxDataViewIndexListModel::SetValue
}\label{wxdataviewindexlistmodelsetvalue
}
103 \func{bool
}{SetValue
}{\param{const wxVariant\&
}{variant
},
\param{unsigned int
}{row
},
\param{unsigned int
}{col
}}
105 Called in order to set a value in the model.