2006-11-08 Jonathan Pobst <monkey@jpobst.com>
authorJonathan Pobst <monkey@jpobst.com>
Wed, 8 Nov 2006 22:59:41 +0000 (22:59 -0000)
committerJonathan Pobst <monkey@jpobst.com>
Wed, 8 Nov 2006 22:59:41 +0000 (22:59 -0000)
* ToolStripItemDesignerAvailability.cs: Added.
* ToolStripItemDesignerAvailabilityAttribute.cs: Added.

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

mcs/class/Managed.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms.Design/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms.Design/ToolStripItemDesignerAvailability.cs [new file with mode: 0644]
mcs/class/Managed.Windows.Forms/System.Windows.Forms.Design/ToolStripItemDesignerAvailabilityAttribute.cs [new file with mode: 0644]
mcs/class/Managed.Windows.Forms/System.Windows.Forms.dll.sources

index 59293d440cc3697b2f295365838ecf69d91223d8..233125ca4bb0537d4c253b12901fa001ca123be0 100644 (file)
@@ -1,3 +1,9 @@
+2006-11-09  Jonathan Pobst  <monkey@jpobst.com>
+       
+       * System.Windows.Forms.dll.sources: 
+       Add ToolStripItemDesignerAvailability.cs and
+       ToolStripItemDesignerAvailabilityAttribute.cs.
+
 2006-11-07  Jonathan Pobst  <monkey@jpobst.com>
        
        * System.Windows.Forms.dll.sources: Add StatusStrip.cs,
