Author: miguel
Date: 2007-06-13 16:11:45 -0400 (Wed, 13 Jun 2007)
New Revision: 79498
Added:
trunk/olive/class/agclr/System.Windows.Media.Animation/
trunk/olive/class/agclr/System.Windows.Media.Animation/FillBehavior.cs
trunk/olive/class/agclr/System.Windows.Media.Animation/ParallelTimeline.cs
trunk/olive/class/agclr/System.Windows.Media.Animation/RepeatBehavior.cs
trunk/olive/class/agclr/System.Windows.Media.Animation/Storyboard.cs
trunk/olive/class/agclr/System.Windows.Media.Animation/Timeline.cs
trunk/olive/class/agclr/System.Windows.Media.Animation/TimelineGroup.cs
trunk/olive/class/agclr/System.Windows.Media.Animation/Timline.cs
trunk/olive/class/agclr/System.Windows/Duration.cs
Modified:
trunk/olive/class/agclr/ChangeLog
trunk/olive/class/agclr/Mono/NativeMethods.cs
trunk/olive/class/agclr/agclr.dll.sources
Log:
2007-06-13 Miguel de Icaza <[EMAIL PROTECTED]>
* Support for Storyboard class, still need the C API from Chris to
test this.
Modified: trunk/olive/class/agclr/ChangeLog
===================================================================
--- trunk/olive/class/agclr/ChangeLog 2007-06-13 20:06:35 UTC (rev 79497)
+++ trunk/olive/class/agclr/ChangeLog 2007-06-13 20:11:45 UTC (rev 79498)
@@ -1,3 +1,8 @@
+2007-06-13 Miguel de Icaza <[EMAIL PROTECTED]>
+
+ * Support for Storyboard class, still need the C API from Chris to
+ test this.
+
2007-06-13 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
* Internal.cs: Second pass at constructor fixing.
Modified: trunk/olive/class/agclr/Mono/NativeMethods.cs
===================================================================
--- trunk/olive/class/agclr/Mono/NativeMethods.cs 2007-06-13 20:06:35 UTC
(rev 79497)
+++ trunk/olive/class/agclr/Mono/NativeMethods.cs 2007-06-13 20:11:45 UTC
(rev 79498)
@@ -248,8 +248,29 @@
[DllImport("moon")]
internal extern static IntPtr downloader_new ();
+ [DllImport("moon")]
+ internal extern static IntPtr storyboard_new ();
+
#endregion
+
+#region Storyboard
+ [DllImport("moon")]
+ internal extern static IntPtr storyboard_begin (IntPtr native);
+ [DllImport("moon")]
+ internal extern static IntPtr storyboard_pause (IntPtr native);
+
+ [DllImport("moon")]
+ internal extern static IntPtr storyboard_resume (IntPtr native);
+
+ [DllImport("moon")]
+ internal extern static IntPtr storyboard_seek (IntPtr native,
long timespan);
+
+ [DllImport("moon")]
+ internal extern static IntPtr storyboard_stop (IntPtr native);
+
+#endregion
+
#region APIs that we do not have a Managed class implemented yet.
[DllImport("moon")]
internal extern static IntPtr event_trigger_new ();
@@ -267,9 +288,6 @@
internal extern static IntPtr
point_animation_using_key_frames_new ();
[DllImport("moon")]
- internal extern static IntPtr storyboard_new ();
-
- [DllImport("moon")]
internal extern static IntPtr begin_storyboard_new ();
#endregion
Added: trunk/olive/class/agclr/System.Windows/Duration.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows/Duration.cs 2007-06-13 20:06:35 UTC
(rev 79497)
+++ trunk/olive/class/agclr/System.Windows/Duration.cs 2007-06-13 20:11:45 UTC
(rev 79498)
@@ -0,0 +1,191 @@
+//
+// Duration.cs
+//
+// This class implementation is not very complete, nor has it been
+// tested, this is here just so we can get other things elsewhere
+// to compile and run for now
+//
+// Author:
+// Miguel de Icaza ([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 Mono;
+using System;
+
+namespace System.Windows {
+ public struct Duration {
+ const int TIMESPAN = 1;
+ const int AUTOMATIC = 2;
+ const int FOREVER = 3;
+ int kind;
+ TimeSpan time_span;
+
+ static Duration automatic = new Duration (AUTOMATIC);
+ static Duration forever = new Duration (FOREVER);
+
+ internal Duration (int k)
+ {
+ kind = k;
+ time_span = new TimeSpan (0);
+ }
+
+ public Duration (TimeSpan timeSpan)
+ {
+ time_span = timeSpan;
+ kind = TIMESPAN;
+ }
+
+ public static bool Equals (Duration t1, Duration t2)
+ {
+ if (t1.kind == TIMESPAN && t2.kind == TIMESPAN){
+ return t1.time_span == t2.time_span;
+ }
+ return t1.kind == t2.kind;
+ }
+
+ public override bool Equals (object o)
+ {
+ if (!(o is Duration))
+ return false;
+
+ return Equals (this, (Duration) o);
+ }
+
+ public bool Equals (Duration value)
+ {
+ return Equals (this, value);
+ }
+
+ public static int Compare (Duration t1, Duration t2)
+ {
+ if (t1.kind == t2.kind && t1.kind == TIMESPAN)
+ return TimeSpan.Compare (t1.time_span,
t2.time_span);
+ return (int) t1.kind - (int) t2.kind;
+ }
+
+ public override int GetHashCode ()
+ {
+ if (kind == TIMESPAN)
+ return time_span.GetHashCode ();
+ else
+ return (int) kind;
+ }
+
+ public Duration Add (Duration duration)
+ {
+ if (kind == duration.kind && kind == TIMESPAN)
+ return new Duration (time_span.Add
(duration.time_span));
+ return this;
+ }
+
+ public Duration Substract (Duration duration)
+ {
+ if (kind == duration.kind && kind == TIMESPAN)
+ return new Duration (time_span.Add
(duration.time_span));
+ return this;
+ }
+
+ public override string ToString ()
+ {
+ return kind == TIMESPAN ? time_span.ToString () : (kind
== AUTOMATIC ? "automatic" : "forever");
+ }
+
+ public static implicit operator Duration (TimeSpan timeSpan)
+ {
+ return new Duration (timeSpan);
+ }
+
+ public static Duration operator + (Duration t1, Duration t2)
+ {
+ return t1.Add (t2);
+ }
+
+ public static Duration operator - (Duration t1, Duration t2)
+ {
+ return t1.Substract (t2);
+ }
+
+ public static bool operator == (Duration t1, Duration t2)
+ {
+ if (t1.kind == TIMESPAN && t2.kind == TIMESPAN){
+ return t1.time_span == t2.time_span;
+ }
+ return t1.kind == t2.kind;
+ }
+
+ public static bool operator != (Duration t1, Duration t2)
+ {
+ if (t1.kind != t2.kind)
+ return true;
+ if (t1.kind == TIMESPAN)
+ return t1.time_span != t2.time_span;
+ return false;
+ }
+
+ public static bool operator > (Duration t1, Duration t2)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public static bool operator >= (Duration t1, Duration t2)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public static bool operator < (Duration t1, Duration t2)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public static bool operator <= (Duration t1, Duration t2)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public static Duration operator + (Duration duration)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public static Duration Automatic {
+ get { return automatic; }
+ }
+
+ public static Duration Forever {
+ get { return forever; }
+ }
+
+ public bool HasTimeSpan {
+ get {
+ return (kind == TIMESPAN);
+ }
+ }
+ public TimeSpan TimeSpan {
+ get {
+ if (kind == TIMESPAN)
+ return time_span;
+ throw new Exception ("This is not a TimeSpan
duration");
+ }
+ }
+ }
+}
Property changes on: trunk/olive/class/agclr/System.Windows/Duration.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/olive/class/agclr/System.Windows.Media.Animation/FillBehavior.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media.Animation/FillBehavior.cs
2007-06-13 20:06:35 UTC (rev 79497)
+++ trunk/olive/class/agclr/System.Windows.Media.Animation/FillBehavior.cs
2007-06-13 20:11:45 UTC (rev 79498)
@@ -0,0 +1,35 @@
+//
+// FillBehavior.cs
+//
+// Author:
+// Miguel de Icaza ([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.
+//
+namespace System.Windows.Media.Animation {
+
+ public enum FillBehavior {
+ HoldEnd = 0,
+ Stop = 1
+ }
+
+}
Property changes on:
trunk/olive/class/agclr/System.Windows.Media.Animation/FillBehavior.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Added:
trunk/olive/class/agclr/System.Windows.Media.Animation/ParallelTimeline.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media.Animation/ParallelTimeline.cs
2007-06-13 20:06:35 UTC (rev 79497)
+++ trunk/olive/class/agclr/System.Windows.Media.Animation/ParallelTimeline.cs
2007-06-13 20:11:45 UTC (rev 79498)
@@ -0,0 +1,42 @@
+//
+// ParallelTimeline.cs
+//
+// Author:
+// Miguel de Icaza ([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 Mono;
+
+namespace System.Windows.Media.Animation {
+
+ public abstract class ParallelTimeline : TimelineGroup {
+
+ internal ParallelTimeline (IntPtr raw) :base (raw)
+ {
+ // nothing
+ }
+ }
+}
Property changes on:
trunk/olive/class/agclr/System.Windows.Media.Animation/ParallelTimeline.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/olive/class/agclr/System.Windows.Media.Animation/RepeatBehavior.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media.Animation/RepeatBehavior.cs
2007-06-13 20:06:35 UTC (rev 79497)
+++ trunk/olive/class/agclr/System.Windows.Media.Animation/RepeatBehavior.cs
2007-06-13 20:11:45 UTC (rev 79498)
@@ -0,0 +1,81 @@
+//
+// RepeatBehavior.cs
+//
+// Author:
+// Miguel de Icaza ([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.
+//
+namespace System.Windows.Media.Animation {
+
+ public struct RepeatBehavior {
+ const int DOUBLE = 1;
+ const int TIMESPAN = 2;
+
+ int kind;
+ double count;
+ TimeSpan duration;
+
+ public RepeatBehavior (double count)
+ {
+ kind = DOUBLE;
+ this.count = count;
+ duration = new TimeSpan (0);
+ }
+
+ public RepeatBehavior (TimeSpan duration)
+ {
+ kind = TIMESPAN;
+ this.duration = duration;
+ count = 0;
+ }
+
+ public double Count {
+ get {
+ if (kind == DOUBLE)
+ return count;
+ throw new Exception ("This RepeatBehavior does
not contain a Count");
+ }
+ }
+
+ public TimeSpan Duration {
+ get {
+ if (kind == TIMESPAN)
+ return duration;
+ throw new Exception ("This RepeatBehavior does
not contain a Duration");
+ }
+ }
+
+ public bool HasCount {
+ get {
+ return kind == DOUBLE;
+ }
+ }
+
+ public bool HasDuration {
+ get {
+ return kind == TIMESPAN;
+ }
+ }
+ }
+
+}
Property changes on:
trunk/olive/class/agclr/System.Windows.Media.Animation/RepeatBehavior.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/olive/class/agclr/System.Windows.Media.Animation/Storyboard.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media.Animation/Storyboard.cs
2007-06-13 20:06:35 UTC (rev 79497)
+++ trunk/olive/class/agclr/System.Windows.Media.Animation/Storyboard.cs
2007-06-13 20:11:45 UTC (rev 79498)
@@ -0,0 +1,80 @@
+//
+// Storyboard.cs
+//
+// Author:
+// Miguel de Icaza ([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 Mono;
+
+namespace System.Windows.Media.Animation {
+
+ public sealed class Storyboard : ParallelTimeline {
+ public static readonly DependencyProperty
TargetPropertyProperty;
+ public static readonly DependencyProperty TargetNameProperty;
+
+ static Storyboard ()
+ {
+ TargetPropertyProperty = DependencyProperty.Lookup
(Kind.STORYBOARD, "TargetProperty", typeof (string));
+ TargetNameProperty = DependencyProperty.Lookup
(Kind.STORYBOARD, "TargetName", typeof (string));
+ }
+
+ public Storyboard ()
+ : base (Mono.NativeMethods.storyboard_new ())
+ {
+ }
+
+ public void Begin ()
+ {
+ NativeMethods.storyboard_begin (native);
+ }
+
+ public void Pause ()
+ {
+ NativeMethods.storyboard_pause (native);
+ }
+
+ public void Resume ()
+ {
+ NativeMethods.storyboard_resume (native);
+ }
+
+ public void Seek (TimeSpan time_span)
+ {
+ NativeMethods.storyboard_seek (native, time_span.Ticks
/ 10);
+ }
+
+ public void Stop ()
+ {
+ NativeMethods.storyboard_stop (native);
+ }
+
+ protected internal override Kind GetKind ()
+ {
+ return Kind.STORYBOARD;
+ }
+ }
+}
Property changes on:
trunk/olive/class/agclr/System.Windows.Media.Animation/Storyboard.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/olive/class/agclr/System.Windows.Media.Animation/Timeline.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media.Animation/Timeline.cs
2007-06-13 20:06:35 UTC (rev 79497)
+++ trunk/olive/class/agclr/System.Windows.Media.Animation/Timeline.cs
2007-06-13 20:11:45 UTC (rev 79498)
@@ -0,0 +1,121 @@
+//
+// Timeline.cs
+//
+// Author:
+// Miguel de Icaza ([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 Mono;
+
+namespace System.Windows.Media.Animation {
+
+ public abstract class Timeline : DependencyObject {
+
+ static Timeline ()
+ {
+ AutoReverseProperty = DependencyProperty.Lookup
(Kind.TIMELINE, "AutoReverse", typeof (bool));
+ BeginTimeProperty = DependencyProperty.Lookup
(Kind.TIMELINE, "BeginTime", typeof (Nullable<TimeSpan>));
+ DurationProperty = DependencyProperty.Lookup
(Kind.TIMELINE, "Duration", typeof (Duration));
+ SpeedRatioProperty = DependencyProperty.Lookup
(Kind.TIMELINE, "SpeedRatio", typeof (double));
+ FillBehaviorProperty = DependencyProperty.Lookup
(Kind.TIMELINE, "FillBehavior", typeof (FillBehavior));
+ RepeatBehaviorProperty = DependencyProperty.Lookup
(Kind.TIMELINE, "RepeatBehavior", typeof (RepeatBehavior));
+ }
+
+ internal Timeline (IntPtr raw) : base (raw)
+ {
+ }
+
+ public bool AutoReverse {
+ get {
+ return (bool) GetValue (AutoReverseProperty);
+ }
+
+ set {
+ SetValue (AutoReverseProperty, value);
+ }
+ }
+
+ public Nullable<TimeSpan> BeginTime {
+ get {
+ // Toshok: help
+ return null;
+ }
+
+ set {
+ // Toshok: help
+ }
+ }
+ public Duration Duration {
+ get {
+ return (Duration) GetValue (DurationProperty);
+ }
+
+ set {
+ SetValue (DurationProperty, value);
+ }
+ }
+ public FillBehavior FillBehavior {
+ get {
+ return (FillBehavior) GetValue
(FillBehaviorProperty);
+ }
+
+ set {
+ SetValue (FillBehaviorProperty, value);
+ }
+ }
+ public RepeatBehavior RepeatBehavior {
+ get {
+ return (RepeatBehavior) GetValue
(RepeatBehaviorProperty);
+ }
+
+ set {
+ SetValue (RepeatBehaviorProperty, value);
+ }
+ }
+
+ public double SpeedRatio {
+ get {
+ return (double) GetValue (SpeedRatioProperty);
+ }
+
+ set {
+ SetValue (SpeedRatioProperty, value);
+ }
+ }
+
+ public static readonly DependencyProperty AutoReverseProperty;
+ public static readonly DependencyProperty BeginTimeProperty;
+ public static readonly DependencyProperty DurationProperty;
+ public static readonly DependencyProperty SpeedRatioProperty;
+ public static readonly DependencyProperty FillBehaviorProperty;
+ public static readonly DependencyProperty
RepeatBehaviorProperty;
+
+ protected internal override Kind GetKind ()
+ {
+ return Kind.TIMELINE;
+ }
+ }
+}
Property changes on:
trunk/olive/class/agclr/System.Windows.Media.Animation/Timeline.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/olive/class/agclr/System.Windows.Media.Animation/TimelineGroup.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media.Animation/TimelineGroup.cs
2007-06-13 20:06:35 UTC (rev 79497)
+++ trunk/olive/class/agclr/System.Windows.Media.Animation/TimelineGroup.cs
2007-06-13 20:11:45 UTC (rev 79498)
@@ -0,0 +1,59 @@
+//
+// TimelineGroup.cs
+//
+// Author:
+// Miguel de Icaza ([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 Mono;
+
+namespace System.Windows.Media.Animation {
+
+ public abstract class TimelineGroup : Timeline {
+
+ internal TimelineGroup (IntPtr raw) : base (raw)
+ {
+ // nothing
+ }
+
+ static TimelineGroup ()
+ {
+ ChildrenProperty = DependencyProperty.Lookup
(Kind.TIMELINEGROUP, "Children", typeof (Timeline));
+ }
+
+ public Timeline Children {
+ get {
+ return (Timeline) GetValue (ChildrenProperty);
+ }
+
+ set {
+ SetValue (ChildrenProperty, value);
+ }
+ }
+
+ public static readonly DependencyProperty ChildrenProperty;
+ }
+}
Property changes on:
trunk/olive/class/agclr/System.Windows.Media.Animation/TimelineGroup.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Added: trunk/olive/class/agclr/System.Windows.Media.Animation/Timline.cs
===================================================================
--- trunk/olive/class/agclr/System.Windows.Media.Animation/Timline.cs
2007-06-13 20:06:35 UTC (rev 79497)
+++ trunk/olive/class/agclr/System.Windows.Media.Animation/Timline.cs
2007-06-13 20:11:45 UTC (rev 79498)
@@ -0,0 +1,74 @@
+//
+// UIElemtn.cs
+//
+// Author:
+// Miguel de Icaza ([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 Mono;
+
+namespace System.Windows.Media.Animation {
+
+ public abstract class Timeline : DependencyObject {
+
+ public Timeline ()
+ {
+ // This is abstract, no handle created here.
+ }
+
+ public bool AutoReverse {
+ get;
+ set;
+ }
+ public Nullable<TimeSpan> BeginTime {
+ get;
+ set;
+ }
+ public Duration Duration {
+ get;
+ set;
+ }
+ public FillBehavior FillBehavior {
+ get;
+ set;
+ }
+ public RepeatBehavior RepeatBehavior {
+ get;
+ set;
+ }
+ public double SpeedRatio {
+ get;
+ set;
+ }
+
+ public static readonly DependencyProperty AutoReverseProperty;
+ public static readonly DependencyProperty BeginTimeProperty;
+ public static readonly DependencyProperty DurationProperty;
+ public static readonly DependencyProperty SpeedRatioProperty;
+ public static readonly DependencyProperty FillBehaviorProperty;
+ public static readonly DependencyProperty
RepeatBehaviorProperty;
+ }
+}
Property changes on:
trunk/olive/class/agclr/System.Windows.Media.Animation/Timline.cs
___________________________________________________________________
Name: svn:eol-style
+ native
Modified: trunk/olive/class/agclr/agclr.dll.sources
===================================================================
--- trunk/olive/class/agclr/agclr.dll.sources 2007-06-13 20:06:35 UTC (rev
79497)
+++ trunk/olive/class/agclr/agclr.dll.sources 2007-06-13 20:11:45 UTC (rev
79498)
@@ -8,6 +8,7 @@
Mono/NativeMethods.cs
Mono/Value.cs
System.Windows/Downloader.cs
+System.Windows/Duration.cs
System.Windows/ErrorEventArgs.cs
System.Windows/ErrorEventHandler.cs
System.Windows/ErrorType.cs
@@ -84,6 +85,12 @@
System.Windows.Media/VideoBrush.cs
System.Windows.Media/VisualCollection.cs
System.Windows.Media/Visual.cs
+System.Windows.Media.Animation/FillBehavior.cs
+System.Windows.Media.Animation/ParallelTimeline.cs
+System.Windows.Media.Animation/RepeatBehavior.cs
+System.Windows.Media.Animation/Storyboard.cs
+System.Windows.Media.Animation/Timeline.cs
+System.Windows.Media.Animation/TimelineGroup.cs
System.Windows.Shapes/Ellipse.cs
System.Windows.Shapes/Line.cs
System.Windows.Shapes/Path.cs
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches