示例#1
0
 private Gnome.DruidPage CreateServerInformationPage()
 {
     ServerInformationPage =
     new Gnome.DruidPageStandard(
      Util.GS("iFolder Server"),
      AddAccountPixbuf,
      null);
        ServerInformationPage.CancelClicked +=
     new Gnome.CancelClickedHandler(OnCancelClicked);
        ServerInformationPage.Prepared +=
     new Gnome.PreparedHandler(OnServerInformationPagePrepared);
        Table table = new Table(4, 3, false);
        ServerInformationPage.VBox.PackStart(table, true, true, 0);
        table.ColumnSpacing = 6;
        table.RowSpacing = 6;
        table.BorderWidth = 12;
        Label l = new Label(Util.GS("Enter the name of your iFolder Server (for example, \"ifolder.example.net\")."));
        table.Attach(l, 0,3, 0,1,
     AttachOptions.Fill | AttachOptions.Expand, 0,0,0);
        l.LineWrap = true;
        l.Xalign = 0.0F;
        table.Attach(new Label(""), 0,1, 1,2,
     AttachOptions.Fill, 0,12,0);
        l = new Label(Util.GS("Server _Address:"));
        table.Attach(l, 1,2, 1,2,
     AttachOptions.Shrink | AttachOptions.Fill, 0,0,0);
        l.Xalign = 0.0F;
        ServerNameEntry = new Entry();
        table.Attach(ServerNameEntry, 2,3, 1,2,
     AttachOptions.Fill | AttachOptions.Expand, 0,0,0);
        l.MnemonicWidget = ServerNameEntry;
        ServerNameEntry.Changed += new EventHandler(UpdateServerInformationPageSensitivity);
        ServerNameEntry.KeyPressEvent
     += new KeyPressEventHandler(OnServerNameEntryKeyPress);
        MakeDefaultLabel = new Label(Util.GS("Setting this iFolder Server as your default server will allow iFolder to automatically select this server when adding new folders."));
        table.Attach(MakeDefaultLabel, 0,3, 2,3,
     AttachOptions.Fill | AttachOptions.Expand, 0,0,0);
        MakeDefaultLabel.LineWrap = true;
        MakeDefaultLabel.Xalign = 0.0F;
        DefaultServerCheckButton = new CheckButton(Util.GS("Make this my _default server"));
        table.Attach(DefaultServerCheckButton, 1,3, 3,4,
     AttachOptions.Fill | AttachOptions.Expand, 0,0,0);
        return ServerInformationPage;
 }
