Sfoglia il codice sorgente

Added some interfaces, delegates and stubs classes to System.Drawing.Design

svn path=/trunk/mcs/; revision=9236
Alejandro Sánchez Acosta 23 anni fa
parent
commit
bcb2fad16d

+ 11 - 0
mcs/class/System.Drawing/System.Drawing.Design/ChangeLog

@@ -0,0 +1,11 @@
+2002-06-20  Alejandro Sánchez Acosta <[email protected]>
+
+	* IPropertyValueUIService.cs: Added
+
+	* PropertyValueItem.cs: Added
+
+	* PropertyValueUIHandler.cs: Added
+
+	* PropertyValueUIItemInvokeHandler.cs: Added
+
+	* ChangeLog: new file.

+ 31 - 0
mcs/class/System.Drawing/System.Drawing.Design/IPropertyValueUIService.cs

@@ -0,0 +1,31 @@
+// System.Drawing.Design.IPropertyValueUIService.cs
+//
+// Author:
+// 	Alejandro Sánchez Acosta  <[email protected]>
+// 	
+// (C) Alejandro Sánchez Acosta
+// 
+
+using System.Drawing;
+using System.ComponentModel;
+
+namespace System.Drawing.Design
+{
+	public interface IPropertyValueUIService
+	{
+		
+		#region Methods		
+		void AddPropertyValueUIHandler (PropertyValueUIHandler newHandler);
+		PropertyValueUIItem[] GetPropertyUIValueItems (ITypeDescriptorContext context, PropertyDescriptor propDesc);
+
+		void NotifyPropertyValueUIItemsChanged ();
+
+		void RemovePropertyValueUIHandler (PropertyValueUIHandler newHandler);
+		#endregion Methods
+
+		#region Events
+		event EventHandler PropertyUIValueItemsChanged;
+		#endregion Events
+	}
+}
+

+ 69 - 0
mcs/class/System.Drawing/System.Drawing.Design/PropertyValueItem.cs

@@ -0,0 +1,69 @@
+// System.Drawing.Design.PropertyValueItem.cs
+// 
+// Author:
+//     Alejandro Sánchez Acosta  <[email protected]>
+// 
+// (C) Alejandro Sánchez Acosta
+// 
+
+using System.Drawing;
+using System.Drawing.Imaging;
+using System.Web.UI.WebControls;
+using System.ComponentModel;
+
+namespace System.Drawing.Design
+{
+	public class PropertyValueUIItem
+	{
+		[MonoTODO]
+		public PropertyValueUIItem (Image uiItemImage,
+				      PropertyValueUIItemInvokeHandler handler,
+				      string tooltip)
+		{
+			throw new NotImplementedException ();
+		}
+
+		[MonoTODO]
+		public virtual Image Image 
+		{
+			get
+			{
+				throw new NotImplementedException ();
+			}
+		}
+
+		[MonoTODO]
+		public virtual PropertyValueUIItemInvokeHandler InvokeHandler
+		{
+			get
+			{
+				throw new NotImplementedException ();
+			}
+
+			set
+			{
+				throw new NotImplementedException ();
+			}
+		}
+
+		[MonoTODO]
+		public virtual string ToolTip 
+		{
+			get
+			{
+				throw new NotImplementedException ();
+			}
+
+			set
+			{
+				throw new NotImplementedException ();
+			}
+		}
+
+		[MonoTODO]
+		public virtual void Reset()
+		{
+			throw new NotImplementedException ();
+		}
+	}
+}

+ 22 - 0
mcs/class/System.Drawing/System.Drawing.Design/PropertyValueUIHandler.cs

@@ -0,0 +1,22 @@
+// System.Drawing.Design.PropertyValueUIHandler
+//
+// Author:
+// 	Alejandro Sánchez Acosta  <[email protected]>
+//
+// (C) Alejandro Sánchez Acosta
+//
+
+
+using System.Collections;
+using System.ComponentModel;
+using System.Drawing;
+
+namespace System.Drawing.Design
+{
+	
+	[Serializable]
+	public delegate void PropertyValueUIHandler (
+			ITypeDescriptorContext context,
+		        PropertyDescriptor propDesc,
+		        ArrayList valueUIItemList);
+}

+ 19 - 0
mcs/class/System.Drawing/System.Drawing.Design/PropertyValueUIItemInvokeHandler.cs

@@ -0,0 +1,19 @@
+// System.Drawing.Design.PropertyValueUIItemInvokeHandler.cs
+// 
+// Author:
+//      Alejandro Sánchez Acosta  <[email protected]>
+// 
+// (C) Alejandro Sánchez Acosta
+//  
+
+using System.Drawing;
+using System.ComponentModel;
+
+namespace System.Drawing.Design
+{
+	[Serializable]
+	public delegate void PropertyValueUIItemInvokeHandler (
+				   ITypeDescriptorContext context,
+    	                           PropertyDescriptor descriptor,
+			           PropertyValueUIItem invokedItem);
+}