void CmpCtrl::LoadDisplay( ) { if ( m_rootId.IsOk() && CmpEnv::s_expand_root ) Expand( m_rootId ); if ( m_booksId.IsOk() && CmpEnv::s_expand_book ) Expand( m_booksId ); if ( m_cmpId.IsOk() && CmpEnv::s_expand_book ) ExpandAllChildren( m_cmpId ); }
void wxTreeCtrlBase::ExpandAll() { if ( IsEmpty() ) return; ExpandAllChildren(GetRootItem()); }
void wxTreeCtrlBase::ExpandAllChildren(const wxTreeItemId& item) { Freeze(); // expand this item first, this might result in its children being added on // the fly if ( item != GetRootItem() || !HasFlag(wxTR_HIDE_ROOT) ) Expand(item); //else: expanding hidden root item is unsupported and unnecessary // then (recursively) expand all the children wxTreeItemIdValue cookie; #if defined(__INTEL_COMPILER) && 1 /* VDM auto patch */ # pragma ivdep # pragma swp # pragma unroll # pragma prefetch # if 0 # pragma simd noassert # endif #endif /* VDM auto patch */ for ( wxTreeItemId idCurr = GetFirstChild(item, cookie); idCurr.IsOk(); idCurr = GetNextChild(item, cookie) ) { ExpandAllChildren(idCurr); } Thaw(); }
void wxTreeCtrlBase::ExpandAllChildren(const wxTreeItemId& item) { // expand this item first, this might result in its children being added on // the fly if ( item != GetRootItem() || !HasFlag(wxTR_HIDE_ROOT) ) Expand(item); //else: expanding hidden root item is unsupported and unnecessary // then (recursively) expand all the children wxTreeItemIdValue cookie; for ( wxTreeItemId idCurr = GetFirstChild(item, cookie); idCurr.IsOk(); idCurr = GetNextChild(item, cookie) ) { ExpandAllChildren(idCurr); } }