示例#2
0
 private Gnome.DruidPage CreateUserInformationPage()
 {
     UserInformationPage =
     new Gnome.DruidPageStandard(
      Util.GS("Identity"),
      AddAccountPixbuf,
      null);
        UserInformationPage.CancelClicked +=
     new Gnome.CancelClickedHandler(OnCancelClicked);
        UserInformationPage.Prepared +=
     new Gnome.PreparedHandler(OnUserInformationPagePrepared);
        Table table = new Table(4, 3, false);
        UserInformationPage.VBox.PackStart(table, false, false, 0);
        table.ColumnSpacing = 6;
        table.RowSpacing = 6;
        table.BorderWidth = 12;
        Label l = new Label(Util.GS("Enter your iFolder user name and password (for example, \"jsmith\")."));
        table.Attach(l, 0,3, 0,1,
     AttachOptions.Fill | AttachOptions.Expand, 0,0,0);
        l.LineWrap = true;
        l.Xalign = 0.0F;
        table.Attach(new Label(""), 0,1, 1,2,
     AttachOptions.Fill, 0,12,0);
        l = new Label(Util.GS("_User Name:"));
        table.Attach(l, 1,2, 1,2,
     AttachOptions.Shrink | AttachOptions.Fill, 0,0,0);
        l.Xalign = 0.0F;
        UserNameEntry = new Entry();
        table.Attach(UserNameEntry, 2,3, 1,2,
     AttachOptions.Fill | AttachOptions.Expand, 0,0,0);
        l.MnemonicWidget = UserNameEntry;
        UserNameEntry.Changed += new EventHandler(UpdateUserInformationPageSensitivity);
        l = new Label(Util.GS("_Password:"******"_Remember my password"));
        table.Attach(RememberPasswordCheckButton, 2,3, 3,4,
     AttachOptions.Fill | AttachOptions.Expand, 0,0,0);
        return UserInformationPage;
 }
 private Gnome.DruidPage CreateEmailPage()
 {
     EmailPage = new Gnome.DruidPageStandard("Obtain old data file",KeyRecoveryPixbuf,null);
        EmailPage.CancelClicked +=
                         new Gnome.CancelClickedHandler(OnCancelClicked);
       EmailPage.Prepared +=
                        new Gnome.PreparedHandler(OnEmailPagePrepared);
      Table table = new Table(4, 3, false);
                 EmailPage.VBox.PackStart(table, false, false, 0);
                 table.ColumnSpacing = 6;
                 table.RowSpacing = 6;
                 table.BorderWidth = 12;
                 Label l = new Label(Util.GS("The old data file was successfully stored at the following path."));
                 table.Attach(l, 0,1, 0,1,
                         AttachOptions.Fill | AttachOptions.Expand, 0,0,0);
                 l.LineWrap = true;
                 l.Xalign = 0.0F;
                 exportedPath = new Entry();
                 exportedPath.Sensitive = false;
                 table.Attach(exportedPath, 0, 1, 1, 2,
                         AttachOptions.Fill | AttachOptions.Expand, 0, 0, 0);
                 Label l2 = new Label(Util.GS("Send this file to the administrator to obtain the new data file. You must then use the new data file to reset your passphrase using the second option of the wizard."));
                 table.Attach(l2,0,1, 2,3,
                          AttachOptions.Fill | AttachOptions.Expand, 0,0,0);
                 l2.LineWrap = true;
                 l2.Xalign = 0.0F;
                 l = new Label(Util.GS("Email address")+":");
                 l.Xalign = 0.0F;
                 table.Attach(l, 0, 1, 3, 4,
                         AttachOptions.Fill | AttachOptions.Expand, 0, 0, 0);
                emailID = new Entry();
                 emailID.Sensitive = false;
                 table.Attach(emailID, 1, 2, 3, 4, AttachOptions.Fill | AttachOptions.Expand, 0, 0, 0);
                 l.MnemonicWidget = emailID;
        return EmailPage;
 }
 private Gnome.DruidPage CreateFinishPage()
 {
     FinishPage = new Gnome.DruidPageStandard(Util.GS("Passphrase reset successfully"),KeyRecoveryPixbuf,null);
        FinishPage.CancelClicked +=
                         new Gnome.CancelClickedHandler(OnCancelClicked);
        FinishPage.Prepared +=
                         new Gnome.PreparedHandler(OnFinishPagePrepared);
        Table table = new Table(4, 3, false);
       FinishPage.VBox.PackStart(table, false, false, 0);
                 table.ColumnSpacing = 6;
                 table.RowSpacing = 6;
                 table.BorderWidth = 12;
                 Label l1 = new Label(Util.GS("Congratulations!! You have successfully reset the passphrase.Now,you can use the new passphrase to access your data."));
                 table.Attach(l1, 0,1, 0,1,AttachOptions.Fill | AttachOptions.Expand, 0,0,0);
                 l1.LineWrap = true;
                 l1.Xalign = 0.0F;
     return FinishPage;
 }
 private Gnome.DruidPage CreateInfoPage()
 {
     InfoPage = new Gnome.DruidPageStandard(
                         Util.GS("Welcome to the Passphrase Recovery Wizard"),
                         KeyRecoveryPixbuf, null);
                 InfoPage.CancelClicked +=
                         new Gnome.CancelClickedHandler(OnCancelClicked);
                 InfoPage.Prepared +=
                         new Gnome.PreparedHandler(OnInfoPagePrepared);
                 Table table = new Table(4,3, false);
                 InfoPage.VBox.PackStart(table, false, false, 0);
                 table.ColumnSpacing = 6;
                 table.RowSpacing = 6;
                 table.BorderWidth = 12;
                 Label l2 = new Label(Util.GS("To recover a lost passphrase, you need the private key file (private key of the certificate) and the password to it or the decrypted key file from the administrator."));
                 table.Attach(l2,0,1, 1,2,
                         AttachOptions.Fill | AttachOptions.Expand, 0,0,0);
                 l2.LineWrap = true;
                 l2.Xalign = 0.0F;
                 Label l5 = new Label(Util.GS("If you don't have these parameters, you can use this wizard to export the encrypted key file, which you can mail to your administrator who will decrypt and send it back to you. You can then use this decrypted key file to reset your passphrase."));
                 table.Attach(l5, 0,1, 4,5,
                         AttachOptions.Fill | AttachOptions.Expand, 0,0,0);
                 l5.LineWrap = true;
                 l5.Xalign = 0.0F;
        return InfoPage;
 }
