private void HandleResponse(object sender, Gtk.ResponseArgs args)
        {
            if (args.ResponseId != Gtk.ResponseType.Ok)
            {
                Dialog.Destroy();
                return;
            }

            clean  = remove_check.Active;
            rotate = rotate_check.Active;
            Dialog.Destroy();

            command_thread      = new System.Threading.Thread(new System.Threading.ThreadStart(Transfer));
            command_thread.Name = Catalog.GetString("Transferring Pictures");

            progress_dialog = new FSpot.ThreadProgressDialog(command_thread, selection.Count);
            progress_dialog.Start();
        }
示例#2
0
        private void HandleResponse(object sender, Gtk.ResponseArgs args)
        {
            if (args.ResponseId != Gtk.ResponseType.Ok)
            {
                Dialog.Destroy();
                return;
            }

            if (scale_check != null)
            {
                scale = scale_check.Active;
                size  = size_spin.ValueAsInt;
            }
            else
            {
                scale = false;
            }

            browser = browser_check.Active;
            rotate  = rotate_check.Active;
//			meta = meta_check.Active;

            if (account != null)
            {
                //System.Console.WriteLine ("history = {0}", album_optionmenu.History);
                album       = (PicasaAlbum)account.Picasa.GetAlbums() [Math.Max(0, album_optionmenu.History)];
                photo_index = 0;

                Dialog.Destroy();

                command_thread      = new System.Threading.Thread(new System.Threading.ThreadStart(this.Upload));
                command_thread.Name = Catalog.GetString("Uploading Pictures");

                progress_dialog = new FSpot.ThreadProgressDialog(command_thread, items.Length);
                progress_dialog.Start();

                // Save these settings for next time
                Preferences.Set(Preferences.EXPORT_PICASAWEB_SCALE, scale);
                Preferences.Set(Preferences.EXPORT_PICASAWEB_SIZE, size);
                Preferences.Set(Preferences.EXPORT_PICASAWEB_ROTATE, rotate);
                Preferences.Set(Preferences.EXPORT_PICASAWEB_BROWSER, browser);
//				Preferences.Set (Preferences.EXPORT_GALLERY_META, meta);
            }
        }
        private void HandleResponse(object sender, Gtk.ResponseArgs args)
        {
            if (args.ResponseId != Gtk.ResponseType.Ok)
            {
                // FIXME this is to work around a bug in gtk+ where
                // the filesystem events are still listened to when
                // a FileChooserButton is destroyed but not finalized
                // and an event comes in that wants to update the child widgets.
                Dialog.Destroy();
                uri_chooser.Dispose();
                uri_chooser = null;
                return;
            }

            dest   = new Gnome.Vfs.Uri(uri_chooser.Uri);
            open   = open_check.Active;
            scale  = scale_check.Active;
            rotate = rotate_check.Active;

            gallery_name = name_entry.Text;

            if (description_entry != null)
            {
                description = description_entry.Text;
            }

            if (scale)
            {
                size = size_spin.ValueAsInt;
            }

            command_thread      = new System.Threading.Thread(new System.Threading.ThreadStart(Upload));
            command_thread.Name = Catalog.GetString("Transferring Pictures");

            //FIXME: get the files/dirs count in a cleaner way than (* 5 + 2(zip) + 9)
            // selection * 5 (original, mq, lq, thumbs, comments)
            // 2: zipfiles
            // 9: directories + info.txt + .htaccess
            // this should actually be 1 anyway, because we transfer just one dir
            progress_dialog = new FSpot.ThreadProgressDialog(command_thread, 1);
            progress_dialog.Start();
        }
        private bool SaveFiles()
        {
            index_list = GetSelectedItems();
            this.Dialog.Hide();

            command_thread      = new System.Threading.Thread(new System.Threading.ThreadStart(this.Download));
            command_thread.Name = Catalog.GetString("Transferring Pictures");

            progress_dialog = new FSpot.ThreadProgressDialog(command_thread, 1);
            progress_dialog.Start();

            while (command_thread.IsAlive)
            {
                if (Application.EventsPending())
                {
                    Application.RunIteration();
                }
            }

            return(true);
        }
