- Signature fixes
authorPeter Dennis Bartok <pbartok@mono-cvs.ximian.com>
Wed, 11 Aug 2004 22:20:59 +0000 (22:20 -0000)
committerPeter Dennis Bartok <pbartok@mono-cvs.ximian.com>
Wed, 11 Aug 2004 22:20:59 +0000 (22:20 -0000)
svn path=/trunk/mcs/; revision=32247

23 files changed:
mcs/class/Managed.Windows.Forms/System.Windows.Forms/BindingManagerBase.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/BindingMemberInfo.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ContainerControl.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ControlEventArgs.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ControlPaint.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ImageListStreamer.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/InputLanguage.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/InputLanguageChangedEventArgs.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/InputLanguageChangingEventArgs.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/Keys.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/LayoutEventArgs.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/LinkArea.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/Message.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/MouseEventArgs.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/NativeWindow.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ScrollEventArgs.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ScrollableControl.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIDriver.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIWin32.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs

index ded87f15a7922cfbb59c219f7b29ee8ecfa6e770..7511a1727627c26d9560532af7f8d493fd094690 100644 (file)
@@ -24,6 +24,9 @@
 //
 //
 // $Log: BindingManagerBase.cs,v $
+// Revision 1.2  2004/08/11 22:20:59  pbartok
+// - Signature fixes
+//
 // Revision 1.1  2004/08/11 21:22:27  pbartok
 // - Was checked in with wrong filename
 //
@@ -117,8 +120,8 @@ namespace System.Windows.Forms {
                #endregion      // Protected Instance Methods
 
                #region Events
-               public EventHandler CurrentChanged;
-               public EventHandler PositionChanged;
+               public event EventHandler CurrentChanged;
+               public event EventHandler PositionChanged;
                #endregion      // Events
        }
 }
index 9f87b050fa8318b15075d18354440106e7743e8d..eaabc5dd70668d8a1576dfbf097c780b46c2318f 100644 (file)
 //     Peter Bartok    pbartok@novell.com
 //
 //
-// $Revision: 1.1 $
+// $Revision: 1.2 $
 // $Modtime: $
 // $Log: BindingMemberInfo.cs,v $
+// Revision 1.2  2004/08/11 22:20:59  pbartok
+// - Signature fixes
+//
 // Revision 1.1  2004/07/09 05:21:25  pbartok
 // - Initial check-in
 //
