From bf41d9034a22278bc5cc1d204478c24aace78d55 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 7 Jan 2007 15:53:03 +0000 Subject: [PATCH] added wxTreeCtrl::CollapseAll[Children]() and IsEmpty() to version-script and use wxABI checks for them git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44119 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/treectrl.h | 4 ++++ version-script.in | 3 +++ 2 files changed, 7 insertions(+) diff --git a/include/wx/treectrl.h b/include/wx/treectrl.h index 923d1b945a..a2c307834c 100644 --- a/include/wx/treectrl.h +++ b/include/wx/treectrl.h @@ -172,8 +172,10 @@ public: virtual bool IsSelected(const wxTreeItemId& item) const = 0; // is item text in bold font? virtual bool IsBold(const wxTreeItemId& item) const = 0; +#if wxABI_VERSION >= 20801 // is the control empty? bool IsEmpty() const; +#endif // wxABI 2.8.1+ // number of children @@ -296,10 +298,12 @@ public: void ExpandAll(); // collapse the item without removing its children virtual void Collapse(const wxTreeItemId& item) = 0; +#if wxABI_VERSION >= 20801 // collapse the item and all its childs and thats childs void CollapseAllChildren(const wxTreeItemId& item); // collapse all items void CollapseAll(); +#endif // wxABI 2.8.1+ // collapse the item and remove all children virtual void CollapseAndReset(const wxTreeItemId& item) = 0; // toggles the current state diff --git a/version-script.in b/version-script.in index 3f88db131d..771a66edc6 100644 --- a/version-script.in +++ b/version-script.in @@ -36,6 +36,9 @@ *wxListCtrl*OnRightDown*; *wxListCtrl*OnMiddleDown*; *wxListCtrl*FireMouseEvent*; + # wxTreeCtrl::CollapseAll[Children]() and IsEmpty + *wxTreeCtrl*CollapseAll*; + *wxTreeCtrl*IsEmpty*; }; # symbols available since the beginning of this branch are only given -- 2.47.2