-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
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
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
+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:
namespace System.Windows.Forms {
public class ToolStrip : ScrollableControl, IComponent, IDisposable {
- ToolStripItem items;
+ //ToolStripItem items;
public ToolStrip ()
{
public ToolStrip (ToolStripItem [] items)
{
- this.items = items;
+ //this.items = items;
}
}
}
--- /dev/null
+//\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
--- /dev/null
+//\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
--- /dev/null
+//\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
--- /dev/null
+//\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
--- /dev/null
+//\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
--- /dev/null
+//\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
--- /dev/null
+//\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
--- /dev/null
+//\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
string text, name;
Image image;
EventHandler onClick;
+ private ToolStrip owner;
+ internal bool is_selected;
protected ToolStripItem ()
{
this.name = name;
}
+ public ToolStrip Owner
+ {
+ get { return owner; }
+ set { owner = value; }
+ }
+
}
}
#endif
--- /dev/null
+//\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
--- /dev/null
+//\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
--- /dev/null
+//\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
--- /dev/null
+//\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
--- /dev/null
+//\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
--- /dev/null
+//\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
--- /dev/null
+//\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
--- /dev/null
+//\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
--- /dev/null
+//\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
--- /dev/null
+//\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
--- /dev/null
+//\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
--- /dev/null
+//\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
--- /dev/null
+//\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
--- /dev/null
+//\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
--- /dev/null
+//\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
--- /dev/null
+//\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
--- /dev/null
+//\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
--- /dev/null
+//\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