@@ -34,7 +37,7 @@
 // COMPLETE
 
 namespace System.Windows.Forms {
-       public class BindingMemberInfo {
+       public struct BindingMemberInfo {
                private string          data_member;
                private string          data_field;
                private string          data_path;
@@ -84,7 +87,9 @@ namespace System.Windows.Forms {
                #region Public Instance Methods
                public override bool Equals(object otherObject) {
                        if (otherObject is BindingMemberInfo) {
-                               return (this == (BindingMemberInfo)otherObject);
+                               return ((this.data_field == ((BindingMemberInfo)otherObject).data_field) &&\r
+                                       (this.data_path == ((BindingMemberInfo)otherObject).data_path) &&\r
+                                       (this.data_member == ((BindingMemberInfo)otherObject).data_member));\r
                        } else {
                                return false;
                        }
index b9d3bb80dcea0ef2cba64293a020fbd05fcb34f5..80e7a2a24c001b1727c5e0aed17ebc5acd78cf0c 100644 (file)
 //     Peter Bartok    pbartok@novell.com
 //
 //
-// $Revision: 1.1 $
+// $Revision: 1.2 $
 // $Modtime: $
 // $Log: ContainerControl.cs,v $
+// Revision 1.2  2004/08/11 22:20:59  pbartok
+// - Signature fixes
+//
 // Revision 1.1  2004/07/09 05:21:25  pbartok
 // - Initial check-in
 //
@@ -91,7 +94,7 @@ namespace System.Windows.Forms {
                        throw new NotImplementedException();
                }
 
-               public bool ActivateControl(Control control) {
+               bool IContainerControl.ActivateControl(Control control) {
                        throw new NotImplementedException();
                }
                #endregion      // Public Instance Methods
index a10825e676d596ecb3cacf124104f28168b3ac74..dfe78288f8f27e9dfc92e0fb0bec718281328595 100644 (file)
 //     Jaak Simm               jaaksimm@firm.ee
 //     John Sohn               jsohn@columbus.rr.com
 //
-// $Revision: 1.22 $
+// $Revision: 1.23 $
 // $Modtime: $
 // $Log: Control.cs,v $
+// Revision 1.23  2004/08/11 22:20:59  pbartok
+// - Signature fixes
+//
 // Revision 1.22  2004/08/11 19:19:44  pbartok
 // - We had SetWindowPos and MoveWindow to set window positions and size,
 //   removed MoveWindow. We have GetWindowPos, so it made sense to keep
@@ -776,10 +779,6 @@ namespace System.Windows.Forms
                        get {
                                return this.has_focus;
                        }
-
-                       set {
-                               throw new NotImplementedException();
-                       }
                }
 
                public virtual Font Font {
index 9fee32ed611963532c4c53c85c10fd31cfde46ad..c51a2667ee7c0a3f85f871bc23fbe11bffde4e69 100644 (file)
 //     Peter Bartok    pbartok@novell.com
 //
 //
-// $Revision: 1.1 $
+// $Revision: 1.2 $
 // $Modtime: $
 // $Log: ControlEventArgs.cs,v $
+// Revision 1.2  2004/08/11 22:20:59  pbartok
+// - Signature fixes
+//
 // Revision 1.1  2004/07/09 05:21:25  pbartok
 // - Initial check-in
 //
@@ -34,7 +37,7 @@
 // COMPLETE
 
 namespace System.Windows.Forms {
-       public class ControlEventArgs {
+       public class ControlEventArgs : EventArgs {
                private Control control;
 
                #region Public Constructors
index 9c08bae8465854e396b0fd630d9ea136d1452622..e6f8dc3104701286984c245b5b7a021f6dd31459 100644 (file)
 //     Peter Bartok    pbartok@novell.com
 //
 //
-// $Revision: 1.2 $
-// $Modtime: $
 // $Log: ControlPaint.cs,v $
+// Revision 1.3  2004/08/11 22:20:59  pbartok
+// - Signature fixes
+//
 // Revision 1.2  2004/07/26 17:42:03  jordi
 // Theme support
 //
@@ -50,6 +51,12 @@ namespace System.Windows.Forms {
                #region Private Enumerations
 
 
+               #region Constructor
+               // Prevent a public constructor from being created
+               private ControlPaint() {
+               }
+               #endregion      // Constructor
+
 
                #endregion      // Private Enumerations
 
@@ -356,27 +363,35 @@ namespace System.Windows.Forms {
                        ThemeEngine.Current.DrawRadioButton (graphics, rectangle, state);
                }
 
-               [MonoTODO]
+               [MonoTODO("Figure out a good System.Drawing way for XOR drawing")]
                public static void DrawReversibleFrame(Rectangle rectangle, Color backColor, FrameStyle style) {
-                       //FIXME:
+                       throw new NotImplementedException();
                }
 
-               [MonoTODO]
+               [MonoTODO("Figure out a good System.Drawing way for XOR drawing")]
                public static void DrawReversibleLine(Point start, Point end, Color backColor) {
-                       //FIXME:
+                       throw new NotImplementedException();
                }
 
-               [MonoTODO]
+               [MonoTODO("Figure out a good System.Drawing way for XOR drawing")]
                public static void FillReversibleRectangle(Rectangle rectangle, Color backColor) {
-                       //FIXME:
+                       throw new NotImplementedException();
                }
 
 
-               public static void DrawScrollButton (Graphics graphics, Rectangle rectangle, ScrollButton button, ButtonState state) {
+               public static void DrawScrollButton (Graphics graphics, int x, int y, int width, int height, ScrollButton button, ButtonState state) {
+                       ThemeEngine.Current.DrawScrollButton (graphics, new Rectangle(x, y, width, height), button, state);
+               }
 
+               public static void DrawScrollButton (Graphics graphics, Rectangle rectangle, ScrollButton button, ButtonState state) {
                        ThemeEngine.Current.DrawScrollButton (graphics, rectangle, button, state);
                }
 
+               [MonoTODO]
+               public static void DrawSelectionFrame(Graphics graphics, bool active, Rectangle outsideRect, Rectangle insideRect, Color backColor) {
+                       throw new NotImplementedException();
+               }
+
                public static void DrawSizeGrip (Graphics graphics, Color backColor, Rectangle bounds)
                {
                        ThemeEngine.Current.DrawSizeGrip (graphics,  backColor,  bounds);
index f2e28e39e2dd5dd7d1b0711bb94281bfad6f81dd..9a96c3aa7a22e18649fdfcb312884e9c1f795dd3 100644 (file)
 //     Peter Bartok    pbartok@novell.com
 //
 //
-// $Revision: 1.3 $
+// $Revision: 1.4 $
 // $Modtime: $
 // $Log: Form.cs,v $
+// Revision 1.4  2004/08/11 22:20:59  pbartok
+// - Signature fixes
+//
 // Revision 1.3  2004/08/04 21:13:47  pbartok
 // - Added AutoScale properties
 //
@@ -139,7 +142,7 @@ namespace System.Windows.Forms {
                        }
                }
 
-               protected virtual void OnClosed(System.ComponentModel.CancelEventArgs e) {
+               protected virtual void OnClosing(System.ComponentModel.CancelEventArgs e) {
                        if (Closing != null) {
                                Closing(this, e);
                        }
index 53aabb24b7800b1b59833dbacb48fba227e11c42..125ab8fb7104a67d936aceca15bd0b1e9fcc182a 100644 (file)
 //     Peter Bartok    (pbartok@novell.com)
 //
 //
-// $Revision: 1.1 $
+// $Revision: 1.2 $
 // $Modtime: $
 // $Log: ImageListStreamer.cs,v $
+// Revision 1.2  2004/08/11 22:20:59  pbartok
+// - Signature fixes
+//
 // Revision 1.1  2004/07/15 20:05:28  pbartok
 // - Implemented ImageList and ImageList.ImageCollection classes
 // - Added ColorDepth enumeration
 using System.Runtime.Serialization;
 
 namespace System.Windows.Forms {
+       [Serializable]
        public sealed class ImageListStreamer : ISerializable {
+               #region Constructor
+               private ImageListStreamer() {
+               }
+               #endregion      // Constructor
+
                #region Public Instance Methods
                [MonoTODO("Need to learn about streaming first - Peter")]
                public void GetObjectData(SerializationInfo si, StreamingContext context) {
index 0e37e4661f601113c2efe7a499f8a46fde7b3274..0db318304b4cce539fd59df2b6d7b220b60d15ba 100644 (file)
 //     Peter Bartok    pbartok@novell.com
 //
 //
-// $Revision: 1.1 $
+// $Revision: 1.2 $
 // $Modtime: $
 // $Log: InputLanguage.cs,v $
+// Revision 1.2  2004/08/11 22:20:59  pbartok
+// - Signature fixes
+//
 // Revision 1.1  2004/07/09 05:21:25  pbartok
 // - Initial check-in
 //
@@ -87,7 +90,7 @@ namespace System.Windows.Forms {
                        }
                }
 
-               public static InputLanguageCollection InstalledInputLanguage {
+               public static InputLanguageCollection InstalledInputLanguages {
                        get {
                                return all;
                        }
index ad69b7ac0ef95be2db82c668fd882fe7cdd87fc8..7208f42a3056fca4333305ebd98a0b15bc2238d2 100644 (file)
 //     Peter Bartok    pbartok@novell.com
 //
 //
-// $Revision: 1.1 $
+// $Revision: 1.2 $
 // $Modtime: $
 // $Log: InputLanguageChangedEventArgs.cs,v $
+// Revision 1.2  2004/08/11 22:20:59  pbartok
+// - Signature fixes
+//
 // Revision 1.1  2004/07/09 05:21:25  pbartok
 // - Initial check-in
 //
@@ -36,7 +39,7 @@
 using System.Globalization;
 
 namespace System.Windows.Forms {
-       public class InputLanguageChangedEventArgs {
+       public class InputLanguageChangedEventArgs : EventArgs {
                private CultureInfo     culture;
                private byte            charset;
                private InputLanguage   input_language;
index bd1275312913d9a9015b757341d953b47becd337..5c6fbfb4a9171b3e2ca57ec34bc3dfb8e4a53d6b 100644 (file)
 //     Peter Bartok    pbartok@novell.com
 //
 //
-// $Revision: 1.1 $
+// $Revision: 1.2 $
 // $Modtime: $
 // $Log: InputLanguageChangingEventArgs.cs,v $
+// Revision 1.2  2004/08/11 22:20:59  pbartok
+// - Signature fixes
+//
 // Revision 1.1  2004/07/09 05:21:25  pbartok
 // - Initial check-in
 //
@@ -36,7 +39,7 @@
 using System.Globalization;
 
 namespace System.Windows.Forms {
-       public class InputLanguageChangingEventArgs {
+       public class InputLanguageChangingEventArgs : EventArgs {
                private CultureInfo     culture;
                private bool            system_charset;
                private InputLanguage   input_language;
index 2c98d8e0769dfe8ea661d8c47e7bc2c3a4f4f666..69445d362a4a3aa8af739252a4e15bbf3b18e3ba 100644 (file)
 //     Peter Bartok    pbartok@novell.com
 //
 //
-// $Revision: 1.1 $
+// $Revision: 1.2 $
 // $Modtime: $
 // $Log: Keys.cs,v $
+// Revision 1.2  2004/08/11 22:20:59  pbartok
+// - Signature fixes
+//
 // Revision 1.1  2004/07/09 05:21:25  pbartok
 // - Initial check-in
 //
@@ -47,12 +50,13 @@ namespace System.Windows.Forms {
                LineFeed        = 0x0000000A,
                Clear           = 0x0000000C,
                Return          = 0x0000000D,
+               Enter           = 0x0000000D,
                ShiftKey        = 0x00000010,
                ControlKey      = 0x00000011,
                Menu            = 0x00000012,
                Pause           = 0x00000013,
                CapsLock        = 0x00000014,
-               Captial         = 0x00000014,
+               Capital         = 0x00000014,
                KanaMode        = 0x00000015,
                HanguelMode     = 0x00000015,
                HangulMode      = 0x00000015,
@@ -62,9 +66,8 @@ namespace System.Windows.Forms {
                HanjaMode       = 0x00000019,
                Escape          = 0x0000001B,
                IMEConvert      = 0x0000001C,
-               IMENonConvert   = 0x0000001D,
+               IMENonconvert   = 0x0000001D,
                IMEAceept       = 0x0000001E,
-               IMEAccept       = 0x0000001E,
                IMEModeChange   = 0x0000001F,
                Space           = 0x00000020,
                PageUp          = 0x00000021,
index 992fa5e3fca4548b21fbb4cbaceab48730a55c70..829d1c2e1815de42e409bff38feb75f619408abb 100644 (file)
 //     Peter Bartok    pbartok@novell.com
 //
 //
-// $Revision: 1.1 $
+// $Revision: 1.2 $
 // $Modtime: $
 // $Log: LayoutEventArgs.cs,v $
+// Revision 1.2  2004/08/11 22:20:59  pbartok
+// - Signature fixes
+//
 // Revision 1.1  2004/07/09 05:21:25  pbartok
 // - Initial check-in
 //
@@ -34,7 +37,7 @@
 // COMPLETE
 
 namespace System.Windows.Forms {
-       public class LayoutEventArgs : EventArgs {
+       public sealed class LayoutEventArgs : EventArgs {
                private Control affected_control;
                private string  affected_property;
 
index f1ab6bbcc595292e15ba70df83878fdd6019b032..c817501ca8777a4592a0f925f21fd3e0f59cf7cd 100644 (file)
 //     Andreas Nahr, ClassDevelopment@A-SoftTech.com
 //     Jordi Mas i Hernandez, jordi@ximian.com
 //
-// $Revision: 1.1 $
+// $Revision: 1.2 $
 // $Modtime: $
 // $Log: LinkArea.cs,v $
+// Revision 1.2  2004/08/11 22:20:59  pbartok
+// - Signature fixes
+//
 // Revision 1.1  2004/07/21 16:19:17  jordi
 // LinkLabel control implementation
 //
@@ -37,6 +40,7 @@
 
 namespace System.Windows.Forms
 {
+       [Serializable]
        public struct LinkArea
        {
                private int start;
index 64e9288c259c275c834701d847e0e8cc1289d7f9..4263904922fbee7d6123b0dc4449aa7d260d49ca 100644 (file)
 //     Peter Bartok    pbartok@novell.com
 //
 //
-// $Revision: 1.1 $
-// $Modtime: $
 // $Log: Message.cs,v $
+// Revision 1.2  2004/08/11 22:20:59  pbartok
+// - Signature fixes
+//
 // Revision 1.1  2004/07/09 05:21:25  pbartok
 // - Initial check-in
 //
@@ -47,7 +48,7 @@ namespace System.Windows.Forms {
                private IntPtr  result;
 
                #region Public Instance Properties
-               public IntPtr Hwnd {
+               public IntPtr HWnd {
                        get { return hwnd; }
                        set { hwnd=value; }
                }
@@ -91,23 +92,11 @@ namespace System.Windows.Forms {
                                return false;
                        }
 
-                       return (this == (Message)o);
-               }
-
-               public static bool operator == (Message msg_a, Message msg_b) {
-                       return ((msg_a.msg == msg_b.msg) && 
-                               (msg_a.hwnd == msg_b.hwnd) && 
-                               (msg_a.lParam == msg_b.lParam) && 
-                               (msg_a.wParam == msg_b.wParam) && 
-                               (msg_a.result == msg_b.result));
-               }
-
-               public static bool operator != (Message msg_a, Message msg_b) {
-                       return ((msg_a.msg != msg_b.msg) || 
-                               (msg_a.hwnd != msg_b.hwnd) || 
-                               (msg_a.lParam != msg_b.lParam) || 
-                               (msg_a.wParam != msg_b.wParam) || 
-                               (msg_a.result != msg_b.result));
+                       return ((this.msg == ((Message)o).msg) && 
+                               (this.hwnd == ((Message)o).hwnd) && 
+                               (this.lParam == ((Message)o).lParam) && 
+                               (this.wParam == ((Message)o).wParam) && 
+                               (this.result == ((Message)o).result));
                }
 
                public override int GetHashCode() {
index fe423dfd11f78d28c03bc11ca66409154ef2bb4a..1f22020214c20b5ee6ac386088a85d44f44fdcc2 100644 (file)
 //     Peter Bartok    pbartok@novell.com
 //
 //
-// $Revision: 1.1 $
+// $Revision: 1.2 $
 // $Modtime: $
 // $Log: MouseEventArgs.cs,v $
+// Revision 1.2  2004/08/11 22:20:59  pbartok
+// - Signature fixes
+//
 // Revision 1.1  2004/07/09 05:21:25  pbartok
 // - Initial check-in
 //
@@ -34,7 +37,7 @@
 // COMPLETE
 
 namespace System.Windows.Forms {
-       public class MouseEventArgs {
+       public class MouseEventArgs : EventArgs {
                private MouseButtons    buttons;
                private int             clicks;
                private int             delta;
index 256b4e25ded27cd944c185eb45f82090fcdc4517..edea6ee6cab8ae1a962a70c84356dd70c5c07a40 100644 (file)
 //     Peter Bartok    pbartok@novell.com
 //
 //
-// $Revision: 1.1 $
+// $Revision: 1.2 $
 // $Modtime: $
 // $Log: NativeWindow.cs,v $
+// Revision 1.2  2004/08/11 22:20:59  pbartok
+// - Signature fixes
+//
 // Revision 1.1  2004/07/09 05:21:25  pbartok
 // - Initial check-in
 //
@@ -57,12 +60,6 @@ namespace System.Windows.Forms
                                return window_handle;
                        }
                }
-
-               public bool IsHandleCreated {
-                       get {
-                               return (window_handle != IntPtr.Zero);
-                       }
-               }
                #endregion      // Public Instance Properties
 
                #region Public Static Methods
@@ -135,10 +132,9 @@ namespace System.Windows.Forms
                internal static IntPtr WndProc(IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) {
                        Message         m = new Message();
                        NativeWindow    window = null;
-
                        try {
                                window = (NativeWindow)window_collection[hWnd];
-                               m.Hwnd=hWnd;
+                               m.HWnd=hWnd;
                                m.Msg=(int)msg;
                                m.WParam=wParam;
                                m.LParam=lParam;
index b1dbbbc2da3d1af564c053818cdcb46e933dc825..42c564303975841bcacb86eadf0ecbc1765ac351 100644 (file)
 //     Peter Bartok    pbartok@novell.com
 //
 //
-// $Revision: 1.1 $
+// $Revision: 1.2 $
 // $Modtime: $
 // $Log: ScrollEventArgs.cs,v $
+// Revision 1.2  2004/08/11 22:20:59  pbartok
+// - Signature fixes
+//
 // Revision 1.1  2004/07/09 05:21:25  pbartok
 // - Initial check-in
 //
@@ -34,7 +37,7 @@
 // COMPLETE
 
 namespace System.Windows.Forms {
-       public class ScrollEventArgs {
+       public class ScrollEventArgs : EventArgs {
                #region Local Variables
                private ScrollEventType type;
                private int             new_value;
index 0c4479dca241b4b0a0a4f561eafd8ce9ca9c40bf..0bea0c35e65315197293278588ad7c169a1f154e 100644 (file)
 //     Peter Bartok    pbartok@novell.com
 //
 //
-// $Revision: 1.1 $
+// $Revision: 1.2 $
 // $Modtime: $
 // $Log: ScrollableControl.cs,v $
+// Revision 1.2  2004/08/11 22:20:59  pbartok
+// - Signature fixes
+//
 // Revision 1.1  2004/07/09 05:21:25  pbartok
 // - Initial check-in
 //
@@ -54,14 +57,20 @@ namespace System.Windows.Forms {
 
                #region Subclass DockPaddingEdges
                public class DockPaddingEdges : ICloneable {
-                       // Local Variables;
+                       #region DockPaddingEdges Local Variables
                        private int all;
                        private int left;
                        private int right;
                        private int top;
                        private int bottom;
+                       #endregion      // DockPaddingEdges Local Variables
+
+                       #region DockPaddingEdges Constructor
+                       private DockPaddingEdges() {
+                       }
+                       #endregion      // DockPaddingEdges Constructor
 
-                       // Public Instance Properties
+                       #region DockPaddingEdges Public Instance Properties
                        public int All {
                                get {
                                        return all;
@@ -112,19 +121,7 @@ namespace System.Windows.Forms {
                                }
                        }
 
-                       public static bool operator == (DockPaddingEdges obj_a, DockPaddingEdges obj_b) {
-                               if (    (obj_a.all == obj_b.all) && (obj_a.left == obj_b.left) &&
-                                       (obj_a.right == obj_b.right) && (obj_a.top == obj_b.top) && 
-                                       (obj_a.bottom == obj_b.bottom)) {
-                                               return true;
-                               }
-
-                               return false;
-                       }
-
-                       public static bool operator != (DockPaddingEdges obj_a, DockPaddingEdges obj_b) {
-                               return !(obj_a==obj_b);
-                       }
+                       #endregion      // DockPaddingEdges Public Instance Properties
 
                        // Public Instance Methods
                        public override bool Equals(object other) {
@@ -132,7 +129,13 @@ namespace System.Windows.Forms {
                                        return false;
                                }
 
-                               return (this==(DockPaddingEdges)other);
+                               if (    (this.all == ((DockPaddingEdges)other).all) && (this.left == ((DockPaddingEdges)other).left) &&
+                                       (this.right == ((DockPaddingEdges)other).right) && (this.top == ((DockPaddingEdges)other).top) && 
+                                       (this.bottom == ((DockPaddingEdges)other).bottom)) {
+                                       return true;
+                               }
+
+                               return false;
                        }
 
                        public override int GetHashCode() {
@@ -219,6 +222,7 @@ namespace System.Windows.Forms {
 
                public override Rectangle DisplayRectangle {
                        get {
+                               return base.DisplayRectangle;
                                throw new NotImplementedException();
                        }
                }
@@ -275,6 +279,8 @@ namespace System.Windows.Forms {
                }
 
                protected override void OnLayout(LayoutEventArgs levent) {
+                       base.OnLayout(levent);
+                       return;
                        throw new NotImplementedException();
                }
 
index c9a586837129efb3c94a06505efdfe010908f66f..79f02749076fe04d5f4133e2035fed0c2b880651 100644 (file)
 //     Peter Bartok    pbartok@novell.com
 //
 //
-// $Revision: 1.9 $
+// $Revision: 1.10 $
 // $Modtime: $
 // $Log: XplatUI.cs,v $
+// Revision 1.10  2004/08/11 22:20:59  pbartok
+// - Signature fixes
+//
 // Revision 1.9  2004/08/11 19:19:44  pbartok
 // - We had SetWindowPos and MoveWindow to set window positions and size,
 //   removed MoveWindow. We have GetWindowPos, so it made sense to keep
@@ -84,7 +87,7 @@ using System.Runtime.InteropServices;
 
 /// X11 Version
 namespace System.Windows.Forms {
-       public class XplatUI {
+       internal class XplatUI {
                #region Local Variables
                static XplatUIDriver            driver;
                static String                   default_class_name;
@@ -159,6 +162,10 @@ namespace System.Windows.Forms {
                        driver.Exit();
                }
 
+               internal static void EnableThemes() {
+                       driver.EnableThemes();
+               }
+
                internal static bool Text(IntPtr hWnd, string text) {
                        return driver.Text(hWnd, text);
                }
index 16e1ec5cd683e31cda2c819e02a7f540a96fd03d..95a084bfd35c672328412dc5547e7bfe30f55397 100644 (file)
 //     Peter Bartok    pbartok@novell.com
 //
 //
-// $Revision: 1.9 $
+// $Revision: 1.10 $
 // $Modtime: $
 // $Log: XplatUIDriver.cs,v $
+// Revision 1.10  2004/08/11 22:20:59  pbartok
+// - Signature fixes
+//
 // Revision 1.9  2004/08/11 19:19:44  pbartok
 // - We had SetWindowPos and MoveWindow to set window positions and size,
 //   removed MoveWindow. We have GetWindowPos, so it made sense to keep
@@ -64,7 +67,7 @@
 using System.Drawing;
 
 namespace System.Windows.Forms {
-       public abstract class XplatUIDriver {
+       internal abstract class XplatUIDriver {
                internal abstract IntPtr        InitializeDriver();
                internal abstract void          ShutdownDriver(IntPtr token);
                internal delegate IntPtr        WndProc(IntPtr hwnd, Msg msg, IntPtr wParam, IntPtr lParam);
@@ -119,6 +122,9 @@ namespace System.Windows.Forms {
 
                #region XplatUI Driver Methods
                internal abstract void Exit();
+
+               internal abstract void EnableThemes();
+
                internal abstract IntPtr CreateWindow(CreateParams cp);
                internal abstract IntPtr CreateWindow(IntPtr Parent, int X, int Y, int Width, int Height);
                internal abstract void DestroyWindow(IntPtr handle);
index 0b2a223ec6d92816b1e80efe49190d31f52851aa..8fe04bdf4910c986983a95d517c4272bd081d32e 100644 (file)
 //     Peter Bartok    pbartok@novell.com
 //
 //
-// $Revision: 1.12 $
+// $Revision: 1.13 $
 // $Modtime: $
 // $Log: XplatUIWin32.cs,v $
+// Revision 1.13  2004/08/11 22:20:59  pbartok
+// - Signature fixes
+//
 // Revision 1.12  2004/08/11 19:41:38  jordi
 // Fixes ClientRect
 //
@@ -79,7 +82,7 @@ using System.Runtime.InteropServices;
 
 /// Win32 Version
 namespace System.Windows.Forms {
-       public class XplatUIWin32 : XplatUIDriver {
+       internal class XplatUIWin32 : XplatUIDriver {
                #region Local Variables
                private static XplatUIWin32     instance;
                private static int              ref_count;
@@ -89,6 +92,8 @@ namespace System.Windows.Forms {
                internal static MouseButtons    mouse_state;
                internal static Point           mouse_position;
                internal static WndProc         wnd_proc;
+
+               internal static bool            themes_enabled;
                #endregion      // Local Variables
 
                #region Private Structs
@@ -320,9 +325,11 @@ namespace System.Windows.Forms {
                        ref_count=0;
 
                        // Now regular initialization
-                       key_state=Keys.None;
-                       mouse_state=MouseButtons.None;
-                       mouse_position=Point.Empty;
+                       key_state = Keys.None;
+                       mouse_state = MouseButtons.None;
+                       mouse_position = Point.Empty;
+
+                       themes_enabled = false;
 
                        // Prepare 'our' window class
                        wnd_proc = new WndProc(NativeWindow.WndProc);
@@ -434,6 +441,10 @@ namespace System.Windows.Forms {
                        Win32PostQuitMessage(0);
                }
 
+               internal override void EnableThemes() {
+                       themes_enabled=true;
+               }
+
                internal override IntPtr CreateWindow(CreateParams cp) {
                        IntPtr  WindowHandle;
                        IntPtr  ParentHandle;
@@ -556,7 +567,7 @@ namespace System.Windows.Forms {
                }
 
                internal override IntPtr DefWndProc(ref Message msg) {
-                       msg.Result=Win32DefWindowProc(msg.Hwnd, (Msg)msg.Msg, msg.WParam, msg.LParam);
+                       msg.Result=Win32DefWindowProc(msg.HWnd, (Msg)msg.Msg, msg.WParam, msg.LParam);
                        return msg.Result;
                }
 
index f3b5e4ab8315dbf6b449cd1d322ac7733c90f9a6..769e31227ab5205b07b3feb5411ba8237fb7e772 100644 (file)
 //     Peter Bartok    pbartok@novell.com
 //
 //
-// $Revision: 1.18 $
+// $Revision: 1.19 $
 // $Modtime: $
 // $Log: XplatUIX11.cs,v $
+// Revision 1.19  2004/08/11 22:20:59  pbartok
+// - Signature fixes
+//
 // Revision 1.18  2004/08/11 19:19:44  pbartok
 // - We had SetWindowPos and MoveWindow to set window positions and size,
 //   removed MoveWindow. We have GetWindowPos, so it made sense to keep
@@ -103,10 +106,11 @@ using System.Runtime.InteropServices;
 
 /// X11 Version
 namespace System.Windows.Forms {
-       public class XplatUIX11 : XplatUIDriver {
+       internal class XplatUIX11 : XplatUIDriver {
                #region Local Variables
                private static XplatUIX11       instance;
                private static int              ref_count;
+               private static bool             themes_enabled;
 
                private static IntPtr           DisplayHandle;          // X11 handle to display
                private static IntPtr           FosterParent;           // Container to hold child windows until their parent exists
@@ -224,6 +228,10 @@ namespace System.Windows.Forms {
                        Console.WriteLine("XplatUIX11.Exit");
                }
 
+               internal override void EnableThemes() {
+                       themes_enabled=true;
+               }
+
                internal override IntPtr CreateWindow(CreateParams cp) {
                        IntPtr  WindowHandle;
                        IntPtr  ParentHandle;