Beispiel #1
0
 private void HandleItemChanged(object sender, BrowsablePointerChangedArgs args)
 {
     if (scroll.ControlBox.Visible)
     {
         scroll.ShowControls();
     }
 }
        private void HandleItemChanged(BrowsablePointer p, BrowsablePointerChangedArgs args)
        {
            Animator = new Animator(3000, 20, HandleTick);

            if (glx == null)
            {
                return;
            }

            //Console.WriteLine ("Begin previous = {0} texture = {1}",
            //		   previous != null ? previous.Id.ToString () : "null",
            //		   next != null ? next.Id.ToString () : "null");

            if (!item.IsValid || item.Collection.Count < 0)
            {
                return;
            }

            Next = null;
            PreloadNext();

            //Console.WriteLine ("End previous = {0} texture = {1}",
            //		   previous != null ? previous.Id.ToString () : "null",
            //		   next != null ? next.Id.ToString () : "null");

            if (IsRealized)
            {
                Animator.Start();
            }
        }
Beispiel #3
0
        void HandleItemChanged(BrowsablePointer pointer, BrowsablePointerChangedArgs args)
        {
            //back_button.Sensitive = (Item.Index > 0 && collection.Count > 0);
            //forward_button.Sensitive = (Item.Index < collection.Count - 1);

            if (Item.IsValid)
            {
                IBrowsableItem item = Item.Current;

                name_label.Text = System.Uri.UnescapeDataString(item.Name);
                old_label.Text  = item.Time.ToLocalTime().ToString();

                int i = collection.Count > 0 ? Item.Index + 1: 0;
                // Note for translators: This indicates the current photo is photo {0} of {1} out of photos
                count_label.Text = System.String.Format(Catalog.GetString("{0} of {1}"), i, collection.Count);

                DateTime actual = item.Time;
                date_edit.Time       = actual;
                gnome_dateedit_sucks = date_edit.Time - actual;
            }
            HandleTimeChanged(this, System.EventArgs.Empty);

            if (!tray.Selection.Contains(Item.Index))
            {
                tray.Selection.Clear();
                tray.Selection.Add(Item.Index);
            }

            photo_spin.Value = Item.Index + 1;
        }
Beispiel #4
0
 private void HandleItemChanged(object sender, BrowsablePointerChangedArgs args)
 {
     tag_view.Current = view.Item.Current;
     if (scroll.ControlBox.Visible)
     {
         scroll.ShowControls();
     }
 }
Beispiel #5
0
 private void HandleItemChanged(BrowsablePointer pointer, BrowsablePointerChangedArgs old)
 {
     directory_view.FocusCell = pointer.Index;
     directory_view.Selection.Clear();
     if (collection.Count > 0)
     {
         directory_view.Selection.Add(directory_view.FocusCell);
         directory_view.ScrollTo(directory_view.FocusCell);
     }
 }
        private void SetIndex(int value)
        {
            BrowsablePointerChangedArgs args;

            args = new BrowsablePointerChangedArgs(Current, index);

            index = value;
            item  = Current;

            if (Changed != null)
            {
                Changed(this, args);
            }
        }
        private void HandleItemChanged(BrowsablePointer p, BrowsablePointerChangedArgs args)
        {
            Animator = new Animator(3000, 20, HandleTick);

            if (glx == null)
            {
                return;
            }

            if (!item.IsValid || item.Collection.Count < 0)
            {
                return;
            }

            //Next = null;
            PreloadNext();

            if (running)
            {
                Animator.Start();
            }
        }
		protected override void ItemChanged (BrowsablePointer p,
						     BrowsablePointerChangedArgs args)
		{
			Sensitive =  item.Index > 0;
		}
		protected override void ItemChanged (BrowsablePointer p,
						     BrowsablePointerChangedArgs args)
		{
			Sensitive = item.Index < item.Collection.Count -1;
		}
 private void ItemChanged(BrowsablePointer item, BrowsablePointerChangedArgs args)
 {
 }
Beispiel #11
0
 protected override void ItemChanged(BrowsablePointer p,
                                     BrowsablePointerChangedArgs args)
 {
     Sensitive = item.Index < item.Collection.Count - 1;
 }
