public bool Add(SemWeb.Statement stmt) { string predicate = stmt.Predicate.Uri; string title = System.IO.Path.GetFileName(predicate); string bg = InfoDisplay.Color(info.Style.Background(Gtk.StateType.Active)); string fg = InfoDisplay.Color(info.Style.Foreground(Gtk.StateType.Active)); //if (MetadataStore.Namespaces.GetPrefix (path) != null) { if (stmt.Object is Literal) { stream.Write("<tr><td valign=top align=right bgcolor=\"" + bg + "\"><font color=\"" + fg + "\">"); stream.Write(title); stream.Write("</font></td><td>"); string s = ((SemWeb.Literal)(stmt.Object)).Value; /* * else { * MemoryStore store = source.Select (stmt.Invert (), new SelectPartialFilter (true, false, false, false)); * s = ""; * foreach (Statement sub in store) { * s += sub.Object.ToString () + "/n"; * } * } */ if (s != null && s != String.Empty) { stream.Write(s); } stream.Write("</td><tr>"); } return(true); }
public InfoDialog(Gtk.Window parent) : base(Catalog.GetString("Metadata Browser"), parent, Gtk.DialogFlags.NoSeparator | Gtk.DialogFlags.DestroyWithParent) { info_display = new InfoDisplay(); SetDefaultSize(400, 400); Gtk.ScrolledWindow scrolled = new Gtk.ScrolledWindow(); VBox.PackStart(scrolled); scrolled.Add(info_display); }
public InfoDialog (Gtk.Window parent) : base (Catalog.GetString ("Metadata Browser"), parent, Gtk.DialogFlags.NoSeparator | Gtk.DialogFlags.DestroyWithParent) { info_display = new InfoDisplay (); SetDefaultSize (400, 400); Gtk.ScrolledWindow scrolled = new Gtk.ScrolledWindow (); VBox.PackStart (scrolled); scrolled.Add (info_display); }
public StreamSink(SemWeb.StatementSource source, Gtk.HTMLStream stream, InfoDisplay info) { this.stream = stream; this.info = info; this.source = source; }
void HandleViewFullExif (object sender, EventArgs args) { if (info_display_window != null) { info_display_window.Present (); return; } info_display = new FSpot.InfoDisplay (); info_display_window = new Gtk.Dialog (Catalog.GetString ("Metadata Browser"), main_window, Gtk.DialogFlags.NoSeparator | Gtk.DialogFlags.DestroyWithParent); info_display_window.SetDefaultSize (400, 400); Gtk.ScrolledWindow scroll = new ScrolledWindow (); info_display_window.VBox.PackStart (scroll); scroll.Add (info_display); info_display.Photo = CurrentPhoto; info_display_window.ShowAll (); info_display_window.Destroyed += HandleInfoDisplayDestroy; }
public void HandleInfoDisplayDestroy (object sender, EventArgs args) { info_display_window = null; info_display = null; }
public StreamSink (SemWeb.StatementSource source, Gtk.HTMLStream stream, InfoDisplay info) { this.stream = stream; this.info = info; this.source = source; }