git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49810
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
\latexignore{\rtfignore{\wxheading{Members}}}
\latexignore{\rtfignore{\wxheading{Members}}}
\membersection{wxDataViewModel::wxDataViewModel}\label{wxdataviewmodelwxdataviewmodel}
\func{}{wxDataViewModel}{\void}
Constructor.
\membersection{wxDataViewModel::wxDataViewModel}\label{wxdataviewmodelwxdataviewmodel}
\func{}{wxDataViewModel}{\void}
Constructor.
\membersection{wxDataViewModel::\destruct{wxDataViewModel}}\label{wxdataviewmodeldtor}
\func{}{\destruct{wxDataViewModel}}{\void}
\membersection{wxDataViewModel::\destruct{wxDataViewModel}}\label{wxdataviewmodeldtor}
\func{}{\destruct{wxDataViewModel}}{\void}
Destructor. This should not be called directly. Use DecRef() instead.
Destructor. This should not be called directly. Use DecRef() instead.
\membersection{wxDataViewModel::AddNotifier}\label{wxdataviewmodeladdnotifier}
\func{void}{AddNotifier}{\param{wxDataViewModelNotifier* }{notifier}}
\membersection{wxDataViewModel::AddNotifier}\label{wxdataviewmodeladdnotifier}
\func{void}{AddNotifier}{\param{wxDataViewModelNotifier* }{notifier}}
Adds a \helpref{wxDataViewModelNotifier}{wxdataviewmodelnotifier}
to the model.
Adds a \helpref{wxDataViewModelNotifier}{wxdataviewmodelnotifier}
to the model.
\membersection{wxDataViewModel::Cleared}\label{wxdataviewmodelcleared}
\func{virtual bool}{Cleared}{\void}
Called to inform the model that all data has been deleted.
\membersection{wxDataViewModel::Cleared}\label{wxdataviewmodelcleared}
\func{virtual bool}{Cleared}{\void}
Called to inform the model that all data has been deleted.
\membersection{wxDataViewModel::Compare}\label{wxdataviewmodelcompare}
\func{virtual int}{Compare}{\param{const wxDataViewItem\& }{item1}, \param{const wxDataViewItem\& }{item2}, \param{unsigned int }{column}, \param{bool }{ascending}}
\membersection{wxDataViewModel::Compare}\label{wxdataviewmodelcompare}
\func{virtual int}{Compare}{\param{const wxDataViewItem\& }{item1}, \param{const wxDataViewItem\& }{item2}, \param{unsigned int }{column}, \param{bool }{ascending}}
See also \helpref{HasDefaultCompare}{wxdataviewmodelhasdefaultcompare}.
See also \helpref{HasDefaultCompare}{wxdataviewmodelhasdefaultcompare}.
\membersection{wxDataViewModel::GetColumnCount}\label{wxdataviewmodelgetcolumncount}
\constfunc{virtual unsigned int}{GetColumnCount}{\void}
Override this to indicate the number of columns in the model.
\membersection{wxDataViewModel::GetColumnCount}\label{wxdataviewmodelgetcolumncount}
\constfunc{virtual unsigned int}{GetColumnCount}{\void}
Override this to indicate the number of columns in the model.
\membersection{wxDataViewModel::GetColumnType}\label{wxdataviewmodelgetcolumntype}
\constfunc{virtual wxString}{GetColumnType}{\param{unsigned int }{col}}
\membersection{wxDataViewModel::GetColumnType}\label{wxdataviewmodelgetcolumntype}
\constfunc{virtual wxString}{GetColumnType}{\param{unsigned int }{col}}
column specified by {\it col}. This should return a string
indicating the type of data as reported by \helpref{wxVariant}{wxvariant}.
column specified by {\it col}. This should return a string
indicating the type of data as reported by \helpref{wxVariant}{wxvariant}.
\membersection{wxDataViewModel::GetChildren}\label{wxdataviewmodelgetchildren}
\constfunc{virtual unsigned int}{GetChildren}{\param{const wxDataViewItem\& }{item}, \param{wxDataViewItemArray\& }{children} }
\membersection{wxDataViewModel::GetChildren}\label{wxdataviewmodelgetchildren}
\constfunc{virtual unsigned int}{GetChildren}{\param{const wxDataViewItem\& }{item}, \param{wxDataViewItemArray\& }{children} }
Override this so the control can query the child items of
an item. Returns the number of items.
Override this so the control can query the child items of
an item. Returns the number of items.
\membersection{wxDataViewModel::GetParent}\label{wxdataviewmodelgetparent}
\constfunc{virtual wxDataViewItem}{GetParent}{\param{const wxDataViewItem\& }{item}}
\membersection{wxDataViewModel::GetParent}\label{wxdataviewmodelgetparent}
\constfunc{virtual wxDataViewItem}{GetParent}{\param{const wxDataViewItem\& }{item}}
of {\it item} or an invalid wxDataViewItem if the the root item is
the parent item.
of {\it item} or an invalid wxDataViewItem if the the root item is
the parent item.
\membersection{wxDataViewModel::GetValue}\label{wxdataviewmodelgetvalue}
\constfunc{virtual void}{GetValue}{\param{wxVariant\& }{variant}, \param{const wxDataViewItem\& }{item}, \param{unsigned int }{col}}
\membersection{wxDataViewModel::GetValue}\label{wxdataviewmodelgetvalue}
\constfunc{virtual void}{GetValue}{\param{wxVariant\& }{variant}, \param{const wxDataViewItem\& }{item}, \param{unsigned int }{col}}
A \helpref{wxVariant}{wxvariant} is used to store the data.
A \helpref{wxVariant}{wxvariant} is used to store the data.
\membersection{wxDataViewModel::HasContainerColumns}\label{wxdataviewmodelhascontainercolumns}
\constfunc{virtual bool}{HasContainerColumns}{\param{const wxDataViewItem\& }{item}}
\membersection{wxDataViewModel::HasContainerColumns}\label{wxdataviewmodelhascontainercolumns}
\constfunc{virtual bool}{HasContainerColumns}{\param{const wxDataViewItem\& }{item}}
acts a normal item with entries for futher columns. By
default returns {\it false}.
acts a normal item with entries for futher columns. By
default returns {\it false}.
\membersection{wxDataViewModel::HasDefaultCompare}\label{wxdataviewmodelhasdefaultcompare}
\constfunc{virtual bool}{HasDefaultCompare}{\void}
\membersection{wxDataViewModel::HasDefaultCompare}\label{wxdataviewmodelhasdefaultcompare}
\constfunc{virtual bool}{HasDefaultCompare}{\void}
should be used. See also \helpref{wxDataViewIndexListModel}{wxdataviewindexlistmodel}
for a model which makes use of this.
should be used. See also \helpref{wxDataViewIndexListModel}{wxdataviewindexlistmodel}
for a model which makes use of this.
\membersection{wxDataViewModel::IsContainer}\label{wxdataviewmodeliscontainer}
\constfunc{virtual bool}{IsContainer}{\param{const wxDataViewItem\& }{item}}
\membersection{wxDataViewModel::IsContainer}\label{wxdataviewmodeliscontainer}
\constfunc{virtual bool}{IsContainer}{\param{const wxDataViewItem\& }{item}}
Override this to indicate of {\it item} is a container, i.e. if
it can have child items.
Override this to indicate of {\it item} is a container, i.e. if
it can have child items.
\membersection{wxDataViewModel::ItemAdded}\label{wxdataviewmodelitemadded}
\func{virtual bool}{ItemAdded}{\param{const wxDataViewItem\& }{parent}, \param{const wxDataViewItem\& }{item}}
\membersection{wxDataViewModel::ItemAdded}\label{wxdataviewmodelitemadded}
\func{virtual bool}{ItemAdded}{\param{const wxDataViewItem\& }{parent}, \param{const wxDataViewItem\& }{item}}
Call this to inform the model that an item has been added
to the data.
Call this to inform the model that an item has been added
to the data.
\membersection{wxDataViewModel::ItemChanged}\label{wxdataviewmodelitemchanged}
\func{virtual bool}{ItemChanged}{\param{const wxDataViewItem\& }{item}}
\membersection{wxDataViewModel::ItemChanged}\label{wxdataviewmodelitemchanged}
\func{virtual bool}{ItemChanged}{\param{const wxDataViewItem\& }{item}}
This will eventually emit a wxEVT\_DATAVIEW\_ITEM\_VALUE\_CHANGED
event (in which the column fields will not be set) to the user.
This will eventually emit a wxEVT\_DATAVIEW\_ITEM\_VALUE\_CHANGED
event (in which the column fields will not be set) to the user.
+
+\membersection{wxDataViewModel::ItemDeleted}\label{wxdataviewmodelitemdeleted}
+
+\func{virtual bool}{ItemDeleted}{\param{const wxDataViewItem\& }{parent}, \param{const wxDataViewItem\& }{item}}
+
+Call this to inform the model that an item has been deleted from the data.
+
+
\membersection{wxDataViewModel::ItemsAdded}\label{wxdataviewmodelitemsadded}
\func{virtual bool}{ItemsAdded}{\param{const wxDataViewItem\& }{parent}, \param{const wxDataViewItemArray\& }{items}}
\membersection{wxDataViewModel::ItemsAdded}\label{wxdataviewmodelitemsadded}
\func{virtual bool}{ItemsAdded}{\param{const wxDataViewItem\& }{parent}, \param{const wxDataViewItemArray\& }{items}}
Call this to inform the model that several items have been added
to the data.
Call this to inform the model that several items have been added
to the data.
\membersection{wxDataViewModel::ItemsChanged}\label{wxdataviewmodelitemschanged}
\func{virtual bool}{ItemsChanged}{\param{const wxDataViewItemArray\& }{items}}
\membersection{wxDataViewModel::ItemsChanged}\label{wxdataviewmodelitemschanged}
\func{virtual bool}{ItemsChanged}{\param{const wxDataViewItemArray\& }{items}}
This will eventually emit wxEVT\_DATAVIEW\_ITEM\_VALUE\_CHANGED
events (in which the column fields will not be set) to the user.
This will eventually emit wxEVT\_DATAVIEW\_ITEM\_VALUE\_CHANGED
events (in which the column fields will not be set) to the user.
\membersection{wxDataViewModel::ItemsDeleted}\label{wxdataviewmodelitemsdeleted}
\func{virtual bool}{ItemsDeleted}{\param{const wxDataViewItem\& }{parent}, \param{const wxDataViewItemArray\& }{items}}
Call this to inform the model that several items have been deleted.
\membersection{wxDataViewModel::ItemsDeleted}\label{wxdataviewmodelitemsdeleted}
\func{virtual bool}{ItemsDeleted}{\param{const wxDataViewItem\& }{parent}, \param{const wxDataViewItemArray\& }{items}}
Call this to inform the model that several items have been deleted.
\membersection{wxDataViewModel::RemoveNotifier}\label{wxdataviewmodelremovenotifier}
\func{void}{RemoveNotifier}{\param{wxDataViewModelNotifier* }{notifier}}
Remove the {\it notifier} from the list of notifiers.
\membersection{wxDataViewModel::RemoveNotifier}\label{wxdataviewmodelremovenotifier}
\func{void}{RemoveNotifier}{\param{wxDataViewModelNotifier* }{notifier}}
Remove the {\it notifier} from the list of notifiers.
\membersection{wxDataViewModel::Resort}\label{wxdataviewmodelresort}
\func{virtual void}{Resort}{\void}
\membersection{wxDataViewModel::Resort}\label{wxdataviewmodelresort}
\func{virtual void}{Resort}{\void}
Call this to initiate a resort after the sort function has
been changed.
Call this to initiate a resort after the sort function has
been changed.
\membersection{wxDataViewModel::SetValue}\label{wxdataviewmodelsetvalue}
\func{virtual bool}{SetValue}{\param{const wxVariant\& }{variant}, \param{const wxDataViewItem\& }{item}, \param{unsigned int }{col}}
\membersection{wxDataViewModel::SetValue}\label{wxdataviewmodelsetvalue}
\func{virtual bool}{SetValue}{\param{const wxVariant\& }{variant}, \param{const wxDataViewItem\& }{item}, \param{unsigned int }{col}}
Afterwards \helpref{ValueChanged}{wxdataviewmodelvaluechanged}
has to be called!
Afterwards \helpref{ValueChanged}{wxdataviewmodelvaluechanged}
has to be called!
\membersection{wxDataViewModel::ValueChanged}\label{wxdataviewmodelvaluechanged}
\func{virtual bool}{ValueChanged}{\param{const wxDataViewItem\& }{item}, \param{unsigned int }{col}}
\membersection{wxDataViewModel::ValueChanged}\label{wxdataviewmodelvaluechanged}
\func{virtual bool}{ValueChanged}{\param{const wxDataViewItem\& }{item}, \param{unsigned int }{col}}