Example #1
0
		public RepairDialog (IBrowsableCollection collection) : base ("RepairDialog.ui", "repair_dialog")
		{
			source = collection;
			missing = new PhotoList ();

			FindMissing ();
			TrayView view = new TrayView (missing);
			view_scrolled.Add (view);

			this.ShowAll ();
		}
        internal TabbloExportView(IBrowsableCollection photos)
            : base(Assembly.GetExecutingAssembly (),
					"TabbloExport.ui", DialogName)
        {
            // Thumbnails
            var icon_view = new TrayView (photos);
            icon_view.DisplayDates = false;
            icon_view.DisplayTags = false;

            thumb_scrolled_window.Add (icon_view);
            icon_view.Show ();

            // Tags
            attached_tags_view = new FSpot.Widgets.TagView ();
            attached_tags_alignment.Add (attached_tags_view);
            attached_tags_view.Show ();

            removed_tags_view = new FSpot.Widgets.TagView ();
            removed_tags_alignment.Add (removed_tags_view);
            removed_tags_view.Show ();
        }
Example #3
0
        public void Run(IBrowsableCollection selection)
        {
            builder = new GtkBeans.Builder (null, "smugmug_export_dialog.ui", null);
            builder.Autoconnect (this);

            gallery_optionmenu = Gtk.ComboBox.NewText();
            album_optionmenu = Gtk.ComboBox.NewText();

            (edit_button.Parent as Gtk.HBox).PackStart (gallery_optionmenu);
            (album_button.Parent as Gtk.HBox).PackStart (album_optionmenu);
            (edit_button.Parent as Gtk.HBox).ReorderChild (gallery_optionmenu, 1);
            (album_button.Parent as Gtk.HBox).ReorderChild (album_optionmenu, 1);

            gallery_optionmenu.Show ();
            album_optionmenu.Show ();

            this.items = selection.Items;
            album_button.Sensitive = false;
            var view = new TrayView (selection);
            view.DisplayDates = false;
            view.DisplayTags = false;

            Dialog.Modal = false;
            Dialog.TransientFor = null;
            Dialog.Close += HandleCloseEvent;

            thumb_scrolledwindow.Add (view);
            view.Show ();
            Dialog.Show ();

            SmugMugAccountManager manager = SmugMugAccountManager.GetInstance ();
            manager.AccountListChanged += PopulateSmugMugOptionMenu;
            PopulateSmugMugOptionMenu (manager, null);

            if (edit_button != null)
                edit_button.Clicked += HandleEditGallery;

            Dialog.Response += HandleResponse;
            connect = true;
            HandleSizeActive (null, null);
            Connect ();

            LoadPreference (SCALE_KEY);
            LoadPreference (SIZE_KEY);
            LoadPreference (BROWSER_KEY);
        }
Example #4
0
        public void Run(IBrowsableCollection selection)
        {
            this.selection = selection;

            var view = new TrayView (selection);
            view.DisplayDates = false;
            view.DisplayTags = false;

            builder = new GtkBeans.Builder (null, "folder_export.ui", null);
            builder.Autoconnect (this);
            Dialog.Modal = false;
            Dialog.TransientFor = null;

            thumb_scrolledwindow.Add (view);
            HandleSizeActive (null, null);
            name_entry.Text = gallery_name;

            string uri_path = System.IO.Path.Combine (FSpot.Core.Global.HomeDirectory, "Desktop");
            if (!System.IO.Directory.Exists (uri_path))
                    uri_path = FSpot.Core.Global.HomeDirectory;

            uri_chooser = new Gtk.FileChooserButton (Catalog.GetString ("Select Export Folder"),
                                 Gtk.FileChooserAction.SelectFolder);

            uri_chooser.LocalOnly = false;

            if (!String.IsNullOrEmpty (Preferences.Get<string> (URI_KEY)))
                uri_chooser.SetCurrentFolderUri (Preferences.Get<string> (URI_KEY));
            else
                uri_chooser.SetFilename (uri_path);

            chooser_hbox.PackStart (uri_chooser);

            Dialog.ShowAll ();
            Dialog.Response += HandleResponse;

            LoadPreference (SCALE_KEY);
            LoadPreference (SIZE_KEY);
            LoadPreference (OPEN_KEY);
            LoadPreference (EXPORT_TAGS_KEY);
            LoadPreference (EXPORT_TAG_ICONS_KEY);
            LoadPreference (METHOD_KEY);
        }
        public void Run(SupportedService service, IBrowsableCollection selection, bool display_tags)
        {
            this.selection = selection;
            this.current_service = FlickrRemote.Service.FromSupported (service);

            var view = new TrayView (selection);
            view.DisplayTags = display_tags;
            view.DisplayDates = false;

            builder = new GtkBeans.Builder (null, "flickr_export.ui", null);
            builder.Autoconnect (this);

            Dialog.Modal = false;
            Dialog.TransientFor = null;

            thumb_scrolledwindow.Add (view);
            HandleSizeActive (null, null);

            public_radio.Toggled += HandlePublicChanged;
            tag_check.Toggled += HandleTagChanged;
            hierarchy_check.Toggled += HandleHierarchyChanged;
            HandleTagChanged (null, null);
            HandleHierarchyChanged (null, null);

            Dialog.ShowAll ();
            Dialog.Response += HandleResponse;
            auth_flickr.Clicked += HandleClicked;
            auth_text = string.Format (auth_label.Text, current_service.Name);
            auth_label.Text = auth_text;
            used_bandwidth.Visible = false;

            LoadPreference (SCALE_KEY);
            LoadPreference (SIZE_KEY);
            LoadPreference (BROWSER_KEY);
            LoadPreference (TAGS_KEY);
            LoadPreference (TAG_HIERARCHY_KEY);
            LoadPreference (IGNORE_TOP_LEVEL_KEY);
            LoadPreference (PUBLIC_KEY);
            LoadPreference (FAMILY_KEY);
            LoadPreference (FRIENDS_KEY);
            LoadPreference (current_service.PreferencePath);

            do_export_flickr.Sensitive = false;
            fr = new FlickrRemote (token, current_service);
            if (token != null && token.Length > 0) {
                StartAuth ();
            }
        }
