- Added various attributes
authorPeter Dennis Bartok <pbartok@mono-cvs.ximian.com>
Tue, 4 Jan 2005 22:57:05 +0000 (22:57 -0000)
committerPeter Dennis Bartok <pbartok@mono-cvs.ximian.com>
Tue, 4 Jan 2005 22:57:05 +0000 (22:57 -0000)
- Implemented FeatureSupport and added Themes feature support
  to our theme interface
- Added ICommandExecutor.cs, IDataGridColumnStyleEditingNotificationService.cs,
  IFeatureSupport.cs, IFileReaderService.cs, AmbientProperties.cs,
  NavigateEventArgs.cs, NavigateEventHandler.cs, FeatureSupport.cs,
  OSFeature.cs, ListBindingConverter.cs, ErrorBlinkStyle.cs

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

41 files changed:
mcs/class/Managed.Windows.Forms/System.Windows.Forms/AccessibleSelection.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/AmbientProperties.cs [new file with mode: 0644]
mcs/class/Managed.Windows.Forms/System.Windows.Forms/AnchorStyles.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/Appearance.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/BaseCollection.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/Binding.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/BindingContext.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/BindingsCollection.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/Border3DSide.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/Border3DStyle.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/BorderStyle.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/Button.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/DockStyle.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/DragAction.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/DragEventArgs.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ErrorBlinkStyle.cs [new file with mode: 0644]
mcs/class/Managed.Windows.Forms/System.Windows.Forms/FeatureSupport.cs [new file with mode: 0644]
mcs/class/Managed.Windows.Forms/System.Windows.Forms/GiveFeedbackEventArgs.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/HelpEventArgs.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/HorizontalAlignment.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ICommandExecutor.cs [new file with mode: 0644]
mcs/class/Managed.Windows.Forms/System.Windows.Forms/IDataGridColumnStyleEditingNotificationService.cs [new file with mode: 0644]
mcs/class/Managed.Windows.Forms/System.Windows.Forms/IDataObject.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/IFeatureSupport.cs [new file with mode: 0644]
mcs/class/Managed.Windows.Forms/System.Windows.Forms/IFileReaderService.cs [new file with mode: 0644]
mcs/class/Managed.Windows.Forms/System.Windows.Forms/KeyEventArgs.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/KeyPressEventArgs.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListBindingConverter.cs [new file with mode: 0644]
mcs/class/Managed.Windows.Forms/System.Windows.Forms/MouseEventArgs.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/NavigateEventArgs.cs [new file with mode: 0644]
mcs/class/Managed.Windows.Forms/System.Windows.Forms/NavigateEventHandler.cs [new file with mode: 0644]
mcs/class/Managed.Windows.Forms/System.Windows.Forms/OSFeature.cs [new file with mode: 0644]
mcs/class/Managed.Windows.Forms/System.Windows.Forms/PaintEventArgs.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ProgressBar.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/QueryAccessibilityHelpEventArgs.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/QueryContinueDragEventArgs.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ScrollEventArgs.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ScrollEventType.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/SplitterEventArgs.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/Theme.cs
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs

