public NamespaceNode(DocNode parent, string path, string dir_path, XmlElement index_elem) : base(parent) { this.path = path; this.dir = new DirectoryInfo (dir_path); this.index_elem = index_elem; }
public BannerItem(DocView view, DocNode node) { this.view = view; heading = new HeadingItem (view, node.Caption); while (node.Parent != null) { links.Insert (0, new LinkItem (view, node.Parent.Caption, node.Parent)); node = node.Parent; } }
public TypeNode(DocNode parent, string dir_path, XmlElement index_elem) : base(parent) { name = index_elem.GetAttribute ("Name"); this.path = Path.Combine (dir_path, name + ".xml"); caption = name; kind = index_elem.GetAttribute ("Kind"); if (kind == null || kind == String.Empty) { try { XmlDocument doc = new XmlDocument (); using (XmlTextReader rdr = new XmlTextReader (path)) doc.Load (rdr); XmlElement elem = doc.SelectSingleNode ("Type/Base/BaseTypeName") as XmlElement; kind = GetKind (elem); } catch (Exception) { } } caption = name + " " + kind; }
public CatalogStore(DocNode root_node) { this.root_node = root_node; }
TreeIter IterFromNode(DocNode node) { GCHandle gch; if (node_hash [node] != null) gch = (GCHandle) node_hash [node]; else { gch = GCHandle.Alloc (node); node_hash [node] = gch; node.Changed += new EventHandler (OnNodeChanged); node.ChildAdded += new NodeEventHandler (OnChildAdded); node.ChildRemoved += new NodeEventHandler (OnChildRemoved); } TreeIter result = TreeIter.Zero; result.UserData = (IntPtr) gch; return result; }
internal TreePath PathFromNode(DocNode node) { if (node == null) return new TreePath (); DocNode work = node; TreePath path = new TreePath (); while (work != root_node) { DocNode parent = work.Parent; path.PrependIndex (parent.IndexOf (work)); work = parent; } path.PrependIndex (0); return path; }
public LinkItem(DocView view, string caption, DocNode target) { this.caption = caption; this.target = target; this.view = view; }
public NodeSelectedEventArgs(DocNode node) { this.node = node; }
public int IndexOf(DocNode child) { if (!loaded) LazyLoad (); return children == null ? -1 : children.IndexOf (child); }
public OverloadNode(DocNode parent, string caption) : base(parent, caption) { }
protected DocNode(DocNode parent, string caption) : this(parent) { this.caption = caption; }
protected DocNode(DocNode parent) { this.parent = parent; }
public NodeEventArgs(DocNode node) { this.node = node; }
protected virtual int CompareNodes(DocNode a, DocNode b) { return String.Compare (a.Caption, b.Caption); }
public void RemoveChild(DocNode child) { children.Remove (child); if (ChildRemoved == null) return; ChildRemoved (this, new NodeEventArgs (child)); }
protected override int CompareNodes(DocNode a, DocNode b) { if (a is MembersNode) return -1; else if (b is MembersNode) return 1; else return base.CompareNodes (a, b); }
//XmlElement member; public MemberNode(DocNode parent, string caption, XmlElement member) : base(parent, caption) { //this.member = member; }
public void AddChild(DocNode child) { if (children == null) children = new List <DocNode> (); int i = 0; while (i < children.Count) if (CompareNodes (children [i], child) > 0) break; else i++; children.Insert (i, child); if (ChildAdded == null || loading) return; ChildAdded (this, new NodeEventArgs (child)); }