Inheritance: Gtk.DrawingArea
Example #1
0
 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));
 }
Example #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;
     }
 }
Example #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);
 }
Example #4
0
 public override DocViewItem CreateItem(DocView view)
 {
     return new ViewItem (view, this);
 }
Example #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);
 }
Example #6
0
 public NSItem(DocView view, NamespaceNode ns)
 {
     link = new LinkItem (view, ns.Caption, ns);
     summ = new KitchenSinkItem (view, ns.Docs.Summary);
 }
Example #7
0
 public HeadingItem(DocView view, string heading)
 {
     this.heading = heading;
     this.view = view;
 }
Example #8
0
 public LinkItem(DocView view, string caption, DocNode target)
 {
     this.caption = caption;
     this.target = target;
     this.view = view;
 }
Example #9
0
 public LabelItem(DocView view, string text)
 {
     this.text = text;
     this.view = view;
 }
Example #10
0
 public KitchenSinkItem(DocView view, XmlElement elem)
 {
     this.elem = elem;
     this.view = view;
     ParseElem ();
 }
Example #11
0
 public KitchenSinkItem(DocView view, XmlElement elem, EditingFlags flags)
     : this(view, elem)
 {
     this.flags = flags;
 }
Example #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"]));
 }
Example #13
0
 public MarkupItem(DocView view)
 {
     this.view = view;
 }
Example #14
0
 public abstract DocViewItem CreateItem(DocView view);
Example #15
0
 public override DocViewItem CreateItem(DocView view)
 {
     return null;
 }
Example #16
0
 public RemarksItem(DocView view, XmlElement elem)
 {
     label = new LabelItem (view, "Remarks:");
     contents = new KitchenSinkItem (view, elem);
 }
Example #17
0
 public RowItem(DocView view, ITableSummary node)
 {
     this.view = view;
     caption = new LinkItem (view, node.Name, node as DocNode);
     summ = new KitchenSinkItem (view, node.Summary);
 }