Example #6
0
        public void Run(IBrowsableCollection selection)
        {
            var builder = new GtkBeans.Builder (null, "gallery_export_dialog.ui", null);
            builder.Autoconnect (this);
            export_dialog = new Gtk.Dialog (builder.GetRawObject ("gallery_export_dialog"));

            album_optionmenu = new Gtk.ComboBox ();
            (album_button.Parent as Gtk.HBox).PackStart (album_optionmenu);
            (album_button.Parent as Gtk.HBox).ReorderChild (album_optionmenu, 1);
            album_optionmenu.Show ();

            gallery_optionmenu = new Gtk.ComboBox ();
            (edit_button.Parent as Gtk.HBox).PackStart (gallery_optionmenu);
            (edit_button.Parent as Gtk.HBox).ReorderChild (gallery_optionmenu, 1);
            gallery_optionmenu.Show ();

            this.items = selection.Items;
            Array.Sort<IPhoto> (this.items, new IPhotoComparer.CompareDateName ());
            album_button.Sensitive = false;
            var view = new TrayView (selection);
            view.DisplayDates = false;
            view.DisplayTags = false;

            export_dialog.Modal = false;
            export_dialog.TransientFor = null;

            thumb_scrolledwindow.Add (view);
            view.Show ();
            export_dialog.Show ();

            GalleryAccountManager manager = GalleryAccountManager.GetInstance ();
            manager.AccountListChanged += PopulateGalleryOptionMenu;
            PopulateGalleryOptionMenu (manager, null);

            if (edit_button != null)
                edit_button.Clicked += HandleEditGallery;

            export_dialog.Response += HandleResponse;
            connect = true;
            HandleSizeActive (null, null);
            Connect ();

            LoadPreference (SCALE_KEY);
            LoadPreference (SIZE_KEY);
            LoadPreference (BROWSER_KEY);
            LoadPreference (META_KEY);
        }
Example #7
0
        public CDExportDialog(IBrowsableCollection collection, System.Uri dest)
            : base(Assembly.GetExecutingAssembly (), "CDExport.ui", "cd_export_dialog")
        {
            this.dest = dest;

            // Calculate the total size
            long total_size = 0;
            string path;
            System.IO.FileInfo file_info;

            foreach (IPhoto item in collection.Items) {
                path = item.DefaultVersion.Uri.LocalPath;
                if (System.IO.File.Exists (path)) {
                    file_info = new System.IO.FileInfo (path);
                    total_size += file_info.Length;
                }
            }

            var view = new TrayView (collection);
            view.DisplayDates = false;
            view.DisplayTags = false;
            view.DisplayRatings = false;

            this.Modal = false;
            this.TransientFor = null;

            size_label.Text = Format.SizeForDisplay (total_size);

            thumb_scrolledwindow.Add (view);
            this.ShowAll ();

            previous_frame.Visible = !IsDestEmpty (dest);

            browse_button.Clicked += HandleBrowseExisting;
        }