private void whenRowCollapsed(object o, RowCollapsedArgs rca) { CategoryToolboxNode node = store.GetNode (rca.Path) as CategoryToolboxNode; if (node != null) expandedCategories [node.Label] = null; }
void ldapRowCollapsed(object o, RowCollapsedArgs args) { string name = (string) browserStore.GetValue (args.Iter, (int)TreeCols.DN); string serverName = FindServerName (args.Iter, browserStore); if (name == serverName) return; Log.Debug ("collapsed row: {0}", name); TreeIter child; browserStore.IterChildren (out child, args.Iter); // string fcName = (string) browserStore.GetValue (child, (int)TreeCols.DN); TreeIter lastChild = child; while (browserStore.IterNext (ref child)) { browserStore.Remove (ref lastChild); // string cn = (string) browserStore.GetValue (child, (int)TreeCols.DN); lastChild = child; } browserStore.Remove (ref lastChild); Gdk.Pixbuf pb = parent.RenderIcon (Stock.Open, IconSize.Menu, ""); browserStore.AppendValues (args.Iter, pb, ""); }
public virtual void OnCollapseRow( object sender, RowCollapsedArgs args ) { HTreeNode nod = getNodeFromIter( args.Iter ); nod.IsExpanded = false; if( NodeCollapsed != null ) NodeCollapsed( this, new NodeEventArgs( nod ) ); QueueDraw(); }
void BugTreeRowCollapsed(object o, RowCollapsedArgs args) { if (args.Path.Indices.Length == 1) // Check and make sure it's a root node { SplatterCore.Instance.Queries[args.Path.Indices[0]].TreeExpanded = false; } }
private void OnTreeRowCollapsed(object sender, RowCollapsedArgs args) { TreeIter child; store.IterChildren(out child, args.Iter); while (store.Remove(ref child)); store.AppendValues(args.Iter, "**load on expand placeholder**", null); }
private void OnRowCollapsed(object sender, RowCollapsedArgs args) { if (!(store.GetValue (args.Iter, 4) is ClassItem)) return; TreeIter treeIter = store.InsertNode (args.Iter, 0); store.SetValues (treeIter, "<loading>"); store.IterNext (ref treeIter); while (store.IterIsValid (treeIter)) store.Remove (ref treeIter); }