* Stubed System.ComponentModel.Design
authorMartin Willemoes Hansen <mwh@mono-cvs.ximian.com>
Sat, 29 Mar 2003 13:08:10 +0000 (13:08 -0000)
committerMartin Willemoes Hansen <mwh@mono-cvs.ximian.com>
Sat, 29 Mar 2003 13:08:10 +0000 (13:08 -0000)
svn path=/trunk/mcs/; revision=12906

mcs/class/System.Design/ChangeLog
mcs/class/System.Design/System.ComponentModel.Design/ArrayEditor.cs [new file with mode: 0644]
mcs/class/System.Design/System.ComponentModel.Design/ByteViewer.cs [new file with mode: 0644]
mcs/class/System.Design/System.ComponentModel.Design/CollectionEditor.cs [new file with mode: 0644]
mcs/class/System.Design/System.ComponentModel.Design/ComponentDesigner.cs [new file with mode: 0644]
mcs/class/System.Design/System.ComponentModel.Design/DisplayMode.cs [new file with mode: 0644]
mcs/class/System.Design/System.ComponentModel.Design/InheritanceService.cs [new file with mode: 0644]
mcs/class/System.Design/System.ComponentModel.Design/LocalizationExtenderProvider.cs [new file with mode: 0644]
mcs/class/System.Design/list.unix
mcs/class/System.Design/makefile.gnu

index 8504cf23a2f0c2ace1c590fa51e4ac6f54212965..6ce8dcdd8b3c05a81f4aacaafebe3def1ae62b86 100755 (executable)
@@ -1,3 +1,7 @@
+2003-03-29  Martin Willemoes Hansen
+
+       * Stubed System.ComponentModel.Design
+
 2003-03-27  Martin Willemoes Hansen
 
        * Added unix build environment