Beispiel #12
0
        private void PhotoItemChanged(BrowsablePointer item, BrowsablePointerChangedArgs args)
        {
            // If it is just the position that changed fall out
            if (args != null &&
                args.PreviousItem != null &&
                Item.IsValid &&
                (args.PreviousIndex != item.Index) &&
                (this.Item.Current.DefaultVersionUri == args.PreviousItem.DefaultVersionUri))
            {
                return;
            }

            // Don't reload if the image didn't change at all.
            if (args != null && args.Changes != null &&
                !args.Changes.DataChanged &&
                args.PreviousItem != null &&
                Item.IsValid &&
                this.Item.Current.DefaultVersionUri == args.PreviousItem.DefaultVersionUri)
            {
                return;
            }

            if (args != null &&
                args.PreviousItem != null &&
                Item.IsValid &&
                Item.Current.DefaultVersionUri == args.PreviousItem.DefaultVersionUri &&
                load_async == ProgressType.Full)
            {
                progressive_display = false;
            }

            if (load_async != ProgressType.None)
            {
                Gdk.Pixbuf old = this.Pixbuf;
                try {
                    if (Item.IsValid)
                    {
                        System.Uri uri = Item.Current.DefaultVersionUri;
                        loader.Load(uri);
                    }
                    else
                    {
                        LoadErrorImage(null);
                    }
                } catch (System.Exception e) {
                    System.Console.WriteLine(e.ToString());
                    LoadErrorImage(e);
                }
                if (old != null)
                {
                    old.Dispose();
                }
            }
            else
            {
                Gdk.Pixbuf old = this.Pixbuf;
                this.Pixbuf = FSpot.PhotoLoader.Load(item.Collection,
                                                     item.Index);
                if (old != null)
                {
                    old.Dispose();
                }

                UpdateMinZoom();
                this.ZoomFit();
            }

            this.UnsetSelection();

            if (PhotoChanged != null)
            {
                PhotoChanged(this);
            }
        }
		private void SetIndex (int value)
		{
			BrowsablePointerChangedArgs args;
			
			args = new BrowsablePointerChangedArgs (Current, index);
			
			index = value;
			item = Current;
			
			if (Changed != null)
				Changed (this, args);
		}
		private void HandleItemChanged (BrowsablePointer pointer, BrowsablePointerChangedArgs args)
		{
			UpdateSample ();
		}
		private void HandleItemChanged (BrowsablePointer p, BrowsablePointerChangedArgs args)
		{
			Animator = new Animator (3000, 20, HandleTick);

			if (glx == null)
				return;

			if (!item.IsValid || item.Collection.Count < 0)
				return;

			//Next = null;
			PreloadNext ();

			if (running)
				Animator.Start ();
		}
		private void HandleItemChanged (BrowsablePointer pointer, BrowsablePointerChangedArgs old)
		{
			directory_view.FocusCell = pointer.Index;
			directory_view.Selection.Clear ();
			if (collection.Count > 0) {
				directory_view.Selection.Add (directory_view.FocusCell);
				directory_view.ScrollTo (directory_view.FocusCell);
			}
		}
Beispiel #17
0
 protected override void ItemChanged(BrowsablePointer p,
                                     BrowsablePointerChangedArgs args)
 {
     Sensitive = item.IsValid && view.Editor == null;
 }
Beispiel #18
0
 protected virtual void ItemChanged(BrowsablePointer sender,
                                    BrowsablePointerChangedArgs args)
 {
     Sensitive = item.IsValid;
 }
Beispiel #19
0
 protected override void ItemChanged(BrowsablePointer p,
                                     BrowsablePointerChangedArgs args)
 {
     Sensitive = item.Index > 0;
 }
	        protected virtual void ItemChanged (BrowsablePointer sender, 
						    BrowsablePointerChangedArgs args)
		{
			Sensitive = item.IsValid;
		}
		private void HandleItemChanged (BrowsablePointer sender, BrowsablePointerChangedArgs args)
		{
			Photo = item.Current as Photo;
		}
		protected override void ItemChanged (BrowsablePointer p,
						     BrowsablePointerChangedArgs args)
		{
			Sensitive = item.IsValid && view.Editor == null;
		}
		private void HandleItemChanged (BrowsablePointer p, BrowsablePointerChangedArgs args)
		{
			Animator = new Animator (3000, 20, HandleTick);

			if (glx == null)
				return;

			//Console.WriteLine ("Begin previous = {0} texture = {1}", 
			//		   previous != null ? previous.Id.ToString () : "null", 
			//		   next != null ? next.Id.ToString () : "null");

			if (!item.IsValid || item.Collection.Count < 0)
				return;

			Next = null;
			PreloadNext ();

			//Console.WriteLine ("End previous = {0} texture = {1}", 
			//		   previous != null ? previous.Id.ToString () : "null", 
			//		   next != null ? next.Id.ToString () : "null");

			if (IsRealized)
				Animator.Start ();
		}
