public void MarkChanged(BrowsableEventArgs args)
 {
     if (ItemsChanged != null)
     {
         ItemsChanged(this, args);
     }
 }
		private void HandleSelectionItemsChanged (IBrowsableCollection collection,  BrowsableEventArgs args)
		{
			if (win.view_mode == ModeType.IconView && ItemsChanged != null)
				ItemsChanged (this, args);
		}
	private void HandleSelectionItemsChanged (IBrowsableCollection collection, BrowsableEventArgs args)
	{
		UpdateMenus ();
		UpdateTagEntryFromSelection ();

		info_box.Photos = SelectedPhotos ();
	}
		private void HandleQueryItemsChanged (IBrowsableCollection collection, BrowsableEventArgs 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 BrowsableEventArgs (item, args.Changes));
					break;
				}
			}
		}
	//
	// IconView event handlers
	// 

	void HandleDoubleClicked (Widget widget, BrowsableEventArgs args)
	{
		switch (ViewMode) {
		case ModeType.IconView:
			icon_view.FocusCell = args.Items[0];
			SetViewMode (ModeType.PhotoView);
			break;
		case ModeType.PhotoView:
			SetViewMode (ModeType.IconView);
			break;
		}
	}
		public void MarkChanged (BrowsableEventArgs args)
		{
			if (ItemsChanged != null)
				ItemsChanged (this, args);
		}
Exemple #7
0
        //
        // IconView event handlers
        //
        void HandleDoubleClicked(object sender, BrowsableEventArgs args)
        {
            Widget widget = sender as Widget;
            if (widget == null)
                return;

            switch (ViewMode) {
            case ModeType.IconView:
                icon_view.FocusCell = args.Items[0];
                SetViewMode (ModeType.PhotoView);
                break;
            case ModeType.PhotoView:
                SetViewMode (ModeType.IconView);
                break;
            }
        }
Exemple #8
0
        protected void HandleCollectionItemsChanged(IBrowsableCollection collection,
							     BrowsableEventArgs event_args)
        {
            foreach (int item in event_args.Items)
                if (item == Index)
                    SetIndex (Index, event_args.Changes);
        }