Add wxDataViewCtrl::ExpandChildren()
This convenient method allows to expand all children of the item recursively. This is directly supported by both native implementations, so it makes sense to have this in wxDataViewCtrl itself, even if it could be also (less efficiently) implemented in the user code.
This commit is contained in:
@@ -5068,12 +5068,13 @@ wxDataViewColumn *wxDataViewCtrl::GetSortingColumn() const
|
||||
return m_internal->GetDataViewSortColumn();
|
||||
}
|
||||
|
||||
void wxDataViewCtrl::DoExpand( const wxDataViewItem & item )
|
||||
void wxDataViewCtrl::DoExpand( const wxDataViewItem & item, bool expandChildren )
|
||||
{
|
||||
GtkTreeIter iter;
|
||||
iter.user_data = item.GetID();
|
||||
wxGtkTreePath path(m_internal->get_path( &iter ));
|
||||
gtk_tree_view_expand_row( GTK_TREE_VIEW(m_treeview), path, false );
|
||||
gtk_tree_view_expand_row( GTK_TREE_VIEW(m_treeview), path,
|
||||
expandChildren ? TRUE : FALSE );
|
||||
}
|
||||
|
||||
void wxDataViewCtrl::Collapse( const wxDataViewItem & item )
|
||||
|
||||
Reference in New Issue
Block a user