Author: atsushi
Date: 2007-09-28 04:42:30 -0400 (Fri, 28 Sep 2007)
New Revision: 86554
Added:
trunk/mcs/class/System.Design/System.ComponentModel.Design/ComponentActionsType.cs
trunk/mcs/class/System.Design/System.ComponentModel.Design/DesignerActionListsChangedEventArgs.cs
trunk/mcs/class/System.Design/System.ComponentModel.Design/DesignerActionListsChangedEventHandler.cs
trunk/mcs/class/System.Design/System.ComponentModel.Design/DesignerActionListsChangedType.cs
trunk/mcs/class/System.Design/System.ComponentModel.Design/DesignerActionService.cs
trunk/mcs/class/System.Design/System.Design_test.dll.sources
trunk/mcs/class/System.Design/Test/
trunk/mcs/class/System.Design/Test/System.ComponentModel.Design/
trunk/mcs/class/System.Design/Test/System.ComponentModel.Design/ChangeLog
trunk/mcs/class/System.Design/Test/System.ComponentModel.Design/DesignerActionListsChangedEventArgsTest.cs
trunk/mcs/class/System.Design/Test/System.ComponentModel.Design/DesignerActionMethodItemTest.cs
trunk/mcs/class/System.Design/Test/System.ComponentModel.Design/DesignerActionPropertyItemTest.cs
Modified:
trunk/mcs/class/System.Design/
trunk/mcs/class/System.Design/ChangeLog
trunk/mcs/class/System.Design/Makefile
trunk/mcs/class/System.Design/System.ComponentModel.Design/ChangeLog
trunk/mcs/class/System.Design/System.ComponentModel.Design/DesignerActionItem.cs
trunk/mcs/class/System.Design/System.ComponentModel.Design/DesignerActionListCollection.cs
trunk/mcs/class/System.Design/System.ComponentModel.Design/DesignerActionMethodItem.cs
trunk/mcs/class/System.Design/System.ComponentModel.Design/DesignerActionPropertyItem.cs
trunk/mcs/class/System.Design/System.ComponentModel.Design/DesignerActionTextItem.cs
trunk/mcs/class/System.Design/System.Design.dll.sources
Log:
2007-09-28 Atsushi Enomoto <[EMAIL PROTECTED]>
* Makefile : removed NO_TEST.
* System.Design.dll.sources : added DesignerActionService.cs,
ComponentActionsType.cs, DesignerActionListsChangedType.cs,
DesignerActionListsChangedEventArgs.cs and
DesignerActionListsChangedEventHandler.cs.
* System.Design_test.dll.sources : new.
* DesignerActionService.cs : new stub.
* ComponentActionsType.cs,
DesignerActionListsChangedType.cs,
DesignerActionListsChangedEventArgs.cs,
DesignerActionListsChangedEventHandler.cs : new implementations.
* DesignerActionListCollection.cs : [ComVisible].
* DesignerActionItem.cs,
DesignerActionMethodItem.cs,
DesignerActionPropertyItem.cs,
DesignerActionTextItem.cs : fixed protected .ctor() and made
base fields private. Properties is implemented.
* DesignerActionListsChangedEventArgsTest.cs,
DesignerActionMethodItemTest.cs,
DesignerActionPropertyItemTest.cs : new tests.
Property changes on: trunk/mcs/class/System.Design
___________________________________________________________________
Name: svn:ignore
- .makefrag
.response
library-deps.stamp
+ .makefrag
.response
library-deps.stamp
TestResult-default.log
TestResult-default.xml
TestResult-net_2_0.log
TestResult-net_2_0.xml
TestResult-ondotnet-default.log
TestResult-ondotnet-default.xml
TestResult-ondotnet-net_2_0.log
TestResult-ondotnet-net_2_0.xml
System.Design_test_default.dll
System.Design_test_default.dll.mdb
System.Design_test_net_2_0.dll
System.Design_test_net_2_0.dll.mdb
Modified: trunk/mcs/class/System.Design/ChangeLog
===================================================================
--- trunk/mcs/class/System.Design/ChangeLog 2007-09-28 08:34:07 UTC (rev
86553)
+++ trunk/mcs/class/System.Design/ChangeLog 2007-09-28 08:42:30 UTC (rev
86554)
@@ -1,3 +1,12 @@
+2007-09-28 Atsushi Enomoto <[EMAIL PROTECTED]>
+
+ * Makefile : removed NO_TEST.
+ * System.Design.dll.sources : added DesignerActionService.cs,
+ ComponentActionsType.cs, DesignerActionListsChangedType.cs,
+ DesignerActionListsChangedEventArgs.cs and
+ DesignerActionListsChangedEventHandler.cs.
+ * System.Design_test.dll.sources : new.
+
2007-09-27 Marek Habersack <[EMAIL PROTECTED]>
* System.Design.dll.sources: added
Modified: trunk/mcs/class/System.Design/Makefile
===================================================================
--- trunk/mcs/class/System.Design/Makefile 2007-09-28 08:34:07 UTC (rev
86553)
+++ trunk/mcs/class/System.Design/Makefile 2007-09-28 08:42:30 UTC (rev
86554)
@@ -11,6 +11,4 @@
LIB_MCS_FLAGS += -r:System.Configuration.dll
endif
-NO_TEST = yes
-
include ../../build/library.make
Modified: trunk/mcs/class/System.Design/System.ComponentModel.Design/ChangeLog
===================================================================
--- trunk/mcs/class/System.Design/System.ComponentModel.Design/ChangeLog
2007-09-28 08:34:07 UTC (rev 86553)
+++ trunk/mcs/class/System.Design/System.ComponentModel.Design/ChangeLog
2007-09-28 08:42:30 UTC (rev 86554)
@@ -1,3 +1,17 @@
+2007-09-28 Atsushi Enomoto <[EMAIL PROTECTED]>
+
+ * DesignerActionService.cs : new stub.
+ * ComponentActionsType.cs,
+ DesignerActionListsChangedType.cs,
+ DesignerActionListsChangedEventArgs.cs,
+ DesignerActionListsChangedEventHandler.cs : new implementations.
+ * DesignerActionListCollection.cs : [ComVisible].
+ * DesignerActionItem.cs,
+ DesignerActionMethodItem.cs,
+ DesignerActionPropertyItem.cs,
+ DesignerActionTextItem.cs : fixed protected .ctor() and made
+ base fields private. Properties is implemented.
+
2007-09-15 Ivan N. Zlatev <[EMAIL PROTECTED]>
* DesignSurface.cs: Binary compatibility fixes.
Added:
trunk/mcs/class/System.Design/System.ComponentModel.Design/ComponentActionsType.cs
===================================================================
---
trunk/mcs/class/System.Design/System.ComponentModel.Design/ComponentActionsType.cs
2007-09-28 08:34:07 UTC (rev 86553)
+++
trunk/mcs/class/System.Design/System.ComponentModel.Design/ComponentActionsType.cs
2007-09-28 08:42:30 UTC (rev 86554)
@@ -0,0 +1,41 @@
+//
+// System.ComponentModel.Design.ComponentActionsType.cs
+//
+// Author:
+// Atsushi Enomoto <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2007 Novell, Inc
+//
+
+//
+// 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.
+//
+#if NET_2_0
+
+namespace System.ComponentModel.Design
+{
+ public enum ComponentActionsType
+ {
+ Component,
+ Service,
+ All
+ }
+}
+#endif
Property changes on:
trunk/mcs/class/System.Design/System.ComponentModel.Design/ComponentActionsType.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Modified:
trunk/mcs/class/System.Design/System.ComponentModel.Design/DesignerActionItem.cs
===================================================================
---
trunk/mcs/class/System.Design/System.ComponentModel.Design/DesignerActionItem.cs
2007-09-28 08:34:07 UTC (rev 86553)
+++
trunk/mcs/class/System.Design/System.ComponentModel.Design/DesignerActionItem.cs
2007-09-28 08:42:30 UTC (rev 86554)
@@ -3,8 +3,9 @@
//
// Authors:
// Miguel de Icaza ([EMAIL PROTECTED])
+// Atsushi Enomoto ([EMAIL PROTECTED])
//
-// Copyright 2006 Novell, Inc
+// Copyright 2006-2007 Novell, Inc
//
//
@@ -35,10 +36,18 @@
{
public abstract class DesignerActionItem {
bool allow_associate;
- internal string category;
- internal string description;
- internal string display_name;
+ string category;
+ string description;
+ string display_name;
+ IDictionary properties;
+ public DesignerActionItem (string displayName, string category,
string description)
+ {
+ this.display_name = displayName;
+ this.description = description;
+ this.category = category;
+ }
+
public bool AllowAssociate {
get {
return allow_associate;
@@ -69,7 +78,9 @@
public IDictionary Properties {
get {
- throw new NotImplementedException ();
+ if (properties == null)
+ properties = new Hashtable ();
+ return properties;
}
}
Modified:
trunk/mcs/class/System.Design/System.ComponentModel.Design/DesignerActionListCollection.cs
===================================================================
---
trunk/mcs/class/System.Design/System.ComponentModel.Design/DesignerActionListCollection.cs
2007-09-28 08:34:07 UTC (rev 86553)
+++
trunk/mcs/class/System.Design/System.ComponentModel.Design/DesignerActionListCollection.cs
2007-09-28 08:42:30 UTC (rev 86554)
@@ -35,7 +35,7 @@
namespace System.ComponentModel.Design
{
-
+ [System.Runtime.InteropServices.ComVisible (true)]
public class DesignerActionListCollection : CollectionBase
{
Added:
trunk/mcs/class/System.Design/System.ComponentModel.Design/DesignerActionListsChangedEventArgs.cs
===================================================================
---
trunk/mcs/class/System.Design/System.ComponentModel.Design/DesignerActionListsChangedEventArgs.cs
2007-09-28 08:34:07 UTC (rev 86553)
+++
trunk/mcs/class/System.Design/System.ComponentModel.Design/DesignerActionListsChangedEventArgs.cs
2007-09-28 08:42:30 UTC (rev 86554)
@@ -0,0 +1,65 @@
+//
+// System.ComponentModel.Design.DesignerActionListsChangedEventArgs.cs
+//
+// Author:
+// Atsushi Enomoto ([EMAIL PROTECTED])
+//
+// Copyright (C) 2007 Novell, Inc.
+
+//
+// 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.
+//
+
+#if NET_2_0
+
+using System;
+using System.Collections;
+using System.ComponentModel;
+
+namespace System.ComponentModel.Design
+{
+ public class DesignerActionListsChangedEventArgs : EventArgs
+ {
+ object related_object;
+ DesignerActionListsChangedType change_type;
+ DesignerActionListCollection action_lists;
+
+ public DesignerActionListsChangedEventArgs (object
relatedObject, DesignerActionListsChangedType changeType,
+
DesignerActionListCollection actionLists)
+ {
+ this.related_object = relatedObject;
+ this.change_type = changeType;
+ this.action_lists = actionLists;
+ }
+
+ public DesignerActionListCollection ActionLists {
+ get { return action_lists; }
+ }
+
+ public DesignerActionListsChangedType ChangeType {
+ get { return change_type; }
+ }
+
+ public object RelatedObject {
+ get { return related_object; }
+ }
+ }
+}
+#endif
Property changes on:
trunk/mcs/class/System.Design/System.ComponentModel.Design/DesignerActionListsChangedEventArgs.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Added:
trunk/mcs/class/System.Design/System.ComponentModel.Design/DesignerActionListsChangedEventHandler.cs
===================================================================
---
trunk/mcs/class/System.Design/System.ComponentModel.Design/DesignerActionListsChangedEventHandler.cs
2007-09-28 08:34:07 UTC (rev 86553)
+++
trunk/mcs/class/System.Design/System.ComponentModel.Design/DesignerActionListsChangedEventHandler.cs
2007-09-28 08:42:30 UTC (rev 86554)
@@ -0,0 +1,41 @@
+//
+// System.ComponentModel.Design.DesignerActionListsChangedEventHandler.cs
+//
+// Author:
+// Atsushi Enomoto ([EMAIL PROTECTED])
+//
+// Copyright (C) 2007 Novell, Inc.
+
+//
+// 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.
+//
+
+#if NET_2_0
+
+using System;
+using System.Collections;
+using System.ComponentModel;
+
+namespace System.ComponentModel.Design
+{
+ [System.Runtime.InteropServices.ComVisible (true)]
+ public delegate void DesignerActionListsChangedEventHandler (object
sender, DesignerActionListsChangedEventArgs e);
+}
+#endif
Property changes on:
trunk/mcs/class/System.Design/System.ComponentModel.Design/DesignerActionListsChangedEventHandler.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Added:
trunk/mcs/class/System.Design/System.ComponentModel.Design/DesignerActionListsChangedType.cs
===================================================================
---
trunk/mcs/class/System.Design/System.ComponentModel.Design/DesignerActionListsChangedType.cs
2007-09-28 08:34:07 UTC (rev 86553)
+++
trunk/mcs/class/System.Design/System.ComponentModel.Design/DesignerActionListsChangedType.cs
2007-09-28 08:42:30 UTC (rev 86554)
@@ -0,0 +1,41 @@
+//
+// System.ComponentModel.Design.DesignerActionListsChangedType.cs
+//
+// Author:
+// Atsushi Enomoto <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2007 Novell, Inc
+//
+
+//
+// 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.
+//
+#if NET_2_0
+
+namespace System.ComponentModel.Design
+{
+ [System.Runtime.InteropServices.ComVisible (true)]
+ public enum DesignerActionListsChangedType
+ {
+ ActionListsAdded,
+ ActionListsRemoved
+ }
+}
+#endif
Property changes on:
trunk/mcs/class/System.Design/System.ComponentModel.Design/DesignerActionListsChangedType.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Modified:
trunk/mcs/class/System.Design/System.ComponentModel.Design/DesignerActionMethodItem.cs
===================================================================
---
trunk/mcs/class/System.Design/System.ComponentModel.Design/DesignerActionMethodItem.cs
2007-09-28 08:34:07 UTC (rev 86553)
+++
trunk/mcs/class/System.Design/System.ComponentModel.Design/DesignerActionMethodItem.cs
2007-09-28 08:42:30 UTC (rev 86554)
@@ -41,59 +41,41 @@
DesignerActionList action_list;
public DesignerActionMethodItem (DesignerActionList actionList,
string memberName, string displayName)
+ : this (actionList, memberName, displayName, null,
false)
{
- this.action_list = action_list;
- this.member_name = memberName;
- this.display_name = displayName;
}
public DesignerActionMethodItem (DesignerActionList actionList,
string memberName,
string displayName, bool
includeAsDesignerVerb)
+ : this (actionList, memberName, displayName, null,
includeAsDesignerVerb)
{
- this.action_list = action_list;
- this.member_name = memberName;
- this.display_name = displayName;
- this.designer_verb = includeAsDesignerVerb;
}
public DesignerActionMethodItem (DesignerActionList actionList,
string memberName,
string displayName, string
category)
+ : this (actionList, memberName, displayName, category,
false)
{
- this.action_list = action_list;
- this.member_name = memberName;
- this.display_name = displayName;
- this.category = category;
}
public DesignerActionMethodItem (DesignerActionList actionList,
string memberName,
string displayName, string
category, bool includeAsDesignerVerb)
+ : this (actionList, memberName, displayName, category,
null, includeAsDesignerVerb)
{
- this.action_list = action_list;
- this.member_name = memberName;
- this.display_name = displayName;
- this.category = category;
- this.designer_verb = includeAsDesignerVerb;
}
public DesignerActionMethodItem (DesignerActionList actionList,
string memberName,
string displayName, string
category, string description)
+ : this (actionList, memberName, displayName, category,
description, false)
{
- this.action_list = action_list;
- this.member_name = memberName;
- this.display_name = displayName;
- this.category = category;
- this.description = description;
}
public DesignerActionMethodItem (DesignerActionList actionList,
string memberName,
string displayName, string
category, string description,
bool includeAsDesignerVerb)
+ : base (displayName, category, description)
{
this.action_list = action_list;
this.member_name = memberName;
- this.display_name = displayName;
- this.category = category;
- this.description = description;
this.designer_verb = includeAsDesignerVerb;
}
Modified:
trunk/mcs/class/System.Design/System.ComponentModel.Design/DesignerActionPropertyItem.cs
===================================================================
---
trunk/mcs/class/System.Design/System.ComponentModel.Design/DesignerActionPropertyItem.cs
2007-09-28 08:34:07 UTC (rev 86553)
+++
trunk/mcs/class/System.Design/System.ComponentModel.Design/DesignerActionPropertyItem.cs
2007-09-28 08:42:30 UTC (rev 86554)
@@ -39,24 +39,19 @@
IComponent related_component;
public DesignerActionPropertyItem (string memberName, string
displayName)
+ : this (memberName, displayName, null)
{
- this.member_name = memberName;
- this.display_name = displayName;
}
public DesignerActionPropertyItem (string memberName, string
displayName, string category)
+ : this (memberName, displayName, category, null)
{
- this.member_name = memberName;
- this.display_name = displayName;
- this.category = category;
}
public DesignerActionPropertyItem (string memberName, string
displayName, string category, string description)
+ : base (displayName, category, description)
{
this.member_name = memberName;
- this.display_name = displayName;
- this.category = category;
- this.description = description;
}
public string MemberName {
Added:
trunk/mcs/class/System.Design/System.ComponentModel.Design/DesignerActionService.cs
===================================================================
---
trunk/mcs/class/System.Design/System.ComponentModel.Design/DesignerActionService.cs
2007-09-28 08:34:07 UTC (rev 86553)
+++
trunk/mcs/class/System.Design/System.ComponentModel.Design/DesignerActionService.cs
2007-09-28 08:42:30 UTC (rev 86554)
@@ -0,0 +1,124 @@
+//
+// System.ComponentModel.Design.DesignerActionService.cs
+//
+// Author:
+// Atsushi Enomoto <[EMAIL PROTECTED]>
+//
+// Copyright (C) 2007 Novell, Inc
+//
+
+//
+// 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.
+//
+#if NET_2_0
+
+using System;
+using System.ComponentModel;
+
+namespace System.ComponentModel.Design
+{
+ public class DesignerActionService : IDisposable
+ {
+ [MonoTODO]
+ public DesignerActionService (IServiceProvider serviceProvider)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public event DesignerActionListsChangedEventHandler
DesignerActionListsChanged;
+
+ [MonoTODO]
+ public void Add (IComponent comp, DesignerActionList actionList)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public void Add (IComponent comp, DesignerActionListCollection
designerActionListCollection)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public void Clear ()
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public bool Contains (IComponent comp)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public void Dispose ()
+ {
+ Dispose (true);
+ }
+
+ [MonoTODO]
+ protected virtual void Dispose (bool disposing)
+ {
+ }
+
+ [MonoTODO]
+ public DesignerActionListCollection GetComponentActions
(IComponent component)
+ {
+ return GetComponentActions (component,
ComponentActionsType.All); // not verified
+ }
+
+ [MonoTODO]
+ public virtual DesignerActionListCollection GetComponentActions
(IComponent component, ComponentActionsType type)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ protected virtual void GetComponentDesignerActions (IComponent
component, DesignerActionListCollection actionLists)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ protected virtual void GetComponentServiceActions (IComponent
component, DesignerActionListCollection actionLists)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public void Remove (DesignerActionList actionList)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public void Remove (IComponent comp)
+ {
+ throw new NotImplementedException ();
+ }
+
+ [MonoTODO]
+ public void Remove (IComponent comp, DesignerActionList
actionList)
+ {
+ throw new NotImplementedException ();
+ }
+ }
+}
+#endif
Property changes on:
trunk/mcs/class/System.Design/System.ComponentModel.Design/DesignerActionService.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Modified:
trunk/mcs/class/System.Design/System.ComponentModel.Design/DesignerActionTextItem.cs
===================================================================
---
trunk/mcs/class/System.Design/System.ComponentModel.Design/DesignerActionTextItem.cs
2007-09-28 08:34:07 UTC (rev 86553)
+++
trunk/mcs/class/System.Design/System.ComponentModel.Design/DesignerActionTextItem.cs
2007-09-28 08:42:30 UTC (rev 86554)
@@ -36,9 +36,8 @@
public class DesignerActionTextItem : DesignerActionItem
{
public DesignerActionTextItem (string displayName, string
category)
+ : base (displayName, category, String.Empty)
{
- this.display_name = displayName;
- this.category = category;
}
}
}
Modified: trunk/mcs/class/System.Design/System.Design.dll.sources
===================================================================
--- trunk/mcs/class/System.Design/System.Design.dll.sources 2007-09-28
08:34:07 UTC (rev 86553)
+++ trunk/mcs/class/System.Design/System.Design.dll.sources 2007-09-28
08:42:30 UTC (rev 86554)
@@ -8,6 +8,7 @@
System.ComponentModel.Design/BinaryEditor.cs
System.ComponentModel.Design/ByteViewer.cs
System.ComponentModel.Design/CollectionEditor.cs
+System.ComponentModel.Design/ComponentActionsType.cs
System.ComponentModel.Design/ComponentDesigner.cs
System.ComponentModel.Design/DateTimeEditor.cs
System.ComponentModel.Design/DesignerActionHeaderItem.cs
@@ -15,8 +16,12 @@
System.ComponentModel.Design/DesignerActionItemCollection.cs
System.ComponentModel.Design/DesignerActionList.cs
System.ComponentModel.Design/DesignerActionListCollection.cs
+System.ComponentModel.Design/DesignerActionListsChangedEventArgs.cs
+System.ComponentModel.Design/DesignerActionListsChangedEventHandler.cs
+System.ComponentModel.Design/DesignerActionListsChangedType.cs
System.ComponentModel.Design/DesignerActionMethodItem.cs
System.ComponentModel.Design/DesignerActionPropertyItem.cs
+System.ComponentModel.Design/DesignerActionService.cs
System.ComponentModel.Design/DesignerActionTextItem.cs
System.ComponentModel.Design/DesignerEventService.cs
System.ComponentModel.Design/DesignerHost.cs
Added: trunk/mcs/class/System.Design/System.Design_test.dll.sources
===================================================================
--- trunk/mcs/class/System.Design/System.Design_test.dll.sources
2007-09-28 08:34:07 UTC (rev 86553)
+++ trunk/mcs/class/System.Design/System.Design_test.dll.sources
2007-09-28 08:42:30 UTC (rev 86554)
@@ -0,0 +1,3 @@
+System.ComponentModel.Design/DesignerActionListsChangedEventArgsTest.cs
+System.ComponentModel.Design/DesignerActionMethodItemTest.cs
+System.ComponentModel.Design/DesignerActionPropertyItemTest.cs
Added: trunk/mcs/class/System.Design/Test/System.ComponentModel.Design/ChangeLog
===================================================================
--- trunk/mcs/class/System.Design/Test/System.ComponentModel.Design/ChangeLog
2007-09-28 08:34:07 UTC (rev 86553)
+++ trunk/mcs/class/System.Design/Test/System.ComponentModel.Design/ChangeLog
2007-09-28 08:42:30 UTC (rev 86554)
@@ -0,0 +1,5 @@
+2007-09-28 Atsushi Enomoto <[EMAIL PROTECTED]>
+
+ * DesignerActionListsChangedEventArgsTest.cs,
+ DesignerActionMethodItemTest.cs,
+ DesignerActionPropertyItemTest.cs : new tests.
Property changes on:
trunk/mcs/class/System.Design/Test/System.ComponentModel.Design/ChangeLog
___________________________________________________________________
Name: svn:executable
+ *
Added:
trunk/mcs/class/System.Design/Test/System.ComponentModel.Design/DesignerActionListsChangedEventArgsTest.cs
===================================================================
---
trunk/mcs/class/System.Design/Test/System.ComponentModel.Design/DesignerActionListsChangedEventArgsTest.cs
2007-09-28 08:34:07 UTC (rev 86553)
+++
trunk/mcs/class/System.Design/Test/System.ComponentModel.Design/DesignerActionListsChangedEventArgsTest.cs
2007-09-28 08:42:30 UTC (rev 86554)
@@ -0,0 +1,52 @@
+//
+// DesignerActionListsChangedEventArgsTest.cs
+//
+// Author:
+// Atsushi Enomoto ([EMAIL PROTECTED])
+//
+// Copyright (C) 2007 Novell, Inc.
+
+//
+// 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.
+//
+
+#if NET_2_0
+
+using System;
+using System.Collections;
+using System.ComponentModel;
+using System.ComponentModel.Design;
+using NUnit.Framework;
+
+namespace MonoTests.System.ComponentModel.Design
+{
+ [TestFixture]
+ public class DesignerActionListsChangedEventArgsTest
+ {
+ [Test]
+ public void ConstructorNullRelatedObject ()
+ {
+ new DesignerActionListsChangedEventArgs (null,
+ DesignerActionListsChangedType.ActionListsAdded,
+ new DesignerActionListCollection ());
+ }
+ }
+}
+#endif
Property changes on:
trunk/mcs/class/System.Design/Test/System.ComponentModel.Design/DesignerActionListsChangedEventArgsTest.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Added:
trunk/mcs/class/System.Design/Test/System.ComponentModel.Design/DesignerActionMethodItemTest.cs
===================================================================
---
trunk/mcs/class/System.Design/Test/System.ComponentModel.Design/DesignerActionMethodItemTest.cs
2007-09-28 08:34:07 UTC (rev 86553)
+++
trunk/mcs/class/System.Design/Test/System.ComponentModel.Design/DesignerActionMethodItemTest.cs
2007-09-28 08:42:30 UTC (rev 86554)
@@ -0,0 +1,56 @@
+//
+// DesignerActionMethodItemTest.cs
+//
+// Author:
+// Atsushi Enomoto ([EMAIL PROTECTED])
+//
+// Copyright (C) 2007 Novell, Inc.
+
+//
+// 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.
+//
+
+#if NET_2_0
+
+using System;
+using System.Collections;
+using System.ComponentModel;
+using System.ComponentModel.Design;
+using NUnit.Framework;
+
+namespace MonoTests.System.ComponentModel.Design
+{
+ [TestFixture]
+ public class DesignerActionMethodItemTest
+ {
+ [Test]
+ public void Constructor ()
+ {
+ DesignerActionMethodItem item = new
DesignerActionMethodItem (new DesignerActionList (new Component ()),
+ "myMember", "myDisplay");
+ Assert.AreEqual ("myMember", item.MemberName, "#1");
+ Assert.AreEqual ("myDisplay", item.DisplayName, "#2");
+ Assert.IsNull (item.Category, "#3");
+ Assert.IsNull (item.Description, "#4");
+ Assert.IsFalse (item.IncludeAsDesignerVerb, "#5");
+ }
+ }
+}
+#endif
Property changes on:
trunk/mcs/class/System.Design/Test/System.ComponentModel.Design/DesignerActionMethodItemTest.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Added:
trunk/mcs/class/System.Design/Test/System.ComponentModel.Design/DesignerActionPropertyItemTest.cs
===================================================================
---
trunk/mcs/class/System.Design/Test/System.ComponentModel.Design/DesignerActionPropertyItemTest.cs
2007-09-28 08:34:07 UTC (rev 86553)
+++
trunk/mcs/class/System.Design/Test/System.ComponentModel.Design/DesignerActionPropertyItemTest.cs
2007-09-28 08:42:30 UTC (rev 86554)
@@ -0,0 +1,55 @@
+//
+// DesignerActionPropertyItemTest.cs
+//
+// Author:
+// Atsushi Enomoto ([EMAIL PROTECTED])
+//
+// Copyright (C) 2007 Novell, Inc.
+
+//
+// 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.
+//
+
+#if NET_2_0
+
+using System;
+using System.Collections;
+using System.ComponentModel;
+using System.ComponentModel.Design;
+using NUnit.Framework;
+
+namespace MonoTests.System.ComponentModel.Design
+{
+ [TestFixture]
+ public class DesignerActionPropertyItemTest
+ {
+ [Test]
+ public void Constructor ()
+ {
+ DesignerActionPropertyItem item =
+ new DesignerActionPropertyItem ("myMember",
"myDisplayName");
+ Assert.AreEqual ("myMember", item.MemberName, "#1");
+ Assert.AreEqual ("myDisplayName", item.DisplayName,
"#2");
+ Assert.IsNull (item.Category, "#3");
+ Assert.IsNull (item.Description, "#4");
+ }
+ }
+}
+#endif
Property changes on:
trunk/mcs/class/System.Design/Test/System.ComponentModel.Design/DesignerActionPropertyItemTest.cs
___________________________________________________________________
Name: svn:eol-style
+ native
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches