Permalink
Browse files

More required code for first test target

  • Loading branch information...
1 parent aa488e6 commit 4bc50595fedeaf30b61d13f187dc2626fb878712 @spouliot spouliot committed Dec 1, 2011
View
@@ -3,16 +3,19 @@ SMCS=$(MONOTOUCH_PREFIX)/usr/bin/smcs
MONO_SYSD=../mono/mcs/class/System.Drawing
MONO_SOURCES = \
- $(MONO_SYSD)/../../build/common/Locale.cs \
- $(MONO_SYSD)/System.Drawing/ImageConverter.cs \
- $(MONO_SYSD)/System.Drawing/ImageFormatConverter.cs \
- $(MONO_SYSD)/System.Drawing/ToolboxBitmapAttribute.cs \
- $(MONO_SYSD)/System.Drawing.Drawing2D/Blend.cs \
- $(MONO_SYSD)/System.Drawing.Drawing2D/ColorBlend.cs \
- $(MONO_SYSD)/System.Drawing.Drawing2D/CompostingMode.cs \
- $(MONO_SYSD)/System.Drawing.Drawing2D/MatrixOrder.cs \
- $(MONO_SYSD)/System.Drawing.Imaging/ImageFormat.cs \
- $(MONO_SYSD)/System.Drawing.Imaging/PixelFormat.cs
+ $(MONO_SYSD)/../../build/common/Locale.cs \
+ $(MONO_SYSD)/System.Drawing/ImageConverter.cs \
+ $(MONO_SYSD)/System.Drawing/ImageFormatConverter.cs \
+ $(MONO_SYSD)/System.Drawing/StringAligment.cs \
+ $(MONO_SYSD)/System.Drawing/SystemColors.cs \
+ $(MONO_SYSD)/System.Drawing/ToolboxBitmapAttribute.cs \
+ $(MONO_SYSD)/System.Drawing.Drawing2D/Blend.cs \
+ $(MONO_SYSD)/System.Drawing.Drawing2D/ColorBlend.cs \
+ $(MONO_SYSD)/System.Drawing.Drawing2D/CompostingMode.cs \
+ $(MONO_SYSD)/System.Drawing.Drawing2D/MatrixOrder.cs \
+ $(MONO_SYSD)/System.Drawing.Imaging/ImageFormat.cs \
+ $(MONO_SYSD)/System.Drawing.Imaging/PixelFormat.cs \
+ $(MONO_SYSD)/System.Drawing.Printing/PrintPageEventHandler.cs \
MONOMAC_EXTRA_SOURCES = \
$(MONO_SYSD)/System.Drawing/Point.cs \
@@ -23,29 +26,35 @@ MONOMAC_EXTRA_SOURCES = \
$(MONO_SYSD)/System.Drawing/SizeF.cs
SOURCES = \
- ./System.Drawing/Bitmap.cs \
- ./System.Drawing/Brush.cs \
- ./System.Drawing/Color.cs \
- ./System.Drawing/Graphics.cs \
- ./System.Drawing/Image.cs \
- ./System.Drawing/KnownColor.cs \
- ./System.Drawing/KnownColors.cs \
- ./System.Drawing/Pen.cs \
- ./System.Drawing/SolidBrush.cs \
- ./System.Drawing.Drawing2D/Matrix.cs
+ ./System.Drawing/Bitmap.cs \
+ ./System.Drawing/Brush.cs \
+ ./System.Drawing/Color.cs \
+ ./System.Drawing/Graphics.cs \
+ ./System.Drawing/Image.cs \
+ ./System.Drawing/KnownColor.cs \
+ ./System.Drawing/KnownColors.cs \
+ ./System.Drawing/Pen.cs \
+ ./System.Drawing/Region.cs \
+ ./System.Drawing/SolidBrush.cs \
+ ./System.Drawing/StringFormat.cs \
+ ./System.Drawing.Drawing2D/Matrix.cs \
+ ./System.Drawing.Printing/PageSettings.cs \
+ ./System.Drawing.Printing/PrintDocument.cs \
+ ./System.Drawing.Printing/PrinterSettings.cs \
+ ./System.Drawing.Printing/PrintPageEventArgs.cs \
all: monotouch
monotouch: monotouch/System.Drawing.dll
-monotouch/System.Drawing.dll: $(SOURCES) $(MONO_SOURCES)
+monotouch/System.Drawing.dll: $(SOURCES) $(MONO_SOURCES) Makefile
mkdir -p monotouch
$(SMCS) -target:library -out:monotouch/System.Drawing.dll -debug $(SOURCES) $(MONO_SOURCES) -r:monotouch.dll
monomac: monomac/System.Drawing.dll
# circular dependency problem. MonoMac.dll depends on System.Drawing.dll which would now depend on MonoMac.dll
-monomac/System.Drawing.dll: $(SOURCES) $(MONO_SOURCES) $(MONO_EXTRA_SOURCES)
+monomac/System.Drawing.dll: $(SOURCES) $(MONO_SOURCES) $(MONO_EXTRA_SOURCES) Makefile
mkdir -p monomac
mcs -target:library -out:monomac/System.Drawing.dll -define:MONOMAC -debug $(SOURCES) $(MONO_SOURCES) $(MONOMAC_EXTRA_SOURCES) -r:../monomac/src/MonoMac.dll
@@ -0,0 +1,51 @@
+//
+// System.Drawing.PageSettings.cs
+//
+// Authors:
+// Dennis Hayes (dennish@Raytek.com)
+// Herve Poussineau (hpoussineau@fr.st)
+// Andreas Nahr (ClassDevelopment@A-SoftTech.com)
+// Sebastien Pouliot <sebastien@xamarin.com>
+//
+// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright 2011 Xamarin Inc.
+//
+// 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.
+//
+
+namespace System.Drawing.Printing {
+
+ public class PageSettings : ICloneable {
+
+ public PageSettings ()
+ {
+ }
+
+
+ public bool Landscape { get; set; }
+
+
+ public object Clone ()
+ {
+ // FIXME
+ return new PageSettings ();
+ }
+ }
+}
@@ -0,0 +1,64 @@
+//
+// System.Drawing.PrintDocument.cs
+//
+// Authors:
+// Dennis Hayes (dennish@Raytek.com)
+// Herve Poussineau (hpoussineau@fr.st)
+// Andreas Nahr (ClassDevelopment@A-SoftTech.com)
+// Sebastien Pouliot <sebastien@xamarin.com>
+//
+// (C) 2002 Ximian, Inc
+// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright 2011 Xamarin Inc.
+//
+// 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.
+//
+
+using System.ComponentModel;
+
+namespace System.Drawing.Printing {
+
+ [DefaultEvent ("PrintPage"), DefaultProperty ("DocumentName")]
+ [ToolboxItemFilter ("System.Drawing.Printing", ToolboxItemFilterType.Allow)]
+ public class PrintDocument : Component {
+
+ public PrintDocument ()
+ {
+ DefaultPageSettings = new PageSettings ();
+ PrinterSettings = new PrinterSettings ();
+ }
+
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+ [Browsable (false)]
+ public PageSettings DefaultPageSettings { get; set; }
+
+ [DesignerSerializationVisibility (DesignerSerializationVisibility.Hidden)]
+ [Browsable (false)]
+ public PrinterSettings PrinterSettings { get; set; }
+
+
+ public void Print ()
+ {
+ }
+
+
+ public event PrintPageEventHandler PrintPage;
+ }
+}
@@ -0,0 +1,57 @@
+//
+// System.Drawing.PrintPageEventArgs.cs
+//
+// Author:
+// Dennis Hayes (dennish@Raytek.com)
+// Herve Poussineau (hpoussineau@fr.st)
+// Sebastien Pouliot <sebastien@xamarin.com>
+//
+// (C) 2002 Ximian, Inc
+// Copyright (C) 2004 Novell, Inc (http://www.novell.com)
+// Copyright 2011 Xamarin Inc.
+//
+// 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.
+//
+
+namespace System.Drawing.Printing {
+
+ public class PrintPageEventArgs : EventArgs {
+
+ public PrintPageEventArgs (Graphics graphics, Rectangle marginBounds, Rectangle pageBounds, PageSettings pageSettings)
+ {
+ Graphics = graphics;
+ MarginBounds = marginBounds;
+ PageBounds = pageBounds;
+ PageSettings = pageSettings;
+ }
+
+ public bool Cancel { get; set; }
+
+ public Graphics Graphics { get; private set; }
+
+ public bool HasMorePages { get; set; }
+
+ public Rectangle MarginBounds { get; private set; }
+
+ public Rectangle PageBounds { get; private set; }
+
+ public PageSettings PageSettings { get; private set; }
+ }
+}
@@ -0,0 +1,49 @@
+//
+// System.Drawing.PrinterSettings.cs
+//
+// Authors:
+// Dennis Hayes (dennish@Raytek.com)
+// Herve Poussineau (hpoussineau@fr.st)
+// Andreas Nahr (ClassDevelopment@A-SoftTech.com)
+// Sebastien Pouliot <sebastien@xamarin.com>
+//
+// (C) 2002 Ximian, Inc
+// Copyright (C) 2004,2006 Novell, Inc (http://www.novell.com)
+// Copyright 2011 Xamarin Inc.
+//
+// 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.
+//
+
+namespace System.Drawing.Printing {
+
+ [Serializable]
+ public class PrinterSettings : ICloneable {
+
+ public PrinterSettings ()
+ {
+ }
+
+ public object Clone ()
+ {
+ // FIXME
+ return new PrinterSettings ();
+ }
+ }
+}
@@ -0,0 +1,57 @@
+//
+// System.Drawing.FontFamily.cs
+//
+// Author:
+// Dennis Hayes (dennish@Raytek.com)
+// Alexandre Pigolkine (pigolkine@gmx.de)
+// Peter Dennis Bartok (pbartok@novell.com)
+// Sebastien Pouliot <sebastien@xamarin.com>
+//
+// Copyright (C) 2002/2004 Ximian, Inc http://www.ximian.com
+// Copyright (C) 2004 - 2006 Novell, Inc (http://www.novell.com)
+// Copyright 2011 Xamarin Inc.
+//
+// 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.
+//
+
+namespace System.Drawing {
+
+ public sealed class FontFamily : MarshalByRefObject, IDisposable {
+
+ public FontFamily (string name)
+ {
+ }
+
+ ~FontFamily ()
+ {
+ Dispose (false);
+ }
+
+ public void Dispose ()
+ {
+ Dispose (true);
+ System.GC.SuppressFinalize (this);
+ }
+
+ void Dispose (bool disposing)
+ {
+ }
+ }
+}
Oops, something went wrong.

0 comments on commit 4bc5059

Please sign in to comment.