diff --git a/mcs/class/System.Design/System.ComponentModel.Design/ArrayEditor.cs b/mcs/class/System.Design/System.ComponentModel.Design/ArrayEditor.cs
new file mode 100644 (file)
index 0000000..5cf7031
--- /dev/null
@@ -0,0 +1,43 @@
+//
+// System.ComponentModel.Design.ArrayEditor
+//
+// Authors:
+//      Martin Willemoes Hansen (mwh@sysrq.dk)
+//
+// (C) 2003 Martin Willemoes Hansen
+//
+
+namespace System.ComponentModel.Design
+{
+       public class ArrayEditor : CollectionEditor
+       {
+               [MonoTODO]
+               public ArrayEditor (Type type) : base (type)
+               {
+               }
+
+               [MonoTODO]
+               protected override Type CreateCollectionItemType()
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               protected override object[] GetItems (object editValue)
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               protected override object SetItems (object editValue, 
+                                                   object[] value)
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               ~ArrayEditor ()
+               {
+               }
+       }
+}
diff --git a/mcs/class/System.Design/System.ComponentModel.Design/ByteViewer.cs b/mcs/class/System.Design/System.ComponentModel.Design/ByteViewer.cs
new file mode 100644 (file)
index 0000000..bba418d
--- /dev/null
@@ -0,0 +1,88 @@
+//
+// System.ComponentModel.Design.ByteViewer
+//
+// Authors:
+//      Martin Willemoes Hansen (mwh@sysrq.dk)
+//
+// (C) 2003 Martin Willemoes Hansen
+//
+
+using System.Windows.Forms;
+
+namespace System.ComponentModel.Design
+{
+       public class ByteViewer : Control
+       {
+               [MonoTODO]
+               public ByteViewer()
+               {
+               }
+
+               public override ISite Site {
+                       [MonoTODO]
+                       get { throw new NotImplementedException(); } 
+                       [MonoTODO]
+                       set { throw new NotImplementedException(); }
+               }
+
+               [MonoTODO]
+               public virtual DisplayMode GetDisplayMode()
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               public virtual void SaveToFile (string path)
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               public virtual void SetBytes (byte[] bytes)
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               public virtual void SetDisplayMode (DisplayMode mode)
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               public virtual void SetFile (string path)
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               public virtual void SetStartLine (int line)
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               protected override void OnKeyDown (KeyEventArgs e)
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               protected override void OnPaint (PaintEventArgs e)
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               protected override void OnResize (EventArgs e)
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               ~ByteViewer()
+               {
+               }
+       }
+
+}
diff --git a/mcs/class/System.Design/System.ComponentModel.Design/CollectionEditor.cs b/mcs/class/System.Design/System.ComponentModel.Design/CollectionEditor.cs
new file mode 100644 (file)
index 0000000..61033a1
--- /dev/null
@@ -0,0 +1,255 @@
+//
+// System.ComponentModel.Design.CollectionEditor
+//
+// Authors:
+//      Martin Willemoes Hansen (mwh@sysrq.dk)
+//
+// (C) 2003 Martin Willemoes Hansen
+//
+
+using System.Windows.Forms;
+using System.Windows.Forms.Design;
+using System.Drawing.Design;
+
+namespace System.ComponentModel.Design
+{
+       public class CollectionEditor : UITypeEditor
+       {
+               protected abstract class CollectionForm : Form
+               {
+                       [MonoTODO]
+                       public CollectionForm (CollectionEditor editor)
+                       {
+                       }
+
+                       public object EditValue {
+                               [MonoTODO]
+                               get { throw new NotImplementedException(); } 
+
+                               [MonoTODO]
+                               set { throw new NotImplementedException(); }
+                       }
+
+                       public override ISite Site {
+                               [MonoTODO]
+                               get { throw new NotImplementedException(); } 
+
+                               [MonoTODO]
+                               set { throw new NotImplementedException(); }
+                       }
+
+                       protected Type CollectionItemType {
+                               [MonoTODO]
+                               get { throw new NotImplementedException(); }
+                       }
+                       
+                       protected Type CollectionType {
+                               [MonoTODO]
+                               get { throw new NotImplementedException(); }
+                       }
+
+                       protected ITypeDescriptorContext Context {
+                               [MonoTODO]
+                               get { throw new NotImplementedException(); }
+                       }
+
+                       protected override ImeMode DefaultImeMode {
+                               [MonoTODO]
+                               get { throw new NotImplementedException(); }
+                       }
+
+                       protected object[] Items {
+                               [MonoTODO]
+                               get { throw new NotImplementedException(); } 
+
+                               [MonoTODO]
+                               set { throw new NotImplementedException(); }
+                       }
+
+                       protected Type[] NewItemTypes {
+                               [MonoTODO]
+                               get { throw new NotImplementedException(); }
+                       }
+
+                       [MonoTODO]
+                       protected bool CanRemoveInstance (object value)
+                       {
+                               throw new NotImplementedException();
+                       }
+
+                       [MonoTODO]
+                       protected virtual bool CanSelectMultipleInstances()
+                       {
+                               throw new NotImplementedException();
+                       }
+
+                       [MonoTODO]
+                       protected object CreateInstance (Type itemType)
+                       {
+                               throw new NotImplementedException();
+                       }
+
+                       [MonoTODO]
+                       protected void DestroyInstance (object instance)
+                       {
+                               throw new NotImplementedException();
+                       }
+
+                       [MonoTODO]
+                       protected virtual void DisplayError (Exception e)
+                       {
+                               throw new NotImplementedException();
+                       }
+
+                       [MonoTODO]
+                       protected override object GetService (Type serviceType)
+                       {
+                               throw new NotImplementedException();
+                       }
+
+                       protected abstract void OnEditValueChanged();
+
+                       [MonoTODO]
+                       protected internal virtual DialogResult ShowEditorDialog (
+                                                  IWindowsFormsEditorService edSvc)
+                       {
+                               throw new NotImplementedException();
+                       }
+
+                       [MonoTODO]
+                       ~CollectionForm ()
+                       {
+                       }
+               }
+
+               [MonoTODO]
+               public CollectionEditor (Type type)
+               {
+               }
+
+               [MonoTODO]
+               public object EditValue (ITypeDescriptorContext context,
+                                                 IServiceProvider provider,
+                                                 object value)
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               public object EditValue (IServiceProvider provider,
+                                        object value)
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               public UITypeEditorEditStyle GetEditStyle (
+                                                     ITypeDescriptorContext context)
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               public UITypeEditorEditStyle GetEditStyle()
+               {
+                       throw new NotImplementedException();
+               }
+
+               protected Type CollectionItemType {
+                       [MonoTODO]
+                       get { throw new NotImplementedException(); }
+               }
+
+               protected Type CollectionType {
+                       [MonoTODO]
+                       get { throw new NotImplementedException(); }
+               }
+
+               protected ITypeDescriptorContext Context {
+                       [MonoTODO]
+                       get { throw new NotImplementedException(); }
+               }
+               
+               protected virtual string HelpTopic {
+                       [MonoTODO]
+                       get { throw new NotImplementedException(); }
+               }
+
+               protected Type[] NewItemTypes {
+                       [MonoTODO]
+                       get { throw new NotImplementedException(); }
+               }
+
+               [MonoTODO]
+               protected virtual bool CanRemoveInstance (object value)
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               protected virtual bool CanSelectMultipleInstances()
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               protected virtual CollectionForm CreateCollectionForm()
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               protected virtual Type CreateCollectionItemType()
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               protected virtual object CreateInstance (Type itemType)
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               protected virtual Type[] CreateNewItemTypes()
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               protected virtual void DestroyInstance (object instance)
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               protected virtual object[] GetItems (object editValue)
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               protected object GetService (Type serviceType)
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               protected virtual object SetItems (object editValue,
+                                                  object[] value)
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               protected virtual void ShowHelp()
+               {
+                       throw new NotImplementedException();
+               }
+               
+               [MonoTODO]
+               ~CollectionEditor()
+               {
+               }
+       }
+}
diff --git a/mcs/class/System.Design/System.ComponentModel.Design/ComponentDesigner.cs b/mcs/class/System.Design/System.ComponentModel.Design/ComponentDesigner.cs
new file mode 100644 (file)
index 0000000..ff687fd
--- /dev/null
@@ -0,0 +1,180 @@
+//
+// System.ComponentModel.Design.ComponentDesigner
+//
+// Authors:
+//      Martin Willemoes Hansen (mwh@sysrq.dk)
+//
+// (C) 2003 Martin Willemoes Hansen
+//
+
+using System.Collections;
+
+namespace System.ComponentModel.Design
+{
+       public class ComponentDesigner : IDesigner, IDisposable,
+                                        IDesignerFilter
+       {
+               protected sealed class ShadowPropertyCollection
+               {
+                       public object this [string propertyName] {
+                               [MonoTODO]
+                               get { throw new NotImplementedException(); } 
+
+                               [MonoTODO]
+                               set { throw new NotImplementedException(); }
+                       }
+
+                       [MonoTODO]
+                       public bool Contains (string propertyName)
+                       {
+                               throw new NotImplementedException();
+                       }
+
+                       [MonoTODO]
+                       ~ShadowPropertyCollection()
+                       {
+                       }
+               }
+
+               [MonoTODO]
+               public ComponentDesigner()
+               {
+               }
+
+               public virtual ICollection AssociatedComponents {
+                       [MonoTODO]
+                       get { throw new NotImplementedException(); }
+               }
+
+               public IComponent Component {
+                       [MonoTODO]
+                       get { throw new NotImplementedException(); }
+               }
+
+               public virtual DesignerVerbCollection Verbs {
+                       [MonoTODO]
+                       get { throw new NotImplementedException(); }
+               }
+
+               [MonoTODO]
+               public void Dispose()
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               protected virtual void Dispose (bool disposing)
+               {
+                       throw new NotImplementedException();
+               }
+               
+               [MonoTODO]
+               public virtual void DoDefaultAction()
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               public virtual void Initialize (IComponent component)
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               public virtual void InitializeNonDefault()
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               public virtual void OnSetComponentDefaults()
+               {
+                       throw new NotImplementedException();
+               }
+
+
+               protected InheritanceAttribute InheritanceAttribute {
+                       [MonoTODO]
+                       get { throw new NotImplementedException(); }
+               }
+
+               protected bool Inherited {
+                       [MonoTODO]
+                       get { throw new NotImplementedException(); }
+               }
+
+               protected ShadowPropertyCollection ShadowProperties {
+                       [MonoTODO]
+                       get { throw new NotImplementedException(); }
+               }
+
+               [MonoTODO]
+               protected virtual object GetService (Type serviceType)
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               protected InheritanceAttribute InvokeGetInheritanceAttribute (
+                                              ComponentDesigner toInvoke)
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               protected virtual void PostFilterAttributes (IDictionary attributes)
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               protected virtual void PostFilterEvents (IDictionary events)
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               protected virtual void PostFilterProperties (IDictionary properties)
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               protected virtual void PreFilterAttributes (IDictionary attributes)
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               protected virtual void PreFilterEvents (IDictionary events)
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               protected virtual void PreFilterProperties (IDictionary properties)
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               protected void RaiseComponentChanged (MemberDescriptor member, 
+                                                     object oldValue,
+                                                     object newValue)
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               protected void RaiseComponentChanging (MemberDescriptor member)
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               ~ComponentDesigner()
+               {
+               }
+               
+       }
+}
diff --git a/mcs/class/System.Design/System.ComponentModel.Design/DisplayMode.cs b/mcs/class/System.Design/System.ComponentModel.Design/DisplayMode.cs
new file mode 100644 (file)
index 0000000..e75ff73
--- /dev/null
@@ -0,0 +1,20 @@
+//
+// System.ComponentModel.Design.DisplayMode
+//
+// Authors:
+//      Martin Willemoes Hansen (mwh@sysrq.dk)
+//
+// (C) 2003 Martin Willemoes Hansen
+//
+
+namespace System.ComponentModel.Design
+{
+       [Serializable]
+        public enum DisplayMode
+       {
+               Ansi,
+               Auto,
+               Hexdump,
+               Unicode,
+       }
+}
diff --git a/mcs/class/System.Design/System.ComponentModel.Design/InheritanceService.cs b/mcs/class/System.Design/System.ComponentModel.Design/InheritanceService.cs
new file mode 100644 (file)
index 0000000..00083b8
--- /dev/null
@@ -0,0 +1,62 @@
+//
+// System.ComponentModel.Design.InheritanceService
+//
+// Authors:
+//      Martin Willemoes Hansen (mwh@sysrq.dk)
+//
+// (C) 2003 Martin Willemoes Hansen
+//
+
+using System.Reflection;
+
+namespace System.ComponentModel.Design
+{
+       public class InheritanceService : IInheritanceService, IDisposable
+       {
+               [MonoTODO]
+               public InheritanceService()
+               {
+               }
+
+               [MonoTODO]
+               public void AddInheritedComponents (IComponent component,
+                                                   IContainer container)
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               protected virtual void AddInheritedComponents (Type type,
+                                                              IComponent component,
+                                                              IContainer container)
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               public void Dispose()
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               public InheritanceAttribute GetInheritanceAttribute (IComponent component)
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               protected virtual bool IgnoreInheritedMember (MemberInfo member,
+                                                             IComponent component)
+               {
+                       throw new NotImplementedException();
+               }
+
+
+               [MonoTODO]
+               ~InheritanceService()
+               {
+               }
+
+       }
+}
diff --git a/mcs/class/System.Design/System.ComponentModel.Design/LocalizationExtenderProvider.cs b/mcs/class/System.Design/System.ComponentModel.Design/LocalizationExtenderProvider.cs
new file mode 100644 (file)
index 0000000..7fb64f5
--- /dev/null
@@ -0,0 +1,82 @@
+//
+// System.ComponentModel.Design.LocalizationExtenderProvider
+//
+// Authors:
+//      Martin Willemoes Hansen (mwh@sysrq.dk)
+//
+// (C) 2003 Martin Willemoes Hansen
+//
+
+using System.Globalization;
+
+namespace System.ComponentModel.Design
+{
+       public class LocalizationExtenderProvider : IExtenderProvider,
+                                                   IDisposable
+       {
+               [MonoTODO]
+               public LocalizationExtenderProvider (ISite serviceProvider,
+                                                    IComponent baseComponent)
+               {
+               }
+
+               [MonoTODO]
+               public bool CanExtend (object o)
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               public void Dispose()
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               public CultureInfo GetLanguage (object o)
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               public CultureInfo GetLoadLanguage (object o)
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               public bool GetLocalizable (object o)
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               public void ResetLanguage (object o)
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               public void SetLanguage (object o, CultureInfo language)
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               public void SetLocalizable (object o, bool localizable)
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               public bool ShouldSerializeLanguage (object o)
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               ~LocalizationExtenderProvider()
+               {
+               }
+       }
+}
index c36d38b8d51337028c62b31f6ddb4c82db3ce5ef..e1927445081ca55bafb90ddca0c5e79c2077d8d7 100755 (executable)
@@ -1,3 +1,10 @@
+System.ComponentModel.Design/ArrayEditor.cs
+System.ComponentModel.Design/CollectionEditor.cs
+System.ComponentModel.Design/DisplayMode.cs
+System.ComponentModel.Design/ByteViewer.cs
+System.ComponentModel.Design/ComponentDesigner.cs
+System.ComponentModel.Design/InheritanceService.cs
+System.ComponentModel.Design/LocalizationExtenderProvider.cs
 System.ComponentModel.Design.Serialization/CodeDomSerializer.cs
 System.ComponentModel.Design.Serialization/CodeDomSerializerException.cs
 System.ComponentModel.Design.Serialization/ICodeDomDesignerReload.cs
index f09aa0ee1704947294f6e39bab6f88c15061fe93..379ae3ece46c1ed6edaa8685e31a506cc4fea40b 100644 (file)
@@ -4,7 +4,9 @@ TEST_DIR= Test
 LIBRARY = $(topdir)/class/lib/System.Design.dll
 
 LIB_LIST = list.unix
-LIB_FLAGS = -r corlib -r System -r System.Web
+LIB_FLAGS = \
+       -r corlib -r System -r System.Web \
+       -r System.Windows.Forms -r System.Drawing
 
 SOURCES_INCLUDE=*.cs
 SOURCES_EXCLUDE=./Test*