[f-spot] Port SmugMug export to GtkBuilder
- From: Ruben Vermeersch <rubenv src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [f-spot] Port SmugMug export to GtkBuilder
- Date: Tue, 24 Aug 2010 10:40:05 +0000 (UTC)
commit 5095edce8a6d2e25e472d8023302fc8d7d04798b
Author: Paul Lange <palango gmx de>
Date: Wed Aug 18 01:27:31 2010 +0200
Port SmugMug export to GtkBuilder
https://bugzilla.gnome.org/show_bug.cgi?id=627154
po/POTFILES.in | 4 +-
.../FSpot.Exporters.SmugMug.csproj | 10 +-
.../SmugMugAccountDialog.cs | 18 +-
.../FSpot.Exporters.SmugMug/SmugMugAddAlbum.cs | 20 +-
.../FSpot.Exporters.SmugMug/SmugMugExport.cs | 52 +-
.../Exporters/FSpot.Exporters.SmugMug/Makefile.am | 6 +-
.../Resources/SmugMugExport.glade | 698 --------------------
.../Resources/smugmug_add_album_dialog.ui | 149 +++++
.../Resources/smugmug_add_dialog.ui | 155 +++++
.../Resources/smugmug_export_dialog.ui | 390 +++++++++++
10 files changed, 755 insertions(+), 747 deletions(-)
---
diff --git a/po/POTFILES.in b/po/POTFILES.in
index b24f495..799963e 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -125,7 +125,9 @@ src/Extensions/Exporters/FSpot.Exporters.SmugMug/FSpot.Exporters.SmugMug/SmugMug
src/Extensions/Exporters/FSpot.Exporters.SmugMug/FSpot.Exporters.SmugMug/SmugMugAccountManager.cs
src/Extensions/Exporters/FSpot.Exporters.SmugMug/FSpot.Exporters.SmugMug/SmugMugAddAlbum.cs
src/Extensions/Exporters/FSpot.Exporters.SmugMug/FSpot.Exporters.SmugMug/SmugMugExport.cs
-[type: gettext/glade]src/Extensions/Exporters/FSpot.Exporters.SmugMug/Resources/SmugMugExport.glade
+[type: gettext/glade]src/Extensions/Exporters/FSpot.Exporters.SmugMug/Resources/smugmug_add_album_dialog.ui
+[type: gettext/glade]src/Extensions/Exporters/FSpot.Exporters.SmugMug/Resources/smugmug_add_dialog.ui
+[type: gettext/glade]src/Extensions/Exporters/FSpot.Exporters.SmugMug/Resources/smugmug_export_dialog.ui
src/Extensions/Exporters/FSpot.Exporters.Tabblo/FSpot.Exporters.Tabblo/TabbloExport.cs
[type: gettext/glade]src/Extensions/Exporters/FSpot.Exporters.Tabblo/Resources/ui/TabbloExport.ui
[type: gettext/glade]src/Extensions/Exporters/FSpot.Exporters.Tabblo/Resources/ui/TrustError.ui
diff --git a/src/Extensions/Exporters/FSpot.Exporters.SmugMug/FSpot.Exporters.SmugMug.csproj b/src/Extensions/Exporters/FSpot.Exporters.SmugMug/FSpot.Exporters.SmugMug.csproj
index ada3919..4d5b30f 100644
--- a/src/Extensions/Exporters/FSpot.Exporters.SmugMug/FSpot.Exporters.SmugMug.csproj
+++ b/src/Extensions/Exporters/FSpot.Exporters.SmugMug/FSpot.Exporters.SmugMug.csproj
@@ -42,8 +42,14 @@
<EmbeddedResource Include="Resources\SmugMugExport.addin.xml">
<LogicalName>SmugMugExport.addin.xml</LogicalName>
</EmbeddedResource>
- <EmbeddedResource Include="Resources\SmugMugExport.glade">
- <LogicalName>SmugMugExport.glade</LogicalName>
+ <EmbeddedResource Include="Resources\smugmug_add_album_dialog.ui">
+ <LogicalName>smugmug_add_album_dialog.ui</LogicalName>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Resources\smugmug_add_dialog.ui">
+ <LogicalName>smugmug_add_dialog.ui</LogicalName>
+ </EmbeddedResource>
+ <EmbeddedResource Include="Resources\smugmug_export_dialog.ui">
+ <LogicalName>smugmug_export_dialog.ui</LogicalName>
</EmbeddedResource>
</ItemGroup>
<ProjectExtensions>
diff --git a/src/Extensions/Exporters/FSpot.Exporters.SmugMug/FSpot.Exporters.SmugMug/SmugMugAccountDialog.cs b/src/Extensions/Exporters/FSpot.Exporters.SmugMug/FSpot.Exporters.SmugMug/SmugMugAccountDialog.cs
index 8d7daf8..b6895e7 100644
--- a/src/Extensions/Exporters/FSpot.Exporters.SmugMug/FSpot.Exporters.SmugMug/SmugMugAccountDialog.cs
+++ b/src/Extensions/Exporters/FSpot.Exporters.SmugMug/FSpot.Exporters.SmugMug/SmugMugAccountDialog.cs
@@ -27,8 +27,8 @@ namespace FSpot.Exporters.SmugMug
public SmugMugAccountDialog (Gtk.Window parent, SmugMugAccount account)
{
- xml = new Glade.XML (null, "SmugMugExport.glade", dialog_name, "f-spot");
- xml.Autoconnect (this);
+ builder = new GtkBeans.Builder (null, "smugmug_add_dialog.ui", null);
+ builder.Autoconnect (this);
Dialog.Modal = false;
Dialog.TransientFor = parent;
@@ -90,7 +90,7 @@ namespace FSpot.Exporters.SmugMug
private Gtk.Dialog Dialog {
get {
if (dialog == null)
- dialog = (Gtk.Dialog) xml.GetWidget (dialog_name);
+ dialog = new Gtk.Dialog (builder.GetRawObject (dialog_name));
return dialog;
}
@@ -100,14 +100,14 @@ namespace FSpot.Exporters.SmugMug
private string password;
private string username;
private string dialog_name = "smugmug_add_dialog";
- private Glade.XML xml;
+ private GtkBeans.Builder builder;
// widgets
- [Glade.Widget] Gtk.Dialog dialog;
- [Glade.Widget] Gtk.Entry password_entry;
- [Glade.Widget] Gtk.Entry username_entry;
+ [GtkBeans.Builder.Object] Gtk.Dialog dialog;
+ [GtkBeans.Builder.Object] Gtk.Entry password_entry;
+ [GtkBeans.Builder.Object] Gtk.Entry username_entry;
- [Glade.Widget] Gtk.Button add_button;
- [Glade.Widget] Gtk.Button remove_button;
+ [GtkBeans.Builder.Object] Gtk.Button add_button;
+ [GtkBeans.Builder.Object] Gtk.Button remove_button;
}
}
diff --git a/src/Extensions/Exporters/FSpot.Exporters.SmugMug/FSpot.Exporters.SmugMug/SmugMugAddAlbum.cs b/src/Extensions/Exporters/FSpot.Exporters.SmugMug/FSpot.Exporters.SmugMug/SmugMugAddAlbum.cs
index e1f181e..6f9d40b 100644
--- a/src/Extensions/Exporters/FSpot.Exporters.SmugMug/FSpot.Exporters.SmugMug/SmugMugAddAlbum.cs
+++ b/src/Extensions/Exporters/FSpot.Exporters.SmugMug/FSpot.Exporters.SmugMug/SmugMugAddAlbum.cs
@@ -20,17 +20,15 @@ using SmugMugNet;
namespace FSpot.Exporters.SmugMug
{
public class SmugMugAddAlbum {
- //[Glade.Widget] Gtk.OptionMenu album_optionmenu;
+ [GtkBeans.Builder.Object] Gtk.Dialog dialog;
+ [GtkBeans.Builder.Object] Gtk.Entry title_entry;
+ [GtkBeans.Builder.Object] Gtk.CheckButton public_check;
+ [GtkBeans.Builder.Object] Gtk.ComboBox category_combo;
- [Glade.Widget] Gtk.Dialog dialog;
- [Glade.Widget] Gtk.Entry title_entry;
- [Glade.Widget] Gtk.CheckButton public_check;
- [Glade.Widget] Gtk.ComboBox category_combo;
-
- [Glade.Widget] Gtk.Button add_button;
+ [GtkBeans.Builder.Object] Gtk.Button add_button;
private string dialog_name = "smugmug_add_album_dialog";
- private Glade.XML xml;
+ private GtkBeans.Builder builder;
private SmugMugExport export;
private SmugMugApi smugmug;
private string title;
@@ -38,8 +36,8 @@ namespace FSpot.Exporters.SmugMug
public SmugMugAddAlbum (SmugMugExport export, SmugMugApi smugmug)
{
- xml = new Glade.XML (null, "SmugMugExport.glade", dialog_name, "f-spot");
- xml.Autoconnect (this);
+ builder = new GtkBeans.Builder (null, "smugmug_add_album_dialog.ui", null);
+ builder.Autoconnect (this);
this.export = export;
this.smugmug = smugmug;
@@ -108,7 +106,7 @@ namespace FSpot.Exporters.SmugMug
private Gtk.Dialog Dialog {
get {
if (dialog == null)
- dialog = (Gtk.Dialog) xml.GetWidget (dialog_name);
+ dialog = new Gtk.Dialog (builder.GetRawObject (dialog_name));
return dialog;
}
diff --git a/src/Extensions/Exporters/FSpot.Exporters.SmugMug/FSpot.Exporters.SmugMug/SmugMugExport.cs b/src/Extensions/Exporters/FSpot.Exporters.SmugMug/FSpot.Exporters.SmugMug/SmugMugExport.cs
index 6bd5f74..97252e0 100644
--- a/src/Extensions/Exporters/FSpot.Exporters.SmugMug/FSpot.Exporters.SmugMug/SmugMugExport.cs
+++ b/src/Extensions/Exporters/FSpot.Exporters.SmugMug/FSpot.Exporters.SmugMug/SmugMugExport.cs
@@ -35,8 +35,19 @@ namespace FSpot.Exporters.SmugMug {
public SmugMugExport () {}
public void Run (IBrowsableCollection selection)
{
- xml = new Glade.XML (null, "SmugMugExport.glade", dialog_name, "f-spot");
- xml.Autoconnect (this);
+ builder = new GtkBeans.Builder (null, "smugmug_export_dialog.ui", null);
+ builder.Autoconnect (this);
+
+ gallery_optionmenu = new Gtk.OptionMenu ();
+ album_optionmenu = new Gtk.OptionMenu ();
+
+ (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;
@@ -59,7 +70,6 @@ namespace FSpot.Exporters.SmugMug {
if (edit_button != null)
edit_button.Clicked += HandleEditGallery;
- rh = new Gtk.ResponseHandler (HandleResponse);
Dialog.Response += HandleResponse;
connect = true;
HandleSizeActive (null, null);
@@ -70,8 +80,6 @@ namespace FSpot.Exporters.SmugMug {
LoadPreference (BROWSER_KEY);
}
- Gtk.ResponseHandler rh;
-
private bool scale;
private int size;
private bool browser;
@@ -89,28 +97,24 @@ namespace FSpot.Exporters.SmugMug {
private Album album;
private string dialog_name = "smugmug_export_dialog";
- private Glade.XML xml;
-
- // Dialogs
- private SmugMugAccountDialog gallery_add;
- private SmugMugAddAlbum album_add;
+ private GtkBeans.Builder builder;
// Widgets
- [Glade.Widget] Gtk.Dialog dialog;
- [Glade.Widget] Gtk.OptionMenu gallery_optionmenu;
- [Glade.Widget] Gtk.OptionMenu album_optionmenu;
+ [GtkBeans.Builder.Object] Gtk.Dialog dialog;
+ Gtk.OptionMenu gallery_optionmenu;
+ Gtk.OptionMenu album_optionmenu;
- [Glade.Widget] Gtk.CheckButton browser_check;
- [Glade.Widget] Gtk.CheckButton scale_check;
+ [GtkBeans.Builder.Object] Gtk.CheckButton browser_check;
+ [GtkBeans.Builder.Object] Gtk.CheckButton scale_check;
- [Glade.Widget] Gtk.SpinButton size_spin;
+ [GtkBeans.Builder.Object] Gtk.SpinButton size_spin;
- [Glade.Widget] Gtk.Button album_button;
- [Glade.Widget] Gtk.Button edit_button;
+ [GtkBeans.Builder.Object] Gtk.Button album_button;
+ [GtkBeans.Builder.Object] Gtk.Button edit_button;
- [Glade.Widget] Gtk.Button export_button;
+ [GtkBeans.Builder.Object] Gtk.Button export_button;
- [Glade.Widget] Gtk.ScrolledWindow thumb_scrolledwindow;
+ [GtkBeans.Builder.Object] Gtk.ScrolledWindow thumb_scrolledwindow;
System.Threading.Thread command_thread;
@@ -366,12 +370,12 @@ namespace FSpot.Exporters.SmugMug {
public void HandleAddGallery (object sender, System.EventArgs args)
{
- gallery_add = new SmugMugAccountDialog (this.Dialog);
+ new SmugMugAccountDialog (this.Dialog);
}
public void HandleEditGallery (object sender, System.EventArgs args)
{
- gallery_add = new SmugMugAccountDialog (this.Dialog, account);
+ new SmugMugAccountDialog (this.Dialog, account);
}
public void HandleAddAlbum (object sender, System.EventArgs args)
@@ -379,7 +383,7 @@ namespace FSpot.Exporters.SmugMug {
if (account == null)
throw new Exception (Catalog.GetString ("No account selected"));
- album_add = new SmugMugAddAlbum (this, account.SmugMug);
+ new SmugMugAddAlbum (this, account.SmugMug);
}
void LoadPreference (string key)
@@ -410,7 +414,7 @@ namespace FSpot.Exporters.SmugMug {
private Gtk.Dialog Dialog {
get {
if (dialog == null)
- dialog = (Gtk.Dialog) xml.GetWidget (dialog_name);
+ dialog = new Gtk.Dialog (builder.GetRawObject (dialog_name));
return dialog;
}
diff --git a/src/Extensions/Exporters/FSpot.Exporters.SmugMug/Makefile.am b/src/Extensions/Exporters/FSpot.Exporters.SmugMug/Makefile.am
index ccebce7..135ad49 100644
--- a/src/Extensions/Exporters/FSpot.Exporters.SmugMug/Makefile.am
+++ b/src/Extensions/Exporters/FSpot.Exporters.SmugMug/Makefile.am
@@ -11,7 +11,9 @@ SOURCES = \
FSpot.Exporters.SmugMug/SmugMugExport.cs
RESOURCES = \
- Resources/SmugMugExport.addin.xml \
- Resources/SmugMugExport.glade
+ Resources/smugmug_add_album_dialog.ui \
+ Resources/smugmug_add_dialog.ui \
+ Resources/smugmug_export_dialog.ui \
+ Resources/SmugMugExport.addin.xml
include $(top_srcdir)/build/build.mk
diff --git a/src/Extensions/Exporters/FSpot.Exporters.SmugMug/Resources/smugmug_add_album_dialog.ui b/src/Extensions/Exporters/FSpot.Exporters.SmugMug/Resources/smugmug_add_album_dialog.ui
new file mode 100644
index 0000000..38a25a6
--- /dev/null
+++ b/src/Extensions/Exporters/FSpot.Exporters.SmugMug/Resources/smugmug_add_album_dialog.ui
@@ -0,0 +1,149 @@
+<?xml version="1.0"?>
+<interface>
+ <!-- interface-requires gtk+ 2.12 -->
+ <!-- interface-naming-policy toplevel-contextual -->
+ <object class="GtkDialog" id="smugmug_add_album_dialog">
+ <property name="visible">True</property>
+ <property name="type_hint">dialog</property>
+ <property name="has_separator">False</property>
+ <child internal-child="vbox">
+ <object class="GtkVBox" id="vbox93">
+ <property name="visible">True</property>
+ <property name="orientation">vertical</property>
+ <child>
+ <object class="GtkTable" id="table26">
+ <property name="visible">True</property>
+ <property name="border_width">12</property>
+ <property name="n_rows">3</property>
+ <property name="n_columns">2</property>
+ <property name="column_spacing">7</property>
+ <property name="row_spacing">6</property>
+ <child>
+ <object class="GtkLabel" id="category_label">
+ <property name="visible">True</property>
+ <property name="xalign">1</property>
+ <property name="label" translatable="yes">_Description:</property>
+ <property name="use_underline">True</property>
+ </object>
+ <packing>
+ <property name="top_attach">1</property>
+ <property name="bottom_attach">2</property>
+ <property name="x_options">GTK_FILL</property>
+ <property name="y_options"></property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="name_label">
+ <property name="visible">True</property>
+ <property name="xalign">1</property>
+ <property name="label" translatable="yes">_Album Title:</property>
+ <property name="use_underline">True</property>
+ <property name="mnemonic_widget">title_entry</property>
+ </object>
+ <packing>
+ <property name="x_options">GTK_FILL</property>
+ <property name="y_options"></property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkEntry" id="title_entry">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="right_attach">2</property>
+ <property name="y_options"></property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkCheckButton" id="public_check">
+ <property name="label" translatable="yes">Public Album</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_underline">True</property>
+ <property name="draw_indicator">True</property>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="right_attach">2</property>
+ <property name="top_attach">2</property>
+ <property name="bottom_attach">3</property>
+ <property name="x_options">GTK_FILL</property>
+ <property name="y_options"></property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkComboBox" id="category_combo">
+ <property name="visible">True</property>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="right_attach">2</property>
+ <property name="top_attach">1</property>
+ <property name="bottom_attach">2</property>
+ <property name="x_options">GTK_FILL</property>
+ <property name="y_options">GTK_FILL</property>
+ </packing>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="pack_type">end</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ <child internal-child="action_area">
+ <object class="GtkHButtonBox" id="hbuttonbox15">
+ <property name="visible">True</property>
+ <property name="layout_style">end</property>
+ <child>
+ <object class="GtkButton" id="cancele_button">
+ <property name="label">gtk-cancel</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="can_default">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_stock">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkButton" id="add_button">
+ <property name="label">gtk-add</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="can_default">True</property>
+ <property name="has_default">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_stock">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="pack_type">end</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ <action-widgets>
+ <action-widget response="-6">cancele_button</action-widget>
+ <action-widget response="-5">add_button</action-widget>
+ </action-widgets>
+ </object>
+</interface>
diff --git a/src/Extensions/Exporters/FSpot.Exporters.SmugMug/Resources/smugmug_add_dialog.ui b/src/Extensions/Exporters/FSpot.Exporters.SmugMug/Resources/smugmug_add_dialog.ui
new file mode 100644
index 0000000..7b7cbc7
--- /dev/null
+++ b/src/Extensions/Exporters/FSpot.Exporters.SmugMug/Resources/smugmug_add_dialog.ui
@@ -0,0 +1,155 @@
+<?xml version="1.0"?>
+<interface>
+ <!-- interface-requires gtk+ 2.12 -->
+ <!-- interface-naming-policy toplevel-contextual -->
+ <object class="GtkDialog" id="smugmug_add_dialog">
+ <property name="visible">True</property>
+ <property name="type_hint">dialog</property>
+ <property name="has_separator">False</property>
+ <child internal-child="vbox">
+ <object class="GtkVBox" id="vbox97">
+ <property name="visible">True</property>
+ <property name="orientation">vertical</property>
+ <child>
+ <object class="GtkVBox" id="vbox98">
+ <property name="visible">True</property>
+ <child>
+ <object class="GtkTable" id="table28">
+ <property name="visible">True</property>
+ <property name="border_width">12</property>
+ <property name="n_rows">2</property>
+ <property name="n_columns">2</property>
+ <property name="column_spacing">7</property>
+ <property name="row_spacing">6</property>
+ <child>
+ <object class="GtkLabel" id="password_label">
+ <property name="visible">True</property>
+ <property name="xalign">1</property>
+ <property name="label" translatable="yes">_Password:</property>
+ <property name="use_underline">True</property>
+ <property name="mnemonic_widget">password_entry</property>
+ </object>
+ <packing>
+ <property name="top_attach">1</property>
+ <property name="bottom_attach">2</property>
+ <property name="x_options">GTK_FILL</property>
+ <property name="y_options"></property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkEntry" id="password_entry">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="visibility">False</property>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="right_attach">2</property>
+ <property name="top_attach">1</property>
+ <property name="bottom_attach">2</property>
+ <property name="y_options"></property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="username_label">
+ <property name="visible">True</property>
+ <property name="xalign">1</property>
+ <property name="label" translatable="yes">_Username:</property>
+ <property name="use_underline">True</property>
+ <property name="mnemonic_widget">username_entry</property>
+ </object>
+ <packing>
+ <property name="x_options">GTK_FILL</property>
+ <property name="y_options"></property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkEntry" id="username_entry">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ </object>
+ <packing>
+ <property name="left_attach">1</property>
+ <property name="right_attach">2</property>
+ <property name="y_options"></property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="pack_type">end</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ <child internal-child="action_area">
+ <object class="GtkHButtonBox" id="hbuttonbox16">
+ <property name="visible">True</property>
+ <property name="layout_style">end</property>
+ <child>
+ <object class="GtkButton" id="cancel_button">
+ <property name="label">gtk-cancel</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="can_default">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_stock">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkButton" id="remove_button">
+ <property name="label">gtk-remove</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="can_default">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_stock">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkButton" id="add_button">
+ <property name="label">gtk-add</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="can_default">True</property>
+ <property name="has_default">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_stock">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="pack_type">end</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ <action-widgets>
+ <action-widget response="-6">cancel_button</action-widget>
+ <action-widget response="-2">remove_button</action-widget>
+ <action-widget response="-5">add_button</action-widget>
+ </action-widgets>
+ </object>
+</interface>
diff --git a/src/Extensions/Exporters/FSpot.Exporters.SmugMug/Resources/smugmug_export_dialog.ui b/src/Extensions/Exporters/FSpot.Exporters.SmugMug/Resources/smugmug_export_dialog.ui
new file mode 100644
index 0000000..d61eb67
--- /dev/null
+++ b/src/Extensions/Exporters/FSpot.Exporters.SmugMug/Resources/smugmug_export_dialog.ui
@@ -0,0 +1,390 @@
+<?xml version="1.0"?>
+<interface>
+ <!-- interface-requires gtk+ 2.12 -->
+ <!-- interface-naming-policy toplevel-contextual -->
+ <object class="GtkDialog" id="smugmug_export_dialog">
+ <property name="title" translatable="yes">Export</property>
+ <property name="type_hint">dialog</property>
+ <property name="has_separator">False</property>
+ <child internal-child="vbox">
+ <object class="GtkVBox" id="vbox88">
+ <property name="visible">True</property>
+ <property name="orientation">vertical</property>
+ <child>
+ <object class="GtkHBox" id="hbox91">
+ <property name="visible">True</property>
+ <property name="border_width">6</property>
+ <child>
+ <object class="GtkFrame" id="frame50">
+ <property name="visible">True</property>
+ <property name="label_xalign">0</property>
+ <property name="shadow_type">none</property>
+ <child>
+ <object class="GtkAlignment" id="alignment67">
+ <property name="visible">True</property>
+ <property name="left_padding">12</property>
+ <child>
+ <object class="GtkScrolledWindow" id="thumb_scrolledwindow">
+ <property name="width_request">180</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="hscrollbar_policy">automatic</property>
+ <property name="vscrollbar_policy">automatic</property>
+ <property name="shadow_type">in</property>
+ <child>
+ <placeholder/>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child type="label">
+ <object class="GtkLabel" id="label220">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes"><b>Photos</b></property>
+ <property name="use_markup">True</property>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkVBox" id="vbox89">
+ <property name="visible">True</property>
+ <property name="orientation">vertical</property>
+ <property name="spacing">6</property>
+ <child>
+ <object class="GtkFrame" id="frame51">
+ <property name="visible">True</property>
+ <property name="label_xalign">0</property>
+ <property name="shadow_type">none</property>
+ <child>
+ <object class="GtkAlignment" id="alignment68">
+ <property name="visible">True</property>
+ <property name="left_padding">12</property>
+ <child>
+ <object class="GtkVBox" id="vbox90">
+ <property name="visible">True</property>
+ <property name="orientation">vertical</property>
+ <property name="spacing">6</property>
+ <child>
+ <object class="GtkHBox" id="hbox92">
+ <property name="visible">True</property>
+ <property name="spacing">6</property>
+ <child>
+ <object class="GtkLabel" id="gallery_label">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">_Account:</property>
+ <property name="use_underline">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <object class="GtkButton" id="gallery_button">
+ <property name="label">gtk-add</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_stock">True</property>
+ <signal name="clicked" handler="HandleAddGallery"/>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkButton" id="edit_button">
+ <property name="label">gtk-edit</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_stock">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">3</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label222">
+ <property name="visible">True</property>
+ <property name="xalign">0</property>
+ <property name="use_markup">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child type="label">
+ <object class="GtkLabel" id="label223">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes"><b>SmugMug Export</b></property>
+ <property name="use_markup">True</property>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkFrame" id="frame52">
+ <property name="visible">True</property>
+ <property name="label_xalign">0</property>
+ <property name="shadow_type">none</property>
+ <child>
+ <object class="GtkAlignment" id="alignment69">
+ <property name="visible">True</property>
+ <property name="left_padding">12</property>
+ <child>
+ <object class="GtkVBox" id="vbox91">
+ <property name="visible">True</property>
+ <property name="orientation">vertical</property>
+ <property name="spacing">6</property>
+ <child>
+ <object class="GtkHBox" id="hbox93">
+ <property name="visible">True</property>
+ <property name="spacing">6</property>
+ <child>
+ <object class="GtkLabel" id="album_label">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">_Export to Album:</property>
+ <property name="use_underline">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ <child>
+ <object class="GtkButton" id="album_button">
+ <property name="label">gtk-add</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_stock">True</property>
+ <signal name="clicked" handler="HandleAddAlbum"/>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkCheckButton" id="browser_check">
+ <property name="label" translatable="yes">Open _album in browser when done uploading</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_underline">True</property>
+ <property name="active">True</property>
+ <property name="draw_indicator">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child type="label">
+ <object class="GtkLabel" id="label225">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes"><b>Album</b></property>
+ <property name="use_markup">True</property>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkFrame" id="frame53">
+ <property name="visible">True</property>
+ <property name="label_xalign">0</property>
+ <property name="shadow_type">none</property>
+ <child>
+ <object class="GtkAlignment" id="alignment70">
+ <property name="visible">True</property>
+ <property name="left_padding">12</property>
+ <child>
+ <object class="GtkVBox" id="vbox92">
+ <property name="visible">True</property>
+ <property name="orientation">vertical</property>
+ <property name="spacing">6</property>
+ <child>
+ <object class="GtkHBox" id="hbox94">
+ <property name="visible">True</property>
+ <child>
+ <object class="GtkCheckButton" id="scale_check">
+ <property name="label" translatable="yes">_Resize to: </property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_underline">True</property>
+ <property name="draw_indicator">True</property>
+ <signal name="toggled" handler="HandleSizeActive"/>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkSpinButton" id="size_spin">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="adjustment">adjustment1</property>
+ <property name="climb_rate">1</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkLabel" id="label226">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">pixels</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
+ <child>
+ <placeholder/>
+ </child>
+ </object>
+ <packing>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ </object>
+ </child>
+ <child type="label">
+ <object class="GtkLabel" id="label227">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes"><b>Style</b></property>
+ <property name="use_markup">True</property>
+ </object>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">2</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ <child internal-child="action_area">
+ <object class="GtkHButtonBox" id="hbuttonbox14">
+ <property name="visible">True</property>
+ <property name="layout_style">end</property>
+ <child>
+ <object class="GtkButton" id="cancel_button">
+ <property name="label">gtk-cancel</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="can_default">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_stock">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkButton" id="export_button">
+ <property name="label" translatable="yes">_Export</property>
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="can_default">True</property>
+ <property name="receives_default">False</property>
+ <property name="use_underline">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="pack_type">end</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ </object>
+ </child>
+ <action-widgets>
+ <action-widget response="-6">cancel_button</action-widget>
+ <action-widget response="-5">export_button</action-widget>
+ </action-widgets>
+ </object>
+ <object class="GtkAdjustment" id="adjustment1">
+ <property name="value">400</property>
+ <property name="upper">10000</property>
+ <property name="step_increment">1</property>
+ <property name="page_increment">10</property>
+ <property name="page_size">10</property>
+ </object>
+</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]