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:
@@ -180,8 +180,6 @@ public:
|
|||||||
|
|
||||||
wxTreeItemId GetNext(const wxTreeItemId& item) const;
|
wxTreeItemId GetNext(const wxTreeItemId& item) const;
|
||||||
|
|
||||||
void ExpandAll(const wxTreeItemId& item);
|
|
||||||
|
|
||||||
#if WXWIN_COMPATIBILITY_2_6
|
#if WXWIN_COMPATIBILITY_2_6
|
||||||
// use EditLabel() instead
|
// use EditLabel() instead
|
||||||
void Edit( const wxTreeItemId& item ) { EditLabel(item); }
|
void Edit( const wxTreeItemId& item ) { EditLabel(item); }
|
||||||
|
@@ -1628,25 +1628,6 @@ void wxGenericTreeCtrl::Expand(const wxTreeItemId& itemId)
|
|||||||
ProcessEvent( event );
|
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)
|
void wxGenericTreeCtrl::Collapse(const wxTreeItemId& itemId)
|
||||||
{
|
{
|
||||||
wxCHECK_RET( !HasFlag(wxTR_HIDE_ROOT) || itemId != GetRootItem(),
|
wxCHECK_RET( !HasFlag(wxTR_HIDE_ROOT) || itemId != GetRootItem(),
|
||||||
@@ -2620,7 +2601,7 @@ void wxGenericTreeCtrl::OnChar( wxKeyEvent &event )
|
|||||||
if ( !IsExpanded(m_current) )
|
if ( !IsExpanded(m_current) )
|
||||||
{
|
{
|
||||||
// expand all
|
// expand all
|
||||||
ExpandAll(m_current);
|
ExpandAllChildren(m_current);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
//else: fall through to Collapse() it
|
//else: fall through to Collapse() it
|
||||||
|
Reference in New Issue
Block a user