From 86ab06486a6cb6272b1573a4ace6887cdb3fc76e Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Fri, 24 Feb 2012 21:31:45 +0100 Subject: [PATCH] Invite page for Linux --- SparkleShare/SparkleSetup.cs | 57 +++++++++++++++++++++++++++++++++++- 1 file changed, 56 insertions(+), 1 deletion(-) diff --git a/SparkleShare/SparkleSetup.cs b/SparkleShare/SparkleSetup.cs index 3af57d68..6f31c200 100755 --- a/SparkleShare/SparkleSetup.cs +++ b/SparkleShare/SparkleSetup.cs @@ -68,7 +68,6 @@ namespace SparkleShare { "Don't worry, this information is only visible to your team members."; - Table table = new Table (2, 3, true) { RowSpacing = 6, ColumnSpacing = 6 @@ -329,6 +328,62 @@ namespace SparkleShare { break; } + case PageType.Invite: { + + Header = _("You've reveived an invite!"); + Description = _("Do you want to add this project to SparkleShare?"); + + + Table table = new Table (2, 3, true) { + RowSpacing = 6, + ColumnSpacing = 6 + }; + + Label address_label = new Label (_("Address:")) { + Xalign = 1 + }; + + Label path_label = new Label (_("Remote Path:")) { + Xalign = 1 + }; + + Label address_value = new Label ("" + Controller.PendingInvite.Address + "") { + UseMarkup = true, + Xalign = 0 + }; + + Label path_value = new Label ("" + Controller.PendingInvite.RemotePath + "") { + UseMarkup = true, + Xalign = 0 + }; + + table.Attach (address_label, 0, 1, 0, 1); + table.Attach (address_value, 1, 2, 0, 1); + table.Attach (path_label, 0, 1, 1, 2); + table.Attach (path_value, 1, 2, 1, 2); + + VBox wrapper = new VBox (false, 9); + wrapper.PackStart (table, true, false, 0); + + Button cancel_button = new Button (_("Cancel")); + + cancel_button.Clicked += delegate { + Controller.PageCancelled (); + }; + + Button add_button = new Button (_("Add")); + + add_button.Clicked += delegate { + Controller.InvitePageCompleted (); + }; + + AddButton (cancel_button); + AddButton (add_button); + Add (wrapper); + + break; + } + case PageType.Syncing: { Header = String.Format (_("Adding project ‘{0}’…"), Controller.SyncingFolder);