Three Things on Trees
Sunday, July 11, 2004
It's all about trees this time:
- The Gregor.Core assembly offers a new general-purpose depth-first, preorder traversal, tree iterator, customizable through an adaptation interface. Implementations exists for walking the nodes in System.Windows.Forms.TreeView and Gregor.UICore.Controls.XTreeListView controls, as well as trees composed of objects that implement certain interfaces offered in Gregor.Core.
- Using the walker, there's code in Gregor.UICore.dll that copies the text of the nodes in any tree view control to a string. The same applies to item text in list views. WebEdit.NET exposes this functionality via the context menu (things are copied into the clipboard).
- The Gregor.AppCore.ShellControls.XShellListView control is now a mix of tree view and list view, extending Gregor.UICore.Controls.XTreeListView. This means the user may drill down into any shell folder shown in the list, viewing the contents of several folders at once.