2006-09-18 Jonathan Pobst <monkey@jpobst.com>
authorJonathan Pobst <monkey@jpobst.com>
Mon, 18 Sep 2006 19:40:51 +0000 (19:40 -0000)
committerJonathan Pobst <monkey@jpobst.com>
Mon, 18 Sep 2006 19:40:51 +0000 (19:40 -0000)
* ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
  ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
  ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
  ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
  ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
  ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
  ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
  ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
  ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
  ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
  ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
    Inital import.
* ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
  ToolStripButton.cs: Stubs needed for above.
* ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.

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

31 files changed:
mcs/class/Managed.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms.dll.sources
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStrip.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripArrowRenderEventArgs.cs [new file with mode: 0644]
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripArrowRenderEventHandler.cs [new file with mode: 0644]
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripButton.cs [new file with mode: 0644]
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripContentPanel.cs [new file with mode: 0644]
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripContentPanelRenderEventArgs.cs [new file with mode: 0644]
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripContentPanelRenderEventHandler.cs [new file with mode: 0644]
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripGripRenderEventArgs.cs [new file with mode: 0644]
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripGripRenderEventHandler.cs [new file with mode: 0644]
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripItem.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripItemClickedEventArgs.cs [new file with mode: 0644]
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripItemClickedEventHandler.cs [new file with mode: 0644]
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripItemEventArgs.cs [new file with mode: 0644]
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripItemEventHandler.cs [new file with mode: 0644]
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripItemImageRenderEventArgs.cs [new file with mode: 0644]
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripItemImageRenderEventHandler.cs [new file with mode: 0644]
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripItemRenderEventArgs.cs [new file with mode: 0644]
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripItemRenderEventHandler.cs [new file with mode: 0644]
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripItemTextRenderEventArgs.cs [new file with mode: 0644]
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripItemTextRenderEventHandler.cs [new file with mode: 0644]
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripPanel.cs [new file with mode: 0644]
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripPanelRenderEventArgs.cs [new file with mode: 0644]
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripPanelRenderEventHandler.cs [new file with mode: 0644]
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripRenderEventArgs.cs [new file with mode: 0644]
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripRenderEventHandler.cs [new file with mode: 0644]
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripSeparator.cs [new file with mode: 0644]
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripSeparatorRenderEventArgs.cs [new file with mode: 0644]
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripSeparatorRenderEventHandler.cs [new file with mode: 0644]

index ac3b6f1cc4cf82facb7a701d7733526174e58a72..20814e52144ba3e7674c0f98de581926447f331d 100644 (file)
@@ -1,4 +1,8 @@
-2006-09-15  Jonathan Pobst <monkey@jpobst.com>
+2006-09-18  Jonathan Pobst <monkey@jpobst.com>
+       * System.Windows.Forms.dll.sources: Add ToolStrip EventArgs/Handlers,
+         add a few ToolStrip stub classes.
+
+2006-09-15  Jonathan Pobst <monkey@jpobst.com>
        * System.Windows.Forms.dll.sources: Added DefaultLayout.cs, FlowLayout.cs,
          FlowLayoutPanel.cs, FlowLayoutSettings.cs.
        * System.Windows.Forms_test.dll.sources: Added FlowPanelTests.cs
index 083ce53d771f357d3aff22f4ef0c405599da7305..291694f082597e7eb0d569e1d1d5d654d6a0d9f3 100644 (file)
@@ -605,6 +605,13 @@ System.Windows.Forms/ToolBarButtonClickEventArgs.cs
 System.Windows.Forms/ToolBarButtonClickEventHandler.cs
 System.Windows.Forms/ToolBarButtonStyle.cs
 System.Windows.Forms/ToolBarTextAlign.cs
+System.Windows.Forms/ToolStrip.cs
+System.Windows.Forms/ToolStripArrowRenderEventArgs.cs
+System.Windows.Forms/ToolStripArrowRenderEventHandler.cs
+System.Windows.Forms/ToolStripButton.cs
+System.Windows.Forms/ToolStripContentPanel.cs
+System.Windows.Forms/ToolStripContentPanelRenderEventArgs.cs
+System.Windows.Forms/ToolStripContentPanelRenderEventHandler.cs
 System.Windows.Forms/ToolStripDropDownCloseReason.cs
 System.Windows.Forms/ToolStripDropDownClosedEventArgs.cs
 System.Windows.Forms/ToolStripDropDownClosedEventHandler.cs
@@ -613,17 +620,37 @@ System.Windows.Forms/ToolStripDropDownClosingEventHandler.cs
 System.Windows.Forms/ToolStripDropDownDirection.cs
 System.Windows.Forms/ToolStripDropDownItem.cs
 System.Windows.Forms/ToolStripGripDisplayStyle.cs
+System.Windows.Forms/ToolStripGripRenderEventArgs.cs
+System.Windows.Forms/ToolStripGripRenderEventHandler.cs
 System.Windows.Forms/ToolStripGripStyle.cs
 System.Windows.Forms/ToolStripItem.cs
 System.Windows.Forms/ToolStripItemAlignment.cs
