From 9a596abb9323a21ab662381c2d6fbd5d565b0445 Mon Sep 17 00:00:00 2001 From: Jim Norman Date: Wed, 26 Oct 2005 18:50:11 +0000 Subject: [PATCH] Deleted unused files --- .../c-sharp-password-dialog/Makefile.am | 85 ------ .../c-sharp-password-dialog/README | 28 -- .../c-sharp-password-dialog.csproj | 119 -------- .../c-sharp-password-dialog.csproj.user | 48 ---- .../c-sharp-password-dialog.snk | Bin 596 -> 0 bytes .../passwordDialog-gtk.cs | 183 ------------ .../c-sharp-password-dialog/passwordDialog.cs | 266 ------------------ .../passwordDialog.resx | 166 ----------- 8 files changed, 895 deletions(-) delete mode 100644 ClientPasswordManager/c-sharp-password-dialog/Makefile.am delete mode 100644 ClientPasswordManager/c-sharp-password-dialog/README delete mode 100644 ClientPasswordManager/c-sharp-password-dialog/c-sharp-password-dialog.csproj delete mode 100644 ClientPasswordManager/c-sharp-password-dialog/c-sharp-password-dialog.csproj.user delete mode 100644 ClientPasswordManager/c-sharp-password-dialog/c-sharp-password-dialog.snk delete mode 100644 ClientPasswordManager/c-sharp-password-dialog/passwordDialog-gtk.cs delete mode 100644 ClientPasswordManager/c-sharp-password-dialog/passwordDialog.cs delete mode 100644 ClientPasswordManager/c-sharp-password-dialog/passwordDialog.resx diff --git a/ClientPasswordManager/c-sharp-password-dialog/Makefile.am b/ClientPasswordManager/c-sharp-password-dialog/Makefile.am deleted file mode 100644 index 7f56a9d5..00000000 --- a/ClientPasswordManager/c-sharp-password-dialog/Makefile.am +++ /dev/null @@ -1,85 +0,0 @@ -####################################################################### -# -# Copyright (C) 2004 Novell, Inc. -# -# This program is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public -# License as published by the Free Software Foundation; either -# version 2 of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public -# License along with this program; if not, write to the Free -# Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -# -# Author: Juan Carlos Luciani -# -####################################################################### - -if DEBUG -TARGET_CFG = Debug -else -TARGET_CFG = Release -endif - -# handle Mono secondary dependencies -export MONO_PATH := $(MONO_PATH) - -if WINDOWS -Module_CSFILES = $(srcdir)/passwordDialog.cs -Module_LIBS = System.dll System.Data.dll $(SYSTEM_XML) Novell.Security.Utilities.dll -Module_PKGS = -else -Module_CSFILES = $(srcdir)/passwordDialog-gtk.cs -Module_LIBS = System.dll System.Data.dll System.Drawing $(SYSTEM_XML) Novell.Security.Utilities.dll -Module_PKGS = -pkg:gtk-sharp -endif - -Module_KEYFILE = $(srcdir)/c-sharp-password-dialog.snk -Module_CSFILES_CSC := $(subst /,$(SEP),$(Module_CSFILES)) -Module_INCLUDES = -Module_RESOURCES = -Module_FLAGS = $(CSC_LIBFLAG) -Module_LIBPATH = ../c-sharp-utilities/bin/$(TARGET_CFG) - -EXTRA_DIST = $(Module_CSFILES) $(Module_KEYFILE) - -CUR_DIR := $(shell pwd) - -all: Novell.Security.ClientPasswordManager.PasswordDialog.dll - -Novell.Security.ClientPasswordManager.PasswordDialog.dll: $(Module_CSFILES) $(Module_RESOURCES) - $(mkinstalldirs) bin/$(TARGET_CFG) -if WINDOWS - $(CSC) /nowarn:1591,1573,1572 /out:bin/$(TARGET_CFG)/$@ $(CSCFLAGS) $(Module_FLAGS) $(Module_PKGS) $(Module_LIBS:%=/r:%) $(Module_LIBPATH:%=/lib:%) $(Module_CSFILES_CSC) /doc:Novell.Security.ClientPasswordManager.PasswordDialog.doc.xml -else - $(CSC) /nowarn:1591,1573,1572 /out:bin/$(TARGET_CFG)/$@ $(CSCFLAGS) $(Module_FLAGS) /keyfile:$(Module_KEYFILE) $(Module_PKGS) $(Module_LIBS:%=/r:%) $(Module_LIBPATH:%=/lib:%) $(Module_CSFILES_CSC) /doc:Novell.Security.ClientPasswordManager.PasswordDialog.doc.xml -endif - -install-exec-local: Novell.Security.ClientPasswordManager.PasswordDialog.dll - $(mkinstalldirs) $(DESTDIR)$(libdir) - $(INSTALL_PROGRAM) bin/$(TARGET_CFG)/Novell.Security.ClientPasswordManager.PasswordDialog.dll $(DESTDIR)$(libdir)/ - -uninstall-local: - cd $(DESTDIR)$(libdir); rm -f Novell.Security.ClientPasswordManager.PasswordDialog.dll - rmdir $(DESTDIR)$(libdir) - -#installcheck-local: install -# $(mkinstalldirs) $(DESTDIR)$(libdir) -# $(INSTALL_PROGRAM) $(DESTDIR)$(libdir) -# cd $(DESTDIR)$(libdir); $(MONO) - -CLEAN_FILES = bin/$(TARGET_CFG)/Novell.Security.ClientPasswordManager.PasswordDialog.dll /doc:Novell.Security.ClientPasswordManager.PasswordDialog.doc.xml - -clean-local: - rm -rf *.dbg *.exe *.dll $(CLEAN_FILES) - -distclean-local: - -maintainer-clean-local: - rm -f Makefile.in - diff --git a/ClientPasswordManager/c-sharp-password-dialog/README b/ClientPasswordManager/c-sharp-password-dialog/README deleted file mode 100644 index cc9e69af..00000000 --- a/ClientPasswordManager/c-sharp-password-dialog/README +++ /dev/null @@ -1,28 +0,0 @@ -/*********************************************************************** - * File: README - * - * Copyright (C) 2004 Novell, Inc. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Library General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this library; if not, write to the Free - * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - ***********************************************************************/ - -INTRODUCTION - -The c-sharp-password-dialog provides a class (PasswordDialog) that can be used -by .NET applications to query users for their password. - -FEATURES - -The PasswordDialog Class utilizes Windows Forms under Win32 and GTK# under Linux. \ No newline at end of file diff --git a/ClientPasswordManager/c-sharp-password-dialog/c-sharp-password-dialog.csproj b/ClientPasswordManager/c-sharp-password-dialog/c-sharp-password-dialog.csproj deleted file mode 100644 index e1753266..00000000 --- a/ClientPasswordManager/c-sharp-password-dialog/c-sharp-password-dialog.csproj +++ /dev/null @@ -1,119 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/ClientPasswordManager/c-sharp-password-dialog/c-sharp-password-dialog.csproj.user b/ClientPasswordManager/c-sharp-password-dialog/c-sharp-password-dialog.csproj.user deleted file mode 100644 index 0e89b7e9..00000000 --- a/ClientPasswordManager/c-sharp-password-dialog/c-sharp-password-dialog.csproj.user +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - - diff --git a/ClientPasswordManager/c-sharp-password-dialog/c-sharp-password-dialog.snk b/ClientPasswordManager/c-sharp-password-dialog/c-sharp-password-dialog.snk deleted file mode 100644 index f132e520cfd3f1743c196ddb11ca6499f0780437..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 596 zcmV-a0;~N80ssI2Bme+XQ$aES1ONa50096+R@`;5U*ss7+Oy;28^aA#7E;TTmV2X2 z(7(|`pQ54R%vrlwyJnxN$qF8`ZXS`QipvMVWD1$jI))*>nUP{rZ2rDcj>@7pu1t!L#>qSq;&PU^I zBa-(BUWaS(R&9zR&Nkx$`Gn0#6wh<>cPbTSi9?yE(y!EPkBOalQ45R->W1`dAwyU> zma!(wp1b}$gJ1zB7=g?ER(X^wD?B;+wctH$-$_irx&%GR>@^rpiggx zTw6IaZLt1oq!c~kvRw}Fl$-EhjfG0WUx9W8Zhnhvc#r->A}H%HcJ} i{x!f6TERJBbg(62$!t^zE$1vsm&?fuFR2^&t)b diff --git a/ClientPasswordManager/c-sharp-password-dialog/passwordDialog-gtk.cs b/ClientPasswordManager/c-sharp-password-dialog/passwordDialog-gtk.cs deleted file mode 100644 index 961ae3b1..00000000 --- a/ClientPasswordManager/c-sharp-password-dialog/passwordDialog-gtk.cs +++ /dev/null @@ -1,183 +0,0 @@ -/*********************************************************************** - * File: passwordDialog-gtk.cs - * Author: Juan Carlos Luciani (jluciani@novell.com) - * - * Namespace: Novell.Security.ClientPasswordManager - * - * Classes implemented: PasswordDialog. - * - * Copyright (C) 2004 Novell, Inc. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Library General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this library; if not, write to the Free - * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - ***********************************************************************/ - -using System; -using System.Drawing; -using System.Collections; -using System.ComponentModel; -using System.Text.RegularExpressions; -using Gtk; - -namespace Novell.Security.ClientPasswordManager -{ - /// - /// Class implements user name dialog leveraging Gtk#. - /// - sealed public class passwordDialog : Dialog - { - #region Class Members and Defines - - private Entry m_passwordEntry; - private Button m_okButton; - private Button m_cancelButton; - - // The following strings need to be localized - private static string m_passwordLabelText = "Password:"; - - #endregion - - /// - /// Constructor. - /// - /// Title to use for the dialog. - public passwordDialog(string title) : base() - { - this.Title = title; - this.HasSeparator = false; - this.Resizable = false; - this.Modal = true; - - HBox h = new HBox(); - h.BorderWidth = 12; - h.Spacing = 6; - - Label l = new Label(m_passwordLabelText); - l.Xalign = 0; - h.PackStart(l, false, false, 0); - - m_passwordEntry = new Entry(); - m_passwordEntry.ActivatesDefault = true; - m_passwordEntry.Visibility = false; - h.PackStart(m_passwordEntry, true, true, 0); - - h.ShowAll(); - this.VBox.Add(h); - - m_okButton = new Button(Stock.Ok); - m_okButton.CanDefault = true; - this.AddActionWidget(m_okButton, ResponseType.Ok); - - m_cancelButton = new Button(Stock.Cancel); - this.AddActionWidget(m_cancelButton, ResponseType.Cancel); - - this.DefaultResponse = ResponseType.Ok; - this.ShowAll(); - } - - /// - /// Shows the dialog and gathers the user input. - /// - /// Window owner. - /// True if the user input was gathered, else false. - public bool Invoke(Window parent) - { - // Set focus on the entry widget, display the dialog, and - // hide it once it is answered. - this.Focus = m_passwordEntry; - this.TransientFor = parent; - ResponseType resp = (ResponseType) this.Run(); - this.Hide(); - - // Proceed based on the dialog response value - if (resp == ResponseType.Ok) - { - // The user provided the necessary input - return true; - } - else - { - // The user either hit the cancel button or closed - // the window. - return false; - } - } - - /// - /// Gets the password entered by the user. - /// - /// NetworkCredential object or null if not successful - public System.String password { get {return m_passwordEntry.Text;}} - } - - /// - /// Class wrapper around the passwordDialog class. This wrapper is utilized - /// to hide the use of Gtk# from its users. - /// - public class PasswordDialog - { - #region Class Members and Defines - - passwordDialog m_dialog; - - // The following strings need to be localized - private static string m_titleStartText = "Login to "; - private static string m_titleRealmText = ", Realm: "; - - #endregion - - /// - /// Constructor. - /// - /// Name of service on whose behalf we are acquiring password. - public PasswordDialog(string svcName) - { - // Instantiate the dialog with the appropriate title - m_dialog = new passwordDialog(m_titleStartText + svcName); - } - - /// - /// Constructor. - /// - /// Name of service on whose behalf we are acquiring password. - /// Name of realm to which the service belongs, can be empty string or null. - public PasswordDialog(string svcName, string realm) - { - // Instantiate the dialog with the appropriate title - if (realm != null && realm.Length != 0) - { - m_dialog = new passwordDialog(m_titleStartText + svcName + m_titleRealmText + realm); - } - else - { - m_dialog = new passwordDialog(m_titleStartText + svcName); - } - } - - /// - /// Shows the dialog and gathers the user input. - /// - /// Window owner. - /// True if the user input was gathered, else false. - public bool Invoke(System.Object o) - { - return m_dialog.Invoke((Window) o); - } - - /// - /// Gets the password entered by the user. - /// - public System.String password { get {return m_dialog.password;}} - } -} diff --git a/ClientPasswordManager/c-sharp-password-dialog/passwordDialog.cs b/ClientPasswordManager/c-sharp-password-dialog/passwordDialog.cs deleted file mode 100644 index b26f39b3..00000000 --- a/ClientPasswordManager/c-sharp-password-dialog/passwordDialog.cs +++ /dev/null @@ -1,266 +0,0 @@ -/*********************************************************************** - * File: passwordDialog.cs - * Author: Juan Carlos Luciani (jluciani@novell.com) - * - * Namespace: Novell.Security.ClientPasswordManager - * - * Classes implemented: PasswordDialog. - * - * Copyright (C) 2004 Novell, Inc. - * - * This library is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) any later version. - * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Library General Public License for more details. - * - * You should have received a copy of the GNU General Public - * License along with this library; if not, write to the Free - * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - ***********************************************************************/ - -using System; -using System.Drawing; -using System.Collections; -using System.ComponentModel; -using System.Windows.Forms; -using System.Text.RegularExpressions; - -namespace Novell.Security.ClientPasswordManager -{ - /// - /// Provides a dialog for the acquisition of passwords. - /// - public class passwordDialog : System.Windows.Forms.Form - { - private System.Windows.Forms.Label label1; - private System.Windows.Forms.TextBox passwordField; - private System.Windows.Forms.Button okBtn; - private System.Windows.Forms.Button cancelBtn; - - /// - /// Required designer variable. - /// - private System.ComponentModel.Container components = null; - - /// - /// Constructor. - /// - /// Title to used with dialog. - public passwordDialog(string title) - { - // Required for Windows Form Designer support - InitializeComponent(); - - // Update the form title - Text = title; - } - - /// - /// Clean up any resources being used. - /// - protected override void Dispose(bool disposing) - { - if (disposing) - { - if (components != null) - { - components.Dispose(); - } - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.label1 = new System.Windows.Forms.Label(); - this.passwordField = new System.Windows.Forms.TextBox(); - this.okBtn = new System.Windows.Forms.Button(); - this.cancelBtn = new System.Windows.Forms.Button(); - this.SuspendLayout(); - // - // label1 - // - this.label1.FlatStyle = System.Windows.Forms.FlatStyle.System; - this.label1.Location = new System.Drawing.Point(16, 24); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(56, 16); - this.label1.TabIndex = 0; - this.label1.Text = "Password:"; - // - // passwordField - // - this.passwordField.AcceptsReturn = true; - this.passwordField.Location = new System.Drawing.Point(96, 24); - this.passwordField.MaxLength = 64; - this.passwordField.Name = "passwordField"; - this.passwordField.PasswordChar = '*'; - this.passwordField.Size = new System.Drawing.Size(224, 20); - this.passwordField.TabIndex = 5; - this.passwordField.Text = ""; - // - // okBtn - // - this.okBtn.FlatStyle = System.Windows.Forms.FlatStyle.System; - this.okBtn.Location = new System.Drawing.Point(152, 64); - this.okBtn.Name = "okBtn"; - this.okBtn.TabIndex = 7; - this.okBtn.Text = "Ok"; - this.okBtn.Click += new System.EventHandler(this.okBtn_Click); - // - // cancelBtn - // - this.cancelBtn.DialogResult = System.Windows.Forms.DialogResult.Cancel; - this.cancelBtn.FlatStyle = System.Windows.Forms.FlatStyle.System; - this.cancelBtn.Location = new System.Drawing.Point(240, 64); - this.cancelBtn.Name = "cancelBtn"; - this.cancelBtn.TabIndex = 8; - this.cancelBtn.Text = "Cancel"; - // - // passwordDialog - // - this.AcceptButton = this.okBtn; - this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); - this.CancelButton = this.cancelBtn; - this.ClientSize = new System.Drawing.Size(338, 96); - this.Controls.Add(this.cancelBtn); - this.Controls.Add(this.okBtn); - this.Controls.Add(this.passwordField); - this.Controls.Add(this.label1); - this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; - this.MaximizeBox = false; - this.MinimizeBox = false; - this.Name = "passwordDialog"; - this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; - this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; - this.Load += new System.EventHandler(this.passwordDialog_Load); - this.Activated += new System.EventHandler(this.passwordDialog_Activated); - this.ResumeLayout(false); - - } - #endregion - - /// - /// Handler for form activation event. - /// - private void passwordDialog_Activated(object sender, System.EventArgs e) - { - passwordField.Focus(); - } - - /// - /// Handler for Ok button click event. - /// - private void okBtn_Click(object sender, System.EventArgs e) - { - // Dispose of the dialog and set DialogResult to OK - DialogResult = DialogResult.OK; - Close(); - } - - private void passwordDialog_Load(object sender, System.EventArgs e) - { - - } - - /// - /// Returns the password entered by the user. - /// - public System.String password { get {return passwordField.Text;}} - } - - /// - /// Class wrapper around the passwordDialog class. This wrapper is utilized - /// to hide the use of Gtk# from its users. - /// - public class PasswordDialog - { - #region Class Members and Defines - - // The following strings need to be localized - private static string m_titleStartText = "Login to "; - private static string m_titleRealmText = ", Realm: "; - - // Title that will be used with the dialog - private string m_dialogTitle; - - // Input gathered from the user - private string m_password; - - #endregion - - /// - /// Constructor. - /// - /// Name of service on whose behalf we are acquiring password. - public PasswordDialog(string svcName) - { - // Setup the title that will be used with the dialog - m_dialogTitle = m_titleStartText + svcName; - } - - /// - /// Constructor. - /// - /// Name of service on whose behalf we are acquiring password. - /// Name of realm to which the service belongs, can be empty string or null. - public PasswordDialog(string svcName, string realm) - { - // Setup the appropriate title that will be used with the dialog - if (realm != null && realm.Length != 0) - { - m_dialogTitle = m_titleStartText + svcName + m_titleRealmText + realm; - } - else - { - m_dialogTitle = m_titleStartText + svcName; - } - } - - /// - /// Shows the dialog and gathers the user input. - /// - /// Window owner. - /// True if the user input was gathered, else false. - public bool Invoke(System.Object o) - { - bool retVal; - - // Instantiate and show passwordDialog - passwordDialog dialog = new passwordDialog(m_dialogTitle); - if (dialog.ShowDialog((IWin32Window) o) == DialogResult.OK) - { - // Save the password entered - m_password = dialog.password; - - // Indicate success - retVal = true; - } - else - { - // The user either hit the cancel button or closed - // the window. - retVal = false; - } - - // Dispose of the dialog - dialog.Dispose(); - - return retVal; - } - - /// - /// Gets the password entered by the user. - /// - public System.String password { get {return m_password;}} - } -} diff --git a/ClientPasswordManager/c-sharp-password-dialog/passwordDialog.resx b/ClientPasswordManager/c-sharp-password-dialog/passwordDialog.resx deleted file mode 100644 index e31d717a..00000000 --- a/ClientPasswordManager/c-sharp-password-dialog/passwordDialog.resx +++ /dev/null @@ -1,166 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 1.3 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - False - - - Private - - - Private - - - Private - - - False - - - Private - - - False - - - Private - - - Private - - - False - - - Private - - - Private - - - False - - - False - - - False - - - 8, 8 - - - (Default) - - - True - - - passwordDialog - - - 80 - - - True - - - Private - - \ No newline at end of file