1 \section{\class{wxDataViewTreeCtrl
}}\label{wxdataviewtreectrl
}
3 This class is a
\helpref{wxDataViewCtrl
}{wxdataviewctrl
} which internally
4 uses a
\helpref{wxDataViewTreeStore
}{wxdataviewtreestore
} and forwards
5 most of its API to that class. Additionally, it uses a
\helpref{wxImageList
}{wximagelist
}
6 to store a list of icons. The main purpose of this class is to look
7 like a
\helpref{wxTreeCtrl
}{wxtreectrl
} to make a transition from it
8 to the wxDataViewCtrl class simpler.
10 \wxheading{Derived from
}
12 \helpref{wxDataViewCtrl
}{wxdataviewctrl
}
14 \wxheading{Include files
}
18 \wxheading{Data structures
}
20 \latexignore{\rtfignore{\wxheading{Members
}}}
23 \membersection{wxDataViewTreeCtrl::wxDataViewTreeCtrl
}\label{wxdataviewtreectrlwxdataviewtreectrl
}
25 \func{}{wxDataViewTreeCtrl
}{\void}
29 \func{}{wxDataViewTreeCtrl
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{id
},
\param{const wxPoint\&
}{pos = wxDefaultPosition
},
\param{const wxSize\&
}{size = wxDefaultSize
},
\param{long
}{style = wxDV
\_NO\_HEADER},
\param{const wxValidator\&
}{validator = wxDefaultValidator
}}
31 Constructor. Calls
\helpref{Create
}{wxdataviewtreectrlcreate
}.
33 \membersection{wxDataViewTreeCtrl::
\destruct{wxDataViewTreeCtrl
}}\label{wxdataviewtreectrldtor
}
35 \func{}{\destruct{wxDataViewTreeCtrl
}}{\void}
37 Destructor. Deletes the image list if any.
39 \membersection{wxDataViewTreeCtrl::AppendContainer
}\label{wxdataviewtreectrlappendcontainer
}
41 \func{wxDataViewItem
}{AppendContainer
}{\param{const wxDataViewItem\&
}{parent
},
\param{const wxString\&
}{text
},
\param{int
}{icon = -
1},
\param{int
}{expanded = -
1},
\param{wxClientData*
}{data = NULL
}}
44 \membersection{wxDataViewTreeCtrl::AppendItem
}\label{wxdataviewtreectrlappenditem
}
46 \func{wxDataViewItem
}{AppendItem
}{\param{const wxDataViewItem\&
}{parent
},
\param{const wxString\&
}{text
},
\param{int
}{icon = -
1},
\param{wxClientData*
}{data = NULL
}}
49 \membersection{wxDataViewTreeCtrl::Create
}\label{wxdataviewtreectrlcreate
}
51 \func{bool
}{Create
}{\param{wxWindow*
}{parent
},
\param{wxWindowID
}{id
},
\param{const wxPoint\&
}{pos = wxDefaultPosition
},
\param{const wxSize\&
}{size = wxDefaultSize
},
\param{long
}{style = wxDV
\_NO\_HEADER},
\param{const wxValidator\&
}{validator = wxDefaultValidator
}}
53 Creates the control and a
\helpref{wxDataViewTreeStore
}{wxdataviewtreestore
} as
56 \membersection{wxDataViewTreeCtrl::DeleteAllItems
}\label{wxdataviewtreectrldeleteallitems
}
58 \func{void
}{DeleteAllItems
}{\void}
60 Calls the identical method from wxDataViewTreeStore.
62 \membersection{wxDataViewTreeCtrl::DeleteChildren
}\label{wxdataviewtreectrldeletechildren
}
64 \func{void
}{DeleteChildren
}{\param{const wxDataViewItem\&
}{item
}}
66 Calls the identical method from wxDataViewTreeStore.
68 \membersection{wxDataViewTreeCtrl::DeleteItem
}\label{wxdataviewtreectrldeleteitem
}
70 \func{void
}{DeleteItem
}{\param{const wxDataViewItem\&
}{item
}}
72 Calls the identical method from wxDataViewTreeStore.
74 \membersection{wxDataViewTreeCtrl::GetChildCount
}\label{wxdataviewtreectrlgetchildcount
}
76 \constfunc{int
}{GetChildCount
}{\param{const wxDataViewItem\&
}{parent
}}
78 Calls the identical method from wxDataViewTreeStore.
80 \membersection{wxDataViewTreeCtrl::GetImageList
}\label{wxdataviewtreectrlgetimagelist
}
82 \func{wxImageList*
}{GetImageList
}{\void}
84 Returns the image list.
86 \membersection{wxDataViewTreeCtrl::GetItemData
}\label{wxdataviewtreectrlgetitemdata
}
88 \constfunc{wxClientData*
}{GetItemData
}{\param{const wxDataViewItem\&
}{item
}}
90 Calls the identical method from wxDataViewTreeStore.
92 \membersection{wxDataViewTreeCtrl::GetItemExpandedIcon
}\label{wxdataviewtreectrlgetitemexpandedicon
}
94 \constfunc{const wxIcon\&
}{GetItemExpandedIcon
}{\param{const wxDataViewItem\&
}{item
}}
96 Calls the identical method from wxDataViewTreeStore.
98 \membersection{wxDataViewTreeCtrl::GetItemIcon
}\label{wxdataviewtreectrlgetitemicon
}
100 \constfunc{const wxIcon\&
}{GetItemIcon
}{\param{const wxDataViewItem\&
}{item
}}
102 Calls the identical method from wxDataViewTreeStore.
104 \membersection{wxDataViewTreeCtrl::GetItemText
}\label{wxdataviewtreectrlgetitemtext
}
106 \constfunc{wxString
}{GetItemText
}{\param{const wxDataViewItem\&
}{item
}}
108 Calls the identical method from wxDataViewTreeStore.
110 \membersection{wxDataViewTreeCtrl::GetNthChild
}\label{wxdataviewtreectrlgetnthchild
}
112 \constfunc{wxDataViewItem
}{GetNthChild
}{\param{const wxDataViewItem\&
}{parent
},
\param{unsigned int
}{pos
}}
114 Calls the identical method from wxDataViewTreeStore.
116 \membersection{wxDataViewTreeCtrl::GetStore
}\label{wxdataviewtreectrlgetstore
}
118 \func{wxDataViewTreeStore*
}{GetStore
}{\void}
120 \constfunc{const wxDataViewTreeStore*
}{GetStore
}{\void}
124 \membersection{wxDataViewTreeCtrl::InsertContainer
}\label{wxdataviewtreectrlinsertcontainer
}
126 \func{wxDataViewItem
}{InsertContainer
}{\param{const wxDataViewItem\&
}{parent
},
\param{const wxDataViewItem\&
}{previous
},
\param{const wxString\&
}{text
},
\param{int
}{icon = -
1},
\param{int
}{expanded = -
1},
\param{wxClientData*
}{data = NULL
}}
128 Calls the same method from wxDataViewTreeStore but uess
129 and index position in the image list instead of a wxIcon.
131 \membersection{wxDataViewTreeCtrl::InsertItem
}\label{wxdataviewtreectrlinsertitem
}
133 \func{wxDataViewItem
}{InsertItem
}{\param{const wxDataViewItem\&
}{parent
},
\param{const wxDataViewItem\&
}{previous
},
\param{const wxString\&
}{text
},
\param{int
}{icon = -
1},
\param{wxClientData*
}{data = NULL
}}
135 Calls the same method from wxDataViewTreeStore but uess
136 and index position in the image list instead of a wxIcon.
138 \membersection{wxDataViewTreeCtrl::PrependContainer
}\label{wxdataviewtreectrlprependcontainer
}
140 \func{wxDataViewItem
}{PrependContainer
}{\param{const wxDataViewItem\&
}{parent
},
\param{const wxString\&
}{text
},
\param{int
}{icon = -
1},
\param{int
}{expanded = -
1},
\param{wxClientData*
}{data = NULL
}}
142 Calls the same method from wxDataViewTreeStore but uess
143 and index position in the image list instead of a wxIcon.
145 \membersection{wxDataViewTreeCtrl::PrependItem
}\label{wxdataviewtreectrlprependitem
}
147 \func{wxDataViewItem
}{PrependItem
}{\param{const wxDataViewItem\&
}{parent
},
\param{const wxString\&
}{text
},
\param{int
}{icon = -
1},
\param{wxClientData*
}{data = NULL
}}
149 Calls the same method from wxDataViewTreeStore but uess
150 and index position in the image list instead of a wxIcon.
152 \membersection{wxDataViewTreeCtrl::SetImageList
}\label{wxdataviewtreectrlsetimagelist
}
154 \func{void
}{SetImageList
}{\param{wxImageList*
}{imagelist
}}
158 \membersection{wxDataViewTreeCtrl::SetItemData
}\label{wxdataviewtreectrlsetitemdata
}
160 \func{void
}{SetItemData
}{\param{const wxDataViewItem\&
}{item
},
\param{wxClientData*
}{data
}}
162 Calls the identical method from wxDataViewTreeStore.
165 \membersection{wxDataViewTreeCtrl::SetItemExpandedIcon
}\label{wxdataviewtreectrlsetitemexpandedicon
}
167 \func{void
}{SetItemExpandedIcon
}{\param{const wxDataViewItem\&
}{item
},
\param{const wxIcon\&
}{icon
}}
169 Calls the identical method from wxDataViewTreeStore.
172 \membersection{wxDataViewTreeCtrl::SetItemIcon
}\label{wxdataviewtreectrlsetitemicon
}
174 \func{void
}{SetItemIcon
}{\param{const wxDataViewItem\&
}{item
},
\param{const wxIcon\&
}{icon
}}
176 Calls the identical method from wxDataViewTreeStore.
179 \membersection{wxDataViewTreeCtrl::SetItemText
}\label{wxdataviewtreectrlsetitemtext
}
181 \func{void
}{SetItemText
}{\param{const wxDataViewItem\&
}{item
},
\param{const wxString\&
}{text
}}
183 Calls the identical method from wxDataViewTreeStore.