public void MarkChanged(BrowsableArgs args) { if (ItemsChanged != null) { ItemsChanged(this, args); } }
protected void HandleCollectionItemsChanged(IBrowsableCollection collection, BrowsableArgs event_args) { foreach (int item in event_args.Items) { if (item == Index) { SetIndex(Index); } } }
private void HandleParentItemsChanged (IBrowsableCollection collection, BrowsableArgs args) { if (this.ItemsChanged == null) return; ArrayList local_ids = new ArrayList (); foreach (int parent_index in args.Items) { // If the item isn't part of the selection ignore it if (!this.Contains (collection [parent_index])) return; int local_index = this.IndexOf (parent_index); if (local_index >= 0) local_ids.Add (local_index); } if (local_ids.Count == 0) return; ItemsChanged (this, new BrowsableArgs ((int [])local_ids.ToArray (typeof (int)))); }
private void HandleItemsChanged (FSpot.IBrowsableCollection sender, BrowsableArgs args) { foreach (int item in args.Items) { UpdateThumbnail (item); InvalidateCell (item); } }
private void HandleSelectionItemsChanged (IBrowsableCollection collection, BrowsableArgs args) { UpdateMenus (); UpdateTagEntryFromSelection (); info_box.Update (); }
private void HandleSelectionItemsChanged (IBrowsableCollection collection, BrowsableArgs args) { if (win.view_mode == ModeType.IconView && ItemsChanged != null) ItemsChanged (this, args); }
private void HandleQueryItemsChanged (IBrowsableCollection collection, BrowsableArgs args) { // FIXME for now we only listen to changes directly from the query // when we are in PhotoView mode because we presume that we'll get // proper notification from the icon view selection in icon view mode if (win.view_mode != ModeType.PhotoView || ItemsChanged == null) return; foreach (int item in args.Items) { if (win.photo_view.Item.Index == item ) { ItemsChanged (this, new BrowsableArgs (0)); break; } } }
protected void HandleCollectionItemsChanged (IBrowsableCollection collection, BrowsableArgs event_args) { foreach (int item in event_args.Items) if (item == Index) SetIndex (Index); }
public void MarkChanged (BrowsableArgs args) { if (ItemsChanged != null) ItemsChanged (this, args); }