ExpandAll and ExpandAllChildren are in wxTreeCtrlBase now.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39959 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2006-07-03 20:55:39 +00:00
parent 155ecd4c42
commit 1a51c85ff3
2 changed files with 1 additions and 22 deletions

View File

@ -180,8 +180,6 @@ public:
wxTreeItemId GetNext(const wxTreeItemId& item) const;
void ExpandAll(const wxTreeItemId& item);
#if WXWIN_COMPATIBILITY_2_6
// use EditLabel() instead
void Edit( const wxTreeItemId& item ) { EditLabel(item); }

View File

@ -1628,25 +1628,6 @@ void wxGenericTreeCtrl::Expand(const wxTreeItemId& itemId)
ProcessEvent( event );
}
void wxGenericTreeCtrl::ExpandAll(const wxTreeItemId& item)
{
if ( !HasFlag(wxTR_HIDE_ROOT) || item != GetRootItem())
{
Expand(item);
if ( !IsExpanded(item) )
return;
}
wxTreeItemIdValue cookie;
wxTreeItemId child = GetFirstChild(item, cookie);
while ( child.IsOk() )
{
ExpandAll(child);
child = GetNextChild(item, cookie);
}
}
void wxGenericTreeCtrl::Collapse(const wxTreeItemId& itemId)
{
wxCHECK_RET( !HasFlag(wxTR_HIDE_ROOT) || itemId != GetRootItem(),
@ -2620,7 +2601,7 @@ void wxGenericTreeCtrl::OnChar( wxKeyEvent &event )
if ( !IsExpanded(m_current) )
{
// expand all
ExpandAll(m_current);
ExpandAllChildren(m_current);
break;
}
//else: fall through to Collapse() it