private void Saveentry_Changed(object sender, EventArgs e) { if (action == FileAction.SaveFile) { filebutton.SetFilename(saveentry.Text); filePathChanged?.Invoke(this, EventArgs.Empty); } }
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(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 (IBrowsableCollection selection) { /* Gnome.Vfs.ModuleCallbackFullAuthentication auth = new Gnome.Vfs.ModuleCallbackFullAuthentication (); auth.Callback += new Gnome.Vfs.ModuleCallbackHandler (HandleAuth); auth.SetDefault (); auth.Push (); Gnome.Vfs.ModuleCallbackAuthentication mauth = new Gnome.Vfs.ModuleCallbackAuthentication (); mauth.Callback += new Gnome.Vfs.ModuleCallbackHandler (HandleAuth); mauth.SetDefault (); mauth.Push (); Gnome.Vfs.ModuleCallbackSaveAuthentication sauth = new Gnome.Vfs.ModuleCallbackSaveAuthentication (); sauth.Callback += new Gnome.Vfs.ModuleCallbackHandler (HandleAuth); sauth.SetDefault (); sauth.Push (); Gnome.Vfs.ModuleCallbackStatusMessage msg = new Gnome.Vfs.ModuleCallbackStatusMessage (); msg.Callback += new Gnome.Vfs.ModuleCallbackHandler (HandleMsg); msg.SetDefault (); msg.Push (); */ this.selection = selection; IconView view = (IconView) new IconView (selection); view.DisplayDates = false; view.DisplayTags = false; 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.Global.HomeDirectory, "Desktop"); if (!System.IO.Directory.Exists (uri_path)) uri_path = FSpot.Global.HomeDirectory; uri_chooser = new Gtk.FileChooserButton (Catalog.GetString ("Select Export Folder"), Gtk.FileChooserAction.SelectFolder); uri_chooser.LocalOnly = false; if (Preferences.Get (Preferences.EXPORT_FOLDER_URI) != null && Preferences.Get (Preferences.EXPORT_FOLDER_URI) as string != String.Empty) uri_chooser.SetUri (Preferences.Get (Preferences.EXPORT_FOLDER_URI) as string); else uri_chooser.SetFilename (uri_path); chooser_hbox.PackStart (uri_chooser); Dialog.ShowAll (); //LoadHistory (); Dialog.Response += HandleResponse; LoadPreference (Preferences.EXPORT_FOLDER_SCALE); LoadPreference (Preferences.EXPORT_FOLDER_SIZE); LoadPreference (Preferences.EXPORT_FOLDER_OPEN); LoadPreference (Preferences.EXPORT_FOLDER_ROTATE); LoadPreference (Preferences.EXPORT_FOLDER_METHOD); }
public void Run(IBrowsableCollection selection) { /* * Gnome.Vfs.ModuleCallbackFullAuthentication auth = new Gnome.Vfs.ModuleCallbackFullAuthentication (); * auth.Callback += new Gnome.Vfs.ModuleCallbackHandler (HandleAuth); * auth.SetDefault (); * auth.Push (); * * Gnome.Vfs.ModuleCallbackAuthentication mauth = new Gnome.Vfs.ModuleCallbackAuthentication (); * mauth.Callback += new Gnome.Vfs.ModuleCallbackHandler (HandleAuth); * mauth.SetDefault (); * mauth.Push (); * * Gnome.Vfs.ModuleCallbackSaveAuthentication sauth = new Gnome.Vfs.ModuleCallbackSaveAuthentication (); * sauth.Callback += new Gnome.Vfs.ModuleCallbackHandler (HandleAuth); * sauth.SetDefault (); * sauth.Push (); * * Gnome.Vfs.ModuleCallbackStatusMessage msg = new Gnome.Vfs.ModuleCallbackStatusMessage (); * msg.Callback += new Gnome.Vfs.ModuleCallbackHandler (HandleMsg); * msg.SetDefault (); * msg.Push (); */ this.selection = selection; IconView view = (IconView) new IconView(selection); view.DisplayDates = false; view.DisplayTags = false; 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.Global.HomeDirectory, "Desktop"); if (!System.IO.Directory.Exists(uri_path)) { uri_path = FSpot.Global.HomeDirectory; } uri_chooser = new Gtk.FileChooserButton(Catalog.GetString("Select Export Folder"), Gtk.FileChooserAction.SelectFolder); uri_chooser.LocalOnly = false; if (Preferences.Get(Preferences.EXPORT_FOLDER_URI) != null && Preferences.Get(Preferences.EXPORT_FOLDER_URI) as string != String.Empty) { uri_chooser.SetUri(Preferences.Get(Preferences.EXPORT_FOLDER_URI) as string); } else { uri_chooser.SetFilename(uri_path); } chooser_hbox.PackStart(uri_chooser); Dialog.ShowAll(); //LoadHistory (); Dialog.Response += HandleResponse; LoadPreference(Preferences.EXPORT_FOLDER_SCALE); LoadPreference(Preferences.EXPORT_FOLDER_SIZE); LoadPreference(Preferences.EXPORT_FOLDER_OPEN); LoadPreference(Preferences.EXPORT_FOLDER_ROTATE); LoadPreference(Preferences.EXPORT_FOLDER_METHOD); }
public void Run(IBrowsableCollection selection) { /* Gnome.Vfs.ModuleCallbackFullAuthentication auth = new Gnome.Vfs.ModuleCallbackFullAuthentication (); auth.Callback += new Gnome.Vfs.ModuleCallbackHandler (HandleAuth); auth.SetDefault (); auth.Push (); Gnome.Vfs.ModuleCallbackAuthentication mauth = new Gnome.Vfs.ModuleCallbackAuthentication (); mauth.Callback += new Gnome.Vfs.ModuleCallbackHandler (HandleAuth); mauth.SetDefault (); mauth.Push (); Gnome.Vfs.ModuleCallbackSaveAuthentication sauth = new Gnome.Vfs.ModuleCallbackSaveAuthentication (); sauth.Callback += new Gnome.Vfs.ModuleCallbackHandler (HandleAuth); sauth.SetDefault (); sauth.Push (); Gnome.Vfs.ModuleCallbackStatusMessage msg = new Gnome.Vfs.ModuleCallbackStatusMessage (); msg.Callback += new Gnome.Vfs.ModuleCallbackHandler (HandleMsg); msg.SetDefault (); msg.Push (); */ this.selection = selection; IconView view = (IconView) new IconView (selection); view.DisplayDates = false; view.DisplayTags = false; xml = new Glade.XML (null, "FolderExport.glade", dialog_name, "f-spot"); xml.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.Global.HomeDirectory, "Desktop"); if (!System.IO.Directory.Exists (uri_path)) uri_path = FSpot.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.SetUri (Preferences.Get<string> (URI_KEY)); else uri_chooser.SetFilename (uri_path); chooser_hbox.PackStart (uri_chooser); Dialog.ShowAll (); //LoadHistory (); Dialog.Response += HandleResponse; LoadPreference (SCALE_KEY); LoadPreference (SIZE_KEY); LoadPreference (OPEN_KEY); LoadPreference (ROTATE_KEY); LoadPreference (EXPORT_TAGS_KEY); LoadPreference (EXPORT_TAG_ICONS_KEY); LoadPreference (METHOD_KEY); }