// COMPLETE
namespace System.Windows.Forms {
+ [Flags]
public enum AccessibleSelection {
None = 0x00000000,
TakeFocus = 0x00000001,
--- /dev/null
+// 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
+ }
+}
// 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,
// 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
// 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;
using System.Collections;
+using System.ComponentModel;
namespace System.Windows.Forms {
public class BaseCollection : MarshalByRefObject, ICollection, IEnumerable {
#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;
// 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;
}
}
+ [DefaultValue("")]
public Control Control {
get {
return this.control;
}
}
+ [DefaultValue("")]
public string PropertyName {
get {
return this.property_name;
// 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.ComponentModel;
namespace System.Windows.Forms {
+ [DefaultEvent("CollectionChanged")]
public class BindingContext : ICollection, IEnumerable {
#region Public Constructors
public BindingContext() {
// 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.ComponentModel;
namespace System.Windows.Forms {
+ [DefaultEvent("CollectionChanged")]
public class BindingsCollection : BaseCollection {
#region Public Constructors
internal BindingsCollection () {
// 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,
// 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,
// 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,
// 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;
using System.Drawing;
using System.Drawing.Text;
#endregion // Public Constructors
#region Public Instance Properties
+ [DefaultValue(DialogResult.None)]
public DialogResult DialogResult { // IButtonControl
get {
return dialog_result;
// 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,
// 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,
// 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;
--- /dev/null
+// 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
+ }
+}
--- /dev/null
+// 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
+ }
+}
// 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;
// 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;
// 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,
--- /dev/null
+// 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
+ }
+}
--- /dev/null
+// 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
+ }
+}
// 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);
--- /dev/null
+// 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
+ }
+}
--- /dev/null
+// 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
+ }
+}
// 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;
// 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;
--- /dev/null
+// 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
+ }
+}
// 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;
--- /dev/null
+// 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
+ }
+}
--- /dev/null
+// 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);
+}
--- /dev/null
+// 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
+ }
+}
using System.Drawing;
namespace System.Windows.Forms {
- public class PaintEventArgs : EventArgs {
+ public class PaintEventArgs : EventArgs, IDisposable {
private Graphics graphics;
private Rectangle clip_rectangle;
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);
// 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;
// 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;
// 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;
// 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,
// 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
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);}
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 */