From cbdc59f12aa047540f69477e5aab98665fdd6bd5 Mon Sep 17 00:00:00 2001 From: "Joel W. Reed" Date: Sat, 3 Nov 2007 13:44:18 -0400 Subject: [PATCH] more.md.work --- .../ClientCertificateDialog.cs | 63 -- .../ClientCertificatePasswordDialog.cs | 63 -- .../Command.cs | 31 - .../CommandCheckout.cs | 78 -- .../CommandUpdate.cs | 75 -- .../Gui.ClientCertificateDialog.cs | 165 ---- .../Gui.ClientCertificatePasswordDialog.cs | 169 ---- .../Gui.SslServerTrustDialog.cs | 396 -------- .../Gui.UserPasswordDialog.cs | 188 ---- .../Makefile | 15 - ...Develop.VersionControl.TeamFoundation.addin.xml | 31 - ...velop.VersionControl.TeamFoundation.dll.sources | 7 - .../README | 10 - .../SslServerTrustDialog.cs | 94 -- .../TeamFoundationPad.cs | 65 -- .../TeamFoundationRepository.cs | 548 ----------- .../TeamFoundationRevision.cs | 59 -- .../TeamFoundationVersionControl.cs | 303 ------ .../UserPasswordDialog.cs | 103 -- .../generated.cs | 35 - .../gui.stetic | 1035 -------------------- 21 files changed, 3533 deletions(-) delete mode 100644 tools/MonoDevelop.VersionControl.TeamFoundation/ClientCertificateDialog.cs delete mode 100644 tools/MonoDevelop.VersionControl.TeamFoundation/ClientCertificatePasswordDialog.cs delete mode 100644 tools/MonoDevelop.VersionControl.TeamFoundation/Command.cs delete mode 100644 tools/MonoDevelop.VersionControl.TeamFoundation/CommandCheckout.cs delete mode 100644 tools/MonoDevelop.VersionControl.TeamFoundation/CommandUpdate.cs delete mode 100644 tools/MonoDevelop.VersionControl.TeamFoundation/Gui.ClientCertificateDialog.cs delete mode 100644 tools/MonoDevelop.VersionControl.TeamFoundation/Gui.ClientCertificatePasswordDialog.cs delete mode 100644 tools/MonoDevelop.VersionControl.TeamFoundation/Gui.SslServerTrustDialog.cs delete mode 100644 tools/MonoDevelop.VersionControl.TeamFoundation/Gui.UserPasswordDialog.cs delete mode 100644 tools/MonoDevelop.VersionControl.TeamFoundation/Makefile delete mode 100644 tools/MonoDevelop.VersionControl.TeamFoundation/MonoDevelop.VersionControl.TeamFoundation.addin.xml delete mode 100644 tools/MonoDevelop.VersionControl.TeamFoundation/MonoDevelop.VersionControl.TeamFoundation.dll.sources delete mode 100644 tools/MonoDevelop.VersionControl.TeamFoundation/README delete mode 100644 tools/MonoDevelop.VersionControl.TeamFoundation/SslServerTrustDialog.cs delete mode 100644 tools/MonoDevelop.VersionControl.TeamFoundation/TeamFoundationPad.cs delete mode 100644 tools/MonoDevelop.VersionControl.TeamFoundation/TeamFoundationRepository.cs delete mode 100644 tools/MonoDevelop.VersionControl.TeamFoundation/TeamFoundationRevision.cs delete mode 100644 tools/MonoDevelop.VersionControl.TeamFoundation/TeamFoundationVersionControl.cs delete mode 100644 tools/MonoDevelop.VersionControl.TeamFoundation/UserPasswordDialog.cs delete mode 100644 tools/MonoDevelop.VersionControl.TeamFoundation/generated.cs delete mode 100644 tools/MonoDevelop.VersionControl.TeamFoundation/gui.stetic diff --git a/tools/MonoDevelop.VersionControl.TeamFoundation/ClientCertificateDialog.cs b/tools/MonoDevelop.VersionControl.TeamFoundation/ClientCertificateDialog.cs deleted file mode 100644 index 2b1fb5a..0000000 --- a/tools/MonoDevelop.VersionControl.TeamFoundation/ClientCertificateDialog.cs +++ /dev/null @@ -1,63 +0,0 @@ -using System; -using MonoDevelop.Core; - -namespace MonoDevelop.VersionControl.TeamFoundation.Gui -{ - public partial class ClientCertificateDialog : Gtk.Dialog - { - public ClientCertificateDialog (string realm, bool maySave) - { - this.Build(); - - labelRealm.Text = GettextCatalog.GetString ("Authentication realm: ") + realm; - - if (!maySave) - checkSave.Visible = false; - } - - public string File { - get { return fileentry.Path; } - } - - public bool Save { - get { return checkSave.Active; } - } - - internal static bool Show (string realm, int may_save, out SvnClient.svn_auth_cred_ssl_client_cert_t retData) - { - SvnClient.svn_auth_cred_ssl_client_cert_t data = new SvnClient.svn_auth_cred_ssl_client_cert_t (); - - bool res = false; - object monitor = new Object (); - - EventHandler del = delegate { - ClientCertificateDialog dlg = new ClientCertificateDialog (realm, may_save != 0); - try { - res = (dlg.Run () == (int) Gtk.ResponseType.Ok); - if (res) { - data.may_save = dlg.Save ? 1 : 0; - data.cert_file = dlg.File; - } - } finally { - dlg.Destroy (); - lock (monitor) { - System.Threading.Monitor.Pulse (monitor); - } - } - }; - - if (GLib.MainContext.Depth > 0) { - // Already in GUI thread - del (null, null); - } - else { - lock (monitor) { - Gtk.Application.Invoke (del); - System.Threading.Monitor.Wait (monitor); - } - } - retData = data; - return res; - } - } -} diff --git a/tools/MonoDevelop.VersionControl.TeamFoundation/ClientCertificatePasswordDialog.cs b/tools/MonoDevelop.VersionControl.TeamFoundation/ClientCertificatePasswordDialog.cs deleted file mode 100644 index 0cbd49e..0000000 --- a/tools/MonoDevelop.VersionControl.TeamFoundation/ClientCertificatePasswordDialog.cs +++ /dev/null @@ -1,63 +0,0 @@ -using System; -using MonoDevelop.Core; - -namespace MonoDevelop.VersionControl.TeamFoundation.Gui -{ - public partial class ClientCertificatePasswordDialog : Gtk.Dialog - { - public ClientCertificatePasswordDialog (string realm, bool maySave) - { - this.Build(); - - labelRealm.Text = GettextCatalog.GetString ("Authentication realm: ") + realm; - - if (!maySave) - checkSave.Visible = false; - } - - public string Password { - get { return entryPwd.Text; } - } - - public bool Save { - get { return checkSave.Active; } - } - - internal static bool Show (string realm, int may_save, out SvnClient.svn_auth_cred_ssl_client_cert_pw_t retData) - { - SvnClient.svn_auth_cred_ssl_client_cert_pw_t data = new SvnClient.svn_auth_cred_ssl_client_cert_pw_t (); - - bool res = false; - object monitor = new Object (); - - EventHandler del = delegate { - ClientCertificatePasswordDialog dlg = new ClientCertificatePasswordDialog (realm, may_save != 0); - try { - res = (dlg.Run () == (int) Gtk.ResponseType.Ok); - if (res) { - data.may_save = dlg.Save ? 1 : 0; - data.password = dlg.Password; - } - } finally { - dlg.Destroy (); - lock (monitor) { - System.Threading.Monitor.Pulse (monitor); - } - } - }; - - if (GLib.MainContext.Depth > 0) { - // Already in GUI thread - del (null, null); - } - else { - lock (monitor) { - Gtk.Application.Invoke (del); - System.Threading.Monitor.Wait (monitor); - } - } - retData = data; - return res; - } - } -} diff --git a/tools/MonoDevelop.VersionControl.TeamFoundation/Command.cs b/tools/MonoDevelop.VersionControl.TeamFoundation/Command.cs deleted file mode 100644 index 9aa9315..0000000 --- a/tools/MonoDevelop.VersionControl.TeamFoundation/Command.cs +++ /dev/null @@ -1,31 +0,0 @@ -using System; -using System.IO; -using System.Net; -using System.Collections.Generic; -using System.Collections; -using MonoDevelop.Projects.Serialization; -using MonoDevelop.Core; -using Microsoft.TeamFoundation; -using Microsoft.TeamFoundation.Client; -using Microsoft.TeamFoundation.VersionControl.Client; -using Microsoft.TeamFoundation.Server; - -namespace MonoDevelop.VersionControl.TeamFoundation -{ - abstract class Command - { - private VersionControlServer _vcs; - - public Command(VersionControlServer vcs) - { - _vcs = vcs; - } - - public VersionControlServer VersionControlServer - { - get { return _vcs; } - } - - public abstract void Run (); - } -} diff --git a/tools/MonoDevelop.VersionControl.TeamFoundation/CommandCheckout.cs b/tools/MonoDevelop.VersionControl.TeamFoundation/CommandCheckout.cs deleted file mode 100644 index 100e5d6..0000000 --- a/tools/MonoDevelop.VersionControl.TeamFoundation/CommandCheckout.cs +++ /dev/null @@ -1,78 +0,0 @@ -using System; -using System.IO; -using System.Net; -using System.Collections.Generic; -using System.Collections; -using MonoDevelop.Projects.Serialization; -using MonoDevelop.Core; -using Microsoft.TeamFoundation; -using Microsoft.TeamFoundation.Client; -using Microsoft.TeamFoundation.VersionControl.Client; -using Microsoft.TeamFoundation.Server; - -namespace MonoDevelop.VersionControl.TeamFoundation -{ - class CommandCheckout : Command - { - private string _serverPath; - private RecursionType recursionType; - private GetRequest getRequest; - - public CommandCheckout (VersionControlServer vcs, string serverPath, - string localPath, Revision rev, - bool recurse, IProgressMonitor monitor) : base(vcs) - { - if (String.IsNullOrEmpty(serverPath)) - { - throw new ArgumentException("No server path specified"); - } - - _serverPath = serverPath; - recursionType = recurse ? RecursionType.Full : RecursionType.None; - getRequest = new GetRequest(serverPath, recursionType, VersionSpec.Latest); - } - - public void MyGettingEventHandler(Object sender, GettingEventArgs e) - { - if (e.Status == OperationStatus.Getting) - Console.WriteLine("updating {0}", e.TargetLocalItem); - } - - void ProcessGetOutput(Workspace workspace, ILocalUpdateOperation[] operations, - object userData) - { - List setPermissions = (List) userData; - foreach (ILocalUpdateOperation operation in operations) - { - if (operation.ItemType == ItemType.Folder) continue; - - switch (operation.ChangeType) - { - case ChangeType.Delete: - Console.WriteLine("deleting " + operation.SourceLocalItem); - break; - case ChangeType.Rename: - Console.WriteLine("renaming " + operation.TargetLocalItem); - setPermissions.Add(operation.TargetLocalItem); - break; - case ChangeType.Add: - Console.WriteLine("adding " + operation.TargetLocalItem); - setPermissions.Add(operation.TargetLocalItem); - break; - default: - break; - } - } - } - - public override void Run () - { - VersionControlServer.Getting += MyGettingEventHandler; - //List setPermissions = new List(); - //GetOptions getOptions = GetOptions.None; - - //Workspace workspace = GetWorkspace(); - //workspace.Get(getRequest, getOptions, ProcessGetOutput, setPermissions); - } - } -} diff --git a/tools/MonoDevelop.VersionControl.TeamFoundation/CommandUpdate.cs b/tools/MonoDevelop.VersionControl.TeamFoundation/CommandUpdate.cs deleted file mode 100644 index 3c4fe96..0000000 --- a/tools/MonoDevelop.VersionControl.TeamFoundation/CommandUpdate.cs +++ /dev/null @@ -1,75 +0,0 @@ -using System; -using System.IO; -using System.Net; -using System.Collections.Generic; -using System.Collections; -using MonoDevelop.Projects.Serialization; -using MonoDevelop.Core; -using Microsoft.TeamFoundation; -using Microsoft.TeamFoundation.Client; -using Microsoft.TeamFoundation.VersionControl.Client; -using Microsoft.TeamFoundation.Server; - -namespace MonoDevelop.VersionControl.TeamFoundation -{ - class CommandUpdate : Command - { - private string _serverPath; - private RecursionType recursionType; - private GetRequest getRequest; - - public CommandUpdate (VersionControlServer vcs, string serverPath, - bool recurse, IProgressMonitor monitor) : base(vcs) - { - if (String.IsNullOrEmpty(serverPath)) - { - throw new ArgumentException("No server path specified"); - } - - _serverPath = serverPath; - recursionType = recurse ? RecursionType.Full : RecursionType.None; - getRequest = new GetRequest(serverPath, recursionType, VersionSpec.Latest); - } - - public void MyGettingEventHandler(Object sender, GettingEventArgs e) - { - if (e.Status == OperationStatus.Getting) - Console.WriteLine("updating {0}", e.TargetLocalItem); - } - - void ProcessGetOutput(Workspace workspace, ILocalUpdateOperation[] operations, - object userData) - { - List setPermissions = (List) userData; - foreach (ILocalUpdateOperation operation in operations) - { - if (operation.ItemType == ItemType.Folder) continue; - - switch (operation.ChangeType) - { - case ChangeType.Delete: - Console.WriteLine("deleting " + operation.SourceLocalItem); - break; - case ChangeType.Rename: - Console.WriteLine("renaming " + operation.TargetLocalItem); - setPermissions.Add(operation.TargetLocalItem); - break; - case ChangeType.Add: - Console.WriteLine("adding " + operation.TargetLocalItem); - setPermissions.Add(operation.TargetLocalItem); - break; - default: - break; - } - } - } - - public override void Run () - { - VersionControlServer.Getting += MyGettingEventHandler; - //List setPermissions = new List(); - //GetOptions getOptions = GetOptions.None; - //workspace.Get(getRequest, getOptions, ProcessGetOutput, setPermissions); - } - } -} diff --git a/tools/MonoDevelop.VersionControl.TeamFoundation/Gui.ClientCertificateDialog.cs b/tools/MonoDevelop.VersionControl.TeamFoundation/Gui.ClientCertificateDialog.cs deleted file mode 100644 index da49344..0000000 --- a/tools/MonoDevelop.VersionControl.TeamFoundation/Gui.ClientCertificateDialog.cs +++ /dev/null @@ -1,165 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Mono Runtime Version: 2.0.50727.42 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -namespace MonoDevelop.VersionControl.TeamFoundation.Gui { - - - public partial class ClientCertificateDialog { - - private Gtk.VBox vbox2; - - private Gtk.Label label1; - - private Gtk.Label labelRealm; - - private Gtk.Label label2; - - private Gtk.HBox hbox1; - - private Gtk.Label label3; - - private MonoDevelop.Components.FileEntry fileentry; - - private Gtk.CheckButton checkSave; - - private Gtk.Button button34; - - private Gtk.Button button24; - - protected virtual void Build() { - Stetic.Gui.Initialize(); - // Widget MonoDevelop.VersionControl.TeamFoundation.Gui.ClientCertificateDialog - this.Events = ((Gdk.EventMask)(256)); - this.Name = "MonoDevelop.VersionControl.TeamFoundation.Gui.ClientCertificateDialog"; - this.Title = Mono.Unix.Catalog.GetString("Client Certificate Required"); - // Internal child MonoDevelop.VersionControl.TeamFoundation.Gui.ClientCertificateDialog.VBox - Gtk.VBox w1 = this.VBox; - w1.Events = ((Gdk.EventMask)(256)); - w1.Name = "dialog_VBox"; - w1.BorderWidth = ((uint)(2)); - // Container child dialog_VBox.Gtk.Box+BoxChild - this.vbox2 = new Gtk.VBox(); - this.vbox2.Name = "vbox2"; - this.vbox2.Spacing = 6; - this.vbox2.BorderWidth = ((uint)(6)); - // Container child vbox2.Gtk.Box+BoxChild - this.label1 = new Gtk.Label(); - this.label1.Name = "label1"; - this.label1.Xalign = 0F; - this.label1.LabelProp = Mono.Unix.Catalog.GetString("A client certificate is needed to connect to the repository"); - this.label1.UseMarkup = true; - this.vbox2.Add(this.label1); - Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox2[this.label1])); - w2.Position = 0; - w2.Expand = false; - w2.Fill = false; - // Container child vbox2.Gtk.Box+BoxChild - this.labelRealm = new Gtk.Label(); - this.labelRealm.Name = "labelRealm"; - this.labelRealm.Xalign = 0F; - this.labelRealm.LabelProp = "Realm"; - this.vbox2.Add(this.labelRealm); - Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.labelRealm])); - w3.Position = 1; - w3.Expand = false; - w3.Fill = false; - // Container child vbox2.Gtk.Box+BoxChild - this.label2 = new Gtk.Label(); - this.label2.Name = "label2"; - this.label2.Xalign = 0F; - this.label2.LabelProp = Mono.Unix.Catalog.GetString("Please provide a path to the required certificate:"); - this.vbox2.Add(this.label2); - Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox2[this.label2])); - w4.Position = 2; - w4.Expand = false; - w4.Fill = false; - w4.Padding = ((uint)(6)); - // Container child vbox2.Gtk.Box+BoxChild - this.hbox1 = new Gtk.HBox(); - this.hbox1.Name = "hbox1"; - this.hbox1.Spacing = 6; - // Container child hbox1.Gtk.Box+BoxChild - this.label3 = new Gtk.Label(); - this.label3.Name = "label3"; - this.label3.LabelProp = Mono.Unix.Catalog.GetString("File:"); - this.hbox1.Add(this.label3); - Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox1[this.label3])); - w5.Position = 0; - w5.Expand = false; - w5.Fill = false; - // Container child hbox1.Gtk.Box+BoxChild - this.fileentry = new MonoDevelop.Components.FileEntry(); - this.fileentry.Name = "fileentry"; - this.hbox1.Add(this.fileentry); - Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox1[this.fileentry])); - w6.Position = 1; - this.vbox2.Add(this.hbox1); - Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox1])); - w7.Position = 3; - w7.Expand = false; - w7.Fill = false; - // Container child vbox2.Gtk.Box+BoxChild - this.checkSave = new Gtk.CheckButton(); - this.checkSave.CanFocus = true; - this.checkSave.Name = "checkSave"; - this.checkSave.Label = Mono.Unix.Catalog.GetString("Remember certificate location"); - this.checkSave.DrawIndicator = true; - this.checkSave.UseUnderline = true; - this.vbox2.Add(this.checkSave); - Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox2[this.checkSave])); - w8.Position = 4; - w8.Expand = false; - w8.Fill = false; - w1.Add(this.vbox2); - Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(w1[this.vbox2])); - w9.Position = 0; - w9.Expand = false; - w9.Fill = false; - // Internal child MonoDevelop.VersionControl.TeamFoundation.Gui.ClientCertificateDialog.ActionArea - Gtk.HButtonBox w10 = this.ActionArea; - w10.Events = ((Gdk.EventMask)(256)); - w10.Name = "MonoDevelop.VersionControl.TeamFoundation.ClientCertificateDialog_ActionArea"; - w10.Spacing = 10; - w10.BorderWidth = ((uint)(5)); - w10.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); - // Container child MonoDevelop.VersionControl.TeamFoundation.ClientCertificateDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild - this.button34 = new Gtk.Button(); - this.button34.CanDefault = true; - this.button34.CanFocus = true; - this.button34.Name = "button34"; - this.button34.UseStock = true; - this.button34.UseUnderline = true; - this.button34.Label = "gtk-cancel"; - this.AddActionWidget(this.button34, -6); - Gtk.ButtonBox.ButtonBoxChild w11 = ((Gtk.ButtonBox.ButtonBoxChild)(w10[this.button34])); - w11.Expand = false; - w11.Fill = false; - // Container child MonoDevelop.VersionControl.TeamFoundation.ClientCertificateDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild - this.button24 = new Gtk.Button(); - this.button24.CanDefault = true; - this.button24.CanFocus = true; - this.button24.Name = "button24"; - this.button24.UseStock = true; - this.button24.UseUnderline = true; - this.button24.Label = "gtk-ok"; - this.AddActionWidget(this.button24, -5); - Gtk.ButtonBox.ButtonBoxChild w12 = ((Gtk.ButtonBox.ButtonBoxChild)(w10[this.button24])); - w12.Position = 1; - w12.Expand = false; - w12.Fill = false; - if ((this.Child != null)) { - this.Child.ShowAll(); - } - this.DefaultWidth = 492; - this.DefaultHeight = 213; - this.Show(); - } - } -} diff --git a/tools/MonoDevelop.VersionControl.TeamFoundation/Gui.ClientCertificatePasswordDialog.cs b/tools/MonoDevelop.VersionControl.TeamFoundation/Gui.ClientCertificatePasswordDialog.cs deleted file mode 100644 index a82a230..0000000 --- a/tools/MonoDevelop.VersionControl.TeamFoundation/Gui.ClientCertificatePasswordDialog.cs +++ /dev/null @@ -1,169 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Mono Runtime Version: 2.0.50727.42 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -namespace MonoDevelop.VersionControl.TeamFoundation.Gui { - - - public partial class ClientCertificatePasswordDialog { - - private Gtk.VBox vbox2; - - private Gtk.Label label1; - - private Gtk.Label labelRealm; - - private Gtk.Label label2; - - private Gtk.HBox hbox1; - - private Gtk.Label label3; - - private Gtk.Entry entryPwd; - - private Gtk.CheckButton checkSave; - - private Gtk.Button button23; - - private Gtk.Button button28; - - protected virtual void Build() { - Stetic.Gui.Initialize(); - // Widget MonoDevelop.VersionControl.TeamFoundation.Gui.ClientCertificatePasswordDialog - this.Events = ((Gdk.EventMask)(256)); - this.Name = "MonoDevelop.VersionControl.TeamFoundation.Gui.ClientCertificatePasswordDialog"; - this.Title = Mono.Unix.Catalog.GetString("ClientCertificatePasswordDialog"); - // Internal child MonoDevelop.VersionControl.TeamFoundation.Gui.ClientCertificatePasswordDialog.VBox - Gtk.VBox w1 = this.VBox; - w1.Events = ((Gdk.EventMask)(256)); - w1.Name = "dialog_VBox"; - w1.BorderWidth = ((uint)(2)); - // Container child dialog_VBox.Gtk.Box+BoxChild - this.vbox2 = new Gtk.VBox(); - this.vbox2.Name = "vbox2"; - this.vbox2.Spacing = 6; - this.vbox2.BorderWidth = ((uint)(6)); - // Container child vbox2.Gtk.Box+BoxChild - this.label1 = new Gtk.Label(); - this.label1.Name = "label1"; - this.label1.Xalign = 0F; - this.label1.LabelProp = Mono.Unix.Catalog.GetString("A client certificate is needed to connect to the repository"); - this.label1.UseMarkup = true; - this.vbox2.Add(this.label1); - Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox2[this.label1])); - w2.Position = 0; - w2.Expand = false; - w2.Fill = false; - // Container child vbox2.Gtk.Box+BoxChild - this.labelRealm = new Gtk.Label(); - this.labelRealm.Name = "labelRealm"; - this.labelRealm.Xalign = 0F; - this.labelRealm.LabelProp = "Realm"; - this.vbox2.Add(this.labelRealm); - Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.labelRealm])); - w3.Position = 1; - w3.Expand = false; - w3.Fill = false; - // Container child vbox2.Gtk.Box+BoxChild - this.label2 = new Gtk.Label(); - this.label2.Name = "label2"; - this.label2.Xalign = 0F; - this.label2.LabelProp = Mono.Unix.Catalog.GetString("Please provide the passphrase required to access to the certificate:"); - this.vbox2.Add(this.label2); - Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox2[this.label2])); - w4.Position = 2; - w4.Expand = false; - w4.Fill = false; - w4.Padding = ((uint)(6)); - // Container child vbox2.Gtk.Box+BoxChild - this.hbox1 = new Gtk.HBox(); - this.hbox1.Name = "hbox1"; - this.hbox1.Spacing = 6; - // Container child hbox1.Gtk.Box+BoxChild - this.label3 = new Gtk.Label(); - this.label3.Name = "label3"; - this.label3.LabelProp = Mono.Unix.Catalog.GetString("Password:"); - this.hbox1.Add(this.label3); - Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.hbox1[this.label3])); - w5.Position = 0; - w5.Expand = false; - w5.Fill = false; - // Container child hbox1.Gtk.Box+BoxChild - this.entryPwd = new Gtk.Entry(); - this.entryPwd.CanFocus = true; - this.entryPwd.Name = "entryPwd"; - this.entryPwd.IsEditable = true; - this.entryPwd.Visibility = false; - this.entryPwd.InvisibleChar = '●'; - this.hbox1.Add(this.entryPwd); - Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.hbox1[this.entryPwd])); - w6.Position = 1; - this.vbox2.Add(this.hbox1); - Gtk.Box.BoxChild w7 = ((Gtk.Box.BoxChild)(this.vbox2[this.hbox1])); - w7.Position = 3; - w7.Expand = false; - w7.Fill = false; - // Container child vbox2.Gtk.Box+BoxChild - this.checkSave = new Gtk.CheckButton(); - this.checkSave.CanFocus = true; - this.checkSave.Name = "checkSave"; - this.checkSave.Label = Mono.Unix.Catalog.GetString("Remember password"); - this.checkSave.DrawIndicator = true; - this.checkSave.UseUnderline = true; - this.vbox2.Add(this.checkSave); - Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox2[this.checkSave])); - w8.Position = 4; - w8.Expand = false; - w8.Fill = false; - w1.Add(this.vbox2); - Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(w1[this.vbox2])); - w9.Position = 0; - w9.Expand = false; - w9.Fill = false; - // Internal child MonoDevelop.VersionControl.TeamFoundation.Gui.ClientCertificatePasswordDialog.ActionArea - Gtk.HButtonBox w10 = this.ActionArea; - w10.Events = ((Gdk.EventMask)(256)); - w10.Name = "MonoDevelop.VersionControl.TeamFoundation.ClientCertificatePasswordDialog_ActionArea"; - w10.Spacing = 10; - w10.BorderWidth = ((uint)(5)); - w10.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); - // Container child MonoDevelop.VersionControl.TeamFoundation.ClientCertificatePasswordDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild - this.button23 = new Gtk.Button(); - this.button23.CanDefault = true; - this.button23.CanFocus = true; - this.button23.Name = "button23"; - this.button23.UseStock = true; - this.button23.UseUnderline = true; - this.button23.Label = "gtk-cancel"; - this.AddActionWidget(this.button23, -6); - Gtk.ButtonBox.ButtonBoxChild w11 = ((Gtk.ButtonBox.ButtonBoxChild)(w10[this.button23])); - w11.Expand = false; - w11.Fill = false; - // Container child MonoDevelop.VersionControl.TeamFoundation.ClientCertificatePasswordDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild - this.button28 = new Gtk.Button(); - this.button28.CanDefault = true; - this.button28.CanFocus = true; - this.button28.Name = "button28"; - this.button28.UseStock = true; - this.button28.UseUnderline = true; - this.button28.Label = "gtk-ok"; - this.AddActionWidget(this.button28, -5); - Gtk.ButtonBox.ButtonBoxChild w12 = ((Gtk.ButtonBox.ButtonBoxChild)(w10[this.button28])); - w12.Position = 1; - w12.Expand = false; - w12.Fill = false; - if ((this.Child != null)) { - this.Child.ShowAll(); - } - this.DefaultWidth = 414; - this.DefaultHeight = 217; - this.Show(); - } - } -} diff --git a/tools/MonoDevelop.VersionControl.TeamFoundation/Gui.SslServerTrustDialog.cs b/tools/MonoDevelop.VersionControl.TeamFoundation/Gui.SslServerTrustDialog.cs deleted file mode 100644 index 614fa2c..0000000 --- a/tools/MonoDevelop.VersionControl.TeamFoundation/Gui.SslServerTrustDialog.cs +++ /dev/null @@ -1,396 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Mono Runtime Version: 2.0.50727.42 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -namespace MonoDevelop.VersionControl.TeamFoundation.Gui { - - - public partial class SslServerTrustDialog { - - private Gtk.HBox hbox1; - - private Gtk.VBox vbox2; - - private Gtk.Image image1; - - private Gtk.VBox vbox3; - - private Gtk.Label label2; - - private Gtk.Label labelReason; - - private Gtk.HSeparator hseparator2; - - private Gtk.Table table1; - - private Gtk.Label label3; - - private Gtk.Label label4; - - private Gtk.Label label5; - - private Gtk.Label label6; - - private Gtk.Label label7; - - private Gtk.Label label8; - - private Gtk.Label labelFprint; - - private Gtk.Label labelFrom; - - private Gtk.Label labelHost; - - private Gtk.Label labelIssuer; - - private Gtk.Label labelRealm; - - private Gtk.Label labelUntil; - - private Gtk.HSeparator hseparator1; - - private Gtk.Label label15; - - private Gtk.RadioButton radioAccept; - - private Gtk.RadioButton radioAcceptSession; - - private Gtk.RadioButton radioNotAccept; - - private Gtk.Button button98; - - private Gtk.Button button104; - - protected virtual void Build() { - Stetic.Gui.Initialize(); - // Widget MonoDevelop.VersionControl.TeamFoundation.Gui.SslServerTrustDialog - this.Events = ((Gdk.EventMask)(256)); - this.Name = "MonoDevelop.VersionControl.TeamFoundation.Gui.SslServerTrustDialog"; - this.Title = Mono.Unix.Catalog.GetString("Repository Certified by an Unknown Authority"); - this.Modal = true; - this.HasSeparator = true; - // Internal child MonoDevelop.VersionControl.TeamFoundation.Gui.SslServerTrustDialog.VBox - Gtk.VBox w1 = this.VBox; - w1.Events = ((Gdk.EventMask)(256)); - w1.Name = "dialog_VBox"; - w1.BorderWidth = ((uint)(2)); - // Container child dialog_VBox.Gtk.Box+BoxChild - this.hbox1 = new Gtk.HBox(); - this.hbox1.Name = "hbox1"; - this.hbox1.Spacing = 6; - this.hbox1.BorderWidth = ((uint)(6)); - // Container child hbox1.Gtk.Box+BoxChild - this.vbox2 = new Gtk.VBox(); - this.vbox2.Name = "vbox2"; - // Container child vbox2.Gtk.Box+BoxChild - this.image1 = new Gtk.Image(); - this.image1.Name = "image1"; - this.image1.Pixbuf = Gtk.IconTheme.Default.LoadIcon("gtk-dialog-warning", 48, 0); - this.vbox2.Add(this.image1); - Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox2[this.image1])); - w2.Position = 0; - w2.Expand = false; - w2.Fill = false; - this.hbox1.Add(this.vbox2); - Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.hbox1[this.vbox2])); - w3.Position = 0; - w3.Expand = false; - w3.Fill = false; - // Container child hbox1.Gtk.Box+BoxChild - this.vbox3 = new Gtk.VBox(); - this.vbox3.Name = "vbox3"; - this.vbox3.Spacing = 6; - this.vbox3.BorderWidth = ((uint)(12)); - // Container child vbox3.Gtk.Box+BoxChild - this.label2 = new Gtk.Label(); - this.label2.Name = "label2"; - this.label2.Xalign = 0F; - this.label2.LabelProp = Mono.Unix.Catalog.GetString("Unable to verify the identity of host as a trusted site."); - this.vbox3.Add(this.label2); - Gtk.Box.BoxChild w4 = ((Gtk.Box.BoxChild)(this.vbox3[this.label2])); - w4.Position = 0; - w4.Expand = false; - w4.Fill = false; - // Container child vbox3.Gtk.Box+BoxChild - this.labelReason = new Gtk.Label(); - this.labelReason.Name = "labelReason"; - this.labelReason.Xalign = 0F; - this.labelReason.LabelProp = "Reason"; - this.labelReason.UseMarkup = true; - this.vbox3.Add(this.labelReason); - Gtk.Box.BoxChild w5 = ((Gtk.Box.BoxChild)(this.vbox3[this.labelReason])); - w5.Position = 1; - w5.Expand = false; - w5.Fill = false; - // Container child vbox3.Gtk.Box+BoxChild - this.hseparator2 = new Gtk.HSeparator(); - this.hseparator2.Name = "hseparator2"; - this.vbox3.Add(this.hseparator2); - Gtk.Box.BoxChild w6 = ((Gtk.Box.BoxChild)(this.vbox3[this.hseparator2])); - w6.Position = 2; - w6.Expand = false; - w6.Fill = false; - // Container child vbox3.Gtk.Box+BoxChild - this.table1 = new Gtk.Table(((uint)(6)), ((uint)(2)), false); - this.table1.Name = "table1"; - this.table1.RowSpacing = ((uint)(6)); - this.table1.ColumnSpacing = ((uint)(6)); - // Container child table1.Gtk.Table+TableChild - this.label3 = new Gtk.Label(); - this.label3.Name = "label3"; - this.label3.Xalign = 0F; - this.label3.LabelProp = Mono.Unix.Catalog.GetString("Host name:"); - this.label3.UseMarkup = true; - this.table1.Add(this.label3); - Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.label3])); - w7.TopAttach = ((uint)(1)); - w7.BottomAttach = ((uint)(2)); - w7.XOptions = ((Gtk.AttachOptions)(4)); - w7.YOptions = ((Gtk.AttachOptions)(4)); - // Container child table1.Gtk.Table+TableChild - this.label4 = new Gtk.Label(); - this.label4.Name = "label4"; - this.label4.Xalign = 0F; - this.label4.LabelProp = Mono.Unix.Catalog.GetString("Issued by:"); - this.label4.UseMarkup = true; - this.table1.Add(this.label4); - Gtk.Table.TableChild w8 = ((Gtk.Table.TableChild)(this.table1[this.label4])); - w8.TopAttach = ((uint)(2)); - w8.BottomAttach = ((uint)(3)); - w8.XOptions = ((Gtk.AttachOptions)(4)); - w8.YOptions = ((Gtk.AttachOptions)(4)); - // Container child table1.Gtk.Table+TableChild - this.label5 = new Gtk.Label(); - this.label5.Name = "label5"; - this.label5.Xalign = 0F; - this.label5.LabelProp = Mono.Unix.Catalog.GetString("Issued on:"); - this.label5.UseMarkup = true; - this.table1.Add(this.label5); - Gtk.Table.TableChild w9 = ((Gtk.Table.TableChild)(this.table1[this.label5])); - w9.TopAttach = ((uint)(3)); - w9.BottomAttach = ((uint)(4)); - w9.XOptions = ((Gtk.AttachOptions)(4)); - w9.YOptions = ((Gtk.AttachOptions)(4)); - // Container child table1.Gtk.Table+TableChild - this.label6 = new Gtk.Label(); - this.label6.Name = "label6"; - this.label6.Xalign = 0F; - this.label6.LabelProp = Mono.Unix.Catalog.GetString("Expires on:"); - this.label6.UseMarkup = true; - this.table1.Add(this.label6); - Gtk.Table.TableChild w10 = ((Gtk.Table.TableChild)(this.table1[this.label6])); - w10.TopAttach = ((uint)(4)); - w10.BottomAttach = ((uint)(5)); - w10.XOptions = ((Gtk.AttachOptions)(4)); - w10.YOptions = ((Gtk.AttachOptions)(4)); - // Container child table1.Gtk.Table+TableChild - this.label7 = new Gtk.Label(); - this.label7.Name = "label7"; - this.label7.Xalign = 0F; - this.label7.LabelProp = Mono.Unix.Catalog.GetString("Fingerprint:"); - this.label7.UseMarkup = true; - this.table1.Add(this.label7); - Gtk.Table.TableChild w11 = ((Gtk.Table.TableChild)(this.table1[this.label7])); - w11.TopAttach = ((uint)(5)); - w11.BottomAttach = ((uint)(6)); - w11.XOptions = ((Gtk.AttachOptions)(4)); - w11.YOptions = ((Gtk.AttachOptions)(4)); - // Container child table1.Gtk.Table+TableChild - this.label8 = new Gtk.Label(); - this.label8.Name = "label8"; - this.label8.Xalign = 0F; - this.label8.LabelProp = Mono.Unix.Catalog.GetString("Auth. Realm:"); - this.label8.UseMarkup = true; - this.table1.Add(this.label8); - Gtk.Table.TableChild w12 = ((Gtk.Table.TableChild)(this.table1[this.label8])); - w12.XOptions = ((Gtk.AttachOptions)(4)); - w12.YOptions = ((Gtk.AttachOptions)(4)); - // Container child table1.Gtk.Table+TableChild - this.labelFprint = new Gtk.Label(); - this.labelFprint.Name = "labelFprint"; - this.labelFprint.Xalign = 0F; - this.labelFprint.LabelProp = "label14"; - this.table1.Add(this.labelFprint); - Gtk.Table.TableChild w13 = ((Gtk.Table.TableChild)(this.table1[this.labelFprint])); - w13.TopAttach = ((uint)(5)); - w13.BottomAttach = ((uint)(6)); - w13.LeftAttach = ((uint)(1)); - w13.RightAttach = ((uint)(2)); - w13.XOptions = ((Gtk.AttachOptions)(4)); - w13.YOptions = ((Gtk.AttachOptions)(4)); - // Container child table1.Gtk.Table+TableChild - this.labelFrom = new Gtk.Label(); - this.labelFrom.Name = "labelFrom"; - this.labelFrom.Xalign = 0F; - this.labelFrom.LabelProp = "label12"; - this.table1.Add(this.labelFrom); - Gtk.Table.TableChild w14 = ((Gtk.Table.TableChild)(this.table1[this.labelFrom])); - w14.TopAttach = ((uint)(3)); - w14.BottomAttach = ((uint)(4)); - w14.LeftAttach = ((uint)(1)); - w14.RightAttach = ((uint)(2)); - w14.XOptions = ((Gtk.AttachOptions)(4)); - w14.YOptions = ((Gtk.AttachOptions)(4)); - // Container child table1.Gtk.Table+TableChild - this.labelHost = new Gtk.Label(); - this.labelHost.Name = "labelHost"; - this.labelHost.Xalign = 0F; - this.labelHost.LabelProp = "label10"; - this.table1.Add(this.labelHost); - Gtk.Table.TableChild w15 = ((Gtk.Table.TableChild)(this.table1[this.labelHost])); - w15.TopAttach = ((uint)(1)); - w15.BottomAttach = ((uint)(2)); - w15.LeftAttach = ((uint)(1)); - w15.RightAttach = ((uint)(2)); - w15.XOptions = ((Gtk.AttachOptions)(4)); - w15.YOptions = ((Gtk.AttachOptions)(4)); - // Container child table1.Gtk.Table+TableChild - this.labelIssuer = new Gtk.Label(); - this.labelIssuer.Name = "labelIssuer"; - this.labelIssuer.Xalign = 0F; - this.labelIssuer.LabelProp = "label11"; - this.table1.Add(this.labelIssuer); - Gtk.Table.TableChild w16 = ((Gtk.Table.TableChild)(this.table1[this.labelIssuer])); - w16.TopAttach = ((uint)(2)); - w16.BottomAttach = ((uint)(3)); - w16.LeftAttach = ((uint)(1)); - w16.RightAttach = ((uint)(2)); - w16.XOptions = ((Gtk.AttachOptions)(4)); - w16.YOptions = ((Gtk.AttachOptions)(4)); - // Container child table1.Gtk.Table+TableChild - this.labelRealm = new Gtk.Label(); - this.labelRealm.Name = "labelRealm"; - this.labelRealm.Xalign = 0F; - this.labelRealm.LabelProp = "label9"; - this.table1.Add(this.labelRealm); - Gtk.Table.TableChild w17 = ((Gtk.Table.TableChild)(this.table1[this.labelRealm])); - w17.LeftAttach = ((uint)(1)); - w17.RightAttach = ((uint)(2)); - w17.YOptions = ((Gtk.AttachOptions)(4)); - // Container child table1.Gtk.Table+TableChild - this.labelUntil = new Gtk.Label(); - this.labelUntil.Name = "labelUntil"; - this.labelUntil.Xalign = 0F; - this.labelUntil.LabelProp = "label13"; - this.table1.Add(this.labelUntil); - Gtk.Table.TableChild w18 = ((Gtk.Table.TableChild)(this.table1[this.labelUntil])); - w18.TopAttach = ((uint)(4)); - w18.BottomAttach = ((uint)(5)); - w18.LeftAttach = ((uint)(1)); - w18.RightAttach = ((uint)(2)); - w18.XOptions = ((Gtk.AttachOptions)(4)); - w18.YOptions = ((Gtk.AttachOptions)(4)); - this.vbox3.Add(this.table1); - Gtk.Box.BoxChild w19 = ((Gtk.Box.BoxChild)(this.vbox3[this.table1])); - w19.Position = 3; - w19.Expand = false; - w19.Fill = false; - w19.Padding = ((uint)(6)); - // Container child vbox3.Gtk.Box+BoxChild - this.hseparator1 = new Gtk.HSeparator(); - this.hseparator1.Name = "hseparator1"; - this.vbox3.Add(this.hseparator1); - Gtk.Box.BoxChild w20 = ((Gtk.Box.BoxChild)(this.vbox3[this.hseparator1])); - w20.Position = 4; - w20.Expand = false; - w20.Fill = false; - // Container child vbox3.Gtk.Box+BoxChild - this.label15 = new Gtk.Label(); - this.label15.Name = "label15"; - this.label15.Xalign = 0F; - this.label15.LabelProp = Mono.Unix.Catalog.GetString("Do you want to accept the certificate and connect to the repository?"); - this.vbox3.Add(this.label15); - Gtk.Box.BoxChild w21 = ((Gtk.Box.BoxChild)(this.vbox3[this.label15])); - w21.Position = 5; - w21.Expand = false; - w21.Fill = false; - // Container child vbox3.Gtk.Box+BoxChild - this.radioAccept = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("Accept this certificate permanently")); - this.radioAccept.CanFocus = true; - this.radioAccept.Name = "radioAccept"; - this.radioAccept.Active = true; - this.radioAccept.DrawIndicator = true; - this.radioAccept.UseUnderline = true; - this.radioAccept.Group = new GLib.SList(System.IntPtr.Zero); - this.vbox3.Add(this.radioAccept); - Gtk.Box.BoxChild w22 = ((Gtk.Box.BoxChild)(this.vbox3[this.radioAccept])); - w22.Position = 6; - w22.Expand = false; - w22.Fill = false; - // Container child vbox3.Gtk.Box+BoxChild - this.radioAcceptSession = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("Accept this certificate temporarily for this session")); - this.radioAcceptSession.CanFocus = true; - this.radioAcceptSession.Name = "radioAcceptSession"; - this.radioAcceptSession.DrawIndicator = true; - this.radioAcceptSession.UseUnderline = true; - this.radioAcceptSession.Group = this.radioAccept.Group; - this.vbox3.Add(this.radioAcceptSession); - Gtk.Box.BoxChild w23 = ((Gtk.Box.BoxChild)(this.vbox3[this.radioAcceptSession])); - w23.Position = 7; - w23.Expand = false; - w23.Fill = false; - // Container child vbox3.Gtk.Box+BoxChild - this.radioNotAccept = new Gtk.RadioButton(Mono.Unix.Catalog.GetString("Do not accept this certificate and do not connect to this repository")); - this.radioNotAccept.CanFocus = true; - this.radioNotAccept.Name = "radioNotAccept"; - this.radioNotAccept.DrawIndicator = true; - this.radioNotAccept.UseUnderline = true; - this.radioNotAccept.Group = this.radioAccept.Group; - this.vbox3.Add(this.radioNotAccept); - Gtk.Box.BoxChild w24 = ((Gtk.Box.BoxChild)(this.vbox3[this.radioNotAccept])); - w24.Position = 8; - w24.Expand = false; - w24.Fill = false; - this.hbox1.Add(this.vbox3); - Gtk.Box.BoxChild w25 = ((Gtk.Box.BoxChild)(this.hbox1[this.vbox3])); - w25.Position = 1; - w1.Add(this.hbox1); - Gtk.Box.BoxChild w26 = ((Gtk.Box.BoxChild)(w1[this.hbox1])); - w26.Position = 0; - // Internal child MonoDevelop.VersionControl.TeamFoundation.Gui.SslServerTrustDialog.ActionArea - Gtk.HButtonBox w27 = this.ActionArea; - w27.Events = ((Gdk.EventMask)(256)); - w27.Name = "MonoDevelop.VersionControl.TeamFoundation.SslServerTrustDialog_ActionArea"; - w27.Spacing = 10; - w27.BorderWidth = ((uint)(5)); - w27.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); - // Container child MonoDevelop.VersionControl.TeamFoundation.SslServerTrustDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild - this.button98 = new Gtk.Button(); - this.button98.CanDefault = true; - this.button98.CanFocus = true; - this.button98.Name = "button98"; - this.button98.UseStock = true; - this.button98.UseUnderline = true; - this.button98.Label = "gtk-cancel"; - this.AddActionWidget(this.button98, -6); - Gtk.ButtonBox.ButtonBoxChild w28 = ((Gtk.ButtonBox.ButtonBoxChild)(w27[this.button98])); - w28.Expand = false; - w28.Fill = false; - // Container child MonoDevelop.VersionControl.TeamFoundation.SslServerTrustDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild - this.button104 = new Gtk.Button(); - this.button104.CanDefault = true; - this.button104.CanFocus = true; - this.button104.Name = "button104"; - this.button104.UseStock = true; - this.button104.UseUnderline = true; - this.button104.Label = "gtk-ok"; - this.AddActionWidget(this.button104, -5); - Gtk.ButtonBox.ButtonBoxChild w29 = ((Gtk.ButtonBox.ButtonBoxChild)(w27[this.button104])); - w29.Position = 1; - w29.Expand = false; - w29.Fill = false; - if ((this.Child != null)) { - this.Child.ShowAll(); - } - this.DefaultWidth = 508; - this.DefaultHeight = 415; - this.Show(); - } - } -} diff --git a/tools/MonoDevelop.VersionControl.TeamFoundation/Gui.UserPasswordDialog.cs b/tools/MonoDevelop.VersionControl.TeamFoundation/Gui.UserPasswordDialog.cs deleted file mode 100644 index 818cbab..0000000 --- a/tools/MonoDevelop.VersionControl.TeamFoundation/Gui.UserPasswordDialog.cs +++ /dev/null @@ -1,188 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Mono Runtime Version: 2.0.50727.42 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -namespace MonoDevelop.VersionControl.TeamFoundation.Gui { - - - public partial class UserPasswordDialog { - - private Gtk.VBox vbox2; - - private Gtk.Label label4; - - private Gtk.Label labelRealm; - - private Gtk.Table table1; - - private Gtk.Entry entryPwd; - - private Gtk.Entry entryUser; - - private Gtk.Label label2; - - private Gtk.Label labelPwd; - - private Gtk.CheckButton checkSavePwd; - - private Gtk.Button button1; - - private Gtk.Button button7; - - protected virtual void Build() { - Stetic.Gui.Initialize(); - // Widget MonoDevelop.VersionControl.TeamFoundation.Gui.UserPasswordDialog - this.Events = ((Gdk.EventMask)(256)); - this.Name = "MonoDevelop.VersionControl.TeamFoundation.Gui.UserPasswordDialog"; - this.Title = Mono.Unix.Catalog.GetString("TeamFoundation"); - this.Modal = true; - this.Resizable = false; - this.AllowGrow = false; - this.HasSeparator = true; - // Internal child MonoDevelop.VersionControl.TeamFoundation.Gui.UserPasswordDialog.VBox - Gtk.VBox w1 = this.VBox; - w1.Events = ((Gdk.EventMask)(256)); - w1.Name = "dialog_VBox"; - w1.BorderWidth = ((uint)(2)); - // Container child dialog_VBox.Gtk.Box+BoxChild - this.vbox2 = new Gtk.VBox(); - this.vbox2.Name = "vbox2"; - this.vbox2.Spacing = 6; - this.vbox2.BorderWidth = ((uint)(6)); - // Container child vbox2.Gtk.Box+BoxChild - this.label4 = new Gtk.Label(); - this.label4.Name = "label4"; - this.label4.Xalign = 0F; - this.label4.LabelProp = Mono.Unix.Catalog.GetString("User credentials are required to access the TeamFoundation repository."); - this.label4.UseMarkup = true; - this.vbox2.Add(this.label4); - Gtk.Box.BoxChild w2 = ((Gtk.Box.BoxChild)(this.vbox2[this.label4])); - w2.Position = 0; - w2.Expand = false; - w2.Fill = false; - // Container child vbox2.Gtk.Box+BoxChild - this.labelRealm = new Gtk.Label(); - this.labelRealm.Name = "labelRealm"; - this.labelRealm.Xalign = 0F; - this.labelRealm.LabelProp = "Realm"; - this.vbox2.Add(this.labelRealm); - Gtk.Box.BoxChild w3 = ((Gtk.Box.BoxChild)(this.vbox2[this.labelRealm])); - w3.Position = 1; - w3.Expand = false; - w3.Fill = false; - // Container child vbox2.Gtk.Box+BoxChild - this.table1 = new Gtk.Table(((uint)(2)), ((uint)(2)), false); - this.table1.Name = "table1"; - this.table1.RowSpacing = ((uint)(6)); - this.table1.ColumnSpacing = ((uint)(6)); - // Container child table1.Gtk.Table+TableChild - this.entryPwd = new Gtk.Entry(); - this.entryPwd.CanFocus = true; - this.entryPwd.Name = "entryPwd"; - this.entryPwd.IsEditable = true; - this.entryPwd.Visibility = false; - this.entryPwd.InvisibleChar = '●'; - this.table1.Add(this.entryPwd); - Gtk.Table.TableChild w4 = ((Gtk.Table.TableChild)(this.table1[this.entryPwd])); - w4.TopAttach = ((uint)(1)); - w4.BottomAttach = ((uint)(2)); - w4.LeftAttach = ((uint)(1)); - w4.RightAttach = ((uint)(2)); - w4.YOptions = ((Gtk.AttachOptions)(4)); - // Container child table1.Gtk.Table+TableChild - this.entryUser = new Gtk.Entry(); - this.entryUser.CanFocus = true; - this.entryUser.Name = "entryUser"; - this.entryUser.IsEditable = true; - this.entryUser.InvisibleChar = '●'; - this.table1.Add(this.entryUser); - Gtk.Table.TableChild w5 = ((Gtk.Table.TableChild)(this.table1[this.entryUser])); - w5.LeftAttach = ((uint)(1)); - w5.RightAttach = ((uint)(2)); - w5.YOptions = ((Gtk.AttachOptions)(4)); - // Container child table1.Gtk.Table+TableChild - this.label2 = new Gtk.Label(); - this.label2.Name = "label2"; - this.label2.Xalign = 0F; - this.label2.LabelProp = Mono.Unix.Catalog.GetString("User:"); - this.table1.Add(this.label2); - Gtk.Table.TableChild w6 = ((Gtk.Table.TableChild)(this.table1[this.label2])); - w6.XOptions = ((Gtk.AttachOptions)(4)); - w6.YOptions = ((Gtk.AttachOptions)(4)); - // Container child table1.Gtk.Table+TableChild - this.labelPwd = new Gtk.Label(); - this.labelPwd.Name = "labelPwd"; - this.labelPwd.Xalign = 0F; - this.labelPwd.LabelProp = Mono.Unix.Catalog.GetString("Password:"); - this.table1.Add(this.labelPwd); - Gtk.Table.TableChild w7 = ((Gtk.Table.TableChild)(this.table1[this.labelPwd])); - w7.TopAttach = ((uint)(1)); - w7.BottomAttach = ((uint)(2)); - w7.XOptions = ((Gtk.AttachOptions)(4)); - w7.YOptions = ((Gtk.AttachOptions)(4)); - this.vbox2.Add(this.table1); - Gtk.Box.BoxChild w8 = ((Gtk.Box.BoxChild)(this.vbox2[this.table1])); - w8.Position = 2; - w8.Padding = ((uint)(6)); - // Container child vbox2.Gtk.Box+BoxChild - this.checkSavePwd = new Gtk.CheckButton(); - this.checkSavePwd.CanFocus = true; - this.checkSavePwd.Name = "checkSavePwd"; - this.checkSavePwd.Label = Mono.Unix.Catalog.GetString("Remember password"); - this.checkSavePwd.DrawIndicator = true; - this.checkSavePwd.UseUnderline = true; - this.vbox2.Add(this.checkSavePwd); - Gtk.Box.BoxChild w9 = ((Gtk.Box.BoxChild)(this.vbox2[this.checkSavePwd])); - w9.Position = 3; - w9.Expand = false; - w9.Fill = false; - w1.Add(this.vbox2); - Gtk.Box.BoxChild w10 = ((Gtk.Box.BoxChild)(w1[this.vbox2])); - w10.Position = 0; - // Internal child MonoDevelop.VersionControl.TeamFoundation.Gui.UserPasswordDialog.ActionArea - Gtk.HButtonBox w11 = this.ActionArea; - w11.Events = ((Gdk.EventMask)(256)); - w11.Name = "MonoDevelop.VersionControl.TeamFoundation.UserPasswordDialog_ActionArea"; - w11.Spacing = 10; - w11.BorderWidth = ((uint)(5)); - w11.LayoutStyle = ((Gtk.ButtonBoxStyle)(4)); - // Container child MonoDevelop.VersionControl.TeamFoundation.UserPasswordDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild - this.button1 = new Gtk.Button(); - this.button1.CanDefault = true; - this.button1.CanFocus = true; - this.button1.Name = "button1"; - this.button1.UseStock = true; - this.button1.UseUnderline = true; - this.button1.Label = "gtk-cancel"; - this.AddActionWidget(this.button1, -6); - Gtk.ButtonBox.ButtonBoxChild w12 = ((Gtk.ButtonBox.ButtonBoxChild)(w11[this.button1])); - w12.Expand = false; - w12.Fill = false; - // Container child MonoDevelop.VersionControl.TeamFoundation.UserPasswordDialog_ActionArea.Gtk.ButtonBox+ButtonBoxChild - this.button7 = new Gtk.Button(); - this.button7.CanDefault = true; - this.button7.CanFocus = true; - this.button7.Name = "button7"; - this.button7.UseStock = true; - this.button7.UseUnderline = true; - this.button7.Label = "gtk-ok"; - this.AddActionWidget(this.button7, -5); - Gtk.ButtonBox.ButtonBoxChild w13 = ((Gtk.ButtonBox.ButtonBoxChild)(w11[this.button7])); - w13.Position = 1; - w13.Expand = false; - w13.Fill = false; - if ((this.Child != null)) { - this.Child.ShowAll(); - } - this.DefaultWidth = 433; - this.DefaultHeight = 229; - this.Show(); - } - } -} diff --git a/tools/MonoDevelop.VersionControl.TeamFoundation/Makefile b/tools/MonoDevelop.VersionControl.TeamFoundation/Makefile deleted file mode 100644 index ca9ee72..0000000 --- a/tools/MonoDevelop.VersionControl.TeamFoundation/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -thisdir = tools/MonoDevelop.VersionControl.TeamFoundation -include ../../build/rules.make - -LIBRARY = MonoDevelop.VersionControl.TeamFoundation.dll - -LIB_MCS_FLAGS = /unsafe /pkg:monodevelop /r:$(MONODEVELOP_LIBPATH)/monodevelop/AddIns/VersionControl/VersionControlAddIn.dll /pkg:gtk-sharp-2.0 /r:Mono.Posix /r:Microsoft.TeamFoundation.dll /r:Microsoft.TeamFoundation.Common.dll /r:Microsoft.TeamFoundation.Client.dll /r:Microsoft.TeamFoundation.VersionControl.Client.dll /r:Microsoft.TeamFoundation.VersionControl.Common.dll -TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) - -NO_SIGN_ASSEMBLY = 1 -LIBRARY_INSTALL_DIR=$(MONODEVELOP_LIBPATH)/monodevelop/AddIns/VersionControl - -include ../../build/library.make - -install: - $(INSTALL_DATA) MonoDevelop.VersionControl.TeamFoundation.addin.xml $(LIBRARY_INSTALL_DIR)/ \ No newline at end of file diff --git a/tools/MonoDevelop.VersionControl.TeamFoundation/MonoDevelop.VersionControl.TeamFoundation.addin.xml b/tools/MonoDevelop.VersionControl.TeamFoundation/MonoDevelop.VersionControl.TeamFoundation.addin.xml deleted file mode 100644 index e9cd53a..0000000 --- a/tools/MonoDevelop.VersionControl.TeamFoundation/MonoDevelop.VersionControl.TeamFoundation.addin.xml +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/tools/MonoDevelop.VersionControl.TeamFoundation/MonoDevelop.VersionControl.TeamFoundation.dll.sources b/tools/MonoDevelop.VersionControl.TeamFoundation/MonoDevelop.VersionControl.TeamFoundation.dll.sources deleted file mode 100644 index 63dafc9..0000000 --- a/tools/MonoDevelop.VersionControl.TeamFoundation/MonoDevelop.VersionControl.TeamFoundation.dll.sources +++ /dev/null @@ -1,7 +0,0 @@ -Command.cs -CommandCheckout.cs -CommandUpdate.cs -TeamFoundationRepository.cs -TeamFoundationVersionControl.cs -TeamFoundationRevision.cs -TeamFoundationPad.cs \ No newline at end of file diff --git a/tools/MonoDevelop.VersionControl.TeamFoundation/README b/tools/MonoDevelop.VersionControl.TeamFoundation/README deleted file mode 100644 index 2c083c6..0000000 --- a/tools/MonoDevelop.VersionControl.TeamFoundation/README +++ /dev/null @@ -1,10 +0,0 @@ -MonoDevelop VersionControl Api Suggestions - -It would be nice if SelectRepositoryDialog.cs checked a CanCheckout -property on the Repository. For TeamFoundation, I have a base Repository -is really the server, which has Children which are the top level projects -in that Repository. - -The UrlBasedRepositoryEditor doesn't seem to let you enter ports over 100. -You need to use port 8080 for most TFS Servers. You may need to edit -~/.config/MonoDevelop/VersionControl.config by hand. diff --git a/tools/MonoDevelop.VersionControl.TeamFoundation/SslServerTrustDialog.cs b/tools/MonoDevelop.VersionControl.TeamFoundation/SslServerTrustDialog.cs deleted file mode 100644 index ddcaf5a..0000000 --- a/tools/MonoDevelop.VersionControl.TeamFoundation/SslServerTrustDialog.cs +++ /dev/null @@ -1,94 +0,0 @@ -using System; -using MonoDevelop.Core; - -namespace MonoDevelop.VersionControl.TeamFoundation.Gui -{ - public partial class SslServerTrustDialog : Gtk.Dialog - { - uint failures; - - internal SslServerTrustDialog (string realm, uint failures, SvnClient.svn_auth_ssl_server_cert_info_t cert_info, bool may_save) - { - this.Build(); - - this.failures = failures; - labelRealm.Text = realm; - labelHost.Text = cert_info.hostname; - labelIssuer.Text = cert_info.issuer_dname; - labelFrom.Text = cert_info.valid_from; - labelUntil.Text = cert_info.valid_until; - labelFprint.Text = cert_info.fingerprint; - - if (!may_save) - radioAccept.Visible = false; - - string reason = ""; - if ((failures & SvnClient.SVN_AUTH_SSL_NOTYETVALID) != 0) - reason += "\n" + GettextCatalog.GetString ("Certificate is not yet valid."); - if ((failures & SvnClient.SVN_AUTH_SSL_EXPIRED) != 0) - reason += "\n" + GettextCatalog.GetString ("Certificate has expired."); - if ((failures & SvnClient.SVN_AUTH_SSL_CNMISMATCH) != 0) - reason += "\n" + GettextCatalog.GetString ("Certificate's CN (hostname) does not match the remote hostname."); - if ((failures & SvnClient.SVN_AUTH_SSL_UNKNOWNCA) != 0) - reason += "\n" + GettextCatalog.GetString ("Certificate authority is unknown (i.e. not trusted)."); - if (reason.Length > 0) { - labelReason.Markup = "" + reason.Substring (1) + ""; - } - } - - public bool Save { - get { return radioAccept.Active; } - } - - public uint AcceptedFailures { - get { - if (radioNotAccept.Active) - return 0; - else - return failures; - } - } - - internal static bool Show (string realm, uint failures, int may_save, SvnClient.svn_auth_ssl_server_cert_info_t cert_info, out SvnClient.svn_auth_cred_ssl_server_trust_t retData) - { - SvnClient.svn_auth_cred_ssl_server_trust_t data = new SvnClient.svn_auth_cred_ssl_server_trust_t (); - - bool res = false; - object monitor = new Object (); - - EventHandler del = delegate { - try { - SslServerTrustDialog dlg = new SslServerTrustDialog (realm, failures, cert_info, may_save != 0); - res = (dlg.Run () == (int) Gtk.ResponseType.Ok); - if (res) { - data.may_save = dlg.Save ? 1 : 0; - data.accepted_failures = dlg.AcceptedFailures; - } else { - data.may_save = 0; - data.accepted_failures = 0; - res = true; - } - - dlg.Destroy (); - } finally { - lock (monitor) { - System.Threading.Monitor.Pulse (monitor); - } - } - }; - - if (GLib.MainContext.Depth > 0) { - // Already in GUI thread - del (null, null); - } - else { - lock (monitor) { - Gtk.Application.Invoke (del); - System.Threading.Monitor.Wait (monitor); - } - } - retData = data; - return res; - } - } -} diff --git a/tools/MonoDevelop.VersionControl.TeamFoundation/TeamFoundationPad.cs b/tools/MonoDevelop.VersionControl.TeamFoundation/TeamFoundationPad.cs deleted file mode 100644 index 7c2d8c4..0000000 --- a/tools/MonoDevelop.VersionControl.TeamFoundation/TeamFoundationPad.cs +++ /dev/null @@ -1,65 +0,0 @@ -// -// TeamFoundationPad.cs -// -// Authors: -// Joel Reed (joelwreed@gmail.com) -// -// Copyright (C) 2007 Joel Reed -// -// Permission is hereby granted, free of charge, to any person obtaining -// a copy of this software and associated documentation files (the -// "Software"), to deal in the Software without restriction, including -// without limitation the rights to use, copy, modify, merge, publish, -// distribute, sublicense, and/or sell copies of the Software, and to -// permit persons to whom the Software is furnished to do so, subject to -// the following conditions: -// -// The above copyright notice and this permission notice shall be -// included in all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -// - -using System; -using System.Resources; - -using MonoDevelop.Core; -using MonoDevelop.Ide.Gui.Pads; -using MonoDevelop.Components.Commands; - -namespace MonoDevelop.VersionControl.TeamFoundation -{ - public class TeamFoundationPad : TreeViewPad - { - public TeamFoundationPad () : base () - { - // MonoQueryService service = (MonoQueryService) ServiceManager.GetService (typeof (MonoQueryService)); - //service.Providers.Changed += new EventHandler (OnProvidersChanged); - } - - public override void Initialize (NodeBuilder[] builders, TreePadOption[] options) - { - base.Initialize (builders, options); - OnProvidersChanged (this, null); - } - - // [CommandHandler (MonoQueryCommands.RefreshProviderList)] - public void Refresh () - { - OnProvidersChanged (this, null); - } - - protected virtual void OnProvidersChanged (object sender, EventArgs args) - { - //MonoQueryService service = (MonoQueryService) ServiceManager.GetService (typeof (MonoQueryService)); - Clear (); - //LoadTree (service.Providers); - } - } -} diff --git a/tools/MonoDevelop.VersionControl.TeamFoundation/TeamFoundationRepository.cs b/tools/MonoDevelop.VersionControl.TeamFoundation/TeamFoundationRepository.cs deleted file mode 100644 index 88cb3e0..0000000 --- a/tools/MonoDevelop.VersionControl.TeamFoundation/TeamFoundationRepository.cs +++ /dev/null @@ -1,548 +0,0 @@ -using System; -using System.IO; -using System.Net; -using System.Text; -using System.Xml; -using System.Collections.Generic; -using System.Collections; -using MonoDevelop.Projects.Serialization; -using MonoDevelop.Core; -using Microsoft.TeamFoundation; -using Microsoft.TeamFoundation.Client; -using Microsoft.TeamFoundation.VersionControl.Client; -using Microsoft.TeamFoundation.Server; - -namespace MonoDevelop.VersionControl.TeamFoundation -{ - class TeamFoundationRepository: UrlBasedRepository - { - private TeamFoundationServer _tfs; - private VersionControlServer _versionControl; - - static Dictionary repoConfig = new Dictionary(); - - static TeamFoundationRepository() - { - string configFile = "";//Path.Combine (Runtime.Properties.ConfigDirectory, "VersionControl.config"); - XmlTextReader reader = new XmlTextReader (new StreamReader (configFile)); - while (reader.Read()) - { - string serverUri; - if (reader.Name == "Repository") - { - if (reader.GetAttribute("VcsType") != "MonoDevelop.VersionControl.TeamFoundation.TeamFoundationVersionControl") - continue; - - serverUri = String.Format("{0}://{1}:{2}/", - reader.GetAttribute("Method"), - reader.GetAttribute("Server"), - reader.GetAttribute("Port")); - - //Console.WriteLine("Adding " + serverUri + " to repoConfig"); - repoConfig.Add(serverUri, reader.GetAttribute("User")); - } - } - } - - public TeamFoundationRepository () - { - Console.WriteLine("TeamFoundationRepository()"); - Method = "http"; - } - - public TeamFoundationRepository (TeamFoundationVersionControl vcs, string url): base (vcs) - { - Console.WriteLine("TeamFoundationRepository(vcs, " + Url + ")"); - Url = url; - } - - public VersionControlServer VersionControlServer { - get { - - if (_versionControl != null) return _versionControl; - - Uri repoUri = new Uri(Url); - string serverUrl = String.Format("http://{0}:8080/", repoUri.Host); - - string userInfo = repoUri.UserInfo; - if (String.IsNullOrEmpty(userInfo)) - { - userInfo = repoConfig[serverUrl]; - } - - string username = ""; - string pwd = ""; - string domain = ""; - - int colon = userInfo.IndexOf(":"); - if (colon != -1) - { - pwd = userInfo.Substring(colon+1); - userInfo = userInfo.Substring(0, colon); - } - - int slash = userInfo.IndexOf('\\'); - if (-1 == slash) username = userInfo; - else - { - domain = userInfo.Substring(0, slash); - username = userInfo.Substring(slash+1); - } - - _tfs = TeamFoundationServerFactory.GetServer(serverUrl, new NetworkCredential(username, pwd, domain)); - _versionControl = (VersionControlServer) _tfs.GetService(typeof(VersionControlServer)); - return _versionControl; - } - } - - public override bool HasChildRepositories { - get { - Console.WriteLine("User: " + User); - Console.WriteLine("Port: " + Port); - Console.WriteLine("Pass: " + Pass); - return true; - } - } - - public override IEnumerable ChildRepositories { - get { - Console.WriteLine("ChildRepositories for " + Url); - Uri repoUri = new Uri(Url); - string workspaceName = repoUri.PathAndQuery.Substring(1); - - string workspaceOwner; - int colon = repoUri.UserInfo.IndexOf(":"); - if (colon != -1) workspaceOwner = repoUri.UserInfo.Substring(0, colon); - else workspaceOwner = repoUri.UserInfo; - - Console.WriteLine("Workspace is " + workspaceName); - Console.WriteLine("Owner is " + workspaceOwner); - - List list = new List(); - int dollar = Url.LastIndexOf("$/"); - if (dollar == -1) - { - Workspace workspace = VersionControlServer.GetWorkspace(workspaceName, workspaceOwner); - foreach (WorkingFolder folder in workspace.Folders) - { - TeamFoundationRepository rep = new TeamFoundationRepository (Tfs, Url + "/" + folder.LocalItem); - rep.Name = folder.LocalItem; - list.Add (rep); - } - } - else - { - // http://domain\uid:pwd@10.100.1.88:8080/neo/$/LSG-1.0/releases/4.2 - StringBuilder path = new StringBuilder("$"); - { - path.Append(Url.Substring(dollar+1)); - } - path.Append("/*"); - //Console.WriteLine("ChildRepositories: " + path); - - ItemSpec itemSpec = new ItemSpec(path.ToString(), RecursionType.None); - ItemSet itemSet = VersionControlServer.GetItems(itemSpec, VersionSpec.Latest, - DeletedState.NonDeleted, - ItemType.Folder, false); - - Item[] items = itemSet.Items; - foreach (Item item in items) - { - int slash = item.ServerItem.LastIndexOf("/"); - string folder = item.ServerItem.Substring(slash+1); - TeamFoundationRepository rep = new TeamFoundationRepository (Tfs, Url + "/" + folder); - rep.Name = folder; - list.Add (rep); - } - } - - return list; - } - } - - TeamFoundationVersionControl Tfs { - get { return (TeamFoundationVersionControl) VersionControlSystem; } - } - - public override bool IsModified (string sourcefile) - { - Console.WriteLine("TeamFoundationRepository.cs: IsModified"); - ItemSpec itemSpec = new ItemSpec(sourcefile, RecursionType.None); - ItemSet itemSet = VersionControlServer.GetItems(itemSpec, VersionSpec.Latest, DeletedState.NonDeleted, ItemType.Any, true); - Item[] items = itemSet.Items; - foreach (Item item in items) - { - Console.WriteLine(item.ToString()); - } - return true; - // return Svn.IsDiffAvailable (this, sourcefile); - } - - public override bool IsVersioned (string sourcefile) - { - return (null != Workstation.Current.GetLocalWorkspaceInfo(sourcefile)); - } - - public override bool CanAdd (string sourcepath) - { - Console.WriteLine("TeamFoundationRepository.cs: CanAdd"); - - ItemSpec itemSpec = new ItemSpec(sourcepath, RecursionType.None); - ItemSet itemSet = VersionControlServer.GetItems(itemSpec, VersionSpec.Latest, DeletedState.NonDeleted, ItemType.Any, true); - Item[] items = itemSet.Items; - foreach (Item item in items) - { - Console.WriteLine(item.ToString()); - } - - if (IsVersioned (sourcepath) && File.Exists (sourcepath) && !Directory.Exists (sourcepath)) { - VersionInfo srcInfo = GetVersionInfo (sourcepath, false); - return srcInfo.Status == VersionStatus.ScheduledDelete; - } - - return true; - //return Svn.CanAdd (this, sourcepath); - } - - public override bool CanCommit (string localPath) - { - Console.WriteLine("TeamFoundationRepository.cs: CanCommit " + localPath + " ?"); - - return IsVersioned(localPath); - // return Svn.CanCommit (this, localPath); - } - - public override string GetPathToBaseText (string sourcefile) - { - Console.WriteLine("TeamFoundationRepository.cs: GetPathToBaseText"); - return ""; - // return Svn.GetPathToBaseText (sourcefile); - } - - public override string GetTextAtRevision (string repositoryPath, Revision revision) - { - Console.WriteLine("TeamFoundationRepository.cs: GetTextAtRevision"); - return ""; - //return Svn.GetTextAtRevision (repositoryPath, revision); - } - - public override Revision[] GetHistory (string sourcefile, Revision since) - { - Console.WriteLine("TeamFoundationRepository.cs: GetHistory"); - return null; - //return Svn.GetHistory (this, sourcefile, since); - } - - public override VersionInfo GetVersionInfo (string localPath, bool getRemoteStatus) - { - Console.WriteLine("TeamFoundationRepository.cs: GetVersionInfo"); - return null; - //return Svn.GetVersionInfo (this, localPath, getRemoteStatus); - } - - public override VersionInfo[] GetDirectoryVersionInfo (string sourcepath, bool getRemoteStatus, bool recursive) - { - Console.WriteLine("TeamFoundationRepository.cs: GetDirectoryVersionInfo"); - return null; - // return Svn.GetDirectoryVersionInfo (this, sourcepath, getRemoteStatus, recursive); - } - - public override Repository Publish (string serverPath, string localPath, string[] files, string message, IProgressMonitor monitor) - { - Console.WriteLine("TeamFoundationRepository.cs: Publish"); - string url = Url; - if (!serverPath.StartsWith ("/")) - url += "/"; - url += serverPath; - - string[] paths = new string[] {url}; - - CreateDirectory (paths, message, monitor); - // Svn.Checkout (this.Url + "/" + serverPath, localPath, null, true, monitor); - - Hashtable dirs = new Hashtable (); - PublishDir (dirs, localPath, false, monitor); - - foreach (string file in files) { - PublishDir (dirs, Path.GetDirectoryName (file), true, monitor); - Add (file, false, monitor); - } - - ChangeSet cset = CreateChangeSet (localPath); - cset.AddFile (localPath); - cset.GlobalComment = message; - Commit (cset, monitor); - - return new TeamFoundationRepository (Tfs, paths[0]); - } - - void PublishDir (Hashtable dirs, string dir, bool rec, IProgressMonitor monitor) - { - while (dir [dir.Length - 1] == Path.DirectorySeparatorChar) - dir = dir.Substring (0, dir.Length - 1); - - if (dirs.ContainsKey (dir)) - return; - - dirs [dir] = dir; - if (rec) { - PublishDir (dirs, Path.GetDirectoryName (dir), true, monitor); - Add (dir, false, monitor); - } - } - - public override void Update (string path, bool recurse, IProgressMonitor monitor) - { - Console.WriteLine("TeamFoundationRepository.cs: Update"); - // Command cmd = new CommandUpdate(VersionControlServer, path, recurse, monitor); - //cmd.Run(); - } - - public override void Commit (ChangeSet changeSet, IProgressMonitor monitor) - { - Console.WriteLine("TeamFoundationRepository.cs: Commit"); - - ArrayList list = new ArrayList (); - foreach (ChangeSetItem it in changeSet.Items) - list.Add (it.LocalPath); - //Svn.Commit ((string[])list.ToArray (typeof(string)), changeSet.GlobalComment, monitor); - } - - void CreateDirectory (string[] paths, string message, IProgressMonitor monitor) - { - Console.WriteLine("TeamFoundationRepository.cs: CreateDirectory"); - //Svn.Mkdir (paths, message, monitor); - } - - public override void Checkout (string path, Revision rev, bool recurse, IProgressMonitor monitor) - { - Console.WriteLine("TeamFoundationRepository.cs: Checkout " + path + ", " + Url); - - //Command cmd = new CommandCheckout(VersionControlServer, Url, - // path, rev, recurse, monitor); - //cmd.Run(); - } - - public override void Revert (string localPath, bool recurse, IProgressMonitor monitor) - { - Console.WriteLine("TeamFoundationRepository.cs: Revert"); - //Svn.Revert (new string[] {localPath}, recurse, monitor); - } - - public override void Add (string path, bool recurse, IProgressMonitor monitor) - { - if (IsVersioned (path) && File.Exists (path) && !Directory.Exists (path)) { - VersionInfo srcInfo = GetVersionInfo (path, false); - if (srcInfo.Status == VersionStatus.ScheduledDelete) { - // It is a file that was deleted. It can be restored now since it's going - // to be added again. - // First of all, make a copy of the file - string tmp = Path.GetTempFileName (); - File.Copy (path, tmp, true); - - // Now revert the status of the file - Revert (path, false, monitor); - - // Copy the file over the old one and clean up - File.Copy (tmp, path, true); - File.Delete (tmp); - } - } - ///else - //Svn.Add (path, recurse, monitor); - } - - public override void MoveFile (string srcPath, string destPath, bool force, IProgressMonitor monitor) - { - bool destIsVersioned = false; - - if (File.Exists (destPath)) - throw new InvalidOperationException ("Cannot move file. Destination file already exist."); - - if (IsVersioned (destPath)) { - // Revert to the original status - Revert (destPath, false, monitor); - if (File.Exists (destPath)) - File.Delete (destPath); - destIsVersioned = true; - } - - VersionInfo srcInfo = GetVersionInfo (srcPath, false); - if (srcInfo != null && srcInfo.Status == VersionStatus.ScheduledAdd) { - // If the file is scheduled to add, cancel it, move the file, and schedule to add again - Revert (srcPath, false, monitor); - if (!destIsVersioned) - MakeDirVersioned (Path.GetDirectoryName (destPath), monitor); - base.MoveFile (srcPath, destPath, force, monitor); - if (!destIsVersioned) - Add (destPath, false, monitor); - } else { - if (!destIsVersioned && IsVersioned (srcPath)) { - MakeDirVersioned (Path.GetDirectoryName (destPath), monitor); - //Svn.Move (srcPath, destPath, force, monitor); - } else - base.MoveFile (srcPath, destPath, force, monitor); - } - } - - public override void MoveDirectory (string srcPath, string destPath, bool force, IProgressMonitor monitor) - { - if (IsVersioned (destPath)) - { - VersionInfo vinfo = GetVersionInfo (destPath, false); - if (vinfo.Status != VersionStatus.ScheduledDelete && Directory.Exists (destPath)) - throw new InvalidOperationException ("Cannot move directory. Destination directory already exist."); - - srcPath = Path.GetFullPath (srcPath); - - // The target directory does not exist, but it is versioned. It may be because - // it is scheduled to delete, or maybe it has been physicaly deleted. In any - // case we are going to replace the old directory by the new directory. - - // Revert the old directory, so we can see which files were there so - // we can delete or replace them - Revert (destPath, true, monitor); - - // Get the list of files in the directory to be replaced - ArrayList oldFiles = new ArrayList (); - GetDirectoryFiles (destPath, oldFiles); - - // Get the list of files to move - ArrayList newFiles = new ArrayList (); - GetDirectoryFiles (srcPath, newFiles); - - // Move all new files to the new destination - Hashtable copiedFiles = new Hashtable (); - Hashtable copiedFolders = new Hashtable (); - foreach (string file in newFiles) { - string src = Path.GetFullPath (file); - string dst = Path.Combine (destPath, src.Substring (srcPath.Length + 1)); - if (File.Exists (dst)) - File.Delete (dst); - - // Make sure the target directory exists - string destDir = Path.GetDirectoryName (dst); - if (!Directory.Exists (destDir)) - Directory.CreateDirectory (destDir); - - // If the source file is versioned, make sure the target directory - // is also versioned. - if (IsVersioned (src)) - MakeDirVersioned (destDir, monitor); - - MoveFile (src, dst, true, monitor); - copiedFiles [dst] = dst; - string df = Path.GetDirectoryName (dst); - copiedFolders [df] = df; - } - - // Delete all old files which have not been replaced - ArrayList foldersToDelete = new ArrayList (); - foreach (string oldFile in oldFiles) { - if (!copiedFiles.Contains (oldFile)) { - DeleteFile (oldFile, true, monitor); - string fd = Path.GetDirectoryName (oldFile); - if (!copiedFolders.Contains (fd) && !foldersToDelete.Contains (fd)) - foldersToDelete.Add (fd); - } - } - - // Delete old folders - //foreach (string folder in foldersToDelete) { - //Svn.Delete (folder, true, monitor); - //} - - // Delete the source directory - DeleteDirectory (srcPath, true, monitor); - } - else { - if (Directory.Exists (destPath)) - throw new InvalidOperationException ("Cannot move directory. Destination directory already exist."); - - VersionInfo srcInfo = GetVersionInfo (srcPath, false); - if (srcInfo != null && srcInfo.Status == VersionStatus.ScheduledAdd) { - // If the directory is scheduled to add, cancel it, move the directory, and schedule to add it again - MakeDirVersioned (Path.GetDirectoryName (destPath), monitor); - Revert (srcPath, true, monitor); - base.MoveDirectory (srcPath, destPath, force, monitor); - Add (destPath, true, monitor); - } else { - if (IsVersioned (srcPath)) { - MakeDirVersioned (Path.GetDirectoryName (destPath), monitor); - //Svn.Move (srcPath, destPath, force, monitor); - } else - base.MoveDirectory (srcPath, destPath, force, monitor); - } - } - } - - void MakeDirVersioned (string dir, IProgressMonitor monitor) - { - if (Directory.Exists (Path.Combine (dir, ".svn"))) - return; - - // Make the parent versioned - string parentDir = Path.GetDirectoryName (dir); - if (parentDir == dir || parentDir == "") - throw new InvalidOperationException ("Could not create versioned directory."); - MakeDirVersioned (parentDir, monitor); - - Add (dir, false, monitor); - } - - void GetDirectoryFiles (string directory, ArrayList collection) - { - string[] dir = Directory.GetDirectories(directory); - foreach (string d in dir) { - // Get all files ignoring the .svn directory - if (Path.GetFileName (d) != ".svn") - GetDirectoryFiles (d, collection); - } - string[] file = Directory.GetFiles (directory); - foreach (string f in file) - collection.Add(f); - } - - - public override void DeleteFile (string path, bool force, IProgressMonitor monitor) - { - //if (IsVersioned (path)) - //Svn.Delete (path, force, monitor); - //else - base.DeleteFile (path, force, monitor); - } - - public override void DeleteDirectory (string path, bool force, IProgressMonitor monitor) - { - //if (IsVersioned (path)) - //Svn.Delete (path, force, monitor); - //else - base.DeleteDirectory (path, force, monitor); - } - - public override DiffInfo[] PathDiff (string baseLocalPath, string[] localPaths) - { - if (localPaths != null) { - ArrayList list = new ArrayList (); - foreach (string path in localPaths) { - string diff = "";//Svn.PathDiff (path, false); - if (diff == null) - continue; - try { - list.AddRange (GenerateUnifiedDiffInfo (diff, path, new string [] { path })); - } finally { - Runtime.FileService.DeleteFile (diff); - } - } - return (DiffInfo[]) list.ToArray (typeof(DiffInfo)); - } else { - string diff = ""; //Svn.PathDiff (baseLocalPath, true); - try { - return GenerateUnifiedDiffInfo (diff, baseLocalPath, null); - } finally { - Runtime.FileService.DeleteFile (diff); - } - } - } - } -} diff --git a/tools/MonoDevelop.VersionControl.TeamFoundation/TeamFoundationRevision.cs b/tools/MonoDevelop.VersionControl.TeamFoundation/TeamFoundationRevision.cs deleted file mode 100644 index cef40b9..0000000 --- a/tools/MonoDevelop.VersionControl.TeamFoundation/TeamFoundationRevision.cs +++ /dev/null @@ -1,59 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.IO; -using System.Xml; -using MonoDevelop.Core; -using MonoDevelop.VersionControl; -using Microsoft.TeamFoundation; -using Microsoft.TeamFoundation.Client; -using Microsoft.TeamFoundation.VersionControl.Client; -using Microsoft.TeamFoundation.Server; - -namespace MonoDevelop.VersionControl.TeamFoundation -{ - class TfRevision : MonoDevelop.VersionControl.Revision - { - private string id; - - public TfRevision (Repository repo, Changeset changeSet): - base (repo, changeSet.CreationDate, changeSet.Owner, changeSet.Comment, null) - { - id = Convert.ToString(changeSet.ChangesetId); - List paths = new List(); - foreach (Change change in changeSet.Changes) - { - paths.Add(new RevisionPath(change.Item.ServerItem, - RevisionActionFromChangeType(change.ChangeType), - change.ChangeType.ToString())); - } - - ChangedFiles = paths.ToArray(); - } - - public override Revision GetPrevious() - { - Console.WriteLine("TeamFoundationRevision.cs: GetPrevious not implemented"); - return null; - } - - public override string ToString() - { - return id; - } - - private RevisionAction RevisionActionFromChangeType(Microsoft.TeamFoundation.VersionControl.Client.ChangeType c) - { - switch (c) { - case Microsoft.TeamFoundation.VersionControl.Client.ChangeType.Add: - return RevisionAction.Add; - case Microsoft.TeamFoundation.VersionControl.Client.ChangeType.Delete: - return RevisionAction.Delete; - case Microsoft.TeamFoundation.VersionControl.Client.ChangeType.Rename: - return RevisionAction.Replace; - default: - return RevisionAction.Other; - } - } - } -} \ No newline at end of file diff --git a/tools/MonoDevelop.VersionControl.TeamFoundation/TeamFoundationVersionControl.cs b/tools/MonoDevelop.VersionControl.TeamFoundation/TeamFoundationVersionControl.cs deleted file mode 100644 index d0a1395..0000000 --- a/tools/MonoDevelop.VersionControl.TeamFoundation/TeamFoundationVersionControl.cs +++ /dev/null @@ -1,303 +0,0 @@ -using System; -using System.Collections; -using System.Collections.Generic; -using System.IO; -using System.Xml; -using MonoDevelop.Core; -using MonoDevelop.VersionControl; -using Microsoft.TeamFoundation; -using Microsoft.TeamFoundation.Client; -using Microsoft.TeamFoundation.VersionControl.Client; -using Microsoft.TeamFoundation.Server; - -namespace MonoDevelop.VersionControl.TeamFoundation -{ - class TeamFoundationVersionControl : VersionControlSystem - { - private TeamFoundationServer _tfs; - private VersionControlServer _versionControl; - - readonly string[] protocolsTfs = {"http"}; - - public VersionControlServer VersionControlServer - { - get { return _versionControl; } - } - - public override string Name { - get { return "Team Foundation"; } - } - - public override bool IsInstalled { - get { return true; } - } - - protected override Repository OnCreateRepositoryInstance () - { - Console.WriteLine("OnCreateRepositoryInstance"); - return new TeamFoundationRepository (); - } - - public override Gtk.Widget CreateRepositoryEditor (Repository repo) - { - return new UrlBasedRepositoryEditor ((TeamFoundationRepository)repo, protocolsTfs); - } - - public override Repository GetRepositoryReference (string path, string id) - { - WorkspaceInfo info = Workstation.Current.GetLocalWorkspaceInfo(path); - Console.WriteLine("GetRepositoryReference : " + path); - if (info == null) return new TeamFoundationRepository (this, ""); - - Console.WriteLine("GetRepositoryReference : " + info.ServerUri.ToString()); - return new TeamFoundationRepository (this, info.ServerUri.ToString()); - } - - public override void StoreRepositoryReference (Repository repo, string path, string id) - { - Console.WriteLine("StoreRepositoryReference " + path + ", " + id); - // Nothing to do - } - - string GetTextBase(string sourcefile) { - return Path.Combine( - Path.Combine( - Path.Combine( - Path.GetDirectoryName(sourcefile), - ".svn"), - "text-base"), - Path.GetFileName(sourcefile) + ".svn-base"); - } - - internal static string GetDirectoryDotSvn (string sourcepath) { - return Path.Combine(sourcepath, ".svn"); - } - - public bool IsDiffAvailable (Repository repo, string sourcefile) { - try { - return File.Exists(GetTextBase(sourcefile)) - && IsVersioned(sourcefile) - && GetVersionInfo (repo, sourcefile, false).Status == VersionStatus.Modified; - } catch { - // GetVersionInfo may throw an exception - return false; - } - } - - public bool IsVersioned (string sourcefile) - { - Console.WriteLine("IsVersioned: " + sourcefile); - ItemSpec itemSpec = new ItemSpec(sourcefile, RecursionType.None); - ItemSet itemSet = VersionControlServer.GetItems(itemSpec, VersionSpec.Latest, DeletedState.NonDeleted, ItemType.Any, true); - Item[] items = itemSet.Items; - foreach (Item item in items) - { - Console.WriteLine(item.ToString()); - } - - return true; - } - - public bool CanCommit (Repository repo, string sourcepath) - { - Console.WriteLine("CanCommit: " + sourcepath); - if (Directory.Exists (sourcepath) && Directory.Exists (GetDirectoryDotSvn (sourcepath))) - return true; - if (GetVersionInfo (repo, sourcepath, false) != null) - return true; - return false; - } - - public bool CanAdd (Repository repo, string sourcepath) - { - Console.WriteLine("CanAdd: " + sourcepath); - // Do some trivial checks - if (!Directory.Exists (GetDirectoryDotSvn (Path.GetDirectoryName (sourcepath)))) - return false; - - if (File.Exists (sourcepath)) { - if (File.Exists (GetTextBase (sourcepath))) - return false; - } else if (Directory.Exists (sourcepath)) { - if (Directory.Exists (GetTextBase (sourcepath))) - return false; - } else - return false; - - // Allow adding only if the path is not already scheduled for adding - - VersionInfo ver = this.GetVersionInfo (repo, sourcepath, false); - if (ver == null) - return true; - return ver.Status == VersionStatus.Unversioned; - } - - public string GetPathToBaseText(string sourcefile) { - Console.WriteLine("GetPathToBaseText: " + sourcefile); - return GetTextBase(sourcefile); - } - - //GetHistory http://10.100.1.88:8080/ - //MonoDevelop.VersionControl.TeamFoundation.TeamFoundationRepository - //GetHistory for /home/jreed/Source/tfs-lsg-1.0/base/backend/web/Application.cs - - public Revision[] GetHistory (Repository repo, string sourcefile, Revision since) { - ArrayList revs = new ArrayList(); - TeamFoundationRepository tfRepo = repo as TeamFoundationRepository; - VersionControlServer vcs = tfRepo.VersionControlServer; - - IEnumerable changeSets = vcs.QueryHistory(sourcefile, VersionSpec.Latest, 0, RecursionType.None, null, - null, null, 256, false, false, false); - - foreach (Changeset changeSet in changeSets) - { - revs.Add(new TfRevision(repo, changeSet)); - } - - return (Revision[])revs.ToArray(typeof(Revision)); - } - - public string GetTextAtRevision (string repositoryPath, Revision revision) - { - return "NOT IMPLEMENTED!"; - } - - public VersionInfo GetVersionInfo (Repository repo, string localPath, bool getRemoteStatus) - { - if (File.Exists (GetTextBase(localPath)) || File.Exists (localPath)) - return GetFileStatus (repo, localPath, getRemoteStatus); - else if (Directory.Exists (GetDirectoryDotSvn (localPath)) || Directory.Exists (localPath)) - return GetDirStatus (repo, localPath, getRemoteStatus); - else - return null; - } - - private VersionInfo GetFileStatus (Repository repo, string sourcefile, bool getRemoteStatus) - { - // If the directory is not versioned, there is no version info - if (!Directory.Exists (GetDirectoryDotSvn (Path.GetDirectoryName (sourcefile)))) - return null; - - IList statuses = null; //Client.Status(sourcefile, SvnClient.Rev.Head, false, false, getRemoteStatus); - if (statuses.Count == 0) - throw new ArgumentException("Path '" + sourcefile + "' does not exist in the repository."); - - return null; - -// SvnClient.StatusEnt ent; -// if (statuses.Count != 1) -// throw new ArgumentException("Path '" + sourcefile + "' does not refer to a file in the repository."); -// ent = (SvnClient.StatusEnt)statuses[0]; -// if (ent.IsDirectory) -// throw new ArgumentException("Path '" + sourcefile + "' does not refer to a file."); -// return CreateNode (ent, repo); - } - - private VersionInfo GetDirStatus (Repository repo, string localPath, bool getRemoteStatus) - { - string parent = Path.GetDirectoryName (localPath); - - // If the directory is not versioned, there is no version info - if (!Directory.Exists (GetDirectoryDotSvn (parent))) - return null; - -// IList statuses = null;//Client.Status (parent, SvnClient.Rev.Head, false, false, getRemoteStatus); -// foreach (SvnClient.StatusEnt ent in statuses) { -// if (ent.LocalFilePath == localPath) -// return CreateNode (ent, repo); -// } - return null; - } - - public VersionInfo[] GetDirectoryVersionInfo (Repository repo, string sourcepath, bool getRemoteStatus, bool recursive) { - Console.WriteLine("in GetDirectoryVersionInfo"); - //IList ents = null; //Client.Status(sourcepath, SvnClient.Rev.Head, recursive, true, getRemoteStatus); - return null; - // return CreateNodes (repo, ents); - } - - public void Update(string path, bool recurse, IProgressMonitor monitor) { - Console.WriteLine("TeamFoundationVersionControl.cs: Update"); - } - - public void Commit(string[] paths, string message, IProgressMonitor monitor) { - Console.WriteLine("TeamFoundationVersionControl.cs: Commit"); - } - - public void Mkdir(string[] paths, string message, IProgressMonitor monitor) { - Console.WriteLine("TeamFoundationVersionControl.cs: Mkdir"); - } - - public void Revert (string[] paths, bool recurse, IProgressMonitor monitor) { - Console.WriteLine("TeamFoundationVersionControl.cs: Revert"); - } - - public void Add(string path, bool recurse, IProgressMonitor monitor) { - Console.WriteLine("TeamFoundationVersionControl.cs: Add"); - } - - public void Delete(string path, bool force, IProgressMonitor monitor) { - Console.WriteLine("TeamFoundationVersionControl.cs: Delete"); - } - - public void Move(string srcPath, string destPath, bool force, IProgressMonitor monitor) { - Console.WriteLine("TeamFoundationVersionControl.cs: Move"); - } - - public string PathDiff (string path, bool recursive) - { - Console.WriteLine("TeamFoundationVersionControl.cs: PathDiff"); - return "NOT IMPLEMENTED"; - } - -// private VersionInfo CreateNode (SvnClient.StatusEnt ent, Repository repo) -// { -// VersionStatus rs = VersionStatus.Unversioned; -// Revision rr = null; - -// VersionInfo ret = new VersionInfo( -// ent.LocalFilePath, -// ent.Url, -// ent.IsDirectory, -// ConvertStatus(ent.Schedule, ent.TextStatus), -// null, // TfRevision -// rs, -// rr -// ); - -// return ret; -// } - -// private VersionInfo[] CreateNodes (Repository repo, IList ent) { -// VersionInfo[] ret = new VersionInfo[ent.Count]; -// for (int i = 0; i < ent.Count; i++) -// ret[i] = CreateNode((SvnClient.StatusEnt)ent[i], repo); -// return ret; -// } - -// private VersionStatus ConvertStatus(SvnClient.NodeSchedule schedule, SvnClient.VersionStatus status) { -// switch (schedule) { -// case SvnClient.NodeSchedule.Add: return VersionStatus.ScheduledAdd; -// case SvnClient.NodeSchedule.Delete: return VersionStatus.ScheduledDelete; -// case SvnClient.NodeSchedule.Replace: return VersionStatus.ScheduledReplace; -// } - -// switch (status) { -// case SvnClient.VersionStatus.None: return VersionStatus.Unchanged; -// case SvnClient.VersionStatus.Normal: return VersionStatus.Unchanged; -// case SvnClient.VersionStatus.Unversioned: return VersionStatus.Unversioned; -// case SvnClient.VersionStatus.Modified: return VersionStatus.Modified; -// case SvnClient.VersionStatus.Merged: return VersionStatus.Modified; -// case SvnClient.VersionStatus.Conflicted: return VersionStatus.Conflicted; -// case SvnClient.VersionStatus.Ignored: return VersionStatus.UnversionedIgnored; -// case SvnClient.VersionStatus.Obstructed: return VersionStatus.Obstructed; -// } -// return VersionStatus.Unversioned; -// } - } - - - public class TeamFoundationException : ApplicationException { - public TeamFoundationException(string message) : base(message) { } - } -} diff --git a/tools/MonoDevelop.VersionControl.TeamFoundation/UserPasswordDialog.cs b/tools/MonoDevelop.VersionControl.TeamFoundation/UserPasswordDialog.cs deleted file mode 100644 index fcb8e6d..0000000 --- a/tools/MonoDevelop.VersionControl.TeamFoundation/UserPasswordDialog.cs +++ /dev/null @@ -1,103 +0,0 @@ -using System; -using System.Threading; -using MonoDevelop.Core; - -namespace MonoDevelop.VersionControl.TeamFoundation.Gui -{ - public partial class UserPasswordDialog : Gtk.Dialog - { - public UserPasswordDialog (string user, string realm, bool mayRemember, bool showPassword) - { - Build (); - if (user != null && user.Length > 0) { - entryUser.Text = user; - entryPwd.HasFocus = true; - } - - labelRealm.Text = GettextCatalog.GetString ("Authentication realm: ") + realm; - if (!mayRemember) - checkSavePwd.Visible = false; - - if (!showPassword) - entryPwd.Visible = labelPwd.Visible = false; - } - - public string User { - get { return entryUser.Text; } - } - - public string Password { - get { return entryPwd.Text; } - } - - public bool SavePassword { - get { return checkSavePwd.Visible && checkSavePwd.Active; } - } - - - internal static bool Show (string realm, bool may_save, out SvnClient.svn_auth_cred_username_t data) - { - data = new SvnClient.svn_auth_cred_username_t (); - int save; - string pwd, user = ""; - bool ret = Show (false, realm, may_save, ref user, out pwd, out save); - data.username = user; - data.may_save = save; - return ret; - } - - internal static bool Show (string user_name, string realm, bool may_save, out SvnClient.svn_auth_cred_simple_t data) - { - data = new SvnClient.svn_auth_cred_simple_t (); - int save; - string pwd; - bool ret = Show (true, realm, may_save, ref user_name, out pwd, out save); - data.username = user_name; - data.password = pwd; - data.may_save = save; - return ret; - } - - internal static bool Show (bool showPwd, string realm, bool may_save, ref string user_name, out string password, out int save) - { - string pwd = "", user = user_name; - int s = 0; - - bool res = false; - object monitor = new Object (); - - EventHandler del = delegate { - try { - UserPasswordDialog dlg = new UserPasswordDialog (user, realm, may_save, showPwd); - res = (dlg.Run () == (int) Gtk.ResponseType.Ok); - if (res) { - s = dlg.SavePassword ? 1 : 0; - pwd = dlg.Password; - user = dlg.User; - } - dlg.Destroy (); - } finally { - lock (monitor) { - System.Threading.Monitor.Pulse (monitor); - } - } - }; - - if (GLib.MainContext.Depth > 0) { - // Already in GUI thread - del (null, null); - } - else { - lock (monitor) { - Gtk.Application.Invoke (del); - System.Threading.Monitor.Wait (monitor); - } - } - - user_name = user; - save = s; - password = pwd; - return res; - } - } -} diff --git a/tools/MonoDevelop.VersionControl.TeamFoundation/generated.cs b/tools/MonoDevelop.VersionControl.TeamFoundation/generated.cs deleted file mode 100644 index dd4abdd..0000000 --- a/tools/MonoDevelop.VersionControl.TeamFoundation/generated.cs +++ /dev/null @@ -1,35 +0,0 @@ -// ------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Mono Runtime Version: 2.0.50727.42 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -// ------------------------------------------------------------------------------ - -namespace Stetic { - - - internal class Gui { - - private static bool initialized; - - internal static void Initialize() { - if ((Stetic.Gui.initialized == false)) { - Stetic.Gui.initialized = true; - } - } - } - - internal class ActionGroups { - - public static Gtk.ActionGroup GetActionGroup(System.Type type) { - return Stetic.ActionGroups.GetActionGroup(type.FullName); - } - - public static Gtk.ActionGroup GetActionGroup(string name) { - return null; - } - } -} diff --git a/tools/MonoDevelop.VersionControl.TeamFoundation/gui.stetic b/tools/MonoDevelop.VersionControl.TeamFoundation/gui.stetic deleted file mode 100644 index 69493c6..0000000 --- a/tools/MonoDevelop.VersionControl.TeamFoundation/gui.stetic +++ /dev/null @@ -1,1035 +0,0 @@ - - - - - - - - ButtonPressMask - TeamFoundation - True - False - False - 2 - False - True - - - - ButtonPressMask - 2 - - - - 6 - 6 - - - - 0 - <b>User credentials are required to access the TeamFoundation repository.</b> - True - - - 0 - True - False - False - - - - - - 0 - Realm - - - 1 - True - False - False - - - - - - 2 - 2 - 6 - 6 - - - - True - True - False - - - - 1 - 2 - 1 - 2 - True - Fill - True - True - False - False - True - False - - - - - - True - True - - - - 1 - 2 - True - Fill - True - True - False - False - True - False - - - - - - 0 - User: - - - True - Fill - Fill - False - True - False - False - True - False - - - - - - 0 - Password: - - - 1 - 2 - True - Fill - Fill - False - True - False - False - True - False - - - - - 2 - False - 6 - - - - - - True - Remember password - True - True - True - - - 3 - True - False - False - - - - - 0 - False - - - - - - - - ButtonPressMask - 10 - 5 - 2 - End - - - - True - True - True - StockItem - gtk-cancel - True - -6 - gtk-cancel - - - False - False - - - - - - True - True - True - StockItem - gtk-ok - True - -5 - gtk-ok - - - 1 - False - False - - - - - - - - ButtonPressMask - Repository Certified by an Unknown Authority - True - 2 - False - True - - - - ButtonPressMask - 2 - - - - 6 - 6 - - - - - - - stock:gtk-dialog-warning Dialog - - - 0 - True - False - False - - - - - 0 - True - False - False - - - - - - 6 - 12 - - - - 0 - Unable to verify the identity of host as a trusted site. - - - 0 - True - False - False - - - - - - 0 - <b>Reason</b> - True - - - 1 - True - False - False - - - - - - - - 2 - True - False - False - - - - - - 6 - 2 - 6 - 6 - - - - 0 - <b>Host name</b>: - True - - - 1 - 2 - True - Fill - Fill - False - True - False - False - True - False - - - - - - 0 - <b>Issued by:</b> - True - - - 2 - 3 - True - Fill - Fill - False - True - False - False - True - False - - - - - - 0 - <b>Issued on:</b> - True - - - 3 - 4 - True - Fill - Fill - False - True - False - False - True - False - - - - - - 0 - <b>Expires on:</b> - True - - - 4 - 5 - True - Fill - Fill - False - True - False - False - True - False - - - - - - 0 - <b>Fingerprint:</b> - True - - - 5 - 6 - True - Fill - Fill - False - True - False - False - True - False - - - - - - 0 - <b>Auth. Realm:</b> - True - - - True - Fill - Fill - False - True - False - False - True - False - - - - - - 0 - label14 - - - 5 - 6 - 1 - 2 - True - Fill - Fill - False - True - False - False - True - False - - - - - - 0 - label12 - - - 3 - 4 - 1 - 2 - True - Fill - Fill - False - True - False - False - True - False - - - - - - 0 - label10 - - - 1 - 2 - 1 - 2 - True - Fill - Fill - False - True - False - False - True - False - - - - - - 0 - label11 - - - 2 - 3 - 1 - 2 - True - Fill - Fill - False - True - False - False - True - False - - - - - - 0 - label9 - - - 1 - 2 - False - Fill - True - True - False - False - True - False - - - - - - 0 - label13 - - - 4 - 5 - 1 - 2 - True - Fill - Fill - False - True - False - False - True - False - - - - - 3 - True - False - False - 6 - - - - - - - - 4 - True - False - False - - - - - - 0 - Do you want to accept the certificate and connect to the repository? - - - 5 - True - False - False - - - - - - True - Accept this certificate permanently - True - True - True - True - group1 - - - 6 - True - False - False - - - - - - True - Accept this certificate temporarily for this session - True - True - True - group1 - - - 7 - True - False - False - - - - - - True - Do not accept this certificate and do not connect to this repository - True - True - True - group1 - - - 8 - True - False - False - - - - - 1 - False - - - - - 0 - False - - - - - - - - ButtonPressMask - 10 - 5 - 2 - End - - - - True - True - True - StockItem - gtk-cancel - True - -6 - gtk-cancel - - - False - False - - - - - - True - True - True - StockItem - gtk-ok - True - -5 - gtk-ok - - - 1 - False - False - - - - - - - - ButtonPressMask - Client Certificate Required - 2 - False - - - - ButtonPressMask - 2 - - - - 6 - 6 - - - - 0 - <b>A client certificate is needed to connect to the repository</b> - True - - - 0 - True - False - False - - - - - - 0 - Realm - - - 1 - True - False - False - - - - - - 0 - Please provide a path to the required certificate: - - - 2 - True - False - False - 6 - - - - - - 6 - - - - File: - - - 0 - True - False - False - - - - - - - - 1 - False - - - - - 3 - True - False - False - - - - - - True - Remember certificate location - True - True - True - - - 4 - True - False - False - - - - - 0 - True - False - False - - - - - - - - ButtonPressMask - 10 - 5 - 2 - End - - - - True - True - True - StockItem - gtk-cancel - True - -6 - gtk-cancel - - - False - False - - - - - - True - True - True - StockItem - gtk-ok - True - -5 - gtk-ok - - - 1 - False - False - - - - - - - - ButtonPressMask - ClientCertificatePasswordDialog - 2 - False - - - - ButtonPressMask - 2 - - - - 6 - 6 - - - - 0 - <b>A client certificate is needed to connect to the repository</b> - True - - - 0 - True - False - False - - - - - - 0 - Realm - - - 1 - True - False - False - - - - - - 0 - Please provide the passphrase required to access to the certificate: - - - 2 - True - False - False - 6 - - - - - - 6 - - - - Password: - - - 0 - True - False - False - - - - - - True - True - False - - - - 1 - True - - - - - 3 - True - False - False - - - - - - True - Remember password - True - True - True - - - 4 - True - False - False - - - - - 0 - True - False - False - - - - - - - - ButtonPressMask - 10 - 5 - 2 - End - - - - True - True - True - StockItem - gtk-cancel - True - -6 - gtk-cancel - - - False - False - - - - - - True - True - True - StockItem - gtk-ok - True - -5 - gtk-ok - - - 1 - False - False - - - - - - \ No newline at end of file -- 2.11.4.GIT