示例#5
0
        private void HandleResponse(object sender,
                                    Gtk.ResponseArgs args)
        {
            dialog.Destroy();

            if (Gtk.ResponseType.Ok != args.ResponseId)
            {
                Log.DebugFormat("Tabblo export was canceled.");
                return;
            }

            WriteAccountData();

            Log.DebugFormat("Starting Tabblo export");

            Thread upload_thread =
                new Thread(new ThreadStart(Upload));

            progress_dialog = new FSpot.ThreadProgressDialog(
                upload_thread, photos.Items.Length);
            progress_dialog.Start();
        }
		private void HandleResponse (object sender, Gtk.ResponseArgs args)
		{
			if (args.ResponseId != Gtk.ResponseType.Ok) {
				// FIXME this is to work around a bug in gtk+ where
				// the filesystem events are still listened to when
				// a FileChooserButton is destroyed but not finalized
				// and an event comes in that wants to update the child widgets.
				Dialog.Destroy ();
				uri_chooser.Dispose ();
				uri_chooser = null;
				return;
			}

			dest = new Gnome.Vfs.Uri (uri_chooser.Uri);
			open = open_check.Active;
			scale = scale_check.Active;
			rotate = rotate_check.Active;

			gallery_name = name_entry.Text;

			if (description_entry != null)
				description = description_entry.Text;

			if (scale)
				size = size_spin.ValueAsInt;

			command_thread = new System.Threading.Thread (new System.Threading.ThreadStart (Upload));
			command_thread.Name = Catalog.GetString ("Transferring Pictures");

			//FIXME: get the files/dirs count in a cleaner way than (* 5 + 2(zip) + 9)
			// selection * 5 (original, mq, lq, thumbs, comments)
			// 2: zipfiles
			// 9: directories + info.txt + .htaccess
			// this should actually be 1 anyway, because we transfer just one dir 
			progress_dialog = new FSpot.ThreadProgressDialog (command_thread, 1);
			progress_dialog.Start ();
		}
		private bool SaveFiles ()
		{
			index_list = GetSelectedItems ();
			this.Dialog.Hide ();
			
			command_thread = new System.Threading.Thread (new System.Threading.ThreadStart (this.Download));
			command_thread.Name = Catalog.GetString ("Transferring Pictures");
			
			progress_dialog = new FSpot.ThreadProgressDialog (command_thread, 1);
			progress_dialog.Start ();
			
			while (command_thread.IsAlive) {
				if (Application.EventsPending ())
					Application.RunIteration ();
				
			}
			
			return true;
		}
		private void HandleResponse (object sender, Gtk.ResponseArgs args)
		{
			if (args.ResponseId != Gtk.ResponseType.Ok) {
				Dialog.Destroy ();
				return;
			}

			clean = remove_check.Active;
			rotate = rotate_check.Active;
			Dialog.Destroy ();

			command_thread = new System.Threading.Thread (new System.Threading.ThreadStart (Transfer));
			command_thread.Name = Catalog.GetString ("Transferring Pictures");

			progress_dialog = new FSpot.ThreadProgressDialog (command_thread, selection.Count);
			progress_dialog.Start ();
		}
示例#9
0
        private void HandleResponse(object sender, Gtk.ResponseArgs args)
        {
            if (args.ResponseId != Gtk.ResponseType.Ok) {
                                Dialog.Destroy ();
                                return;
                        }

                        if (scale_check != null) {
                                scale = scale_check.Active;
                                size = size_spin.ValueAsInt;
                        } else
                                scale = false;

                        browser = browser_check.Active;
                        rotate = rotate_check.Active;
            //                      meta = meta_check.Active;

                        if (account != null) {
                                //System.Console.WriteLine ("history = {0}", album_optionmenu.History);
                                album = (Album) account.SmugMug.GetAlbums() [Math.Max (0, album_optionmenu.History)];
                                photo_index = 0;

                                Dialog.Destroy ();

                                command_thread = new System.Threading.Thread (new System.Threading.ThreadStart (this.Upload));
                                command_thread.Name = Mono.Unix.Catalog.GetString ("Uploading Pictures");

                                progress_dialog = new FSpot.ThreadProgressDialog (command_thread, items.Length);
                                progress_dialog.Start ();

                                // Save these settings for next time
                                Preferences.Set (Preferences.EXPORT_SMUGMUG_SCALE, scale);
                                Preferences.Set (Preferences.EXPORT_SMUGMUG_SIZE, size);
                                Preferences.Set (Preferences.EXPORT_SMUGMUG_ROTATE, rotate);
                                Preferences.Set (Preferences.EXPORT_SMUGMUG_BROWSER, browser);
                        }
        }
		private void HandleResponse (object sender,
		                             Gtk.ResponseArgs args)
		{
			dialog.Destroy ();

			if (Gtk.ResponseType.Ok != args.ResponseId) {
				Log.DebugFormat ("Tabblo export was canceled.");
				return;
			}

			WriteAccountData ();

			Log.DebugFormat ("Starting Tabblo export");

			Thread upload_thread =
					new Thread (new ThreadStart (Upload));
			progress_dialog = new FSpot.ThreadProgressDialog (
					upload_thread, photos.Items.Length);
			progress_dialog.Start ();
		}