index d5a20a7bf5136250b208fe28b5f9a24d9d591781..fd7ea3be8e2af62f9424b09d14de25831efd99d0 100644 (file)
@@ -27,6 +27,7 @@
 // COMPLETE
 
 namespace System.Windows.Forms {
+       [Flags]
        public enum AccessibleSelection {
                None            = 0x00000000,
                TakeFocus       = 0x00000001,
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/AmbientProperties.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/AmbientProperties.cs
new file mode 100644 (file)
index 0000000..e9004f1
--- /dev/null
@@ -0,0 +1,87 @@
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+// Copyright (c) 2005 Novell, Inc. (http://www.novell.com)
+//
+// Authors:
+//     Peter Bartok    (pbartok@novell.com)
+//
+//
+
+// COMPLETE
+
+using System.Drawing;
+
+namespace System.Windows.Forms {
+       public sealed class AmbientProperties {
+               #region Local Variables
+               private Color   fore_color;
+               private Color   back_color;
+               private Font    font;
+               private Cursor  cursor;
+               #endregion      // Local Variables
+
+               #region Public Constructors
+               public AmbientProperties() {
+               }
+               #endregion      // Public Constructors
+
+               #region Public Instance Properties
+               public Color BackColor {
+                       get {
+                               return back_color;
+                       }
+
+                       set {
+                               back_color = value;
+                       }
+               }
+
+               public Cursor Cursor {
+                       get {
+                               return cursor;
+                       }
+
+                       set {
+                               cursor = value;
+                       }
+               }
+
+               public Font Font {
+                       get {
+                               return font;
+                       }
+
+                       set {
+                               font = value;
+                       }
+               }
+
+               public Color ForeColor {
+                       get {
+                               return fore_color;
+                       }
+
+                       set {
+                               fore_color = value;
+                       }
+               }
+               #endregion      // Public Instance Properties
+       }
+}
index 5c6358d044aadf7bf6393d48c965b8ba6777f397..89d430f7d262d565369e3697410b3cc4507c73d1 100644 (file)
@@ -17,7 +17,7 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-// Copyright (c) 2004 Novell, Inc.
+// Copyright (c) 2004-2005 Novell, Inc.
 //
 // Authors:
 //     Peter Bartok    pbartok@novell.com
 
 // COMPLETE
 
-namespace System.Windows.Forms {
+using System.ComponentModel;
 
+namespace System.Windows.Forms {
        [Flags]
        [Serializable]
+       [Editor("System.Windows.Forms.Design.AnchorEditor, System.Design", typeof(System.Drawing.Design.UITypeEditor))]
        public enum AnchorStyles {
                None    = 0x00000000,
                Top     = 0x00000001,
index 902282e9b34f2859a1a38c96cc81b3d9575bfb24..02becb9b2976f0c6a0a227c75b1962f33e9b4ab6 100644 (file)
@@ -17,7 +17,7 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-// Copyright (c) 2004 Novell, Inc.
+// Copyright (c) 2004-2005 Novell, Inc.
 //
 // Authors:
 //     Peter Bartok    pbartok@novell.com
 
 // COMPLETE
 
+using System.Runtime.InteropServices;
+
 namespace System.Windows.Forms {
+       [ComVisible(true)]
        public enum Appearance {
                Normal          = 0,
                Button          = 1
index 9aa60f9c6c046bd478869fdbf0fd6886ca3fdd10..ea8f1e47036f745694fc37e28ea53849ae60a97c 100644 (file)
@@ -17,7 +17,7 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-// Copyright (c) 2004 Novell, Inc.
+// Copyright (c) 2004-2005 Novell, Inc.
 //
 // Authors:
 //     Peter Bartok    pbartok@novell.com
@@ -28,6 +28,7 @@
 
 using System;
 using System.Collections;
+using System.ComponentModel;
 
 namespace System.Windows.Forms {
        public class BaseCollection : MarshalByRefObject, ICollection, IEnumerable {
@@ -40,24 +41,32 @@ namespace System.Windows.Forms {
                #endregion      // Public Constructors
 
                #region Public Instance Properties
+               [Browsable(false)]
+               [EditorBrowsable(EditorBrowsableState.Advanced)]
                public virtual int Count {
                        get {
                                return this.list.Count;
                        }
                }
 
+               [Browsable(false)]
+               [EditorBrowsable(EditorBrowsableState.Advanced)]
                public bool IsReadOnly {
                        get {
                                return false;
                        }
                }
 
+               [Browsable(false)]
+               [EditorBrowsable(EditorBrowsableState.Advanced)]
                public bool IsSynchronized {
                        get {
                                return false;
                        }
                }
 
+               [Browsable(false)]
+               [EditorBrowsable(EditorBrowsableState.Advanced)]
                public object SyncRoot {
                        get {
                                return this;
index a7f69612bcd0bb73b77e4f90e19f7af9e2eb99ad..a255cc719602278646bc8ad55d8976bd458f5606 100644 (file)
@@ -17,7 +17,7 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-// Copyright (c) 2004 Novell, Inc.
+// Copyright (c) 2004-2005 Novell, Inc.
 //
 // Authors:
 //     Peter Bartok    pbartok@novell.com
 
 // COMPLETE
 
+using System.ComponentModel;
+
 namespace System.Windows.Forms {
+       [TypeConverter(typeof(ListBindingConverter))]
        public class Binding {
                internal string                 property_name;
                internal object                 data_source;
@@ -56,6 +59,7 @@ namespace System.Windows.Forms {
                        }
                }
 
+               [DefaultValue("")]
                public Control Control {
                        get {
                                return this.control;
@@ -74,6 +78,7 @@ namespace System.Windows.Forms {
                        }
                }
 
+               [DefaultValue("")]
                public string PropertyName {
                        get {
                                return this.property_name;
index f3a29baead24e4a5a91f8f1e0bd52886df774bd5..69d3a50960afdc13d608d1881ed5148c8b8c6c3d 100644 (file)
@@ -17,7 +17,7 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-// Copyright (c) 2004 Novell, Inc.
+// Copyright (c) 2004-2005 Novell, Inc.
 //
 // Authors:
 //     Peter Bartok    pbartok@novell.com
@@ -29,6 +29,7 @@ using System.Collections;
 using System.ComponentModel;
 
 namespace System.Windows.Forms {
+       [DefaultEvent("CollectionChanged")]
        public class BindingContext : ICollection, IEnumerable {
                #region Public Constructors
                public BindingContext() {
index 8bac23cdfa0ab2f58ebd7129dd878fe5e07632f2..8412097d3e0d8f1e2ae3df59e72417f7942ff31e 100644 (file)
@@ -17,7 +17,7 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-// Copyright (c) 2004 Novell, Inc.
+// Copyright (c) 2004-2005 Novell, Inc.
 //
 // Authors:
 //     Peter Bartok    pbartok@novell.com
@@ -31,6 +31,7 @@ using System.Collections;
 using System.ComponentModel;
 
 namespace System.Windows.Forms {
+       [DefaultEvent("CollectionChanged")]
        public class BindingsCollection : BaseCollection {
                #region Public Constructors
                internal BindingsCollection () {
index 5023584f246edf7e067e1912bf5a593171accd54..ae739e9e40cfde4ba61f3e89f05b6748baf955f4 100644 (file)
@@ -17,7 +17,7 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-// Copyright (c) 2004 Novell, Inc.
+// Copyright (c) 2004-2005 Novell, Inc.
 //
 // Authors:
 //     Peter Bartok    pbartok@novell.com
 
 // COMPLETE
 
-namespace System.Windows.Forms {
+using System.Runtime.InteropServices;
 
+namespace System.Windows.Forms {
+       [ComVisible(true)]
        [Flags]
        public enum Border3DSide {
                Left    = 0x00000001,
index cd522efe2d1f175695ac854968ab88b9f599295c..ecf9b828bdfffe6c6fd877317df40af5e81f0f16 100644 (file)
@@ -17,7 +17,7 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-// Copyright (c) 2004 Novell, Inc.
+// Copyright (c) 2004-2005 Novell, Inc.
 //
 // Authors:
 //     Peter Bartok    pbartok@novell.com
 
 // COMPLETE
 
+using System.Runtime.InteropServices;
+
 namespace System.Windows.Forms {
+       [ComVisible(true)]
        public enum Border3DStyle {
                RaisedOuter     = 1,
                SunkenOuter     = 2,
index 7b9dfe276ef805d8a2f607d8e3b9abd1b75093da..b4bb1eecb456e11eb7b1c74c9ee3e71720684236 100644 (file)
@@ -17,7 +17,7 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-// Copyright (c) 2004 Novell, Inc.
+// Copyright (c) 2004-2005 Novell, Inc.
 //
 // Authors:
 //     Peter Bartok    pbartok@novell.com
 
 // COMPLETE
 
+using System.Runtime.InteropServices;
+
 namespace System.Windows.Forms {
+       [ComVisible(true)]
        public enum BorderStyle {
                None            = 0,
                FixedSingle     = 1,
index f1b3620ae786a7d94ed488bbd73b6fcbeae43113..3c9d566c3d3aa84f56e2ddbf85c33bb9a8085e9b 100644 (file)
@@ -18,7 +18,7 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-// Copyright (c) 2004 Novell, Inc.
+// Copyright (c) 2004-2005 Novell, Inc.
 //
 // Authors:
 //     Peter Bartok    pbartok@novell.com
@@ -26,6 +26,7 @@
 
 // COMPLETE
 
+using System.ComponentModel;
 using System.Drawing;
 using System.Drawing.Text;
 
@@ -42,6 +43,7 @@ namespace System.Windows.Forms {
                #endregion      // Public Constructors
 
                #region Public Instance Properties
+               [DefaultValue(DialogResult.None)]
                public DialogResult DialogResult {              // IButtonControl
                        get {
                                return dialog_result;
index 876e3d19a07fa7d248d279cb26dc9c381ff8f15d..b2740261a23fe2ca55142d0a96439f1cccac69c2 100644 (file)
@@ -17,7 +17,7 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-// Copyright (c) 2004 Novell, Inc.
+// Copyright (c) 2004-2005 Novell, Inc.
 //
 // Authors:
 //     Peter Bartok    pbartok@novell.com
 
 // COMPLETE
 
+using System.ComponentModel;
+
 namespace System.Windows.Forms {
+       [Editor("System.Windows.Forms.Design.DockEditor, System.Design", typeof(System.Drawing.Design.UITypeEditor))]
        public enum DockStyle {
                None    = 0,
                Top     = 1,
index f751c108c2f8d3068ca2d89dd4fe514b9d9e9904..73313e26f1da77ceeab4411a16632313137939b3 100644 (file)
@@ -17,7 +17,7 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-// Copyright (c) 2004 Novell, Inc.
+// Copyright (c) 2004-2005 Novell, Inc.
 //
 // Authors:
 //     Peter Bartok    pbartok@novell.com
 
 // COMPLETE
 
+using System.Runtime.InteropServices;
+
 namespace System.Windows.Forms {
+       [ComVisible(true)]
        public enum DragAction {
                Continue        = 0,
                Drop            = 1,
index 0a145b54610bcc92f4a52957b42e045d90b822b0..95ab010e8394de0a4c9a6245f146787575eac9c1 100644 (file)
@@ -17,7 +17,7 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-// Copyright (c) 2004 Novell, Inc.
+// Copyright (c) 2004-2005 Novell, Inc.
 //
 // Authors:
 //     Peter Bartok    pbartok@novell.com
 
 // COMPLETE
 
+using System.Runtime.InteropServices;
+
 namespace System.Windows.Forms {
+       [ComVisible(true)]
        public class DragEventArgs : EventArgs {
                private int             x;
                private int             y;
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ErrorBlinkStyle.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ErrorBlinkStyle.cs
new file mode 100644 (file)
index 0000000..8115a3d
--- /dev/null
@@ -0,0 +1,35 @@
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+// Copyright (c) 2005 Novell, Inc. (http://www.novell.com)
+//
+// Authors:
+//     Peter Bartok    (pbartok@novell.com)
+//
+//
+
+// COMPLETE
+
+namespace System.Windows.Forms {
+       public enum ErrorBlinkStyle {
+               BlinkIfDifferentError   = 0,
+               AlwaysBlink             = 1,
+               NeverBlink              = 2
+       }
+}
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/FeatureSupport.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/FeatureSupport.cs
new file mode 100644 (file)
index 0000000..3420d69
--- /dev/null
@@ -0,0 +1,116 @@
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+// Copyright (c) 2005 Novell, Inc. (http://www.novell.com)
+//
+// Authors:
+//     Peter Bartok    (pbartok@novell.com)
+//
+//
+
+// COMPLETE
+
+using System.Reflection;
+
+namespace System.Windows.Forms {
+       public abstract class FeatureSupport : IFeatureSupport {
+               #region Public Constructors
+               protected FeatureSupport() {
+               }
+               #endregion      // Public Constructors
+
+               #region Private and Internal Methods
+               private static IFeatureSupport FeatureObject(string class_name) {
+                       Type    class_type;
+
+                       class_type = Type.GetType(class_name);
+                       if ((class_type != null) && (typeof(IFeatureSupport).IsAssignableFrom(class_type))) {
+                               ConstructorInfo ctor;
+
+                               ctor = class_type.GetConstructor(Type.EmptyTypes);
+                               if (ctor != null) {
+                                       return ((IFeatureSupport)ctor.Invoke(new Object[0]));
+                               }
+                       }
+
+                       return null;
+               }
+               #endregion      // Private and Internal Methods
+
+               #region Public Static Methods
+               public static Version GetVersionPresent(string featureClassName, string featureConstName) {
+                       IFeatureSupport obj;
+
+                       obj = FeatureObject(featureClassName);
+                       if (obj != null) {
+                               return obj.GetVersionPresent(featureConstName);
+                       }
+                       return null;
+               }
+
+               public static bool IsPresent(string featureClassName, string featureConstName) {
+                       IFeatureSupport obj;
+
+                       obj = FeatureObject(featureClassName);
+                       if (obj != null) {
+                               return obj.IsPresent(featureConstName);
+                       }
+
+                       return false;
+               }
+
+               public static bool IsPresent(string featureClassName, string featureConstName, Version minimumVersion) {
+                       IFeatureSupport obj;
+
+                       obj = FeatureObject(featureClassName);
+                       if (obj != null) {
+                               return obj.IsPresent(featureConstName, minimumVersion);
+                       }
+
+                       return false;
+               }
+               #endregion      // Public Static Methods
+
+               #region Public Instance Methods
+               public abstract Version GetVersionPresent(object feature);
+
+               public virtual bool IsPresent(object feature) {
+                       if (GetVersionPresent(feature) != null) {
+                               return true;
+                       }
+
+                       return false;
+               }
+
+               public virtual bool IsPresent(object feature, Version minimumVersion) {
+                       Version version;
+                       bool    retval;
+
+                       retval = false;
+                       version = GetVersionPresent(feature);
+
+                       if ((version != null) && (version >= minimumVersion)) {
+                               retval = true;
+                       }
+
+                       return retval;
+               }
+               #endregion      // Public Instance Methods
+       }
+}
index f30feae83478f40ed0d94b59c39277042ae42919..cdee8d167482ceb93aa3afa0b3574849f6728d99 100644 (file)
@@ -17,7 +17,7 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-// Copyright (c) 2004 Novell, Inc.
+// Copyright (c) 2004-2005 Novell, Inc.
 //
 // Authors:
 //     Peter Bartok    pbartok@novell.com
 
 // COMPLETE
 
+using System.Runtime.InteropServices;
+
 namespace System.Windows.Forms {
+       [ComVisible(true)]
        public class GiveFeedbackEventArgs : EventArgs {
                private DragDropEffects effect;
                private bool            use_default_cursors;
index 2781d971bf9ba0643e088adbd166cd9ad5d505fa..5c635b0123bd80a101bec3a2c7f2352304f11a4e 100644 (file)
@@ -17,7 +17,7 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-// Copyright (c) 2004 Novell, Inc.
+// Copyright (c) 2004-2005 Novell, Inc.
 //
 // Authors:
 //     Peter Bartok    pbartok@novell.com
 
 using System.Drawing;
 
+using System.Runtime.InteropServices;
+
 namespace System.Windows.Forms {
+       [ComVisible(true)]
        public class HelpEventArgs : EventArgs {
                private Point   mouse_position;
                private bool    event_handled;
index 3aaee19115bc3e2906b90e5c799f278cdfdaf6e5..ce577bc0f74b87142ead2ae28329ac83bd7c2c33 100644 (file)
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-// Copyright (c) 2004 Novell, Inc.
+// Copyright (c) 2004-2005 Novell, Inc.
 //
 // Authors:
 //      Jackson Harper (jackson@ximian.com)
 //
 
 
-namespace System.Windows.Forms {
+using System.Runtime.InteropServices;
 
+namespace System.Windows.Forms {
+       [ComVisible(true)]
        public enum HorizontalAlignment {
                Left,
                Right,
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ICommandExecutor.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ICommandExecutor.cs
new file mode 100644 (file)
index 0000000..0a8b761
--- /dev/null
@@ -0,0 +1,34 @@
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+// Copyright (c) 2005 Novell, Inc. (http://www.novell.com)
+//
+// Authors:
+//     Peter Bartok    (pbartok@novell.com)
+//
+
+// COMPLETE
+
+namespace System.Windows.Forms {
+       public interface ICommandExecutor {
+               #region Public Instance Methods
+               void Execute();
+               #endregion      // Public Instance Methods
+       }
+}
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/IDataGridColumnStyleEditingNotificationService.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/IDataGridColumnStyleEditingNotificationService.cs
new file mode 100644 (file)
index 0000000..20a8901
--- /dev/null
@@ -0,0 +1,35 @@
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+// Copyright (c) 2005 Novell, Inc. (http://www.novell.com)
+//
+// Authors:
+//     Peter Bartok    (pbartok@novell.com)
+//
+//
+
+// COMPLETE
+
+namespace System.Windows.Forms {
+       public interface IDataGridColumnStyleEditingNotificationService {
+               #region Public Instance Methods
+               void ColumnStartedEditing(Control editingControl);
+               #endregion      // Public Instance Methods
+       }
+}
index 08733df6c0ce640d5a88d428e012ec6e9e7a823a..4a975a13dc5eb0aebea91a9df02a2f2aaed60837 100644 (file)
@@ -17,7 +17,7 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-// Copyright (c) 2004 Novell, Inc.
+// Copyright (c) 2004-2005 Novell, Inc.
 //
 // Authors:
 //     Peter Bartok    pbartok@novell.com
 
 // COMPLETE
 
+using System.Runtime.InteropServices;
+
 namespace System.Windows.Forms {
+       [ComVisible(true)]
        public interface IDataObject {
                #region Public Instance Methods
                object GetData(string format);
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/IFeatureSupport.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/IFeatureSupport.cs
new file mode 100644 (file)
index 0000000..45717a9
--- /dev/null
@@ -0,0 +1,37 @@
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+// Copyright (c) 2005 Novell, Inc. (http://www.novell.com)
+//
+// Authors:
+//     Peter Bartok    (pbartok@novell.com)
+//
+//
+
+// COMPLETE
+
+namespace System.Windows.Forms {
+       public interface IFeatureSupport {
+               #region Public Instance Methods
+               Version GetVersionPresent(object feature);
+               bool IsPresent(object feature);
+               bool IsPresent(object feature, Version minimumVersion);
+               #endregion      // Public Instance Methods
+       }
+}
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/IFileReaderService.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/IFileReaderService.cs
new file mode 100644 (file)
index 0000000..fd276f7
--- /dev/null
@@ -0,0 +1,37 @@
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+// Copyright (c) 2005 Novell, Inc. (http://www.novell.com)
+//
+// Authors:
+//     Peter Bartok    (pbartok@novell.com)
+//
+//
+
+// COMPLETE
+
+using System.IO;
+
+namespace System.Windows.Forms {
+       public interface IFileReaderService {
+               #region Public Instance Methods
+               Stream OpenFileFromSource(string relativePath);
+               #endregion      // Public Instance Methods
+       }
+}
index f83147c3842606bcb6f95307e6984592c3f3e5e7..acc4fa0058868aea60c017fc852e62bb86c42633 100644 (file)
@@ -17,7 +17,7 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-// Copyright (c) 2004 Novell, Inc.
+// Copyright (c) 2004-2005 Novell, Inc.
 //
 // Authors:
 //     Peter Bartok    pbartok@novell.com
 
 // COMPLETE
 
+using System.Runtime.InteropServices;
+
 namespace System.Windows.Forms {
+       [ComVisible(true)]
        public class KeyEventArgs : EventArgs {
                private Keys    key_data;
                private bool    event_handled;
index dc1056d158e26872bd80dbcf124bed7a20c41b0e..6907480be21ad7b9b7731e7fe20d7bd199cf0ccc 100644 (file)
@@ -17,7 +17,7 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-// Copyright (c) 2004 Novell, Inc.
+// Copyright (c) 2004-2005 Novell, Inc.
 //
 // Authors:
 //     Peter Bartok    pbartok@novell.com
 
 // COMPLETE
 
+using System.Runtime.InteropServices;
+
 namespace System.Windows.Forms {
+       [ComVisible(true)]
        public class KeyPressEventArgs : EventArgs {
                private char    key_char;
                private bool    event_handled;
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListBindingConverter.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ListBindingConverter.cs
new file mode 100644 (file)
index 0000000..adef6d5
--- /dev/null
@@ -0,0 +1,60 @@
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+// Copyright (c) 2005 Novell, Inc. (http://www.novell.com)
+//
+// Authors:
+//     Peter Bartok    (pbartok@novell.com)
+//
+//
+
+// NOT COMPLETE
+
+using System.ComponentModel;
+
+namespace System.Windows.Forms {
+       public class ListBindingConverter : TypeConverter {
+               #region Public Constructors
+               public ListBindingConverter() {
+               }
+               #endregion      // Public Constructors
+
+               #region Public Instance Methods
+               [MonoTODO]
+               public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType) {\r
+                       return base.CanConvertTo (context, destinationType);\r
+               }\r
+
+               [MonoTODO]
+               public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType) {\r
+                       return base.ConvertTo (context, culture, value, destinationType);\r
+               }\r
+\r
+               [MonoTODO]
+               public override object CreateInstance(ITypeDescriptorContext context, System.Collections.IDictionary propertyValues) {\r
+                       return base.CreateInstance (context, propertyValues);\r
+               }\r
+\r
+               [MonoTODO]
+               public override bool GetCreateInstanceSupported(ITypeDescriptorContext context) {\r
+                       return base.GetCreateInstanceSupported (context);\r
+               }\r
+               #endregion      // Public Instance Methods
+       }
+}
index 0cf349ed4136615e449e81362544e6ebf5a30016..138d64d988e2dc91fa0fc49b476d658c70ae0a00 100644 (file)
@@ -17,7 +17,7 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-// Copyright (c) 2004 Novell, Inc.
+// Copyright (c) 2004-2005 Novell, Inc.
 //
 // Authors:
 //     Peter Bartok    pbartok@novell.com
 
 // COMPLETE
 
+using System.Runtime.InteropServices;
+
 namespace System.Windows.Forms {
+       [ComVisible(true)]
        public class MouseEventArgs : EventArgs {
                private MouseButtons    buttons;
                private int             clicks;
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NavigateEventArgs.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NavigateEventArgs.cs
new file mode 100644 (file)
index 0000000..d7d86f0
--- /dev/null
@@ -0,0 +1,52 @@
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+// Copyright (c) 2005 Novell, Inc. (http://www.novell.com)
+//
+// Authors:
+//     Peter Bartok    (pbartok@novell.com)
+//
+//
+
+// COMPLETE
+
+using System.Runtime.InteropServices;
+
+namespace System.Windows.Forms {
+       [ComVisible(true)]
+       public class NavigateEventArgs {
+               #region Local Variables
+               private bool    forward;
+               #endregion      // Local Variables
+
+               #region Public Constructors
+               public NavigateEventArgs(bool isForward) {
+                       forward = isForward;
+               }
+               #endregion      // Public Constructors
+
+               #region Public Instance Properties
+               public bool Forward {
+                       get {
+                               return forward;
+                       }
+               }
+               #endregion      // Public Instance Properties
+       }
+}
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NavigateEventHandler.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NavigateEventHandler.cs
new file mode 100644 (file)
index 0000000..b68bf5f
--- /dev/null
@@ -0,0 +1,32 @@
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+// Copyright (c) 2005 Novell, Inc.
+//
+// Authors:
+//     Peter Bartok    pbartok@novell.com
+//
+//
+
+
+// COMPLETE
+
+namespace System.Windows.Forms {
+       public delegate void NavigateEventHandler (object sender, NavigateEventArgs ne);
+}
diff --git a/mcs/class/Managed.Windows.Forms/System.Windows.Forms/OSFeature.cs b/mcs/class/Managed.Windows.Forms/System.Windows.Forms/OSFeature.cs
new file mode 100644 (file)
index 0000000..ea70fff
--- /dev/null
@@ -0,0 +1,63 @@
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+// Copyright (c) 2005 Novell, Inc. (http://www.novell.com)
+//
+// Authors:
+//     Peter Bartok    (pbartok@novell.com)
+//
+//
+
+// COMPLETE
+
+namespace System.Windows.Forms {
+       public class OSFeature : FeatureSupport {
+               #region Local Variables
+               private static OSFeature        feature = new OSFeature();
+               #endregion      // Local Variables
+
+               #region Protected Constructors
+               protected OSFeature() {
+                       
+               }
+               #endregion      // Protected Constructors
+
+               #region Public Static Fields
+               public static readonly object LayeredWindows;
+               public static readonly object Themes;
+               #endregion      // Public Static Fields
+
+               #region Public Static Properties
+               public static OSFeature Feature {
+                       get {
+                               return  feature;
+                       }
+               }
+               #endregion      // Public Static Properties
+
+               #region Public Instance Methods
+               public override Version GetVersionPresent(object feature) {\r
+                       if (feature == Themes) {\r
+                               return ThemeEngine.Current.Version;\r
+                       }\r
+                       return null;\r
+               }\r
+               #endregion      // Public Instance Methods
+       }
+}
index ba39564d53a579d0fa5d43f48c51f343c8be4ca2..1dd70127d99de68314da48c06900c85976b4c10e 100644 (file)
@@ -29,7 +29,7 @@
 using System.Drawing;
 
 namespace System.Windows.Forms {
-       public class PaintEventArgs : EventArgs {
+       public class PaintEventArgs : EventArgs, IDisposable {
                private Graphics        graphics;
                private Rectangle       clip_rectangle;
 
index 728641dfddf6f79ec7e12e7a893395ad206d2395..41eab550dd9179bd66ee5425414cccad3ef13600 100644 (file)
@@ -331,12 +331,6 @@ namespace System.Windows.Forms
                        UpdateAreas ();
                }
 
-               /* Disable background painting to avoid flickering, since we do our painting*/
-               protected override void OnPaintBackground (PaintEventArgs pevent)
-               {
-                       // None
-               }
-
                private void Draw ()
                {
                        ThemeEngine.Current.DrawProgressBar (DeviceContext, this.ClientRectangle, this);
index 06c5ffe0a18a4e0fc8766949d275b771f2c0b2dd..4d0e9c4fbb1218d40c74bf698e1c293859a01a34 100644 (file)
@@ -17,7 +17,7 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-// Copyright (c) 2004 Novell, Inc.
+// Copyright (c) 2004-2005 Novell, Inc.
 //
 // Authors:
 //     Peter Bartok    pbartok@novell.com
 
 // COMPLETE
 
+using System.Runtime.InteropServices;
+
 namespace System.Windows.Forms {
+       [ComVisible(true)]
        public class QueryAccessibilityHelpEventArgs : EventArgs {
                private string  help_namespace;
                private string  help_string;
index 78c599b17369c2aed4067973655ad883eb66d8d0..64c4d2b4c12cf6f17ffe57aa9e1744db86841f69 100644 (file)
@@ -17,7 +17,7 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-// Copyright (c) 2004 Novell, Inc.
+// Copyright (c) 2004-2005 Novell, Inc.
 //
 // Authors:
 //     Peter Bartok    pbartok@novell.com
 
 // COMPLETE
 
+using System.Runtime.InteropServices;
+
 namespace System.Windows.Forms {
+       [ComVisible(true)]
        public class QueryContinueDragEventArgs : EventArgs {
                private int             key_state;
                private bool            escape_pressed;
index 010f252a91ebb7b469650fabaaf50e52ff3cad14..12ecbafdf781809d97326f17787d2c99808d5af9 100644 (file)
@@ -17,7 +17,7 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-// Copyright (c) 2004 Novell, Inc.
+// Copyright (c) 2004-2005 Novell, Inc.
 //
 // Authors:
 //     Peter Bartok    pbartok@novell.com
 
 // COMPLETE
 
+using System.Runtime.InteropServices;
+
 namespace System.Windows.Forms {
+       [ComVisible(true)]
        public class ScrollEventArgs : EventArgs {
                #region Local Variables
                private ScrollEventType type;
index 3ce5f2413ca71754d2a1fc52b1f179229dcd37b4..b3f8c4a222c13a98b8d3466f6e0dcab923dc5617 100644 (file)
@@ -17,7 +17,7 @@
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-// Copyright (c) 2004 Novell, Inc.
+// Copyright (c) 2004-2005 Novell, Inc.
 //
 // Authors:
 //     Peter Bartok    pbartok@novell.com
 
 // COMPLETE
 
+using System.Runtime.InteropServices;
+
 namespace System.Windows.Forms {
+       [ComVisible(true)]
        public enum ScrollEventType {
                SmallDecrement  = 0,
                SmallIncrement  = 1,
index 52b0b57ccb46460ea98dc6929119cdde553473a2..973162a1191c11b8cce777efadf965e0416a3d3e 100644 (file)
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-// Copyright (c) 2004 Novell, Inc. (http://www.novell.com)
+// Copyright (c) 2004-2005 Novell, Inc. (http://www.novell.com)
 //
 // Authors:
-// Aleksandar Dezelin  adezelin@beotel.net
+//     Aleksandar Dezelin      adezelin@beotel.net
 //
 
 using System;
+using System.Runtime.InteropServices;
 
-namespace System.Windows.Forms
-{
-
+namespace System.Windows.Forms {
+       [ComVisible(true)]
        public class SplitterEventArgs : EventArgs
        {
                #region Private fields
index 2592242d8dcda6525090f35d5ff6c47909feffa5..a9e2f7eed00e065759e6baae01daeebc59b2fca0 100644 (file)
@@ -87,7 +87,12 @@ namespace System.Windows.Forms
                protected Color defaultWindowBackColor;
                protected Color defaultWindowForeColor;         
                internal SystemResPool ResPool = new SystemResPool ();
-       
+
+               /* OS Feature support */
+               public abstract Version Version {
+                       get;
+               }
+
                /* Default properties */                
                public virtual Color ColorScrollbar {
                        get {return GetColor (XplatUIWin32.GetSysColorIndex.COLOR_SCROLLBAR);}
index 17eede6ddc2ccfc5b07d017d865df231463372e3..783374a3d56601289b55eee6e3dab97722317612 100644 (file)
@@ -36,6 +36,12 @@ namespace System.Windows.Forms
 
        internal class ThemeWin32Classic : Theme
        {               
+               public override Version Version {\r
+                       get {\r
+                               return new Version(0, 1, 0, 0);\r
+                       }\r
+               }\r
+
 
                /* Default colors for Win32 classic theme */
                uint [] theme_colors = {                                                        /* AARRGGBB */