public void Run (FSpot.IBrowsableCollection photos) { if (null == photos) { throw new ArgumentNullException ("photos"); } this.photos = photos; Glade.XML glade_xml = new Glade.XML ( null, "TabbloExport.glade", DialogName, "f-spot"); glade_xml.Autoconnect (this); dialog = (Gtk.Dialog) glade_xml.GetWidget (DialogName); FSpot.Widgets.IconView icon_view = new FSpot.Widgets.IconView (photos); icon_view.DisplayDates = false; icon_view.DisplayTags = false; username_entry.Changed += HandleAccountDataChanged; password_entry.Changed += HandleAccountDataChanged; ReadAccountData (); HandleAccountDataChanged (null, null); dialog.Modal = false; dialog.TransientFor = null; dialog.Response += HandleResponse; thumb_scrolled_window.Add (icon_view); icon_view.Show (); dialog.Show (); }
private void HandleTraySelectionChanged(FSpot.IBrowsableCollection coll) { if (tray.Selection.Count > 0) { photo_view.Item.Index = tray.Selection.Ids[0]; } }
public void Run(FSpot.IBrowsableCollection photos) { if (null == photos) { throw new ArgumentNullException("photos"); } this.photos = photos; Glade.XML glade_xml = new Glade.XML( null, "TabbloExport.glade", DialogName, "f-spot"); glade_xml.Autoconnect(this); dialog = (Gtk.Dialog)glade_xml.GetWidget(DialogName); FSpot.Widgets.IconView icon_view = new FSpot.Widgets.IconView(photos); icon_view.DisplayDates = false; icon_view.DisplayTags = false; username_entry.Changed += HandleAccountDataChanged; password_entry.Changed += HandleAccountDataChanged; ReadAccountData(); HandleAccountDataChanged(null, null); dialog.Modal = false; dialog.TransientFor = null; dialog.Response += HandleResponse; thumb_scrolled_window.Add(icon_view); icon_view.Show(); dialog.Show(); }
public TrayView(FSpot.IBrowsableCollection query) : base(query) { DisplayDates = false; DisplayTags = false; cell_border_width = 10; tag_icon_vspacing = 0; tag_icon_size = 0; }
private void HandleSelectionChanged(FSpot.IBrowsableCollection selection) { if (selection.Count > 0) { image_view.Item.Index = ((FSpot.Widgets.IconView.SelectionCollection)selection).Ids[0]; zoom_scale.Value = image_view.NormalizedZoom; } UpdateStatusLabel(); }
private void HandleSelectionChanged(FSpot.IBrowsableCollection selection) { if (selection.Count > 0) { image_view.Item.Index = ((IconView.SelectionCollection)selection).Ids[0]; zoom_scale.Value = image_view.NormalizedZoom; if (metadata_dialog != null) { metadata_dialog.InfoDisplay.Photo = image_view.Item.Current; } } UpdateStatusLabel(); }
public void HandleIconViewSelectionChanged(FSpot.IBrowsableCollection collection) { // FIXME this handler seems to be called twice for each selection change if (icon_view.Selection.Count > 0) { FSpot.IBrowsableItem item = icon_view.Selection [0]; string path = item.DefaultVersionUri.LocalPath; try { preview_image.Pixbuf = new Gdk.Pixbuf(path); image_view.UnsetSelection(); } catch { // FIXME add a real exception handler here. System.Console.WriteLine("Unable To Load image"); } } }
public IconView(FSpot.IBrowsableCollection collection) : this() { this.collection = collection; this.selection = new SelectionCollection (collection); Name = "ImageContainer"; collection.Changed += HandleChanged; collection.ItemsChanged += HandleItemsChanged; selection.DetailedChanged += HandleSelectionChanged; }
public QueryView(FSpot.IBrowsableCollection query) : base(query) { }