示例#6
0
 private Gnome.DruidPage CreateUserInformationPage()
 {
     UserInformationPage =
     new Gnome.DruidPageStandard(
      Util.GS("iFolder Account Information"),
      AddAccountPixbuf,
      null);
        UserInformationPage.CancelClicked +=
     new Gnome.CancelClickedHandler(OnCancelClicked);
        UserInformationPage.Prepared +=
     new Gnome.PreparedHandler(OnUserInformationPagePrepared);
        Table table = new Table(4, 3, false);
        UserInformationPage.VBox.PackStart(table, false, false, 0);
        table.ColumnSpacing = 6;
        table.RowSpacing = 6;
        table.BorderWidth = 12;
        Label l = new Label(Util.GS("Enter your iFolder user name and password (for example, \"jsmith\")."));
        table.Attach(l, 0,3, 0,1,
     AttachOptions.Fill | AttachOptions.Expand, 0,0,0);
        l.LineWrap = true;
        l.Xalign = 0.0F;
        table.Attach(new Label(""), 0,1, 1,2,
     AttachOptions.Fill, 0,12,0);
        l = new Label(Util.GS("_User name:"));
        table.Attach(l, 1,2, 1,2,
     AttachOptions.Shrink | AttachOptions.Fill, 0,0,0);
        l.Xalign = 0.0F;
        UserNameEntry = new Entry();
        table.Attach(UserNameEntry, 2,3, 1,2,
     AttachOptions.Fill | AttachOptions.Expand, 0,0,0);
        l.MnemonicWidget = UserNameEntry;
        if ((bool)ClientConfig.Get(
     ClientConfig.KEY_IFOLDER_ACCOUNT_PREFILL))
        {
     UserNameEntry.Text = (string)
      ClientConfig.Get(
       ClientConfig.KEY_IFOLDER_ACCOUNT_USER_NAME);
        }
        UserNameEntry.Changed += new EventHandler(UpdateUserInformationPageSensitivity);
        UserNameEntry.ActivatesDefault = true;
        l = new Label(Util.GS("_Password:"******"_Remember password on this computer"));
        table.Attach(RememberPasswordCheckButton, 2,3, 3,4,
     AttachOptions.Fill | AttachOptions.Expand, 0,0,0);
        if ((bool)ClientConfig.Get(
     ClientConfig.KEY_IFOLDER_ACCOUNT_PREFILL) &&
     (bool)ClientConfig.Get(
     ClientConfig.KEY_IFOLDER_ACCOUNT_REMEMBER_PASSWORD))
        {
     RememberPasswordCheckButton.Active = (bool)
      ClientConfig.Get(
       ClientConfig.KEY_IFOLDER_ACCOUNT_REMEMBER_PASSWORD);
        }
        return UserInformationPage;
 }
示例#7
0
 private Gnome.DruidPage CreateUserInformationPage()
 {
     UserInformationPage =
     new Gnome.DruidPageStandard(
      Util.GS("Server Information"),
      AddAccountPixbuf,
      null);
        UserInformationPage.CancelClicked +=
     new Gnome.CancelClickedHandler(OnCancelClicked);
        UserInformationPage.Prepared +=
     new Gnome.PreparedHandler(OnUserInformationPagePrepared);
        UserInformationPage.NextClicked += new Gnome.NextClickedHandler(OnUserInfoForwardClicked);
        Table table = new Table(5, 3, false);
        UserInformationPage.VBox.PackStart(table, false, false, 0);
        table.ColumnSpacing = 6;
        table.RowSpacing = 6;
        table.BorderWidth = 12;
        Label l = new Label(Util.GS("Select the server "));
        table.Attach(l, 0,3, 0,1,
     AttachOptions.Fill | AttachOptions.Expand, 0,0,0);
        l.LineWrap = true;
        l.Xalign = 0.0F;
        table.Attach(new Label(""), 0,1, 1,2,
     AttachOptions.Fill, 0,12,0);
        l = new Label(Util.GS("Server Address:"));
        table.Attach(l, 1,2, 1,2,
     AttachOptions.Shrink | AttachOptions.Fill, 0,0,0);
        l.Xalign = 0.0F;
        domainList= ComboBox.NewText();
        table.Attach(domainList, 2,3, 1,2,
     AttachOptions.Fill | AttachOptions.Expand, 0,0,0);
        l = new Label(Util.GS("Select Security options"));
        table.Attach(l, 0,3, 2,3,
     AttachOptions.Shrink | AttachOptions.Fill, 0,0,0);
        l.Xalign = 0.0F;
        encryptionCheckButton = new RadioButton(Util.GS("Encrypted"));
        table.Attach(encryptionCheckButton, 1,3, 3,4,
     AttachOptions.Fill | AttachOptions.Expand, 0,0,0);
        sslCheckButton = new RadioButton(encryptionCheckButton, Util.GS("Regular"));
        table.Attach(sslCheckButton, 1,3, 4,5, AttachOptions.Fill | AttachOptions.Expand, 0,0,0);
        return UserInformationPage;
 }