index d836057885ac7e2fa4aa41325d86f9c0dd5bb3a8..45421ec69f472c32df1ae10ad31f9c276ef8bd18 100644 (file)
@@ -1,81 +1,86 @@
-2005-12-01  Peter Dennis Bartok  <pbartok@novell.com>
-
-       * ComponentEditorForm.cs: Added missing attribute
-
-2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>
-
-       * EventsTab.cs: Made .ctor() private to fix signature
-
-2005-05-14  Rafael Teixeira <rafaelteixeirabr@hotmail.com>
-       * EventsTab.cs: Implementation start with many gaping holes
-
-2005-05-09  Marek Safar  <marek.safar@seznam.cz>
-
-       * PropertyTab.cs: Implemented.
-
-2005-02-14  Peter Bartok  <pbartok@novell.com>
-
-       * PropertyTab.cs: Made class abstract
-
-2004-04-14  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
-
-       * AssemblyInfo.cs: Removed
-       * TODOAttribute.cs: Removed (duplicate)
-
-       * System.Windows.Forms.Design.csproj.user
-       * System.Windows.Forms.Design.csproj: Removed (outdated)
-
-       * WindowsFormsComponentEditor.cs
-       * ComponentEditorPage.cs: Added, mostly implemented
-
-       * ComponentEditor.cs: Removed (does not belong here)
-
-2004-02-24  Andreas Nahr <ClassDevelopment@A-SoftTech.com>
-
-       * IWindowsFormsEditorService.cs: Corrected casing,
-         it is not yet corrected in the filename, implemented
-
-2003-08-30  Alexandre Pigolkine <pigolkine@gmx.de>
-
-       * ComponentEditor.cs
-       * IUIService.cs: stubs added 
-
-2003-03-31  Alan Tam <Tam@SiuLung.com>
-
-       * UITypeEditor.cs: Removed because it shan't be here
-
-2002-08-04  DennisHayes <dennish@raytek.com>
-
-       * Started cheanglog
-
-2002-08-04  DennisHayes <dennish@raytek.com>
-
-       * AnchorEditor.cs
-       * AxImporter.cs
-       * ComponentDocumentDesigner.cs
-       * ComponentEditorForm.cs: Stubbed out
-       
-       * ComponentTray.cs
-       * ControlDesigner.cs
-       * ComponentEditor.cs
-       * DocumentDesigner.cs
-       * EventsTab.cs
-       * FileNameEditor.cs
-       * IMenuEditorService.cs
-       * IUIService.cs
-       * IWindowsformsEditorService.cs
-       * MenusCommands.cs
-       * ParentControlDesigner.cs
-       * PropertyTab.cs
-       * ScrollableControlDesigner.cs
-       * SelectionRules.cs
-       * UITypeEditor.cs: Class body defined only. No stubbs done.
-       
-       * TODOAttribute.cs:
-         Used to mark unimplemented functions.
-       
-       * System.Windows.Forms.Design.csproj
-       * System.Windows.Forms.Design.csproj.user
-       * AssemblyInfo.cs:
-         Needed for Visual Studio compile.
-
+2006-11-08  Jonathan Pobst  <monkey@jpobst.com>\r
+\r
+       * ToolStripItemDesignerAvailability.cs: Added.\r
+       * ToolStripItemDesignerAvailabilityAttribute.cs: Added.\r
+\r
+2005-12-01  Peter Dennis Bartok  <pbartok@novell.com>\r
+\r
+       * ComponentEditorForm.cs: Added missing attribute\r
+\r
+2005-10-13  Peter Dennis Bartok  <pbartok@novell.com>\r
+\r
+       * EventsTab.cs: Made .ctor() private to fix signature\r
+\r
+2005-05-14  Rafael Teixeira <rafaelteixeirabr@hotmail.com>\r
+       * EventsTab.cs: Implementation start with many gaping holes\r
+\r
+2005-05-09  Marek Safar  <marek.safar@seznam.cz>\r
+\r
+       * PropertyTab.cs: Implemented.\r
+\r
+2005-02-14  Peter Bartok  <pbartok@novell.com>\r
+\r
+       * PropertyTab.cs: Made class abstract\r
+\r
+2004-04-14  Andreas Nahr <ClassDevelopment@A-SoftTech.com>\r
+\r
+       * AssemblyInfo.cs: Removed\r
+       * TODOAttribute.cs: Removed (duplicate)\r
+\r
+       * System.Windows.Forms.Design.csproj.user\r
+       * System.Windows.Forms.Design.csproj: Removed (outdated)\r
+\r
+       * WindowsFormsComponentEditor.cs\r
+       * ComponentEditorPage.cs: Added, mostly implemented\r
+\r
+       * ComponentEditor.cs: Removed (does not belong here)\r
+\r
+2004-02-24  Andreas Nahr <ClassDevelopment@A-SoftTech.com>\r
+\r
+       * IWindowsFormsEditorService.cs: Corrected casing,\r
+         it is not yet corrected in the filename, implemented\r
+\r
+2003-08-30  Alexandre Pigolkine <pigolkine@gmx.de>\r
+\r
+       * ComponentEditor.cs\r
+       * IUIService.cs: stubs added \r
+\r
+2003-03-31  Alan Tam <Tam@SiuLung.com>\r
+\r
+       * UITypeEditor.cs: Removed because it shan't be here\r
+\r
+2002-08-04  DennisHayes <dennish@raytek.com>\r
+\r
+       * Started cheanglog\r
+\r
+2002-08-04  DennisHayes <dennish@raytek.com>\r
+\r
+       * AnchorEditor.cs\r
+       * AxImporter.cs\r
+       * ComponentDocumentDesigner.cs\r
+       * ComponentEditorForm.cs: Stubbed out\r
+       \r
+       * ComponentTray.cs\r
+       * ControlDesigner.cs\r
+       * ComponentEditor.cs\r
+       * DocumentDesigner.cs\r
+       * EventsTab.cs\r
+       * FileNameEditor.cs\r
+       * IMenuEditorService.cs\r
+       * IUIService.cs\r
+       * IWindowsformsEditorService.cs\r
+       * MenusCommands.cs\r
+       * ParentControlDesigner.cs\r
+       * PropertyTab.cs\r
+       * ScrollableControlDesigner.cs\r
+       * SelectionRules.cs\r
+       * UITypeEditor.cs: Class body defined only. No stubbs done.\r
+       \r
+       * TODOAttribute.cs:\r
+         Used to mark unimplemented functions.\r
+       \r
+       * System.Windows.Forms.Design.csproj\r
+       * System.Windows.Forms.Design.csproj.user\r
+       * AssemblyInfo.cs:\r
+         Needed for Visual Studio compile.\r
+\r
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms.Design/ToolStripItemDesignerAvailability.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms.Design/ToolStripItemDesignerAvailability.cs
new file mode 100644 (file)
index 0000000..8cabf9f
--- /dev/null
@@ -0,0 +1,45 @@
+//\r
+// ToolStripItemDesignerAvailability.cs\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+//\r
+// Copyright (c) Jonathan Pobst\r
+//\r
+// Authors:\r
+//     Jonathan Pobst (monkey@jpobst.com)\r
+//\r
+#if NET_2_0\r
+\r
+using System;\r
+\r
+namespace System.Windows.Forms.Design\r
+{\r
+       [Flags]\r
+       public enum ToolStripItemDesignerAvailability\r
+       {\r
+               None = 0,\r
+               ToolStrip = 1,\r
+               MenuStrip = 2,\r
+               ContextMenuStrip = 4,\r
+               StatusStrip = 8,\r
+               All = 15\r
+       }\r
+}\r
+#endif
\ No newline at end of file
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms.Design/ToolStripItemDesignerAvailabilityAttribute.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms.Design/ToolStripItemDesignerAvailabilityAttribute.cs
new file mode 100644 (file)
index 0000000..c477129
--- /dev/null
@@ -0,0 +1,83 @@
+//\r
+// ToolStripItemDesignerAvailabilityAttribute.cs\r
+//\r
+// Permission is hereby granted, free of charge, to any person obtaining\r
+// a copy of this software and associated documentation files (the\r
+// "Software"), to deal in the Software without restriction, including\r
+// without limitation the rights to use, copy, modify, merge, publish,\r
+// distribute, sublicense, and/or sell copies of the Software, and to\r
+// permit persons to whom the Software is furnished to do so, subject to\r
+// the following conditions:\r
+// \r
+// The above copyright notice and this permission notice shall be\r
+// included in all copies or substantial portions of the Software.\r
+// \r
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,\r
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\r
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\r
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\r
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\r
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\r
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
+//\r
+// Copyright (c) Jonathan Pobst\r
+//\r
+// Authors:\r
+//     Jonathan Pobst (monkey@jpobst.com)\r
+//\r
+#if NET_2_0\r
+\r
+using System;\r
+using System.Collections.Generic;\r
+using System.Text;\r
+\r
+namespace System.Windows.Forms.Design\r
+{\r
+       [AttributeUsage (AttributeTargets.Class)]\r
+       public sealed class ToolStripItemDesignerAvailabilityAttribute : Attribute\r
+       {\r
+               private ToolStripItemDesignerAvailability visibility;\r
+               public static readonly ToolStripItemDesignerAvailabilityAttribute Default = new ToolStripItemDesignerAvailabilityAttribute ();\r
+\r
+               #region Public Constructors\r
+               public ToolStripItemDesignerAvailabilityAttribute ()\r
+                       : base ()\r
+               {\r
+                       this.visibility = ToolStripItemDesignerAvailability.None;\r
+               }\r
+\r
+               public ToolStripItemDesignerAvailabilityAttribute (ToolStripItemDesignerAvailability visibility)\r
+                       : base ()\r
+               {\r
+                       this.visibility = visibility;\r
+               }\r
+               #endregion\r
+\r
+               #region Public Properties\r
+               public ToolStripItemDesignerAvailability ItemAdditionVisibility {\r
+                       get { return this.visibility; }\r
+               }\r
+               #endregion\r
+\r
+               #region Public Methods\r
+               public override bool Equals (object obj)\r
+               {\r
+                       if (!(obj is ToolStripItemDesignerAvailabilityAttribute))\r
+                               return false;\r
+\r
+                       return this.ItemAdditionVisibility == (obj as ToolStripItemDesignerAvailabilityAttribute).ItemAdditionVisibility;\r
+               }\r
+\r
+               public override int GetHashCode ()\r
+               {\r
+                       return (int)this.visibility;\r
+               }\r
+\r
+               public override bool IsDefaultAttribute ()\r
+               {\r
+                       return this.visibility == ToolStripItemDesignerAvailability.None;\r
+               }\r
+               #endregion\r
+       }\r
+}\r
+#endif
\ No newline at end of file
index d3fdc2a8583e43866c4e84847aaf5ff7f97b5902..6e8169ba3862707730e99385b3ea21307155dbbc 100644 (file)
@@ -13,6 +13,8 @@ System.Windows.Forms.Design/EventsTab.cs
 System.Windows.Forms.Design/IUIService.cs
 System.Windows.Forms.Design/IWindowsFormsEditorService.cs
 System.Windows.Forms.Design/PropertyTab.cs
+System.Windows.Forms.Design/ToolStripItemDesignerAvailability.cs
+System.Windows.Forms.Design/ToolStripItemDesignerAvailabilityAttribute.cs
 System.Windows.Forms.Design/WindowsFormsComponentEditor.cs
 System.Windows.Forms.RTF/Charcode.cs
 System.Windows.Forms.RTF/Charset.cs