Author: rolf
Date: 2007-06-19 14:42:33 -0400 (Tue, 19 Jun 2007)
New Revision: 80224
Added:
trunk/olive/class/agclr/System.Windows.Media.Animation/ColorKeyFrame.cs
trunk/olive/class/agclr/System.Windows.Media.Animation/DoubleKeyFrame.cs
trunk/olive/class/agclr/System.Windows.Media.Animation/PointKeyFrame.cs
Modified:
trunk/olive/class/agclr/System.Windows.Media.Animation/ChangeLog
trunk/olive/class/agclr/System.Windows.Media.Animation/KeyFrame.cs
trunk/olive/class/agclr/System.Windows.Media.Animation/KeyFrameCollection.cs
Log:
* PointKeyFrame.cs, DoubleKeyFrame.cs, ColorKeyFrame.cs: Added.
* KeyFrameCollection.cs: Fix constructor.
* KeyFrame.cs: Fix constructor and property lookup.
Modified: trunk/olive/class/agclr/System.Windows.Media.Animation/ChangeLog
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media.Animation/ChangeLog
2007-06-19 18:40:51 UTC (rev 80223)
+++ trunk/olive/class/agclr/System.Windows.Media.Animation/ChangeLog
2007-06-19 18:42:33 UTC (rev 80224)
@@ -1,5 +1,11 @@
2007-06-19 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
+ * PointKeyFrame.cs, DoubleKeyFrame.cs, ColorKeyFrame.cs: Added.
+ * KeyFrameCollection.cs: Fix constructor.
+ * KeyFrame.cs: Fix constructor and property lookup.
+
+2007-06-19 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
+
* KeyFrameCollection.cs, KeyFrame.cs, KeyTime.cs: Added.
2007-06-19 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
Added: trunk/olive/class/agclr/System.Windows.Media.Animation/ColorKeyFrame.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media.Animation/ColorKeyFrame.cs
2007-06-19 18:40:51 UTC (rev 80223)
+++ trunk/olive/class/agclr/System.Windows.Media.Animation/ColorKeyFrame.cs
2007-06-19 18:42:33 UTC (rev 80224)
@@ -0,0 +1,63 @@
+// Author:
+// Rolf Bjarne Kvinge ([EMAIL PROTECTED])
+//
+// Copyright 2007 Novell, 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;
+using System.Windows;
+using System.Windows.Media;
+using System.Windows.Input;
+using System.Runtime.InteropServices;
+using Mono;
+
+namespace System.Windows.Media.Animation
+{
+ public abstract class ColorKeyFrame : KeyFrame
+ {
+ public static readonly DependencyProperty ValueProperty =
+ DependencyProperty.Lookup (Kind.COLORKEYFRAME, "Value",
typeof (Nullable<Color>));
+
+ public ColorKeyFrame() : base
(NativeMethods.color_key_frame_new ())
+ {
+ NativeMethods.base_ref (native);
+ }
+
+ internal ColorKeyFrame (IntPtr raw) : base (raw)
+ {
+ }
+
+ public Nullable<Color> Value {
+ get {
+ return (Nullable<Color>) GetValue
(ValueProperty);
+ }
+ set {
+ SetValue (ValueProperty, value);
+ }
+ }
+
+ internal protected override Kind GetKind ()
+ {
+ return Kind.COLORKEYFRAME;
+ }
+ }
+}
Added: trunk/olive/class/agclr/System.Windows.Media.Animation/DoubleKeyFrame.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media.Animation/DoubleKeyFrame.cs
2007-06-19 18:40:51 UTC (rev 80223)
+++ trunk/olive/class/agclr/System.Windows.Media.Animation/DoubleKeyFrame.cs
2007-06-19 18:42:33 UTC (rev 80224)
@@ -0,0 +1,64 @@
+// Author:
+// Rolf Bjarne Kvinge ([EMAIL PROTECTED])
+//
+// Copyright 2007 Novell, 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;
+using System.Windows;
+using System.Windows.Media;
+using System.Windows.Input;
+using System.Runtime.InteropServices;
+using Mono;
+
+namespace System.Windows.Media.Animation
+{
+ public abstract class DoubleKeyFrame : KeyFrame
+ {
+ public static readonly DependencyProperty ValueProperty =
+ DependencyProperty.Lookup (Kind.DOUBLEKEYFRAME,
"Value", typeof (Nullable<double>));
+
+ public DoubleKeyFrame() : base
(NativeMethods.double_key_frame_new ())
+ {
+ NativeMethods.base_ref (native);
+ }
+
+ internal DoubleKeyFrame (IntPtr raw) : base (raw)
+ {
+ }
+
+ public Nullable<double> Value {
+ get {
+ return (Nullable<double>) GetValue
(ValueProperty);
+ }
+ set {
+ SetValue (ValueProperty, value);
+ }
+ }
+
+ internal protected override Kind GetKind ()
+ {
+ return Kind.DOUBLEKEYFRAME;
+ }
+ }
+}
Modified: trunk/olive/class/agclr/System.Windows.Media.Animation/KeyFrame.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media.Animation/KeyFrame.cs
2007-06-19 18:40:51 UTC (rev 80223)
+++ trunk/olive/class/agclr/System.Windows.Media.Animation/KeyFrame.cs
2007-06-19 18:42:33 UTC (rev 80224)
@@ -35,10 +35,11 @@
public abstract class KeyFrame : DependencyObject
{
- public static readonly DependencyProperty KeyTimeProperty =
DependencyProperty.Lookup (Kind.KEYFRAME, "KeyTime", typeof (KeyFrame));
+ public static readonly DependencyProperty KeyTimeProperty =
DependencyProperty.Lookup (Kind.KEYFRAME, "KeyTime", typeof (KeyTime));
public KeyFrame() : base (NativeMethods.key_frame_new ())
{
+ NativeMethods.base_ref (native);
}
internal KeyFrame (IntPtr raw) : base (raw)
Modified:
trunk/olive/class/agclr/System.Windows.Media.Animation/KeyFrameCollection.cs
===================================================================
---
trunk/olive/class/agclr/System.Windows.Media.Animation/KeyFrameCollection.cs
2007-06-19 18:40:51 UTC (rev 80223)
+++
trunk/olive/class/agclr/System.Windows.Media.Animation/KeyFrameCollection.cs
2007-06-19 18:42:33 UTC (rev 80224)
@@ -36,6 +36,7 @@
{
public KeyFrameCollection() : base
(NativeMethods.key_frame_collection_new ())
{
+ NativeMethods.base_ref (native);
}
internal KeyFrameCollection (IntPtr raw) : base (raw)
Added: trunk/olive/class/agclr/System.Windows.Media.Animation/PointKeyFrame.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media.Animation/PointKeyFrame.cs
2007-06-19 18:40:51 UTC (rev 80223)
+++ trunk/olive/class/agclr/System.Windows.Media.Animation/PointKeyFrame.cs
2007-06-19 18:42:33 UTC (rev 80224)
@@ -0,0 +1,64 @@
+// Author:
+// Rolf Bjarne Kvinge ([EMAIL PROTECTED])
+//
+// Copyright 2007 Novell, 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;
+using System.Windows;
+using System.Windows.Media;
+using System.Windows.Input;
+using System.Runtime.InteropServices;
+using Mono;
+
+namespace System.Windows.Media.Animation
+{
+ public abstract class PointKeyFrame : KeyFrame
+ {
+
+ public static readonly DependencyProperty ValueProperty =
+ DependencyProperty.Lookup (Kind.POINTKEYFRAME, "Value",
typeof (Nullable<Point>));
+
+ public PointKeyFrame() : base
(NativeMethods.point_key_frame_new ())
+ {
+ NativeMethods.base_ref (native);
+ }
+
+ internal PointKeyFrame (IntPtr raw) : base (raw)
+ {
+ }
+
+ public Nullable<Point> Value {
+ get {
+ return (Nullable<Point>) GetValue
(ValueProperty);
+ }
+ set {
+ SetValue (ValueProperty, value);
+ }
+ }
+
+ internal protected override Kind GetKind ()
+ {
+ return Kind.POINTKEYFRAME;
+ }
+ }
+}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches