]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/dataviewtreestore.tex
Added wxVariantData::Clone and wxVariant::Unshare
[wxWidgets.git] / docs / latex / wx / dataviewtreestore.tex
CommitLineData
716a15b7
RR
1
2\section{\class{wxDataViewTreeStore}}\label{wxdataviewtreestore}
3
4wxDataViewTreeStore is a specialised \helpref{wxDataViewModel}{wxdataviewmodel}
5for displaying simple trees very much like \helpref{wxTreeCtrl}{wxtreectrl}
6does and it offers a similar API. This class actually stores the entire
729a8b9b
RR
7tree (therefore its name) and implements all virtual methods from the base
8class so it can be used directly without having to derive any class from it.
716a15b7
RR
9This comes at the price of much reduced flexibility.
10
11\wxheading{Derived from}
12
13\helpref{wxDataViewModel}{wxdataviewmodel}
14
15\wxheading{Include files}
16
17<dataview.h>
18
729a8b9b
RR
19\wxheading{Library}
20
21\helpref{wxAdv}{librarieslist}
22
23
716a15b7
RR
24\membersection{wxDataViewTreeStore::wxDataViewTreeStore}\label{wxdataviewtreestorewxdataviewtreestore}
25
26\func{}{wxDataViewTreeStore}{\void}
27
28Constructor. Creates the invisible root node internally.
29
30\membersection{wxDataViewTreeStore::\destruct{wxDataViewTreeStore}}\label{wxdataviewtreestoredtor}
31
32\func{}{\destruct{wxDataViewTreeStore}}{\void}
33
34Destructor.
35
36\membersection{wxDataViewTreeStore::AppendContainer}\label{wxdataviewtreestoreappendcontainer}
37
38\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}}
39
40Append a container.
41
42\membersection{wxDataViewTreeStore::AppendItem}\label{wxdataviewtreestoreappenditem}
43
44\func{wxDataViewItem}{AppendItem}{\param{const wxDataViewItem\& }{parent}, \param{const wxString\& }{text}, \param{const wxIcon\& }{icon = wxNullIcon}, \param{wxClientData* }{data = NULL}}
45
46Append an item.
47
48\membersection{wxDataViewTreeStore::DeleteAllItems}\label{wxdataviewtreestoredeleteallitems}
49
50\func{void}{DeleteAllItems}{\void}
51
52Delete all item in the model.
53
54\membersection{wxDataViewTreeStore::DeleteChildren}\label{wxdataviewtreestoredeletechildren}
55
56\func{void}{DeleteChildren}{\param{const wxDataViewItem\& }{item}}
57
58Delete all children of the item, but not the item itself.
59
60\membersection{wxDataViewTreeStore::DeleteItem}\label{wxdataviewtreestoredeleteitem}
61
62\func{void}{DeleteItem}{\param{const wxDataViewItem\& }{item}}
63
64Delete this item.
65
66\membersection{wxDataViewTreeStore::GetChildCount}\label{wxdataviewtreestoregetchildcount}
67
68\constfunc{int}{GetChildCount}{\param{const wxDataViewItem\& }{parent}}
69
70Return the number of children of item.
71
72\membersection{wxDataViewTreeStore::GetItemData}\label{wxdataviewtreestoregetitemdata}
73
74\constfunc{wxClientData*}{GetItemData}{\param{const wxDataViewItem\& }{item}}
75
76Returns the client data asoociated with the item.
77
78\membersection{wxDataViewTreeStore::GetItemExpandedIcon}\label{wxdataviewtreestoregetitemexpandedicon}
79
80\constfunc{const wxIcon\&}{GetItemExpandedIcon}{\param{const wxDataViewItem\& }{item}}
81
82Returns the icon to display in expanded containers.
83
84\membersection{wxDataViewTreeStore::GetItemIcon}\label{wxdataviewtreestoregetitemicon}
85
86\constfunc{const wxIcon\&}{GetItemIcon}{\param{const wxDataViewItem\& }{item}}
87
88Returns the icon of the item.
89
90\membersection{wxDataViewTreeStore::GetItemText}\label{wxdataviewtreestoregetitemtext}
91
92\constfunc{wxString}{GetItemText}{\param{const wxDataViewItem\& }{item}}
93
94Returns the text of the item.
95
96\membersection{wxDataViewTreeStore::GetNthChild}\label{wxdataviewtreestoregetnthchild}
97
98\constfunc{wxDataViewItem}{GetNthChild}{\param{const wxDataViewItem\& }{parent}, \param{unsigned int }{pos}}
99
100Returns the nth child item of item.
101
102\membersection{wxDataViewTreeStore::InsertContainer}\label{wxdataviewtreestoreinsertcontainer}
103
104\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}}
105
106Inserts a container after {\it previous}.
107
108\membersection{wxDataViewTreeStore::InsertItem}\label{wxdataviewtreestoreinsertitem}
109
110\func{wxDataViewItem}{InsertItem}{\param{const wxDataViewItem\& }{parent}, \param{const wxDataViewItem\& }{previous}, \param{const wxString\& }{text}, \param{const wxIcon\& }{icon = wxNullIcon}, \param{wxClientData* }{data = NULL}}
111
112Inserts an item after {\it previous}.
113
114\membersection{wxDataViewTreeStore::PrependContainer}\label{wxdataviewtreestoreprependcontainer}
115
116\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}}
117
118Inserts a container before the first child item or {\it parent}.
119
120\membersection{wxDataViewTreeStore::PrependItem}\label{wxdataviewtreestoreprependitem}
121
122\func{wxDataViewItem}{PrependItem}{\param{const wxDataViewItem\& }{parent}, \param{const wxString\& }{text}, \param{const wxIcon\& }{icon = wxNullIcon}, \param{wxClientData* }{data = NULL}}
123
124Inserts an item before the first child item or {\it parent}.
125
126\membersection{wxDataViewTreeStore::SetItemData}\label{wxdataviewtreestoresetitemdata}
127
128\func{void}{SetItemData}{\param{const wxDataViewItem\& }{item}, \param{wxClientData* }{data}}
129
130Sets the client data associated with the item.
131
132\membersection{wxDataViewTreeStore::SetItemExpandedIcon}\label{wxdataviewtreestoresetitemexpandedicon}
133
134\func{void}{SetItemExpandedIcon}{\param{const wxDataViewItem\& }{item}, \param{const wxIcon\& }{icon}}
135
136Sets the expanded icon for the item.
137
138\membersection{wxDataViewTreeStore::SetItemIcon}\label{wxdataviewtreestoresetitemicon}
139
140\func{void}{SetItemIcon}{\param{const wxDataViewItem\& }{item}, \param{const wxIcon\& }{icon}}
141
142Sets the icon for the item.
143
144\membersection{wxDataViewTreeStore::SetItemText}\label{wxdataviewtreestoresetitemtext}
145
146\func{void}{SetItemText}{\param{const wxDataViewItem\& }{item}, \param{const wxString\& }{text}}
147
148Sets the text of the item.