2002-07-22 Tim Coleman <tim@timcoleman.com>
authorTim Coleman <tim@mono-cvs.ximian.com>
Tue, 23 Jul 2002 03:20:22 +0000 (03:20 -0000)
committerTim Coleman <tim@mono-cvs.ximian.com>
Tue, 23 Jul 2002 03:20:22 +0000 (03:20 -0000)
        * TypeConverter.cs: Added new stubbs
        * BindableAttribute.cs: Added
        * BindableSupport.cs: Added
        * NotifyParentPropertyAttribute.cs: Added
        * ExpandableObjectConverter.cs: Added

svn path=/trunk/mcs/; revision=6053

mcs/class/System/System.ComponentModel/BindableAttribute.cs [new file with mode: 0755]
mcs/class/System/System.ComponentModel/BindableSupport.cs [new file with mode: 0644]
mcs/class/System/System.ComponentModel/ChangeLog
mcs/class/System/System.ComponentModel/ExpandableObjectConverter.cs [new file with mode: 0644]
mcs/class/System/System.ComponentModel/NotifyParentPropertyAttribute.cs [new file with mode: 0755]
mcs/class/System/System.ComponentModel/TypeConverter.cs

diff --git a/mcs/class/System/System.ComponentModel/BindableAttribute.cs b/mcs/class/System/System.ComponentModel/BindableAttribute.cs
new file mode 100755 (executable)
index 0000000..ef48152
--- /dev/null
@@ -0,0 +1,71 @@
+//
+// System.ComponentModel.BindableAttribute.cs
+//
+// Author:
+//   Tim Coleman (tim@timcoleman.com)
+//
+// Copyright (C) Tim Coleman, 2002
+//
+//
+
+namespace System.ComponentModel {
+       [AttributeUsage (AttributeTargets.All)]
+       public sealed class BindableAttribute : Attribute {
+
+               #region Fields
+
+               BindableSupport flags;
+               bool bindable;
+
+               #endregion // Fields
+               
+               public static readonly BindableAttribute No = new BindableAttribute (BindableSupport.No);
+               public static readonly BindableAttribute Yes = new BindableAttribute (BindableSupport.Yes);
+               public static readonly BindableAttribute Default = new BindableAttribute (BindableSupport.Default);
+
+               #region Constructors
+
+               public BindableAttribute (BindableSupport flags)
+               {
+                       this.flags = flags;
+                       this.bindable = false;
+               }
+
+               public BindableAttribute (bool bindable)
+               {
+                       this.bindable = bindable;
+               }
+
+               #endregion // Constructors
+
+               #region Properties
+
+               public bool Bindable {
+                       get { return bindable; }
+               }
+
+               #endregion // Properties
+
+               #region Methods
+
+               [MonoTODO]
+               public override bool Equals (object obj)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public override int GetHashCode ()
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public override bool IsDefaultAttribute ()
+               {
+                       throw new NotImplementedException ();
+               }
+
+               #endregion // Methods
+       }
+}
diff --git a/mcs/class/System/System.ComponentModel/BindableSupport.cs b/mcs/class/System/System.ComponentModel/BindableSupport.cs
new file mode 100644 (file)
index 0000000..0795cd9
--- /dev/null
@@ -0,0 +1,18 @@
+//
+// System.ComponentModel.BindableSupport.cs
+//
+// Author:
+//   Tim Coleman (tim@timcoleman.com)
+//
+// Copyright (C) Tim Coleman, 2002
+//
+
+namespace System.ComponentModel
+{
+       [Serializable]
+       public enum BindableSupport {
+               Default,
+               No,
+               Yes
+       }
+}
index 8699edab25e132bdb536846a496233f788913c1c..42f830f31f4ebd0569242dfca6046e7932eea7c2 100644 (file)
@@ -1,3 +1,10 @@
+2002-07-22  Tim Coleman <tim@timcoleman.com>
+       * TypeConverter.cs: Added new stubbs
+       * BindableAttribute.cs: Added
+       * BindableSupport.cs: Added
+       * NotifyParentPropertyAttribute.cs: Added
+       * ExpandableObjectConverter.cs: Added
+
 2002-07-20  Gonzalo Paniagua Javier <gonzalo@ximian.com>
 
        * MemberDescriptor.cs: implemented Attributes and Category.