+System.Windows.Forms/ToolStripItemClickedEventArgs.cs
+System.Windows.Forms/ToolStripItemClickedEventHandler.cs
 System.Windows.Forms/ToolStripItemDisplayStyle.cs
+System.Windows.Forms/ToolStripItemEventArgs.cs
+System.Windows.Forms/ToolStripItemEventHandler.cs
+System.Windows.Forms/ToolStripItemImageRenderEventArgs.cs
+System.Windows.Forms/ToolStripItemImageRenderEventHandler.cs
 System.Windows.Forms/ToolStripItemImageScaling.cs
 System.Windows.Forms/ToolStripItemOverflow.cs
 System.Windows.Forms/ToolStripItemPlacement.cs
+System.Windows.Forms/ToolStripItemRenderEventArgs.cs
+System.Windows.Forms/ToolStripItemRenderEventHandler.cs
+System.Windows.Forms/ToolStripItemTextRenderEventArgs.cs
+System.Windows.Forms/ToolStripItemTextRenderEventHandler.cs
 System.Windows.Forms/ToolStripLayoutStyle.cs
 System.Windows.Forms/ToolStripManagerRenderMode.cs
 System.Windows.Forms/ToolStripMenuItem.cs
+System.Windows.Forms/ToolStripPanel.cs
+System.Windows.Forms/ToolStripPanelRenderEventArgs.cs
+System.Windows.Forms/ToolStripPanelRenderEventHandler.cs
+System.Windows.Forms/ToolStripRenderEventArgs.cs
+System.Windows.Forms/ToolStripRenderEventHandler.cs
 System.Windows.Forms/ToolStripRenderMode.cs
+System.Windows.Forms/ToolStripSeparator.cs
+System.Windows.Forms/ToolStripSeparatorRenderEventArgs.cs
+System.Windows.Forms/ToolStripSeparatorRenderEventHandler.cs
 System.Windows.Forms/ToolStripStatusLabelBorderSides.cs
 System.Windows.Forms/ToolStripTextDirection.cs
 System.Windows.Forms/ToolTip.cs
index b90eb9b0ce04027fcec88004cc8166a20c851cfb..5f5859429be80b2043f49d7515391b47e66fdace 100644 (file)
@@ -1,3 +1,21 @@
+2006-09-18  Jonathan Pobst <monkey@jpobst.com>
+
+       * ToolStripArrowRenderEventArgs.cs, ToolStripArrowRenderEventHandler.cs,
+         ToolStripContentPanelRenderEventArgs.cs, ToolStripContentPanelRenderEventHandler.cs,
+         ToolStripGripRenderEventArgs.cs, ToolStripGripRenderEventHandler.cs,
+         ToolStripItemClickedEventArgs.cs, ToolStripItemClickedEventHandler.cs,
+         ToolStripItemEventArgs.cs, ToolStripItemEventHandler.cs,
+         ToolStripItemImageRenderEventArgs.cs, ToolStripItemImageRenderEventHandler.cs,
+         ToolStripItemRenderEventArgs.cs, ToolStripItemRenderEventHandler.cs,
+         ToolStripItemTextRenderEventArgs.cs, ToolStripItemTextRenderEventHandler.cs,
+         ToolStripPanelRenderEventArgs.cs, ToolStripPanelRenderEventHandler.cs,
+         ToolStripRenderEventArgs.cs, ToolStripRenderEventHandler.cs,
+         ToolStripSeparatorRenderEventArgs.cs, ToolStripSeparatorRenderEventHandler.cs:
+           Inital import.
+       * ToolStripPanel.cs, ToolStripContentPanel.cs, ToolStripSeparator.cs,
+         ToolStripButton.cs: Stubs needed for above.
+       * ToolStrip.cs, ToolStripItem.cs: Stub a few variables/properties for above.
+
 2006-09-15  Chris Toshok  <toshok@ximian.com>
 
        * XplatUIX11.cs:
