Пример #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();
            }
        }
Пример #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;
        }
Пример #4
0
 private void HandleItemChanged(object sender, BrowsablePointerChangedArgs args)
 {
     tag_view.Current = view.Item.Current;
     if (scroll.ControlBox.Visible)
     {
         scroll.ShowControls();
     }
 }
Пример #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);
            }
        }
Пример #7
0
        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();
            }
        }
Пример #8
0
		protected override void ItemChanged (BrowsablePointer p,
						     BrowsablePointerChangedArgs args)
		{
			Sensitive =  item.Index > 0;
		}
Пример #9
0
		protected override void ItemChanged (BrowsablePointer p,
						     BrowsablePointerChangedArgs args)
		{
			Sensitive = item.Index < item.Collection.Count -1;
		}
Пример #10
0
 private void ItemChanged(BrowsablePointer item, BrowsablePointerChangedArgs args)
 {
 }
Пример #11
0
 protected override void ItemChanged(BrowsablePointer p,
                                     BrowsablePointerChangedArgs args)
 {
     Sensitive = item.Index < item.Collection.Count - 1;
 }
Пример #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);
		}
Пример #14
0
		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 ();
		}
Пример #16
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);
			}
		}
Пример #17
0
 protected override void ItemChanged(BrowsablePointer p,
                                     BrowsablePointerChangedArgs args)
 {
     Sensitive = item.IsValid && view.Editor == null;
 }
Пример #18
0
 protected virtual void ItemChanged(BrowsablePointer sender,
                                    BrowsablePointerChangedArgs args)
 {
     Sensitive = item.IsValid;
 }
Пример #19
0
 protected override void ItemChanged(BrowsablePointer p,
                                     BrowsablePointerChangedArgs args)
 {
     Sensitive = item.Index > 0;
 }
Пример #20
0
	        protected virtual void ItemChanged (BrowsablePointer sender, 
						    BrowsablePointerChangedArgs args)
		{
			Sensitive = item.IsValid;
		}
		private void HandleItemChanged (BrowsablePointer sender, BrowsablePointerChangedArgs args)
		{
			Photo = item.Current as Photo;
		}
Пример #22
0
		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 ();
		}
Пример #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 ();
		}
Пример #27
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 = 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;
 }
Пример #29
0
	private void ItemChanged (BrowsablePointer item, BrowsablePointerChangedArgs args)
	{
		
	}