Beispiel #24
0
 private void HandleItemChanged(BrowsablePointer pointer, BrowsablePointerChangedArgs args)
 {
     UpdateSample();
 }
		private void PhotoItemChanged (BrowsablePointer item, BrowsablePointerChangedArgs args) 
		{
			// If it is just the position that changed fall out
			if (args != null && 
			    args.PreviousItem != null &&
			    Item.IsValid &&
			    (args.PreviousIndex != item.Index) &&
			    (this.Item.Current.DefaultVersionUri == args.PreviousItem.DefaultVersionUri))
				return;

			// Don't reload if the image didn't change at all.
			if (args != null && args.Changes != null &&
			    !args.Changes.DataChanged &&
			    args.PreviousItem != null &&
			    Item.IsValid &&
			    this.Item.Current.DefaultVersionUri == args.PreviousItem.DefaultVersionUri)
				return;

			if (args != null &&
			    args.PreviousItem != null && 
			    Item.IsValid && 
			    Item.Current.DefaultVersionUri == args.PreviousItem.DefaultVersionUri &&
			    load_async == ProgressType.Full)
				progressive_display = false;

			if (load_async != ProgressType.None) {
				Gdk.Pixbuf old = this.Pixbuf;
				try {
					if (Item.IsValid) {
						System.Uri uri = Item.Current.DefaultVersionUri;
						loader.Load (uri);
					} else
						LoadErrorImage (null);

				} catch (System.Exception e) {
					System.Console.WriteLine (e.ToString ());
					LoadErrorImage (e);
				}
				if (old != null)
					old.Dispose ();
			} else {	
				Gdk.Pixbuf old = this.Pixbuf;
				this.Pixbuf = FSpot.PhotoLoader.Load (item.Collection, 
								      item.Index);
				if (old != null)
					old.Dispose ();

				UpdateMinZoom ();
				this.ZoomFit ();
			}
			
			this.UnsetSelection ();

			if (PhotoChanged != null)
				PhotoChanged (this);
		}
		private void HandleItemChanged (object sender, BrowsablePointerChangedArgs args)
		{
			tag_view.Current = view.Item.Current;
			if (scroll.ControlBox.Visible)
				scroll.ShowControls ();
		}
		void HandleItemChanged (BrowsablePointer pointer, BrowsablePointerChangedArgs args)
		{
			//back_button.Sensitive = (Item.Index > 0 && collection.Count > 0);
			//forward_button.Sensitive = (Item.Index < collection.Count - 1);

			if (Item.IsValid) {
				IBrowsableItem item = Item.Current;
				
				name_label.Text = item.Name;;
				old_label.Text = item.Time.ToLocalTime ().ToString ();
				
				int i = collection.Count > 0 ? Item.Index + 1: 0;
				// This indicates the current photo is photo {0} of {1} out of photos
				count_label.Text = System.String.Format (Catalog.GetString ("{0} of {1}"), i, collection.Count);

				DateTime actual = item.Time;
				date_edit.Time = actual;
				gnome_dateedit_sucks = date_edit.Time - actual;
			}
			HandleTimeChanged (this, System.EventArgs.Empty);

			if (!tray.Selection.Contains (Item.Index)) {
				tray.Selection.Clear ();
				tray.Selection.Add (Item.Index);
			}

			photo_spin.Value = Item.Index + 1;
		}
 private void HandleItemChanged(BrowsablePointer sender, BrowsablePointerChangedArgs args)
 {
     Photo = item.Current;
 }
	private void ItemChanged (BrowsablePointer item, BrowsablePointerChangedArgs args)
	{
		
	}