ソースを参照

* System.Windows.Forms/AutoScaleMode.cs: Added new file for
the 2.0 enumeration.
* System.Windows.Forms/ContainerControl.cs: Added stub for
AutoScaleMode property; outputs a message to stderr to
encourage people familiar with its behaviour to implement
it. :-)
* System.Windows.Forms/Control.cs: Added stub for AutoScale;
outputs a message just like ContainerControl::AutoScaleMode.
* System.Windows.Forms.dll.sources: Added AutoScaleMode.cs to
the list of files to build.


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

Jonathan Gilbert 20 年 前
コミット
b95ea0bfd8

+ 13 - 0
mcs/class/Managed.Windows.Forms/ChangeLog

@@ -1,3 +1,16 @@
+2006-03-09  Jonathan Gilbert  <[email protected]>
+
+	* System.Windows.Forms/AutoScaleMode.cs: Added new file for
+	  the 2.0 enumeration.
+	* System.Windows.Forms/ContainerControl.cs: Added stub for
+	  AutoScaleMode property; outputs a message to stderr to
+	  encourage people familiar with its behaviour to implement
+	  it. :-)
+	* System.Windows.Forms/Control.cs: Added stub for AutoScale;
+	  outputs a message just like ContainerControl::AutoScaleMode.
+	* System.Windows.Forms.dll.sources: Added AutoScaleMode.cs to
+	  the list of files to build.
+
 2006-02-28  Matt Hargett  <[email protected]>
 
 	* System.Windows.Forms_test.dll.sources: Added ComboBoxTests.cs

+ 1 - 0
mcs/class/Managed.Windows.Forms/System.Windows.Forms.dll.sources

@@ -28,6 +28,7 @@ System.Windows.Forms/ArrangeDirection.cs
 System.Windows.Forms/ArrangeStartingPosition.cs
 System.Windows.Forms/AsyncMethodData.cs
 System.Windows.Forms/AsyncMethodResult.cs
+System.Windows.Forms/AutoScaleMode.cs
 System.Windows.Forms/AxHost.cs
 System.Windows.Forms/BaseCollection.cs
 System.Windows.Forms/BindingContext.cs

+ 15 - 1
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ContainerControl.cs

@@ -146,7 +146,21 @@ namespace System.Windows.Forms {
 				auto_scale_dimensions = value;
 			}
 		}
-#endif
+
+		// XXX: implement me!
+		AutoScaleMode auto_scale_mode;
+
+		public virtual AutoScaleMode AutoScaleMode {
+			get {
+				Console.Error.WriteLine("Unimplemented: ContainerControl::get_AutoScaleMode()");
+				return auto_scale_mode;
+			}
+			set {
+				Console.Error.WriteLine("Unimplemented: ContainerControl::set_AutoScaleMode(AutoScaleMode)");
+				auto_scale_mode = value;
+			}
+		}
+#endif // NET_2_0
 		#endregion
 
 		#region Protected Instance Methods

+ 16 - 0
mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs

@@ -1414,6 +1414,22 @@ namespace System.Windows.Forms
 			}
 		}
 
+#if NET_2_0
+		// XXX: Implement me!
+		bool auto_size;
+
+		public virtual bool AutoSize {
+			get {
+				Console.Error.WriteLine("Unimplemented: Control::get_AutoSize()");
+				return auto_size;
+			}
+			set {
+				Console.Error.WriteLine("Unimplemented: Control::set_AutoSize(bool)");
+				auto_size = value;
+			}
+		}
+#endif // NET_2_0
+
 		[DispId(-501)]
 		public virtual Color BackColor {
 			get {