diff --git a/mcs/class/System/System.ComponentModel/ExpandableObjectConverter.cs b/mcs/class/System/System.ComponentModel/ExpandableObjectConverter.cs
new file mode 100644 (file)
index 0000000..cfd6294
--- /dev/null
@@ -0,0 +1,37 @@
+//
+// System.ComponentModel.ExpandableObjectConverter.cs
+//
+// Author:
+//   Tim Coleman (tim@timcoleman.com)
+//
+// Copyright (C) Tim Coleman, 2002
+//
+
+using System;
+
+namespace System.ComponentModel {
+       public class ExpandableObjectConverter : TypeConverter {
+
+               #region Constructors
+
+               public ExpandableObjectConverter ();
+
+               #endregion // Constructors
+
+               #region Methods
+
+               [MonoTODO]
+               public override PropertyDescriptorCollection GetProperties (ITypeDescriptorContext context, object value, Attribute[] attributes)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public override bool GetPropertiesSupported (ITypeDescriptorContext context)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               #endregion // Methods
+       }
+}
diff --git a/mcs/class/System/System.ComponentModel/NotifyParentPropertyAttribute.cs b/mcs/class/System/System.ComponentModel/NotifyParentPropertyAttribute.cs
new file mode 100755 (executable)
index 0000000..327dee0
--- /dev/null
@@ -0,0 +1,64 @@
+//
+// System.ComponentModel.NotifyParentPropertyAttribute.cs
+//
+// Author:
+//   Tim Coleman (tim@timcoleman.com)
+//
+// Copyright (C) Tim Coleman, 2002
+//
+//
+
+namespace System.ComponentModel {
+       [AttributeUsage (AttributeTargets.Property)]
+       public sealed class NotifyParentPropertyAttribute : Attribute {
+
+               #region Fields
+
+               bool notifyParent;
+
+               #endregion // Fields
+               
+               public static readonly NotifyParentPropertyAttribute No = new NotifyParentPropertyAttribute (false);
+               public static readonly NotifyParentPropertyAttribute Yes = new NotifyParentPropertyAttribute (true);
+               public static readonly NotifyParentPropertyAttribute Default = new NotifyParentPropertyAttribute (false);
+
+               #region Constructors
+
+               public NotifyParentPropertyAttribute (bool notifyParent)
+               {
+                       this.notifyParent = notifyParent;
+               }
+
+               #endregion // Constructors
+
+               #region Properties
+
+               public bool NotifyParent {
+                       get { return notifyParent; }
+               }
+
+               #endregion // Properties
+
+               #region Methods
+
+               [MonoTODO]
+               public override bool Equals (object obj)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public override int GetHashCode ()
+               {
+                       throw new NotImplementedException ();
+               }
+
+               [MonoTODO]
+               public override bool IsDefaultAttribute ()
+               {
+                       throw new NotImplementedException ();
+               }
+
+               #endregion // Methods
+       }
+}
index b782cbf7b4cdcbdb1efb6b98d3c82824e0925716..3cc448e4a1cb472485574b6ca2693547199fa24b 100755 (executable)
@@ -129,6 +129,18 @@ public class TypeConverter
                throw new NotImplementedException ();
        }
 
+       [MonoTODO]
+       protected Exception GetConvertFromException (object value)
+       {
+               throw new NotImplementedException ();
+       }
+
+       [MonoTODO]
+       protected Exception GetConvertToException (object value)
+       {
+               throw new NotImplementedException ();
+       }
+
        [MonoTODO]
        public virtual object CreateInstance (ITypeDescriptorContext context, IDictionary propertyValues)
        {