Author: pbartok
Date: 2005-06-15 23:38:55 -0400 (Wed, 15 Jun 2005)
New Revision: 46076

Added:
   
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MWFCategoryAttribute.cs
   
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MWFDescriptionAttribute.cs
Modified:
   trunk/mcs/class/Managed.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/SWF.csproj
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.dll.sources
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ButtonBase.cs
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
   trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ScrollBar.cs
Log:
2005-06-15  Peter Bartok  <[EMAIL PROTECTED]>

        * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer 
support)
        * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer 
support)
        * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
        * Control.cs: Added some MWFCategory and MWFDescription attributes
        * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes

2005-06-15  Peter Bartok  <[EMAIL PROTECTED]>

        * System.Windows.Forms.dll.sources: Added MWFCategoryAttribute.cs and
          MWFDescriptionAttribute.cs
        * SWF.csproj: Updated



Modified: trunk/mcs/class/Managed.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/ChangeLog     2005-06-15 23:01:19 UTC 
(rev 46075)
+++ trunk/mcs/class/Managed.Windows.Forms/ChangeLog     2005-06-16 03:38:55 UTC 
(rev 46076)
@@ -1,3 +1,9 @@
+2005-06-15  Peter Bartok  <[EMAIL PROTECTED]>
+
+       * System.Windows.Forms.dll.sources: Added MWFCategoryAttribute.cs and
+         MWFDescriptionAttribute.cs
+       * SWF.csproj: Updated
+
 2005-06-15  Alexander Olk  <[EMAIL PROTECTED]>
 
        * System.Windows.Forms.dll.sources: Added Mime.cs and

Modified: trunk/mcs/class/Managed.Windows.Forms/SWF.csproj
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/SWF.csproj    2005-06-15 23:01:19 UTC 
(rev 46075)
+++ trunk/mcs/class/Managed.Windows.Forms/SWF.csproj    2005-06-16 03:38:55 UTC 
(rev 46076)
@@ -1194,6 +1194,16 @@
                     BuildAction = "Compile"
                 />
                 <File
+                    RelPath = "System.Windows.Forms\Mime.cs"
+                    SubType = "Code"
+                    BuildAction = "Compile"
+                />
+                <File
+                    RelPath = "System.Windows.Forms\MimeGenerated.cs"
+                    SubType = "Code"
+                    BuildAction = "Compile"
+                />
+                <File
                     RelPath = "System.Windows.Forms\MonthCalendar.cs"
                     SubType = "Code"
                     BuildAction = "Compile"
@@ -1214,6 +1224,16 @@
                     BuildAction = "Compile"
                 />
                 <File
+                    RelPath = "System.Windows.Forms\MWFCategoryAttribute.cs"
+                    SubType = "Code"
+                    BuildAction = "Compile"
+                />
+                <File
+                    RelPath = "System.Windows.Forms\MWFDescriptionAttribute.cs"
+                    SubType = "Code"
+                    BuildAction = "Compile"
+                />
+                <File
                     RelPath = "System.Windows.Forms\NativeWindow.cs"
                     SubType = "Code"
                     BuildAction = "Compile"

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ButtonBase.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ButtonBase.cs    
2005-06-15 23:01:19 UTC (rev 46075)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ButtonBase.cs    
2005-06-16 03:38:55 UTC (rev 46076)
@@ -152,6 +152,7 @@
                #region Public Instance Properties
                [Localizable(true)]
                [DefaultValue(FlatStyle.Standard)]
