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