Inheritance: Gtk.DrawingArea
 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));
 }
Exemple #2
0
 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;
     }
 }
Exemple #3
0
 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);
 }
Exemple #4
0
 public override DocViewItem CreateItem(DocView view)
 {
     return new ViewItem (view, this);
 }
Exemple #5
0
 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);
 }
Exemple #6
0
 public NSItem(DocView view, NamespaceNode ns)
 {
     link = new LinkItem (view, ns.Caption, ns);
     summ = new KitchenSinkItem (view, ns.Docs.Summary);
 }
Exemple #7
0
 public HeadingItem(DocView view, string heading)
 {
     this.heading = heading;
     this.view = view;
 }
Exemple #8
0
 public LinkItem(DocView view, string caption, DocNode target)
 {
     this.caption = caption;
     this.target = target;
     this.view = view;
 }
Exemple #9
0
 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;
 }
Exemple #12
0
 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"]));
 }
Exemple #13
0
 public MarkupItem(DocView view)
 {
     this.view = view;
 }
Exemple #14
0
 public abstract DocViewItem CreateItem(DocView view);
Exemple #15
0
 public override DocViewItem CreateItem(DocView view)
 {
     return null;
 }
Exemple #16
0
 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);
 }