+               [MWFDescription("Determines look of button"), 
MWFCategory("Appearance")]
                public FlatStyle FlatStyle {
                        get {
                                return flat_style;
@@ -164,6 +165,7 @@
                }
                
                [Localizable(true)]
+               [MWFDescription("Sets image to be displayed on button face"), 
MWFCategory("Appearance")]
                public Image Image {
                        get {
                                return image;
@@ -177,6 +179,7 @@
 
                [Localizable(true)]
                [DefaultValue(ContentAlignment.MiddleCenter)]
+               [MWFDescription("Sets the alignment of the image to be 
displayed on button face"), MWFCategory("Appearance")]
                public ContentAlignment ImageAlign {
                        get {
                                return image_alignment;
@@ -192,6 +195,7 @@
                [DefaultValue(-1)]
                [Editor("System.Windows.Forms.Design.ImageIndexEditor, " + 
Consts.AssemblySystem_Design, typeof(System.Drawing.Design.UITypeEditor))]
                [TypeConverter(typeof(ImageIndexConverter))]
+               [MWFDescription("Index of image to display, if ImageList is 
used for button face images"), MWFCategory("Appearance")]
                public int ImageIndex {
                        get {
                                if (image_list==null) {
@@ -207,6 +211,7 @@
                }
 
                [DefaultValue(null)]
+               [MWFDescription("ImageList used for ImageIndex"), 
MWFCategory("Appearance")]
                public ImageList ImageList {
                        get {
                                return image_list;
@@ -250,6 +255,7 @@
 
                [Localizable(true)]
                [DefaultValue(ContentAlignment.MiddleCenter)]
+               [MWFDescription("Alignment for button text"), 
MWFCategory("Appearance")]
                public virtual ContentAlignment TextAlign {
                        get {
                                return text_alignment;

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2005-06-15 23:01:19 UTC (rev 46075)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog        
2005-06-16 03:38:55 UTC (rev 46076)
@@ -1,3 +1,11 @@
+2005-06-15  Peter Bartok  <[EMAIL PROTECTED]>
+
+       * MWFCategoryAttribute.cs: Added (Needed for PropertyGrid designer 
support)
+       * MWFDescriptionAttribute.cs: Added (Needed for PropertyGrid designer 
support)
+       * ButtonBase.cs: Added MWFCategory and MWFDescription attributes
+       * Control.cs: Added some MWFCategory and MWFDescription attributes
+       * ScrollBar.cs: Added some MWFCategory and MWFDescription attributes
+
 2005-06-15  Alexander Olk  <[EMAIL PROTECTED]>
 
        * Mime.cs, MimeGenerated.cs: First draft of MWF mime stuff, see Mime.cs 
for

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs       
2005-06-15 23:01:19 UTC (rev 46075)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs       
2005-06-16 03:38:55 UTC (rev 46076)
@@ -1049,6 +1049,7 @@
                }
 
                [DefaultValue(AccessibleRole.Default)]
+               [MWFDescription("Role of the control"), 
MWFCategory("Accessibility")]
                public AccessibleRole AccessibleRole {
                        get {
                                return AccessibilityObject.role;
@@ -3968,6 +3969,7 @@
                [Browsable(false)]
                public event ControlEventHandler        ControlRemoved;
 
+               [MWFDescription("Fired when the cursor for the control has been 
changed"), MWFCategory("PropertyChanged")]
                public event EventHandler               CursorChanged;
                public event EventHandler               DockChanged;
                public event EventHandler               DoubleClick;

Added: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MWFCategoryAttribute.cs
===================================================================
--- 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MWFCategoryAttribute.cs
  2005-06-15 23:01:19 UTC (rev 46075)
+++ 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MWFCategoryAttribute.cs
  2005-06-16 03:38:55 UTC (rev 46076)
@@ -0,0 +1,50 @@
+// 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    ([EMAIL PROTECTED])
+//
+//
+
+// COMPLETE
+
+using System.ComponentModel;
+using System.Windows.Forms;
+
+namespace System {
+       [AttributeUsage (AttributeTargets.All, AllowMultiple=false)]
+       internal sealed class MWFCategoryAttribute : 
System.ComponentModel.CategoryAttribute {
+               #region Constructors
+               public MWFCategoryAttribute() : base() {
+               }
+
+               public MWFCategoryAttribute(string category) : base(category) {
+               }
+               #endregion      // Constructors
+
+               #region Methods
+               protected override string GetLocalizedString(string value) {
+                       return Locale.GetText(value);
+               }
+
+               #endregion      // Methods
+       }
+}

Added: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MWFDescriptionAttribute.cs
===================================================================
--- 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MWFDescriptionAttribute.cs
       2005-06-15 23:01:19 UTC (rev 46075)
+++ 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/MWFDescriptionAttribute.cs
       2005-06-16 03:38:55 UTC (rev 46076)
@@ -0,0 +1,51 @@
+// 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    ([EMAIL PROTECTED])
+//
+//
+
+// COMPLETE
+
+using System.ComponentModel;
+using System.Windows.Forms;
+
+namespace System {
+       [AttributeUsage (AttributeTargets.All, AllowMultiple=false)]
+       internal sealed class MWFDescriptionAttribute : 
System.ComponentModel.DescriptionAttribute {
+               #region Constructors
+               public MWFDescriptionAttribute() : base() {
+               }
+
+               public MWFDescriptionAttribute(string category) : 
base(category) {
+               }
+               #endregion      // Constructors
+
+               #region Properties
+               public override string Description {
+                       get {
+                               return Locale.GetText(base.Description);
+                       }
+               }
+               #endregion      // Properties
+       }
+}

Modified: 
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ScrollBar.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ScrollBar.cs     
2005-06-15 23:01:19 UTC (rev 46075)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ScrollBar.cs     
2005-06-16 03:38:55 UTC (rev 46076)
@@ -296,6 +296,7 @@
 
                [DefaultValue (10)]
                [RefreshProperties(RefreshProperties.Repaint)]
+               [MWFDescription("Scroll amount when clicking in the scroll 
area"), MWFCategory("Behaviour")]
                public int LargeChange {
                        get {
                                if (large_change > maximum)
@@ -321,6 +322,7 @@
 
                [DefaultValue (100)]
                [RefreshProperties(RefreshProperties.Repaint)]
+               [MWFDescription("Highest value for scrollbar"), 
MWFCategory("Behaviour")]
                public int Maximum {
                        get { return maximum; }
                        set {
@@ -342,6 +344,7 @@
 
                [DefaultValue (0)]
                [RefreshProperties(RefreshProperties.Repaint)]
+               [MWFDescription("Smallest value for scrollbar"), 
MWFCategory("Behaviour")]
                public int Minimum {
                        get { return minimum; }
                        set {
@@ -362,6 +365,7 @@
                }
 
                [DefaultValue (1)]
+               [MWFDescription("Scroll amount when clicking scroll arrows"), 
MWFCategory("Behaviour")]
                public int SmallChange {
                        get { return small_change; }
                        set {
@@ -393,6 +397,7 @@
 
                [Bindable(true)]
                [DefaultValue (0)]
+               [MWFDescription("Current value for scrollbar"), 
MWFCategory("Behaviour")]
                public int Value {
                        get { return position; }
                        set {

Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.dll.sources
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.dll.sources      
2005-06-15 23:01:19 UTC (rev 46075)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.dll.sources      
2005-06-16 03:38:55 UTC (rev 46076)
@@ -226,6 +226,8 @@
 System.Windows.Forms/MouseButtons.cs
 System.Windows.Forms/MouseEventArgs.cs
 System.Windows.Forms/MouseEventHandler.cs
+System.Windows.Forms/MWFCategoryAttribute.cs
+System.Windows.Forms/MWFDescriptionAttribute.cs
 System.Windows.Forms/NativeWindow.cs
 System.Windows.Forms/NavigateEventArgs.cs
 System.Windows.Forms/NavigateEventHandler.cs

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to