Lines Matching refs:item
86 // normal tree item state (whether it is selected or not).
88 // which corresponds to an app-defined item state (for example,
99 // member functions of wxTreeItem because they must know the tree the item
107 wxString GetItemText(const wxTreeItemId& item) const;
108 // get one of the images associated with the item (normal by default)
109 int GetItemImage(const wxTreeItemId& item,
111 // get the data associated with the item
112 wxTreeItemData *GetItemData(const wxTreeItemId& item) const;
114 // get the item's text colour
115 wxColour GetItemTextColour(const wxTreeItemId& item) const;
117 // get the item's background colour
118 wxColour GetItemBackgroundColour(const wxTreeItemId& item) const;
120 // get the item's font
121 wxFont GetItemFont(const wxTreeItemId& item) const;
127 void SetItemText(const wxTreeItemId& item, const wxString& text);
128 // get one of the images associated with the item (normal by default)
129 void SetItemImage(const wxTreeItemId& item, int image,
131 // associate some data with the item
132 void SetItemData(const wxTreeItemId& item, wxTreeItemData *data);
134 // force appearance of [+] button near the item. This is useful to
138 void SetItemHasChildren(const wxTreeItemId& item, bool has = true);
140 // the item will be shown in bold
141 void SetItemBold(const wxTreeItemId& item, bool bold = true);
143 // the item will be shown with a drop highlight
144 void SetItemDropHighlight(const wxTreeItemId& item, bool highlight = true);
147 void SetItemTextColour(const wxTreeItemId& item, const wxColour& col);
150 void SetItemBackgroundColour(const wxTreeItemId& item, const wxColour& col);
153 void SetItemFont(const wxTreeItemId& item, const wxFont& font);
155 // item status inquiries
158 // is the item visible (it might be outside the view or not expanded)?
159 bool IsVisible(const wxTreeItemId& item) const;
160 // does the item has any children?
161 bool ItemHasChildren(const wxTreeItemId& item) const;
162 // is the item expanded (only makes sense if HasChildren())?
163 bool IsExpanded(const wxTreeItemId& item) const;
164 // is this item currently selected (the same as has focus)?
165 bool IsSelected(const wxTreeItemId& item) const;
166 // is item text in bold font?
167 bool IsBold(const wxTreeItemId& item) const;
174 size_t GetChildrenCount(const wxTreeItemId& item,
180 // wxTreeItemId.IsOk() will return false if there is no such item
182 // get the root tree item
185 // get the item currently selected (may return NULL if no selection)
188 // get the items currently selected, return the number of such item
194 // get the parent of this item (may return NULL if root)
195 wxTreeItemId GetItemParent(const wxTreeItemId& item) const;
204 // get the first child of this item
205 wxTreeItemId GetFirstChild(const wxTreeItemId& item,
208 wxTreeItemId GetNextChild(const wxTreeItemId& item,
210 // get the last child of this item - this method doesn't use cookies
211 wxTreeItemId GetLastChild(const wxTreeItemId& item) const;
213 // get the next sibling of this item
214 wxTreeItemId GetNextSibling(const wxTreeItemId& item) const;
216 wxTreeItemId GetPrevSibling(const wxTreeItemId& item) const;
218 // get first visible item
220 // get the next visible item: item must be visible itself!
222 wxTreeItemId GetNextVisible(const wxTreeItemId& item) const;
223 // get the previous visible item: item must be visible itself!
224 wxTreeItemId GetPrevVisible(const wxTreeItemId& item) const;
234 // insert a new item in as the first child of the parent
240 // insert a new item after a given one
247 // insert a new item before the one with the given index
254 // insert a new item in as the last child of the parent
260 // delete this item and associated data if any
261 void Delete(const wxTreeItemId& item);
262 // delete all children (but don't delete the item itself)
264 void DeleteChildren(const wxTreeItemId& item);
269 // expand this item
270 void Expand(const wxTreeItemId& item);
271 // collapse the item without removing its children
272 void Collapse(const wxTreeItemId& item);
273 // collapse the item and remove all children
274 void CollapseAndReset(const wxTreeItemId& item);
276 void Toggle(const wxTreeItemId& item);
278 // remove the selection from currently selected item (if any)
282 // select this item
283 void SelectItem(const wxTreeItemId& item, bool select = true);
284 // unselect this item
285 void UnselectItem(const wxTreeItemId& item);
286 // toggle item selection
287 void ToggleItemSelection(const wxTreeItemId& item);
289 // make sure this item is visible (expanding the parent item and/or
290 // scrolling to this item if necessary)
291 void EnsureVisible(const wxTreeItemId& item);
292 // scroll to this item (but don't expand its parent)
293 void ScrollTo(const wxTreeItemId& item);
295 // start editing the item label: this (temporarily) replaces the item
296 // with a one line edit control. The item will be selected if it hadn't
299 wxTextCtrl* EditLabel(const wxTreeItemId& item,
301 // returns the same pointer as StartEdit() if the item is being edited,
302 // NULL otherwise (it's assumed that no more than one item may be
305 // end editing and accept or discard the changes to item label
306 void EndEditLabel(const wxTreeItemId& item, bool discardChanges = false);
310 // or +1 if the first item is less than, equal to or greater than the
312 // of item labels (GetText)
315 // sort the children of this item using OnCompareItems
318 void SortChildren(const wxTreeItemId& item);
323 // determine to which item (if any) belongs the given point (the
334 // get the bounding rectangle of the item (or of its label only)
335 bool GetBoundingRect(const wxTreeItemId& item,
356 // get/set the check state for the item (only for wxTR_MULTIPLE)
357 bool IsItemChecked(const wxTreeItemId& item) const;
358 void SetItemCheck(const wxTreeItemId& item, bool check = true);
360 // set/get the item state.image (state == -1 means cycle to the next one)
368 // refresh a single item
369 void RefreshItem(const wxTreeItemId& item);
371 wxTextCtrl *m_textCtrl; // used while editing the item label
384 inline void DoExpand(const wxTreeItemId& item, int flag);
392 int DoGetItemImageFromData(const wxTreeItemId& item,
394 void DoSetItemImageFromData(const wxTreeItemId& item,
397 void DoSetItemImages(const wxTreeItemId& item, int image, int imageSel);
401 // support for additional item images which we implement using
403 void SetIndirectItemData(const wxTreeItemId& item,
405 bool HasIndirectData(const wxTreeItemId& item) const;
409 // the hash storing the items attributes (indexed by item ids)
418 // Virtual root item, if wxTR_HIDE_ROOT is set.
421 // the starting item for selection with Shift