From 82e65fce9706e6a502de888969d4b2cdc1fbbd3c Mon Sep 17 00:00:00 2001 From: joncham Date: Wed, 3 May 2006 03:50:12 +0000 Subject: [PATCH] 2006-05-03 Jonathan Chambers * TextBox.cs: Add MWFCategoryAttributes * TextBoxBase.cs: Add MWFCategoryAttributes * Form.cs: Add MWFCategoryAttributes git-svn-id: svn+ssh://mono-cvs.ximian.com/source/trunk/mcs@60204 e3ebcda4-bce8-0310-ba0a-eca2169e7518 --- .../System.Windows.Forms/ChangeLog | 6 ++++++ .../Managed.Windows.Forms/System.Windows.Forms/Form.cs | 18 ++++++++++++++++++ .../System.Windows.Forms/TextBox.cs | 5 +++++ .../System.Windows.Forms/TextBoxBase.cs | 9 +++++++++ 4 files changed, 38 insertions(+) diff --git a/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog b/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog index 9808a5da43..91495cf9c6 100644 --- a/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog +++ b/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog @@ -1,5 +1,11 @@ 2006-05-03 Jonathan Chambers + * TextBox.cs: Add MWFCategoryAttributes + * TextBoxBase.cs: Add MWFCategoryAttributes + * Form.cs: Add MWFCategoryAttributes + +2006-05-03 Jonathan Chambers + * Control.cs: Add MWFCategoryAttributes * ScrollableControl.cs: Add MWFCategoryAttributes diff --git a/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs b/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs index 208b8d2f6b..90ada4fef1 100644 --- a/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs +++ b/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs @@ -211,6 +211,7 @@ namespace System.Windows.Forms { } [DefaultValue(true)] + [MWFCategory("Layout")] public bool AutoScale { get { return autoscale; @@ -277,6 +278,7 @@ namespace System.Windows.Forms { } [DefaultValue(true)] + [MWFCategory("Window Style")] public bool ControlBox { get { return control_box; @@ -331,6 +333,7 @@ namespace System.Windows.Forms { [DefaultValue(FormBorderStyle.Sizable)] [DispId(-504)] + [MWFCategory("Appearance")] public FormBorderStyle FormBorderStyle { get { return form_border_style; @@ -355,6 +358,7 @@ namespace System.Windows.Forms { } [DefaultValue(false)] + [MWFCategory("Window Style")] public bool HelpButton { get { return help_button; @@ -370,6 +374,7 @@ namespace System.Windows.Forms { [Localizable(true)] [AmbientValue(null)] + [MWFCategory("Window Style")] public Icon Icon { get { return icon; @@ -395,6 +400,7 @@ namespace System.Windows.Forms { } [DefaultValue(false)] + [MWFCategory("Window Style")] public bool IsMdiContainer { get { return mdi_container != null; @@ -441,6 +447,7 @@ namespace System.Windows.Forms { } [DefaultValue(true)] + [MWFCategory("Window Style")] public bool MaximizeBox { get { return maximize_box; @@ -459,6 +466,7 @@ namespace System.Windows.Forms { [DefaultValue("{Width=0, Height=0}")] [Localizable(true)] [RefreshProperties(RefreshProperties.Repaint)] + [MWFCategory("Layout")] public Size MaximumSize { get { return maximum_size; @@ -544,6 +552,7 @@ namespace System.Windows.Forms { } [DefaultValue(null)] + [MWFCategory("Window Style")] public MainMenu Menu { get { return menu; @@ -615,6 +624,7 @@ namespace System.Windows.Forms { } [DefaultValue(true)] + [MWFCategory("Window Style")] public bool MinimizeBox { get { return minimize_box; @@ -633,6 +643,7 @@ namespace System.Windows.Forms { [DefaultValue("{Width=0, Height=0}")] [Localizable(true)] [RefreshProperties(RefreshProperties.Repaint)] + [MWFCategory("Layout")] public Size MinimumSize { get { return minimum_size; @@ -659,6 +670,7 @@ namespace System.Windows.Forms { [DefaultValue(1D)] [TypeConverter(typeof(OpacityConverter))] + [MWFCategory("Window Style")] public double Opacity { get { return opacity; @@ -716,6 +728,7 @@ namespace System.Windows.Forms { } [DefaultValue(true)] + [MWFCategory("Window Style")] public bool ShowInTaskbar { get { return show_in_taskbar; @@ -745,6 +758,7 @@ namespace System.Windows.Forms { [MonoTODO("Trigger something when GripStyle is set")] [DefaultValue(SizeGripStyle.Auto)] + [MWFCategory("Window Style")] public SizeGripStyle SizeGripStyle { get { return size_grip_style; @@ -757,6 +771,7 @@ namespace System.Windows.Forms { [DefaultValue(FormStartPosition.WindowsDefaultLocation)] [Localizable(true)] + [MWFCategory("Layout")] public FormStartPosition StartPosition { get { return start_position; @@ -821,6 +836,7 @@ namespace System.Windows.Forms { } [DefaultValue(false)] + [MWFCategory("Window Style")] public bool TopMost { get { return topmost; @@ -835,6 +851,7 @@ namespace System.Windows.Forms { } } + [MWFCategory("Window Style")] public Color TransparencyKey { get { return transparency_key; @@ -850,6 +867,7 @@ namespace System.Windows.Forms { } [DefaultValue(FormWindowState.Normal)] + [MWFCategory("Layout")] public FormWindowState WindowState { get { if (IsHandleCreated) { diff --git a/class/Managed.Windows.Forms/System.Windows.Forms/TextBox.cs b/class/Managed.Windows.Forms/System.Windows.Forms/TextBox.cs index ed9bb0bacf..223ffa1015 100644 --- a/class/Managed.Windows.Forms/System.Windows.Forms/TextBox.cs +++ b/class/Managed.Windows.Forms/System.Windows.Forms/TextBox.cs @@ -100,6 +100,7 @@ namespace System.Windows.Forms { #endif [DefaultValue(false)] + [MWFCategory("Behavior")] public bool AcceptsReturn { get { return accepts_return; @@ -113,6 +114,7 @@ namespace System.Windows.Forms { } [DefaultValue(CharacterCasing.Normal)] + [MWFCategory("Behavior")] public CharacterCasing CharacterCasing { get { return character_casing; @@ -127,6 +129,7 @@ namespace System.Windows.Forms { [Localizable(true)] [DefaultValue('\0')] + [MWFCategory("Behavior")] public char PasswordChar { get { #if NET_2_0 @@ -151,6 +154,7 @@ namespace System.Windows.Forms { [DefaultValue(ScrollBars.None)] [Localizable(true)] + [MWFCategory("Appearance")] public ScrollBars ScrollBars { get { return (ScrollBars)scrollbars; @@ -188,6 +192,7 @@ namespace System.Windows.Forms { [DefaultValue(HorizontalAlignment.Left)] [Localizable(true)] + [MWFCategory("Appearance")] public HorizontalAlignment TextAlign { get { return alignment; diff --git a/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs b/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs index c576b94d10..c51db9fa3e 100644 --- a/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs +++ b/class/Managed.Windows.Forms/System.Windows.Forms/TextBoxBase.cs @@ -155,6 +155,7 @@ namespace System.Windows.Forms { #region Public Instance Properties [DefaultValue(false)] + [MWFCategory("Behavior")] public bool AcceptsTab { get { return accepts_tab; @@ -171,6 +172,7 @@ namespace System.Windows.Forms { [DefaultValue(true)] [Localizable(true)] [RefreshProperties(RefreshProperties.Repaint)] + [MWFCategory("Behavior")] public virtual bool AutoSize { get { return auto_size; @@ -217,6 +219,7 @@ namespace System.Windows.Forms { [DefaultValue(BorderStyle.Fixed3D)] [DispId(-504)] + [MWFCategory("Appearance")] public BorderStyle BorderStyle { get { return InternalBorderStyle; } set { @@ -244,6 +247,7 @@ namespace System.Windows.Forms { } [DefaultValue(true)] + [MWFCategory("Behavior")] public bool HideSelection { get { return hide_selection; @@ -267,6 +271,7 @@ namespace System.Windows.Forms { [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] [Editor("System.Windows.Forms.Design.StringArrayEditor, " + Consts.AssemblySystem_Design, typeof(System.Drawing.Design.UITypeEditor))] [Localizable(true)] + [MWFCategory("Layout")] public string[] Lines { get { string[] lines; @@ -303,6 +308,7 @@ namespace System.Windows.Forms { [DefaultValue(32767)] [Localizable(true)] + [MWFCategory("Behavior")] public virtual int MaxLength { get { if (max_length == 2147483646) { // We don't distinguish between single and multi-line limits @@ -336,6 +342,7 @@ namespace System.Windows.Forms { [DefaultValue(false)] [Localizable(true)] [RefreshProperties(RefreshProperties.All)] + [MWFCategory("Behavior")] public virtual bool Multiline { get { return multiline; @@ -380,6 +387,7 @@ namespace System.Windows.Forms { } [DefaultValue(false)] + [MWFCategory("Behavior")] public bool ReadOnly { get { return read_only; @@ -559,6 +567,7 @@ namespace System.Windows.Forms { [DefaultValue(true)] [Localizable(true)] + [MWFCategory("Behavior")] public bool WordWrap { get { return word_wrap; -- 2.11.4.GIT