public SummaryTableItem(DocView view, string label, string caption_heading, List<ITableSummary> rows) { this.view = view; this.label = new LabelItem (view, label); column_heading = caption_heading; foreach (ITableSummary node in rows) this.rows.Add (new RowItem (view, node)); }
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 Browser(string catalog_dir) : base("Documentation Browser Sample") { DefaultSize = new Size (600, 400); Gtk.Paned paned = new Gtk.HPaned (); Gtk.ScrolledWindow sw = new ScrolledWindow (); DocTree tree = new DocTree (catalog_dir); sw.Add (tree); paned.Add1 (sw); sw = new ScrolledWindow (); DocView view = new DocView (tree); sw.AddWithViewport (view); paned.Add2 (sw); paned.Position = 250; paned.ShowAll (); Add (paned); }
public override DocViewItem CreateItem(DocView view) { return new ViewItem (view, this); }
public ViewItem(DocView view, Catalog catalog) { banner = new BannerItem (view, catalog); ns_label = new LabelItem (view, "Namespaces:"); namespaces = new NSItem [catalog.ChildCount]; for (int i = 0; i < catalog.ChildCount; i++) namespaces [i] = new NSItem (view, catalog [i] as NamespaceNode); }
public NSItem(DocView view, NamespaceNode ns) { link = new LinkItem (view, ns.Caption, ns); summ = new KitchenSinkItem (view, ns.Docs.Summary); }
public HeadingItem(DocView view, string heading) { this.heading = heading; this.view = view; }
public LinkItem(DocView view, string caption, DocNode target) { this.caption = caption; this.target = target; this.view = view; }
public LabelItem(DocView view, string text) { this.text = text; this.view = view; }
public KitchenSinkItem(DocView view, XmlElement elem) { this.elem = elem; this.view = view; ParseElem (); }
public KitchenSinkItem(DocView view, XmlElement elem, EditingFlags flags) : this(view, elem) { this.flags = flags; }
public ViewItem(DocView view, NamespaceNode ns) { this.view = view; banner = new BannerItem (view, ns); summary = new KitchenSinkItem (view, ns.Docs.Summary); remarks = new RemarksItem (view, ns.Docs.Remarks); Dictionary<string, List<ITableSummary>> groups = CreateGroupHash (); for (int i = 0; i < ns.ChildCount; i++) { TypeNode t = ns [i] as TypeNode; groups [t.Kind].Add (t); } if (groups["Class"].Count > 0) tables.Add (new SummaryTableItem (view, "Classes", "Class", groups["Class"])); if (groups["Structure"].Count > 0) tables.Add (new SummaryTableItem (view, "Structures", "Structure", groups["Structure"])); if (groups["Interface"].Count > 0) tables.Add (new SummaryTableItem (view, "Interfaces", "Interface", groups["Interface"])); if (groups["Delegate"].Count > 0) tables.Add (new SummaryTableItem (view, "Delegates", "Delegate", groups["Delegate"])); if (groups["Enumeration"].Count > 0) tables.Add (new SummaryTableItem (view, "Enumerations", "Enumeration", groups["Enumeration"])); }
public MarkupItem(DocView view) { this.view = view; }
public abstract DocViewItem CreateItem(DocView view);
public override DocViewItem CreateItem(DocView view) { return null; }
public RemarksItem(DocView view, XmlElement elem) { label = new LabelItem (view, "Remarks:"); contents = new KitchenSinkItem (view, elem); }
public RowItem(DocView view, ITableSummary node) { this.view = view; caption = new LinkItem (view, node.Name, node as DocNode); summ = new KitchenSinkItem (view, node.Summary); }