public SelectionCollectionGridView(IBrowsableCollection collection) : base(collection) { Selection = new SelectionCollection(Collection); Selection.DetailedChanged += delegate(IBrowsableCollection sender, Int32 [] ids) { if (ids == null) { QueueDraw(); } else { foreach (int id in ids) { InvalidateCell(id); } } }; AddEvents((int)EventMask.KeyPressMask | (int)EventMask.KeyReleaseMask | (int)EventMask.ButtonPressMask | (int)EventMask.ButtonReleaseMask | (int)EventMask.PointerMotionMask | (int)EventMask.PointerMotionHintMask); CanFocus = true; }
public SelectionCollectionGridView(IBrowsableCollection collection) : base(collection) { Selection = new SelectionCollection (Collection); Selection.DetailedChanged += delegate(IBrowsableCollection sender, Int32 [] ids) { if (ids == null) QueueDraw (); else foreach (int id in ids) InvalidateCell (id); }; AddEvents ((int) EventMask.KeyPressMask | (int) EventMask.KeyReleaseMask | (int) EventMask.ButtonPressMask | (int) EventMask.ButtonReleaseMask | (int) EventMask.PointerMotionMask | (int) EventMask.PointerMotionHintMask); CanFocus = true; }
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; }