virtual size_t GetSelections(wxArrayTreeItemIds& selections) const;
virtual wxTreeItemId GetFocusedItem() const;
+ virtual void ClearFocusedItem();
+ virtual void SetFocusedItem(const wxTreeItemId& item);
+
+
virtual wxTreeItemId GetItemParent(const wxTreeItemId& item) const;
virtual wxTreeItemId GetFirstChild(const wxTreeItemId& item,
wxTreeItemIdValue& cookie) const;
virtual void Unselect();
virtual void UnselectAll();
virtual void SelectItem(const wxTreeItemId& item, bool select = true);
+ virtual void SelectChildren(const wxTreeItemId& parent);
virtual void EnsureVisible(const wxTreeItemId& item);
virtual void ScrollTo(const wxTreeItemId& item);
virtual wxTextCtrl *EditLabel(const wxTreeItemId& item,
- wxClassInfo* textCtrlClass = CLASSINFO(wxTextCtrl));
+ wxClassInfo* textCtrlClass = wxCLASSINFO(wxTextCtrl));
virtual wxTextCtrl *GetEditControl() const;
virtual void EndEditLabel(const wxTreeItemId& WXUNUSED(item),
bool discardChanges = false)
virtual bool CanApplyThemeBorder() const { return false; }
protected:
+ // Implement "update locking" in a custom way for this control.
+ virtual void DoFreeze();
+ virtual void DoThaw();
+
// SetImageList helper
void SetAnyImageList(wxImageList *imageList, int which);
void DoToggleItemSelection(const wxTreeItemId& item);
void DoUnselectAll();
+ void DoSelectChildren(const wxTreeItemId& parent);
void DeleteTextCtrl();
// and the tree has wxTR_HIDE_ROOT style)
bool IsHiddenRoot(const wxTreeItemId& item) const;
- // clears/sets the currently focused item
- void ClearFocusedItem();
- void SetFocusedItem(const wxTreeItemId& item);
// check if the given flags (taken from TV_HITTESTINFO structure)
// indicate a position "on item": this is less trivial than just checking