示例#8
0
 private Gnome.DruidPage CreateRAPage()
 {
     RAPage = new Gnome.DruidPageStandard(
     Util.GS("Passphrase"),
     AddAccountPixbuf,
     null);
        RAPage.CancelClicked += new Gnome.CancelClickedHandler(OnCancelClicked);
        RAPage.Prepared +=
     new Gnome.PreparedHandler(OnRAPagePrepared);
        RAPage.NextClicked +=
     new Gnome.NextClickedHandler(OnValidateClicked);
        Table table = new Table(6, 3, false);
        RAPage.VBox.PackStart(table, false, false, 0);
        table.ColumnSpacing = 6;
        table.RowSpacing = 6;
        table.BorderWidth = 12;
        Label l = new Label(Util.GS("Enter the passphrase"));
        table.Attach(l, 0,3, 0,1,
     AttachOptions.Fill | AttachOptions.Expand, 0,0,0);
        l.LineWrap = true;
        l.Xalign = 0.0F;
        table.Attach(new Label(""), 0,1, 1,2,
     AttachOptions.Fill, 0,12,0);
        l = new Label(Util.GS("_Passphrase:"));
        table.Attach(l, 1,2, 1,2,
     AttachOptions.Shrink | AttachOptions.Fill, 0,0,0);
        l.Xalign = 0.0F;
        PassPhraseEntry = new Entry();
        PassPhraseEntry.Visibility = false;
        table.Attach(PassPhraseEntry, 2,3, 1,2,
     AttachOptions.Fill | AttachOptions.Expand, 0,0,0);
        PassPhraseEntry.Changed += new EventHandler(ChangeSensitivity);
        l.MnemonicWidget = PassPhraseEntry;
        RetypePassPhraseLabel = new Label(Util.GS("R_etype the passphrase:"));
        table.Attach(RetypePassPhraseLabel, 1,2, 2,3,
     AttachOptions.Shrink | AttachOptions.Fill, 0,0,0);
        l.Xalign = 0.0F;
        PassPhraseVerifyEntry = new Entry();
        PassPhraseVerifyEntry.Visibility = false;
        table.Attach(PassPhraseVerifyEntry, 2,3, 2,3,
     AttachOptions.Fill | AttachOptions.Expand, 0,0,0);
        PassPhraseVerifyEntry.Changed += new EventHandler(ChangeSensitivity);
        l.MnemonicWidget = PassPhraseVerifyEntry;
        RememberPassPhraseCheckButton = new CheckButton(Util.GS("_Remember the passphrase"));
        table.Attach(RememberPassPhraseCheckButton, 2,3, 3,4,
     AttachOptions.Fill | AttachOptions.Expand, 0,0,0);
        SelectRALabel = new Label(Util.GS("Select the Passphrase Recovery Agent"));
        table.Attach(SelectRALabel, 0,3, 4,5,
     AttachOptions.Fill | AttachOptions.Expand, 0,0,0);
        l.LineWrap = true;
        l.Xalign = 0.0F;
        RATreeView = new iFolderTreeView ();
        ScrolledWindow RAScrolledWindow = new ScrolledWindow();
        RAScrolledWindow.ShadowType = Gtk.ShadowType.None;
        RAScrolledWindow.HscrollbarPolicy = Gtk.PolicyType.Automatic;
        RAScrolledWindow.VscrollbarPolicy = Gtk.PolicyType.Automatic;
        RAScrolledWindow.Add(RATreeView);
        RATreeStore = new ListStore(typeof(string));
        RATreeView.Model = RATreeStore;
        TreeViewColumn raNameColumn = new TreeViewColumn();
        raNameColumn.Title = Util.GS("Passphrase Recovery Agents");
        CellRendererText cr = new CellRendererText();
        cr.Xpad = 5;
        raNameColumn.PackStart(cr, false);
        raNameColumn.SetCellDataFunc(cr,
        new TreeCellDataFunc(RANameCellTextDataFunc));
        raNameColumn.Resizable = true;
        raNameColumn.MinWidth = 250;
        RATreeView.AppendColumn(raNameColumn);
        RATreeView.Selection.Mode = SelectionMode.Single;
     table.Attach(RAScrolledWindow, 0,3, 5,7,
      AttachOptions.Expand | AttachOptions.Fill, 0,0,0);
        return RAPage;
 }
