Ejemplo n.º 1
0
        public PhotoImageView(BrowsablePointer item)
            : base()
        {
            Preferences.SettingChanged += OnPreferencesChanged;

            this.item = item;
            item.Changed += HandlePhotoItemChanged;
        }
Ejemplo n.º 2
0
        public PhotoImageView(BrowsablePointer item)
            : base()
        {
            Accelerometer.OrientationChanged += HandleOrientationChanged;
            Preferences.SettingChanged += OnPreferencesChanged;

            this.item = item;
            item.Changed += HandlePhotoItemChanged;
        }
Ejemplo n.º 3
0
        public BrowseablePointerGridView(BrowsablePointer pointer)
            : base(pointer.Collection)
        {
            Pointer = pointer;

            Pointer.Changed += (obj, args) => {
                InvalidateCell (args.PreviousIndex);
                InvalidateCell (Pointer.Index);
            };

            AddEvents ((int) EventMask.KeyPressMask
                     | (int) EventMask.ButtonPressMask);

            CanFocus = true;
        }
Ejemplo n.º 4
0
        public SlideShow(BrowsablePointer item, uint interval_ms, bool init)
            : base()
        {
            this.item = item;
            DoubleBuffered = false;
            AppPaintable = true;
            CanFocus = true;
            item.Changed += HandleItemChanged;

            foreach (TransitionNode transition in AddinManager.GetExtensionNodes ("/FSpot/SlideShow")) {
                if (this.transition == null)
                    this.transition = transition.Transition;
                transitions.Add (transition.Transition);
            }

            flip = new DelayedOperation (interval_ms, delegate {item.MoveNext (true); return true;});
            animation = new DoubleAnimation (0, 1, new TimeSpan (0, 0, 2), HandleProgressChanged, GLib.Priority.Default);

            if (init) {
                HandleItemChanged (null, null);
            }
        }
Ejemplo n.º 5
0
        public Filmstrip(BrowsablePointer selection, bool squaredThumbs)
        {
            CanFocus = true;
            this.selection = selection;
            this.selection.Changed += HandlePointerChanged;
            this.selection.Collection.Changed += HandleCollectionChanged;
            this.selection.Collection.ItemsChanged += HandleCollectionItemsChanged;
            SquaredThumbs = squaredThumbs;
            thumb_cache = new DisposableCache<SafeUri, Pixbuf> (30);
            ThumbnailLoader.Default.OnPixbufLoaded += HandlePixbufLoaded;

            animation = new DoubleAnimation (0, 0, TimeSpan.FromSeconds (1.5), SetPositionCore, new CubicEase (EasingMode.EaseOut));
        }
Ejemplo n.º 6
0
 public Filmstrip(BrowsablePointer selection)
     : this(selection, true)
 {
 }
Ejemplo n.º 7
0
        public AdjustTimeDialog(Db db, IBrowsableCollection collection)
            : base("AdjustTimeDialog.ui", "time_dialog")
        {
            this.db = db;
            this.collection = collection;

            view = new PhotoImageView (collection);
            view_scrolled.Add (view);
            item = view.Item;
            item.Changed += HandleItemChanged;
            item.MoveFirst ();

            tray = new BrowseablePointerGridView (view.Item) {
                MaxColumns = 1,
                DisplayRatings = false,
                DisplayTags = false,
                DisplayDates = true
            };
            tray_scrolled.Add (tray);

            //forward_button.Clicked += HandleForwardClicked;
            //back_button.Clicked += HandleBackClicked;
            ok_button.Clicked += HandleOkClicked;
            cancel_button.Clicked += HandleCancelClicked;

            photo_spin.ValueChanged += HandleSpinChanged;
            photo_spin.SetIncrements (1.0, 1.0);
            photo_spin.Adjustment.StepIncrement = 1.0;
            photo_spin.Wrap = true;

            date_edit.TimeChanged += HandleTimeChanged;
            date_edit.DateChanged += HandleTimeChanged;
            Gtk.Entry entry = (Gtk.Entry) date_edit.Children [0];
            entry.Changed += HandleTimeChanged;
            entry = (Gtk.Entry) date_edit.Children [2];
            entry.Changed += HandleTimeChanged;
            offset_entry.Changed += HandleOffsetChanged;
            ShowAll ();
            HandleCollectionChanged (collection);

            spacing_entry.Changed += HandleSpacingChanged;
            spacing_entry.Sensitive = ! difference_check.Active;

            difference_check.Toggled += HandleActionToggled;
        }
Ejemplo n.º 8
0
 public SlideShow(BrowsablePointer item)
     : this(item, 6000, false)
 {
 }