2 \section{\class{wxDataViewTreeStore
}}\label{wxdataviewtreestore
}
4 wxDataViewTreeStore is a specialised
\helpref{wxDataViewModel
}{wxdataviewmodel
}
5 for displaying simple trees very much like
\helpref{wxTreeCtrl
}{wxtreectrl
}
6 does and it offers a similar API. This class actually stores the entire
7 tree (therefore its name) and implements all virtual methods from the base
8 class so it can be used directly without having to derive any class from it.
9 This comes at the price of much reduced flexibility.
11 \wxheading{Derived from
}
13 \helpref{wxDataViewModel
}{wxdataviewmodel
}
15 \wxheading{Include files
}
21 \helpref{wxAdv
}{librarieslist
}
24 \latexignore{\rtfignore{\wxheading{Members
}}}
26 \membersection{wxDataViewTreeStore::wxDataViewTreeStore
}\label{wxdataviewtreestorewxdataviewtreestore
}
28 \func{}{wxDataViewTreeStore
}{\void}
30 Constructor. Creates the invisible root node internally.
32 \membersection{wxDataViewTreeStore::
\destruct{wxDataViewTreeStore
}}\label{wxdataviewtreestoredtor
}
34 \func{}{\destruct{wxDataViewTreeStore
}}{\void}
38 \membersection{wxDataViewTreeStore::AppendContainer
}\label{wxdataviewtreestoreappendcontainer
}
40 \func{wxDataViewItem
}{AppendContainer
}{\param{const wxDataViewItem\&
}{parent
},
\param{const wxString\&
}{text
},
\param{const wxIcon\&
}{icon = wxNullIcon
},
\param{const wxIcon\&
}{expanded = wxNullIcon
},
\param{wxClientData*
}{data = NULL
}}
44 \membersection{wxDataViewTreeStore::AppendItem
}\label{wxdataviewtreestoreappenditem
}
46 \func{wxDataViewItem
}{AppendItem
}{\param{const wxDataViewItem\&
}{parent
},
\param{const wxString\&
}{text
},
\param{const wxIcon\&
}{icon = wxNullIcon
},
\param{wxClientData*
}{data = NULL
}}
50 \membersection{wxDataViewTreeStore::DeleteAllItems
}\label{wxdataviewtreestoredeleteallitems
}
52 \func{void
}{DeleteAllItems
}{\void}
54 Delete all item in the model.
56 \membersection{wxDataViewTreeStore::DeleteChildren
}\label{wxdataviewtreestoredeletechildren
}
58 \func{void
}{DeleteChildren
}{\param{const wxDataViewItem\&
}{item
}}
60 Delete all children of the item, but not the item itself.
62 \membersection{wxDataViewTreeStore::DeleteItem
}\label{wxdataviewtreestoredeleteitem
}
64 \func{void
}{DeleteItem
}{\param{const wxDataViewItem\&
}{item
}}
68 \membersection{wxDataViewTreeStore::GetChildCount
}\label{wxdataviewtreestoregetchildcount
}
70 \constfunc{int
}{GetChildCount
}{\param{const wxDataViewItem\&
}{parent
}}
72 Return the number of children of item.
74 \membersection{wxDataViewTreeStore::GetItemData
}\label{wxdataviewtreestoregetitemdata
}
76 \constfunc{wxClientData*
}{GetItemData
}{\param{const wxDataViewItem\&
}{item
}}
78 Returns the client data asoociated with the item.
80 \membersection{wxDataViewTreeStore::GetItemExpandedIcon
}\label{wxdataviewtreestoregetitemexpandedicon
}
82 \constfunc{const wxIcon\&
}{GetItemExpandedIcon
}{\param{const wxDataViewItem\&
}{item
}}
84 Returns the icon to display in expanded containers.
86 \membersection{wxDataViewTreeStore::GetItemIcon
}\label{wxdataviewtreestoregetitemicon
}
88 \constfunc{const wxIcon\&
}{GetItemIcon
}{\param{const wxDataViewItem\&
}{item
}}
90 Returns the icon of the item.
92 \membersection{wxDataViewTreeStore::GetItemText
}\label{wxdataviewtreestoregetitemtext
}
94 \constfunc{wxString
}{GetItemText
}{\param{const wxDataViewItem\&
}{item
}}
96 Returns the text of the item.
98 \membersection{wxDataViewTreeStore::GetNthChild
}\label{wxdataviewtreestoregetnthchild
}
100 \constfunc{wxDataViewItem
}{GetNthChild
}{\param{const wxDataViewItem\&
}{parent
},
\param{unsigned int
}{pos
}}
102 Returns the nth child item of item.
104 \membersection{wxDataViewTreeStore::InsertContainer
}\label{wxdataviewtreestoreinsertcontainer
}
106 \func{wxDataViewItem
}{InsertContainer
}{\param{const wxDataViewItem\&
}{parent
},
\param{const wxDataViewItem\&
}{previous
},
\param{const wxString\&
}{text
},
\param{const wxIcon\&
}{icon = wxNullIcon
},
\param{const wxIcon\&
}{expanded = wxNullIcon
},
\param{wxClientData*
}{data = NULL
}}
108 Inserts a container after
{\it previous
}.
110 \membersection{wxDataViewTreeStore::InsertItem
}\label{wxdataviewtreestoreinsertitem
}
112 \func{wxDataViewItem
}{InsertItem
}{\param{const wxDataViewItem\&
}{parent
},
\param{const wxDataViewItem\&
}{previous
},
\param{const wxString\&
}{text
},
\param{const wxIcon\&
}{icon = wxNullIcon
},
\param{wxClientData*
}{data = NULL
}}
114 Inserts an item after
{\it previous
}.
116 \membersection{wxDataViewTreeStore::PrependContainer
}\label{wxdataviewtreestoreprependcontainer
}
118 \func{wxDataViewItem
}{PrependContainer
}{\param{const wxDataViewItem\&
}{parent
},
\param{const wxString\&
}{text
},
\param{const wxIcon\&
}{icon = wxNullIcon
},
\param{const wxIcon\&
}{expanded = wxNullIcon
},
\param{wxClientData*
}{data = NULL
}}
120 Inserts a container before the first child item or
{\it parent
}.
122 \membersection{wxDataViewTreeStore::PrependItem
}\label{wxdataviewtreestoreprependitem
}
124 \func{wxDataViewItem
}{PrependItem
}{\param{const wxDataViewItem\&
}{parent
},
\param{const wxString\&
}{text
},
\param{const wxIcon\&
}{icon = wxNullIcon
},
\param{wxClientData*
}{data = NULL
}}
126 Inserts an item before the first child item or
{\it parent
}.
128 \membersection{wxDataViewTreeStore::SetItemData
}\label{wxdataviewtreestoresetitemdata
}
130 \func{void
}{SetItemData
}{\param{const wxDataViewItem\&
}{item
},
\param{wxClientData*
}{data
}}
132 Sets the client data associated with the item.
134 \membersection{wxDataViewTreeStore::SetItemExpandedIcon
}\label{wxdataviewtreestoresetitemexpandedicon
}
136 \func{void
}{SetItemExpandedIcon
}{\param{const wxDataViewItem\&
}{item
},
\param{const wxIcon\&
}{icon
}}
138 Sets the expanded icon for the item.
140 \membersection{wxDataViewTreeStore::SetItemIcon
}\label{wxdataviewtreestoresetitemicon
}
142 \func{void
}{SetItemIcon
}{\param{const wxDataViewItem\&
}{item
},
\param{const wxIcon\&
}{icon
}}
144 Sets the icon for the item.
146 \membersection{wxDataViewTreeStore::SetItemText
}\label{wxdataviewtreestoresetitemtext
}
148 \func{void
}{SetItemText
}{\param{const wxDataViewItem\&
}{item
},
\param{const wxString\&
}{text
}}
150 Sets the text of the item.