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.ToArray(); 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); }
public void Run(IBrowsableCollection selection) { builder = new GtkBeans.Builder(null, "google_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; thumb_scrolledwindow.Add(view); view.Show(); Dialog.Show(); GoogleAccountManager manager = GoogleAccountManager.GetInstance(); manager.AccountListChanged += PopulateGoogleOptionMenu; PopulateGoogleOptionMenu(manager, null); album_optionmenu.Changed += HandleAlbumOptionMenuChanged; 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); LoadPreference(TAG_KEY); }
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(); }