index ccb7526f55bec8ca08b173c5246473c048a2ba6c..c8b2160288da263b15cbb4451d9d5d61442dcdfc 100644 (file)
@@ -27,7 +27,7 @@ using System.ComponentModel;
 namespace System.Windows.Forms {
        
        public class ToolStrip : ScrollableControl, IComponent, IDisposable {
-               ToolStripItem items;
+               //ToolStripItem items;
                
                public ToolStrip ()
                {
@@ -35,7 +35,7 @@ namespace System.Windows.Forms {
 
                public ToolStrip (ToolStripItem [] items)
                {
-                       this.items = items;
+                       //this.items = items;
                }
        }
 }
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripArrowRenderEventArgs.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripArrowRenderEventArgs.cs
new file mode 100644 (file)
index 0000000..91ce852
--- /dev/null
@@ -0,0 +1,80 @@
+//\r
+// ToolStripArrowRenderEventArgs.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) 2006 Jonathan Pobst\r
+//\r
+// Authors:\r
+//     Jonathan Pobst (monkey@jpobst.com)\r
+//\r
+\r
+#if NET_2_0\r
+using System.Drawing;\r
+\r
+namespace System.Windows.Forms\r
+{\r
+       public class ToolStripArrowRenderEventArgs : EventArgs\r
+       {\r
+               private Color arrow_color;\r
+               private Rectangle arrow_rectangle;\r
+               private ArrowDirection arrow_direction;\r
+               private Graphics graphics;\r
+               private ToolStripItem tool_strip_item;\r
+\r
+               #region Public Constructors\r
+               public ToolStripArrowRenderEventArgs (Graphics g, ToolStripItem toolStripItem, Rectangle arrowRectangle, Color arrowColor, ArrowDirection arrowDirection)\r
+                       : base ()\r
+               {\r
+                       this.graphics = g;\r
+                       this.tool_strip_item = toolStripItem;\r
+                       this.arrow_rectangle = arrowRectangle;\r
+                       this.arrow_color = arrowColor;\r
+                       this.arrow_direction = arrowDirection;\r
+               }\r
+               #endregion      // Public Constructors\r
+\r
+               #region Public Instance Properties\r
+               public Color ArrowColor {\r
+                       get { return this.arrow_color; }\r
+                       set { this.arrow_color = value; }\r
+               }\r
+\r
+               public Rectangle ArrowRectangle {\r
+                       get { return this.arrow_rectangle; }\r
+                       set { this.arrow_rectangle = value; }\r
+               }\r
+\r
+               public ArrowDirection Direction {\r
+                       get { return this.arrow_direction; }\r
+                       set { this.arrow_direction = value; }\r
+               }\r
+\r
+               public Graphics Graphics {\r
+                       get { return this.graphics; }\r
+               }\r
+\r
+               public ToolStripItem Item {\r
+                       get { return this.tool_strip_item; }\r
+               }\r
+               #endregion      // Public Instance Properties\r
+       }\r
+}\r
+#endif
\ No newline at end of file
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripArrowRenderEventHandler.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripArrowRenderEventHandler.cs
new file mode 100644 (file)
index 0000000..d149568
--- /dev/null
@@ -0,0 +1,34 @@
+//\r
+// ToolStripArrowRenderEventHandler.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
+\r
+#if NET_2_0\r
+namespace System.Windows.Forms\r
+{\r
+       public delegate void ToolStripArrowRenderEventHandler (object sender, ToolStripArrowRenderEventArgs e);\r
+}\r
+#endif
\ No newline at end of file
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripButton.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripButton.cs
new file mode 100644 (file)
index 0000000..f43b49e
--- /dev/null
@@ -0,0 +1,90 @@
+//\r
+// ToolStripButton.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) 2006 Jonathan Pobst\r
+//\r
+// Authors:\r
+//     Jonathan Pobst (monkey@jpobst.com)\r
+//\r
+\r
+#if NET_2_0\r
+using System;\r
+using System.Text;\r
+using System.Drawing;\r
+using System.ComponentModel;\r
+\r
+namespace System.Windows.Forms\r
+{\r
+       public class ToolStripButton : ToolStripItem\r
+       {\r
+               private bool auto_tool_tip;\r
+               private CheckState checked_state;\r
+               private bool check_on_click;\r
+\r
+               #region Public Constructors\r
+               public ToolStripButton ()\r
+                       : this (String.Empty, null, null, String.Empty)\r
+               {\r
+\r
+               }\r
+\r
+               public ToolStripButton (Image image)\r
+                       : this (String.Empty, image, null, String.Empty)\r
+               {\r
+\r
+               }\r
+\r
+               public ToolStripButton (string text)\r
+                       : this (text, null, null, String.Empty)\r
+               {\r
+\r
+               }\r
+\r
+               public ToolStripButton (string text, Image image)\r
+                       : this (text, image, null, String.Empty)\r
+               {\r
+\r
+               }\r
+\r
+               public ToolStripButton (string text, Image image, EventHandler onClick)\r
+                       : this (text, image, onClick, String.Empty)\r
+               {\r
+\r
+               }\r
+\r
+               public ToolStripButton (string text, Image image, EventHandler onClick, string name)\r
+                       : base (text, image, onClick, name)\r
+               {\r
+                       this.is_selected = false;\r
+                       this.checked_state = CheckState.Unchecked;\r
+                       this.auto_tool_tip = true;\r
+                       this.check_on_click = false;\r
+               }\r
+               #endregion\r
+\r
+               #region Public Events\r
+               public event EventHandler CheckedChanged;\r
+               public event EventHandler CheckStateChanged;\r
+               #endregion\r
+       }\r
+}\r
+#endif
\ No newline at end of file
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripContentPanel.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripContentPanel.cs
new file mode 100644 (file)
index 0000000..38c87fc
--- /dev/null
@@ -0,0 +1,44 @@
+//\r
+// ToolStripContentPanel.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) 2006 Jonathan Pobst\r
+//\r
+// Authors:\r
+//     Jonathan Pobst (monkey@jpobst.com)\r
+//\r
+\r
+#if NET_2_0\r
+using System.Drawing;\r
+using System.Runtime.InteropServices;\r
+\r
+namespace System.Windows.Forms\r
+{\r
+       [ComVisible(true)]\r
+       [ClassInterface(ClassInterfaceType.AutoDispatch)]\r
+       public class ToolStripContentPanel : Panel\r
+       {\r
+               public ToolStripContentPanel () \r
+               {\r
+               }\r
+       }\r
+}\r
+#endif
\ No newline at end of file
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripContentPanelRenderEventArgs.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripContentPanelRenderEventArgs.cs
new file mode 100644 (file)
index 0000000..868f913
--- /dev/null
@@ -0,0 +1,63 @@
+//\r
+// ToolStripContentPanelRenderEventArgs.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) 2006 Jonathan Pobst\r
+//\r
+// Authors:\r
+//     Jonathan Pobst (monkey@jpobst.com)\r
+//\r
+\r
+#if NET_2_0\r
+using System.Drawing;\r
+\r
+namespace System.Windows.Forms\r
+{\r
+       public class ToolStripContentPanelRenderEventArgs : EventArgs\r
+       {\r
+               private Graphics graphics;\r
+               private bool handled;\r
+               private ToolStripContentPanel tool_strip_content_panel;\r
+\r
+               public ToolStripContentPanelRenderEventArgs (Graphics g, ToolStripContentPanel contentPanel) : base ()\r
+               {\r
+                       this.graphics = g;\r
+                       this.tool_strip_content_panel = contentPanel;\r
+                       this.handled = false;\r
+               }\r
+\r
+               #region Public Properties\r
+               public Graphics Graphics {\r
+                       get { return this.graphics; }\r
+               }\r
+\r
+               public bool Handled {\r
+                       get { return this.handled; }\r
+                       set { this.handled = value; }\r
+               }\r
+\r
+               public ToolStripContentPanel ToolStripContentPanel {\r
+                       get { return this.tool_strip_content_panel; }\r
+               }\r
+               #endregion              \r
+       }\r
+}\r
+#endif
\ No newline at end of file
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripContentPanelRenderEventHandler.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripContentPanelRenderEventHandler.cs
new file mode 100644 (file)
index 0000000..47e13af
--- /dev/null
@@ -0,0 +1,34 @@
+//\r
+// ToolStripContentPanelRenderEventHandler.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
+\r
+#if NET_2_0\r
+namespace System.Windows.Forms\r
+{\r
+       public delegate void ToolStripContentPanelRenderEventHandler (object sender, ToolStripContentPanelRenderEventArgs e);\r
+}\r
+#endif
\ No newline at end of file
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripGripRenderEventArgs.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripGripRenderEventArgs.cs
new file mode 100644 (file)
index 0000000..673728d
--- /dev/null
@@ -0,0 +1,72 @@
+//\r
+// ToolStripGripRenderEventArgs.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) 2006 Jonathan Pobst\r
+//\r
+// Authors:\r
+//     Jonathan Pobst (monkey@jpobst.com)\r
+//\r
+\r
+#if NET_2_0\r
+using System.Drawing;\r
+\r
+namespace System.Windows.Forms\r
+{\r
+       public class ToolStripGripRenderEventArgs : ToolStripRenderEventArgs\r
+       {\r
+               private Rectangle grip_bounds;\r
+               private ToolStripGripDisplayStyle grip_display_style;\r
+               private ToolStripGripStyle grip_style;\r
+               \r
+               public ToolStripGripRenderEventArgs (Graphics g, ToolStrip toolStrip) \r
+                       : base (g, toolStrip)\r
+               {\r
+                       this.grip_bounds = new Rectangle (2, 0, 3, 25);\r
+                       this.grip_display_style = ToolStripGripDisplayStyle.Vertical;\r
+                       this.grip_style = ToolStripGripStyle.Visible;\r
+               }\r
+\r
+               // There seems to be no public way to set these properties  :/\r
+               internal ToolStripGripRenderEventArgs (Graphics g, ToolStrip toolStrip, Rectangle gripBounds, ToolStripGripDisplayStyle displayStyle, ToolStripGripStyle gripStyle)\r
+                       : base (g, toolStrip)\r
+               {\r
+                       this.grip_bounds = gripBounds;\r
+                       this.grip_display_style = displayStyle;\r
+                       this.grip_style = gripStyle;\r
+               }\r
+\r
+               #region Public Properties\r
+               public Rectangle GripBounds {\r
+                       get { return this.grip_bounds; }\r
+               }\r
+\r
+               public ToolStripGripDisplayStyle GripDisplayStyle {\r
+                       get { return this.grip_display_style; }\r
+               }\r
+\r
+               public ToolStripGripStyle GripStyle {\r
+                       get { return this.grip_style; }\r
+               }\r
+               #endregion\r
+       }\r
+}\r
+#endif
\ No newline at end of file
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripGripRenderEventHandler.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripGripRenderEventHandler.cs
new file mode 100644 (file)
index 0000000..39cde5e
--- /dev/null
@@ -0,0 +1,34 @@
+//\r
+// ToolStripGripRenderEventHandler.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
+\r
+#if NET_2_0\r
+namespace System.Windows.Forms\r
+{\r
+       public delegate void ToolStripGripRenderEventHandler (object sender, ToolStripGripRenderEventArgs e);\r
+}\r
+#endif
\ No newline at end of file
index 3a53bab7d3e147fe5a9ac6c4049600476169043a..94869070a2fe557541eb7f13e43f8ee39c35dafb 100644 (file)
@@ -31,6 +31,8 @@ namespace System.Windows.Forms {
                string text, name;
                Image image;
                EventHandler onClick;
+               private ToolStrip owner;
+               internal bool is_selected;
 
                protected ToolStripItem ()
                {
@@ -51,6 +53,12 @@ namespace System.Windows.Forms {
                        this.name = name;
                }
 
+               public ToolStrip Owner
+               {
+                       get { return owner; }
+                       set { owner = value; }
+               }
+
        }
 }
 #endif
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripItemClickedEventArgs.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripItemClickedEventArgs.cs
new file mode 100644 (file)
index 0000000..fafcdd4
--- /dev/null
@@ -0,0 +1,48 @@
+//\r
+// ToolStripItemClickedEventArgs.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) 2006 Jonathan Pobst\r
+//\r
+// Authors:\r
+//     Jonathan Pobst (monkey@jpobst.com)\r
+//\r
+\r
+#if NET_2_0\r
+namespace System.Windows.Forms\r
+{\r
+       public class ToolStripItemClickedEventArgs : EventArgs\r
+       {\r
+               private ToolStripItem clicked_item;\r
+\r
+               public ToolStripItemClickedEventArgs (ToolStripItem clickedItem) : base ()\r
+               {\r
+                       this.clicked_item = clickedItem;\r
+               }\r
+               \r
+               #region Public Properties\r
+               public ToolStripItem ClickedItem {\r
+                       get { return this.clicked_item; }\r
+               }\r
+               #endregion\r
+       }\r
+}\r
+#endif
\ No newline at end of file
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripItemClickedEventHandler.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripItemClickedEventHandler.cs
new file mode 100644 (file)
index 0000000..a5ab8ae
--- /dev/null
@@ -0,0 +1,34 @@
+//\r
+// ToolStripItemClickedEventHandler.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
+\r
+#if NET_2_0\r
+namespace System.Windows.Forms\r
+{\r
+       public delegate void ToolStripItemClickedEventHandler (object sender, ToolStripItemClickedEventArgs e);\r
+}\r
+#endif
\ No newline at end of file
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripItemEventArgs.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripItemEventArgs.cs
new file mode 100644 (file)
index 0000000..fece15e
--- /dev/null
@@ -0,0 +1,51 @@
+//\r
+// ToolStripItemEventArgs.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) 2006 Jonathan Pobst\r
+//\r
+// Authors:\r
+//     Jonathan Pobst (monkey@jpobst.com)\r
+//\r
+\r
+#if NET_2_0\r
+using System.Drawing;\r
+\r
+namespace System.Windows.Forms\r
+{\r
+       public class ToolStripItemEventArgs : EventArgs\r
+       {\r
+               private ToolStripItem item;\r
+\r
+               public ToolStripItemEventArgs (ToolStripItem item) : base ()\r
+               {\r
+                       this.item = item;\r
+               }\r
+               \r
+               #region Public Properties\r
+               public ToolStripItem Item\r
+               {\r
+                       get { return item; }\r
+               }\r
+               #endregion\r
+       }\r
+}\r
+#endif
\ No newline at end of file
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripItemEventHandler.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripItemEventHandler.cs
new file mode 100644 (file)
index 0000000..a399011
--- /dev/null
@@ -0,0 +1,34 @@
+//\r
+// ToolStripItemEventHandler.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
+\r
+#if NET_2_0\r
+namespace System.Windows.Forms\r
+{\r
+       public delegate void ToolStripItemEventHandler (object sender, ToolStripItemEventArgs e);\r
+}\r
+#endif
\ No newline at end of file
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripItemImageRenderEventArgs.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripItemImageRenderEventArgs.cs
new file mode 100644 (file)
index 0000000..d244d8e
--- /dev/null
@@ -0,0 +1,62 @@
+//\r
+// ToolStripItemImageRenderEventArgs.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) 2006 Jonathan Pobst\r
+//\r
+// Authors:\r
+//     Jonathan Pobst (monkey@jpobst.com)\r
+//\r
+\r
+#if NET_2_0\r
+using System.Drawing;\r
+\r
+namespace System.Windows.Forms\r
+{\r
+       public class ToolStripItemImageRenderEventArgs : ToolStripItemRenderEventArgs\r
+       {\r
+               private Image image;\r
+               private Rectangle image_rectangle;\r
+\r
+               public ToolStripItemImageRenderEventArgs (Graphics g, ToolStripItem item, Rectangle imageRectangle)\r
+                       : this (g, item, null, imageRectangle)\r
+               {\r
+               }\r
+               \r
+               public ToolStripItemImageRenderEventArgs (Graphics g, ToolStripItem item, Image image, Rectangle imageRectangle)\r
+                       : base (g, item)\r
+               {\r
+                       this.image = image;\r
+                       this.image_rectangle = imageRectangle;\r
+               }\r
+               \r
+               #region Public Properties\r
+               public Image Image {\r
+                       get { return this.image; }\r
+               }\r
+\r
+               public Rectangle ImageRectangle {\r
+                       get { return this.image_rectangle; }\r
+               }\r
+               #endregion\r
+       }\r
+}\r
+#endif
\ No newline at end of file
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripItemImageRenderEventHandler.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripItemImageRenderEventHandler.cs
new file mode 100644 (file)
index 0000000..db8e3b4
--- /dev/null
@@ -0,0 +1,34 @@
+//\r
+// ToolStripItemImageRenderEventHandler.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
+\r
+#if NET_2_0\r
+namespace System.Windows.Forms\r
+{\r
+       public delegate void ToolStripItemImageRenderEventHandler (object sender, ToolStripItemImageRenderEventArgs e);\r
+}\r
+#endif
\ No newline at end of file
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripItemRenderEventArgs.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripItemRenderEventArgs.cs
new file mode 100644 (file)
index 0000000..987bda0
--- /dev/null
@@ -0,0 +1,60 @@
+//\r
+// ToolStripItemRenderEventArgs.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) 2006 Jonathan Pobst\r
+//\r
+// Authors:\r
+//     Jonathan Pobst (monkey@jpobst.com)\r
+//\r
+\r
+#if NET_2_0\r
+using System.Drawing;\r
+\r
+namespace System.Windows.Forms\r
+{\r
+       public class ToolStripItemRenderEventArgs : EventArgs\r
+       {\r
+               private Graphics graphics;\r
+               private ToolStripItem item;\r
+\r
+               public ToolStripItemRenderEventArgs (Graphics g, ToolStripItem item) : base ()\r
+               {\r
+                       this.graphics = g;\r
+                       this.item = item;\r
+               }\r
+               \r
+               #region Public Properties\r
+               public Graphics Graphics {\r
+                       get { return this.graphics; }\r
+               }\r
+\r
+               public ToolStripItem Item {\r
+                       get { return this.item; }\r
+               }\r
+\r
+               public ToolStrip ToolStrip {\r
+                       get { return this.item.Owner; }\r
+               }\r
+               #endregion\r
+       }\r
+}\r
+#endif
\ No newline at end of file
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripItemRenderEventHandler.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripItemRenderEventHandler.cs
new file mode 100644 (file)
index 0000000..6aa0671
--- /dev/null
@@ -0,0 +1,34 @@
+//\r
+// ToolStripItemRenderEventHandler.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
+\r
+#if NET_2_0\r
+namespace System.Windows.Forms\r
+{\r
+       public delegate void ToolStripItemRenderEventHandler (object sender, ToolStripItemRenderEventArgs e);\r
+}\r
+#endif
\ No newline at end of file
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripItemTextRenderEventArgs.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripItemTextRenderEventArgs.cs
new file mode 100644 (file)
index 0000000..7cbf057
--- /dev/null
@@ -0,0 +1,132 @@
+//\r
+// ToolStripItemTextRenderEventArgs.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) 2006 Jonathan Pobst\r
+//\r
+// Authors:\r
+//     Jonathan Pobst (monkey@jpobst.com)\r
+//\r
+\r
+#if NET_2_0\r
+using System.Drawing;\r
+\r
+namespace System.Windows.Forms\r
+{\r
+       public class ToolStripItemTextRenderEventArgs : ToolStripItemRenderEventArgs\r
+       {\r
+               private string text;\r
+               private Color text_color;\r
+               private ToolStripTextDirection text_direction;\r
+               private Font text_font;\r
+               private TextFormatFlags text_format;\r
+               private Rectangle text_rectangle;\r
+\r
+               #region Public Constructors\r
+               public ToolStripItemTextRenderEventArgs (Graphics g, ToolStripItem item, string text, Rectangle textRectangle, Color textColor, Font textFont, ContentAlignment textAlign)\r
+                       : base (g, item)\r
+               {\r
+                       this.text = text;\r
+                       this.text_rectangle = textRectangle;\r
+                       this.text_color = textColor;\r
+                       this.text_font = textFont;\r
+                       this.text_direction = ToolStripTextDirection.Horizontal;\r
+\r
+                       switch (textAlign) {\r
+                               case ContentAlignment.BottomCenter:\r
+                                       this.text_format = TextFormatFlags.Bottom | TextFormatFlags.HorizontalCenter;\r
+                                       break;\r
+                               case ContentAlignment.BottomLeft:\r
+                                       this.text_format = TextFormatFlags.Bottom | TextFormatFlags.Left;\r
+                                       break;\r
+                               case ContentAlignment.BottomRight:\r
+                                       this.text_format = TextFormatFlags.Bottom | TextFormatFlags.Right;\r
+                                       break;\r
+                               case ContentAlignment.MiddleCenter:\r
+                                       this.text_format = TextFormatFlags.VerticalCenter | TextFormatFlags.HorizontalCenter;\r
+                                       break;\r
+                               case ContentAlignment.MiddleLeft:\r
+                               default:\r
+                                       this.text_format = (TextFormatFlags.VerticalCenter | TextFormatFlags.Left);\r
+                                       break;\r
+                               case ContentAlignment.MiddleRight:\r
+                                       this.text_format = TextFormatFlags.VerticalCenter | TextFormatFlags.Right;\r
+                                       break;\r
+                               case ContentAlignment.TopCenter:\r
+                                       this.text_format = TextFormatFlags.Top | TextFormatFlags.HorizontalCenter;\r
+                                       break;\r
+                               case ContentAlignment.TopLeft:\r
+                                       this.text_format = TextFormatFlags.Top | TextFormatFlags.Left;\r
+                                       break;\r
+                               case ContentAlignment.TopRight:\r
+                                       this.text_format = TextFormatFlags.Top | TextFormatFlags.Right;\r
+                                       break;\r
+                       }\r
+\r
+                       this.text_format |= TextFormatFlags.HidePrefix;\r
+               }\r
+\r
+               public ToolStripItemTextRenderEventArgs (Graphics g, ToolStripItem item, string text, Rectangle textRectangle, Color textColor, Font textFont, TextFormatFlags format)\r
+                       : base (g, item)\r
+               {\r
+                       this.text = text;\r
+                       this.text_rectangle = textRectangle;\r
+                       this.text_color = textColor;\r
+                       this.text_font = textFont;\r
+                       this.text_format = format;\r
+                       this.text_direction = ToolStripTextDirection.Horizontal;\r
+               }\r
+               #endregion\r
+\r
+               #region Public Properties\r
+               public string Text {\r
+                       get { return this.text; }\r
+                       set { this.text = value; }\r
+               }\r
+\r
+               public Color TextColor {\r
+                       get { return this.text_color; }\r
+                       set { this.text_color = value; }\r
+               }\r
+\r
+               public ToolStripTextDirection TextDirection {\r
+                       get { return this.text_direction; }\r
+                       set { this.text_direction = value; }\r
+               }\r
+\r
+               public Font TextFont {\r
+                       get { return this.text_font; }\r
+                       set { this.text_font = value; }\r
+               }\r
+\r
+               public TextFormatFlags TextFormat {\r
+                       get { return this.text_format; }\r
+                       set { this.text_format = value; }\r
+               }\r
+\r
+               public Rectangle TextRectangle {\r
+                       get { return this.text_rectangle; }\r
+                       set { this.text_rectangle = value; }\r
+               }\r
+               #endregion\r
+       }\r
+}\r
+#endif
\ No newline at end of file
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripItemTextRenderEventHandler.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripItemTextRenderEventHandler.cs
new file mode 100644 (file)
index 0000000..d549800
--- /dev/null
@@ -0,0 +1,34 @@
+//\r
+// ToolStripItemTextRenderEventHandler.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
+\r
+#if NET_2_0\r
+namespace System.Windows.Forms\r
+{\r
+       public delegate void ToolStripItemTextRenderEventHandler (object sender, ToolStripItemTextRenderEventArgs e);\r
+}\r
+#endif
\ No newline at end of file
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripPanel.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripPanel.cs
new file mode 100644 (file)
index 0000000..7a9931e
--- /dev/null
@@ -0,0 +1,42 @@
+//\r
+// ToolStripPanel.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) 2006 Jonathan Pobst\r
+//\r
+// Authors:\r
+//     Jonathan Pobst (monkey@jpobst.com)\r
+//\r
+\r
+#if NET_2_0    \r
+using System.Drawing;\r
+using System.Runtime.InteropServices;\r
+using System.ComponentModel;\r
+\r
+namespace System.Windows.Forms\r
+{\r
+       [ComVisible (true)]\r
+       [ClassInterface (ClassInterfaceType.AutoDispatch)]\r
+       public class ToolStripPanel : ContainerControl, IComponent, IDisposable\r
+       {\r
+       }\r
+}\r
+#endif
\ No newline at end of file
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripPanelRenderEventArgs.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripPanelRenderEventArgs.cs
new file mode 100644 (file)
index 0000000..3c21057
--- /dev/null
@@ -0,0 +1,63 @@
+//\r
+// ToolStripPanelRenderEventArgs.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) 2006 Jonathan Pobst\r
+//\r
+// Authors:\r
+//     Jonathan Pobst (monkey@jpobst.com)\r
+//\r
+\r
+#if NET_2_0    \r
+using System.Drawing;\r
+\r
+namespace System.Windows.Forms\r
+{\r
+       public class ToolStripPanelRenderEventArgs : EventArgs\r
+       {\r
+               private Graphics graphics;\r
+               private bool handled;\r
+               private ToolStripPanel tool_strip_panel;\r
+\r
+               public ToolStripPanelRenderEventArgs (Graphics g, ToolStripPanel toolStripPanel)\r
+               {\r
+                       this.graphics = g;\r
+                       this.tool_strip_panel = toolStripPanel;\r
+                       this.handled = false;\r
+               }\r
+\r
+               #region Public Properties\r
+               public Graphics Graphics {\r
+                       get { return this.graphics; }\r
+               }\r
+\r
+               public bool Handled {\r
+                       get { return this.handled; }\r
+                       set { this.handled = value; }\r
+               }\r
+\r
+               public ToolStripPanel ToolStripPanel {\r
+                       get { return this.tool_strip_panel; }\r
+               }\r
+               #endregion              \r
+       }\r
+}\r
+#endif
\ No newline at end of file
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripPanelRenderEventHandler.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripPanelRenderEventHandler.cs
new file mode 100644 (file)
index 0000000..de50e06
--- /dev/null
@@ -0,0 +1,34 @@
+//\r
+// ToolStripPanelRenderEventHandler.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
+\r
+#if NET_2_0\r
+namespace System.Windows.Forms\r
+{\r
+       public delegate void ToolStripPanelRenderEventHandler (object sender, ToolStripPanelRenderEventArgs e);\r
+}\r
+#endif
\ No newline at end of file
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripRenderEventArgs.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripRenderEventArgs.cs
new file mode 100644 (file)
index 0000000..d06bbda
--- /dev/null
@@ -0,0 +1,80 @@
+//\r
+// ToolStripRenderEventArgs.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) 2006 Jonathan Pobst\r
+//\r
+// Authors:\r
+//     Jonathan Pobst (monkey@jpobst.com)\r
+//\r
+\r
+#if NET_2_0\r
+using System.Drawing;\r
+\r
+namespace System.Windows.Forms\r
+{\r
+       public class ToolStripRenderEventArgs : EventArgs\r
+       {\r
+               private Rectangle affected_bounds;\r
+               private Color back_color;\r
+               private Rectangle connected_area;\r
+               private Graphics graphics;\r
+               private ToolStrip tool_strip;\r
+\r
+               #region Public Constructors\r
+               public ToolStripRenderEventArgs (Graphics g, ToolStrip toolStrip)\r
+                       : this (g, toolStrip, new Rectangle (0, 0, 100, 25), SystemColors.Control)\r
+               {\r
+               }\r
+               \r
+               public ToolStripRenderEventArgs (Graphics g, ToolStrip toolStrip, Rectangle affectedBounds, Color backColor)\r
+               {\r
+                       this.graphics = g;\r
+                       this.tool_strip = toolStrip;\r
+                       this.affected_bounds = affectedBounds;\r
+                       this.back_color = backColor;\r
+               }\r
+               #endregion\r
+               \r
+               #region Public Properties\r
+               public Rectangle AffectedBounds {\r
+                       get { return this.affected_bounds; }\r
+               }\r
+\r
+               public Color BackColor {\r
+                       get { return this.back_color; }\r
+               }\r
+\r
+               public Rectangle ConnectedArea {\r
+                       get { return this.connected_area; }\r
+               }\r
+\r
+               public Graphics Graphics {\r
+                       get { return this.graphics; }\r
+               }\r
+\r
+               public ToolStrip ToolStrip {\r
+                       get { return this.tool_strip; }\r
+               }\r
+               #endregion\r
+       }\r
+}\r
+#endif
\ No newline at end of file
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripRenderEventHandler.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripRenderEventHandler.cs
new file mode 100644 (file)
index 0000000..b9e561c
--- /dev/null
@@ -0,0 +1,34 @@
+//\r
+// ToolStripRenderEventHandler.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
+\r
+#if NET_2_0\r
+namespace System.Windows.Forms\r
+{\r
+       public delegate void ToolStripRenderEventHandler (object sender, ToolStripRenderEventArgs e);\r
+}\r
+#endif
\ No newline at end of file
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripSeparator.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripSeparator.cs
new file mode 100644 (file)
index 0000000..0d7b4e8
--- /dev/null
@@ -0,0 +1,41 @@
+//\r
+// ToolStripSeparator.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) 2006 Jonathan Pobst\r
+//\r
+// Authors:\r
+//     Jonathan Pobst (monkey@jpobst.com)\r
+//\r
+\r
+#if NET_2_0\r
+using System.Drawing;\r
+\r
+namespace System.Windows.Forms\r
+{\r
+       public class ToolStripSeparator : ToolStripItem\r
+       {\r
+               public ToolStripSeparator ()\r
+               {\r
+               }\r
+       }\r
+}\r
+#endif
\ No newline at end of file
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripSeparatorRenderEventArgs.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripSeparatorRenderEventArgs.cs
new file mode 100644 (file)
index 0000000..0d0d3cf
--- /dev/null
@@ -0,0 +1,51 @@
+//\r
+// ToolStripSeparatorRenderEventArgs.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) 2006 Jonathan Pobst\r
+//\r
+// Authors:\r
+//     Jonathan Pobst (monkey@jpobst.com)\r
+//\r
+\r
+#if NET_2_0\r
+using System.Drawing;\r
+\r
+namespace System.Windows.Forms\r
+{\r
+       public class ToolStripSeparatorRenderEventArgs : ToolStripItemRenderEventArgs\r
+       {\r
+               private bool vertical;\r
+\r
+               public ToolStripSeparatorRenderEventArgs (Graphics g, ToolStripSeparator separator, bool vertical)\r
+                       : base (g, separator)\r
+               {\r
+                       this.vertical = vertical;\r
+               }\r
+               \r
+               #region Public Properties\r
+               public bool Vertical {\r
+                       get { return this.vertical; }\r
+               }\r
+               #endregion\r
+       }\r
+}\r
+#endif
\ No newline at end of file
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripSeparatorRenderEventHandler.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ToolStripSeparatorRenderEventHandler.cs
new file mode 100644 (file)
index 0000000..485d8fa
--- /dev/null
@@ -0,0 +1,34 @@
+//\r
+// ToolStripSeparatorRenderEventHandler.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
+\r
+#if NET_2_0\r
+namespace System.Windows.Forms\r
+{\r
+       public delegate void ToolStripSeparatorRenderEventHandler (object sender, ToolStripSeparatorRenderEventArgs e);\r
+}\r
+#endif
\ No newline at end of file