示例#9
0
 private Gnome.DruidPage CreateMigrationOptionsPage()
 {
     MigrationOptionsPage =
     new Gnome.DruidPageStandard(
      Util.GS("Migration Options"),
      AddAccountPixbuf,
      null);
        MigrationOptionsPage.CancelClicked +=
     new Gnome.CancelClickedHandler(OnCancelClicked);
        MigrationOptionsPage.Prepared +=
     new Gnome.PreparedHandler(OnMigrationOptionsPagePrepared);
        Table table = new Table(5, 6, false);
        MigrationOptionsPage.VBox.PackStart(table, true, true, 0);
        table.ColumnSpacing = 6;
        table.RowSpacing = 6;
        table.BorderWidth = 12;
        Label l = new Label(Util.GS("Select one of the following options")+":");
        table.Attach(l, 0,6, 0,1,
     AttachOptions.Fill | AttachOptions.Expand, 0,0,0);
        l.LineWrap = true;
        l.Xalign = 0.0F;
        table.Attach(new Label(""), 0,1, 1,2,
     AttachOptions.Fill, 0,12,0);
        deleteFromServer = new RadioButton(Util.GS("Migrate the iFolder and disconnect it from 2.x domain"));
        deleteFromServer.Active = true;
        deleteFromServer.Sensitive = true;
        deleteFromServer.Toggled += new EventHandler(OndeleteCheckButtonChanged);
        table.Attach(deleteFromServer, 1,6, 1,2,
     AttachOptions.Shrink | AttachOptions.Fill, 0,0,0);
        table.Attach(new Label(""), 0,1, 2,3,
     AttachOptions.Fill, 0,12,0);
        copyToServer = new RadioButton(deleteFromServer, Util.GS("Create a copy of the iFolder and migrate"));
        copyToServer.Active = false;
        copyToServer.Toggled += new EventHandler(OncopyCheckButtonChanged);
        table.Attach(copyToServer, 1,6, 2,3,
     AttachOptions.Fill | AttachOptions.Expand, 0,0,0);
        table.Attach(new Label(""), 0,1, 3,4,
     AttachOptions.Shrink, 0,12,0);
        table.Attach(new Label(""), 1,2, 3,4, AttachOptions.Fill, 0,3,0);
        copyDir = new CheckButton(Util.GS("Copy the parent folder"));
        copyDir.Sensitive = false;
        table.Attach(copyDir, 2,6, 3,4, AttachOptions.Fill| AttachOptions.Expand, 0,0,0);
        table.Attach(new Label("Location:"), 0,1, 4,5, AttachOptions.Fill, 0,0,0);
        LocationEntry = new Entry();
        LocationEntry.Text = location;
        LocationEntry.Sensitive = false;
        LocationEntry.Changed += new EventHandler( OnTextChanged);
        table.Attach(LocationEntry, 1,5, 4,5, AttachOptions.Fill, 0,0,0);
        BrowseButton = new Button(Util.GS("_Browse"));
        table.Attach(BrowseButton, 5,6, 4,5, AttachOptions.Fill, 0,0,0);
        BrowseButton.Sensitive = false;
        BrowseButton.Clicked += new EventHandler(OnBrowseButtonClicked);
        return MigrationOptionsPage;
 }