Author: spouliot
Date: 2006-11-22 14:43:27 -0500 (Wed, 22 Nov 2006)
New Revision: 68365
Modified:
trunk/mcs/class/System.Drawing/System.Drawing.Imaging/ChangeLog
trunk/mcs/class/System.Drawing/System.Drawing.Imaging/ImageAttributes.cs
trunk/mcs/class/System.Drawing/System.Drawing.Imaging/ImageCodecInfo.cs
trunk/mcs/class/System.Drawing/System.Drawing.Imaging/Metafile.cs
trunk/mcs/class/System.Drawing/System.Drawing.Imaging/MetafileHeader.cs
Log:
2006-11-22 Sebastien Pouliot <[EMAIL PROTECTED]>
* ImageAttributes.cs: Better MonoTODO description.
* ImageCodecInfo.cs: Add MonoTODO description.
* Metafile.cs: Use a single MonoTODO on the class itself. MoMA will
detect and report that every ctors/methods/properties are throwing
NotImplementedException.
* MetafileHeader.cs: Use a single MonoTODO on the class itself. MoMA
will detect and report that every ctors/methods/properties are
throwing NotImplementedException.
Modified: trunk/mcs/class/System.Drawing/System.Drawing.Imaging/ChangeLog
===================================================================
--- trunk/mcs/class/System.Drawing/System.Drawing.Imaging/ChangeLog
2006-11-22 19:24:34 UTC (rev 68364)
+++ trunk/mcs/class/System.Drawing/System.Drawing.Imaging/ChangeLog
2006-11-22 19:43:27 UTC (rev 68365)
@@ -1,3 +1,14 @@
+2006-11-22 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * ImageAttributes.cs: Better MonoTODO description.
+ * ImageCodecInfo.cs: Add MonoTODO description.
+ * Metafile.cs: Use a single MonoTODO on the class itself. MoMA will
+ detect and report that every ctors/methods/properties are throwing
+ NotImplementedException.
+ * MetafileHeader.cs: Use a single MonoTODO on the class itself. MoMA
+ will detect and report that every ctors/methods/properties are
+ throwing NotImplementedException.
+
2006-10-31 Sebastien Pouliot <[EMAIL PROTECTED]>
* MetaHeader.cs: Fix layout (order is important in sequential structs)
Modified:
trunk/mcs/class/System.Drawing/System.Drawing.Imaging/ImageAttributes.cs
===================================================================
--- trunk/mcs/class/System.Drawing/System.Drawing.Imaging/ImageAttributes.cs
2006-11-22 19:24:34 UTC (rev 68364)
+++ trunk/mcs/class/System.Drawing/System.Drawing.Imaging/ImageAttributes.cs
2006-11-22 19:43:27 UTC (rev 68365)
@@ -186,7 +186,7 @@
}
}
- [MonoTODO ("colorMatrixFlag is ignored in libgdiplus")]
+ [MonoTODO ("colorMatrixFlag parameter is ignored in
libgdiplus")]
public void SetColorMatrix (ColorMatrix colorMatrix,
ColorMatrixFlag colorMatrixFlag)
{
IntPtr cm = ColorMatrix.Alloc (colorMatrix);
@@ -200,7 +200,7 @@
}
}
- [MonoTODO ("colorMatrixFlag is ignored in libgdiplus")]
+ [MonoTODO ("colorMatrixFlag parameter is ignored in
libgdiplus")]
public void SetColorMatrix (ColorMatrix colorMatrix,
ColorMatrixFlag colorMatrixFlag, ColorAdjustType colorAdjustType)
{
IntPtr cm = ColorMatrix.Alloc (colorMatrix);
@@ -287,7 +287,7 @@
}
- [MonoTODO ("grayMatrix is ignored in libgdiplus")]
+ [MonoTODO ("grayMatrix parameter is ignored in libgdiplus")]
public void SetColorMatrices (ColorMatrix newColorMatrix,
ColorMatrix grayMatrix)
{
IntPtr cm = ColorMatrix.Alloc (newColorMatrix);
@@ -307,7 +307,7 @@
}
}
- [MonoTODO ("grayMatrix and colorMatrixFlag are ignored in
libgdiplus")]
+ [MonoTODO ("grayMatrix and colorMatrixFlag parameters are
ignored in libgdiplus")]
public void SetColorMatrices (ColorMatrix newColorMatrix,
ColorMatrix grayMatrix, ColorMatrixFlag flags)
{
IntPtr cm = ColorMatrix.Alloc (newColorMatrix);
@@ -327,8 +327,8 @@
}
}
- [MonoTODO ("grayMatrix and colorMatrixFlag are ignored in
libgdiplus")]
- public void SetColorMatrices(ColorMatrix newColorMatrix,
ColorMatrix grayMatrix, ColorMatrixFlag mode, ColorAdjustType type)
+ [MonoTODO ("grayMatrix and colorMatrixFlag parameters are
ignored in libgdiplus")]
+ public void SetColorMatrices (ColorMatrix newColorMatrix,
ColorMatrix grayMatrix, ColorMatrixFlag mode, ColorAdjustType type)
{
IntPtr cm = ColorMatrix.Alloc (newColorMatrix);
try {
Modified:
trunk/mcs/class/System.Drawing/System.Drawing.Imaging/ImageCodecInfo.cs
===================================================================
--- trunk/mcs/class/System.Drawing/System.Drawing.Imaging/ImageCodecInfo.cs
2006-11-22 19:24:34 UTC (rev 68364)
+++ trunk/mcs/class/System.Drawing/System.Drawing.Imaging/ImageCodecInfo.cs
2006-11-22 19:43:27 UTC (rev 68365)
@@ -198,7 +198,7 @@
set { signatureMasks = value; }
}
- [MonoTODO]
+ [MonoTODO ("Property value is ignored.")]
[CLSCompliant(false)]
public byte[][] SignaturePatterns
{
Modified: trunk/mcs/class/System.Drawing/System.Drawing.Imaging/Metafile.cs
===================================================================
--- trunk/mcs/class/System.Drawing/System.Drawing.Imaging/Metafile.cs
2006-11-22 19:24:34 UTC (rev 68364)
+++ trunk/mcs/class/System.Drawing/System.Drawing.Imaging/Metafile.cs
2006-11-22 19:43:27 UTC (rev 68365)
@@ -35,6 +35,7 @@
namespace System.Drawing.Imaging {
+ [MonoTODO ("Metafiles, both WMF and EMF formats, aren't supported.")]
[Serializable]
#if ONLY_1_1
[ComVisible (false)]
@@ -43,238 +44,200 @@
public sealed class Metafile : Image {
// constructors
- [MonoTODO]
+
public Metafile (Stream stream)
{
throw new NotImplementedException ();
}
- [MonoTODO]
public Metafile (string filename)
{
throw new NotImplementedException ();
}
- [MonoTODO]
public Metafile (IntPtr henhmetafile, bool deleteEmf)
{
throw new NotImplementedException ();
}
- [MonoTODO]
public Metafile (IntPtr referenceHtc, EmfType emfType)
{
throw new NotImplementedException ();
}
- [MonoTODO]
public Metafile (IntPtr referenceHtc, Rectangle frameRect)
{
throw new NotImplementedException ();
}
- [MonoTODO]
public Metafile (IntPtr referenceHtc, RectangleF frameRect)
{
throw new NotImplementedException ();
}
- [MonoTODO]
public Metafile (IntPtr hmetafile, WmfPlaceableFileHeader
wmfHeader)
{
throw new NotImplementedException ();
}
- [MonoTODO]
public Metafile (Stream stream, IntPtr referenceHtc)
{
throw new NotImplementedException ();
}
- [MonoTODO]
public Metafile (String fileName, IntPtr referenceHtc)
{
throw new NotImplementedException ();
}
- [MonoTODO]
public Metafile (IntPtr referenceHdc, EmfType emfType, string
description)
{
throw new NotImplementedException ();
}
- [MonoTODO]
public Metafile (IntPtr referenceHdc, Rectangle frameRect,
MetafileFrameUnit frameUnit)
{
throw new NotImplementedException ();
}
- [MonoTODO]
public Metafile (IntPtr referenceHdc, RectangleF frameRect,
MetafileFrameUnit frameUnit)
{
throw new NotImplementedException ();
}
- [MonoTODO]
public Metafile (IntPtr hmetafile, WmfPlaceableFileHeader
wmfHeader, bool deleteWmf)
{
throw new NotImplementedException ();
}
- [MonoTODO]
public Metafile (Stream stream, IntPtr referenceHdc, EmfType
type)
{
throw new NotImplementedException ();
}
- [MonoTODO]
public Metafile (Stream stream, IntPtr referenceHdc, Rectangle
frameRect)
{
throw new NotImplementedException ();
}
- [MonoTODO]
public Metafile (Stream stream, IntPtr referenceHdc, RectangleF
frameRect)
{
throw new NotImplementedException ();
}
- [MonoTODO]
public Metafile (string fileName, IntPtr referenceHdc, EmfType
type)
{
throw new NotImplementedException ();
}
- [MonoTODO]
public Metafile (string fileName, IntPtr referenceHdc,
Rectangle frameRect)
{
throw new NotImplementedException ();
}
- [MonoTODO]
public Metafile (string fileName, IntPtr referenceHdc,
RectangleF frameRect)
{
throw new NotImplementedException ();
}
- [MonoTODO]
public Metafile (IntPtr referenceHdc, Rectangle frameRect,
MetafileFrameUnit frameUnit, EmfType type)
{
throw new NotImplementedException ();
}
- [MonoTODO]
public Metafile (IntPtr referenceHdc, RectangleF frameRect,
MetafileFrameUnit frameUnit, EmfType type)
{
throw new NotImplementedException ();
}
- [MonoTODO]
public Metafile (Stream stream, IntPtr referenceHtc, EmfType
type, string description)
{
throw new NotImplementedException ();
}
- [MonoTODO]
public Metafile (Stream stream, IntPtr referenceHdc, Rectangle
frameRect, MetafileFrameUnit frameUnit)
{
throw new NotImplementedException ();
}
- [MonoTODO]
public Metafile (Stream stream, IntPtr referenceHdc, RectangleF
frameRect, MetafileFrameUnit frameUnit)
{
throw new NotImplementedException ();
}
- [MonoTODO]
public Metafile (string fileName, IntPtr referenceHdc, EmfType
type, string description)
{
throw new NotImplementedException ();
}
- [MonoTODO]
public Metafile (string fileName, IntPtr referenceHdc,
Rectangle frameRect, MetafileFrameUnit frameUnit)
{
throw new NotImplementedException ();
}
- [MonoTODO]
public Metafile (string fileName, IntPtr referenceHdc,
RectangleF frameRect, MetafileFrameUnit frameUnit)
{
throw new NotImplementedException ();
}
- [MonoTODO]
public Metafile (IntPtr referenceHdc, Rectangle frameRect,
MetafileFrameUnit frameUnit, EmfType type, string description)
{
throw new NotImplementedException ();
}
- [MonoTODO]
public Metafile (IntPtr referenceHdc, RectangleF frameRect,
MetafileFrameUnit frameUnit, EmfType type, string description)
{
throw new NotImplementedException ();
}
- [MonoTODO]
public Metafile (Stream stream, IntPtr referenceHdc, Rectangle
frameRect, MetafileFrameUnit frameUnit, EmfType type)
{
throw new NotImplementedException ();
}
- [MonoTODO]
public Metafile (Stream stream, IntPtr referenceHdc, RectangleF
frameRect, MetafileFrameUnit frameUnit, EmfType type)
{
throw new NotImplementedException ();
}
- [MonoTODO]
public Metafile (string fileName, IntPtr referenceHdc,
Rectangle frameRect, MetafileFrameUnit frameUnit, EmfType type)
{
throw new NotImplementedException ();
}
- [MonoTODO]
public Metafile (string fileName, IntPtr referenceHdc,
Rectangle frameRect, MetafileFrameUnit frameUnit, string description)
{
throw new NotImplementedException ();
}
- [MonoTODO]
public Metafile (string fileName, IntPtr referenceHdc,
RectangleF frameRect, MetafileFrameUnit frameUnit, EmfType type)
{
throw new NotImplementedException ();
}
- [MonoTODO]
public Metafile (string fileName, IntPtr referenceHdc,
RectangleF frameRect, MetafileFrameUnit frameUnit, string description)
{
throw new NotImplementedException ();
}
- [MonoTODO]
public Metafile (Stream stream, IntPtr referenceHdc, Rectangle
frameRect, MetafileFrameUnit frameUnit, EmfType type,
string description)
{
throw new NotImplementedException ();
}
- [MonoTODO]
public Metafile (Stream stream, IntPtr referenceHdc, RectangleF
frameRect, MetafileFrameUnit frameUnit, EmfType type,
string description)
{
throw new NotImplementedException ();
}
- [MonoTODO]
public Metafile (string fileName, IntPtr referenceHdc,
Rectangle frameRect, MetafileFrameUnit frameUnit, EmfType type,
string description)
{
throw new NotImplementedException ();
}
- [MonoTODO]
public Metafile (string fileName, IntPtr referenceHdc,
RectangleF frameRect, MetafileFrameUnit frameUnit, EmfType type,
string description)
{
@@ -282,47 +245,40 @@
}
// methods
- [MonoTODO]
- public IntPtr GetHenhmetafile()
+
+ public IntPtr GetHenhmetafile ()
{
throw new NotImplementedException ();
}
- public MetafileHeader GetMetafileHeader()
+ public MetafileHeader GetMetafileHeader ()
{
return GetMetafileHeader (GetHenhmetafile () );
}
- [MonoTODO]
- public static MetafileHeader GetMetafileHeader(IntPtr
henhmetafile)
+ public static MetafileHeader GetMetafileHeader (IntPtr
henhmetafile)
{
throw new NotImplementedException ();
}
- [MonoTODO]
- public static MetafileHeader GetMetafileHeader(Stream stream)
+ public static MetafileHeader GetMetafileHeader (Stream stream)
{
throw new NotImplementedException ();
}
- [MonoTODO]
- public static MetafileHeader GetMetafileHeader(string fileName)
+ public static MetafileHeader GetMetafileHeader (string fileName)
{
throw new NotImplementedException ();
}
- [MonoTODO]
- public static MetafileHeader GetMetafileHeader(IntPtr
henhmetafile, WmfPlaceableFileHeader wmfHeader)
+ public static MetafileHeader GetMetafileHeader (IntPtr
henhmetafile, WmfPlaceableFileHeader wmfHeader)
{
throw new NotImplementedException ();
}
- [MonoTODO]
- public void PlayRecord(EmfPlusRecordType recordType, int flags,
int dataSize, byte[] datawmfHeader)
+ public void PlayRecord (EmfPlusRecordType recordType, int
flags, int dataSize, byte[] datawmfHeader)
{
throw new NotImplementedException ();
}
- // properties
}
-
}
Modified:
trunk/mcs/class/System.Drawing/System.Drawing.Imaging/MetafileHeader.cs
===================================================================
--- trunk/mcs/class/System.Drawing/System.Drawing.Imaging/MetafileHeader.cs
2006-11-22 19:24:34 UTC (rev 68364)
+++ trunk/mcs/class/System.Drawing/System.Drawing.Imaging/MetafileHeader.cs
2006-11-22 19:43:27 UTC (rev 68365)
@@ -1,15 +1,13 @@
//
// System.Drawing.Imaging.MetafileHeader.cs
//
-// (C) 2002 Ximian, Inc. http://www.ximian.com
// Author: Everaldo Canuto
// eMail: [EMAIL PROTECTED]
// Dennis Hayes ([EMAIL PROTECTED])
//
-
+// (C) 2002 Ximian, Inc. http://www.ximian.com
+// Copyright (C) 2004, 2006 Novell, Inc (http://www.novell.com)
//
-// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
-//
// 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
@@ -29,17 +27,16 @@
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
-using System;
+
using System.Runtime.InteropServices;
namespace System.Drawing.Imaging {
- [MonoTODO]
+ [MonoTODO ("Metafiles, both WMF and EMF formats, aren't supported.")]
#if !TARGET_JVM
[StructLayout(LayoutKind.Sequential)]
#endif
- public sealed class MetafileHeader
- {
+ public sealed class MetafileHeader {
//constructor
internal MetafileHeader()
@@ -48,97 +45,87 @@
}
// methods
- [MonoTODO]
- public bool IsDisplay() {
+
+ public bool IsDisplay ()
+ {
throw new NotImplementedException ();
}
- [MonoTODO]
- public bool IsEmf() {
+ public bool IsEmf ()
+ {
throw new NotImplementedException ();
}
- [MonoTODO]
- public bool IsEmfOrEmfPlus() {
+ public bool IsEmfOrEmfPlus ()
+ {
throw new NotImplementedException ();
}
- [MonoTODO]
- public bool IsEmfPlus() {
+ public bool IsEmfPlus ()
+ {
throw new NotImplementedException ();
}
- [MonoTODO]
- public bool IsEmfPlusDual() {
+ public bool IsEmfPlusDual ()
+ {
throw new NotImplementedException ();
}
- [MonoTODO]
- public bool IsEmfPlusOnly() {
+ public bool IsEmfPlusOnly ()
+ {
throw new NotImplementedException ();
}
- [MonoTODO]
- public bool IsWmf() {
+ public bool IsWmf ()
+ {
throw new NotImplementedException ();
}
- [MonoTODO]
- public bool IsWmfPlaceable() {
+ public bool IsWmfPlaceable ()
+ {
throw new NotImplementedException ();
}
// properties
- [MonoTODO]
+
public Rectangle Bounds {
get { throw new NotImplementedException (); }
}
- [MonoTODO]
public float DpiX {
get { throw new NotImplementedException (); }
}
- [MonoTODO]
public float DpiY {
get { throw new NotImplementedException (); }
}
- [MonoTODO]
public int EmfPlusHeaderSize {
get { throw new NotImplementedException (); }
}
- [MonoTODO]
public int LogicalDpiX {
get { throw new NotImplementedException (); }
}
- [MonoTODO]
public int LogicalDpiY {
get { throw new NotImplementedException (); }
}
- [MonoTODO]
public int MetafileSize {
get { throw new NotImplementedException (); }
}
- [MonoTODO]
public MetafileType Type {
get { throw new NotImplementedException (); }
}
- [MonoTODO]
public int Version {
get { throw new NotImplementedException (); }
}
- [MonoTODO]
public MetaHeader WmfHeader {
get { throw new NotImplementedException (); }
}
-
}
-
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches