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