What about trying to achieve that with the actual grammar that is in dui, the curly brace based language??<br><br><div class="gmail_quote">On Thu, May 28, 2009 at 11:14 PM, Akmanalp, Mehmet A <span dir="ltr"><<a href="mailto:makmanalp@wpi.edu">makmanalp@wpi.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">On Thu, May 28, 2009 at 9:38 PM, Aaron J. Seigo <<a href="mailto:aseigo@kde.org">aseigo@kde.org</a>> wrote:<br>
> Animation *a = Animator::fadeIn(item);<br>
> Animation *b = Animator::add(a, Animator::bounce(item, timesToBounce));<br>
> a = Animator::while(b, Animator::blur(item, amount));<br>
> Animator::add(a, Animator::fadeOut(item));<br>
> // auto starts when event loop is hit again, unless a->stop() is called<br>
><br>
</div><div class="im">> Animation *a = Animator::fadeIn(item);<br>
> Animator::bounce(item, timeToBounce, a, Animator::Add);<br>
> Animator::blur(item, amount, a, Animator::While);<br>
> Animator::fadeOut(item, a, Animator::Add);<br>
</div>Honestly, I think the add / while syntax is a little unintuitive,<br>
which is a minus since we're trying to make things as simple as<br>
possible. Also, what if want the blur to happen during the fadein<br>
and the bounce? I don't see how you'd do this with add-while without<br>
grouping the fadein and blur.<br>
<div class="im"><br>
> * means two phase learning curve (Animator's shortcut, then Kinetic) if you<br>
> need to "graduate" from Add/While in Plasa::Animator to Kinetic's groups<br>
</div>Following the previous statement, I'd say we just ditch add / while.<br>
This way, it'd be more consistent with Kinetic *and* it'd be a little<br>
more intuitive (imho).<br>
<br>
Even if we don't create a whole new language as Ivan proposes, we<br>
could imitate it in the name of ease of use:<br>
<br>
Animator a;<br>
a.animate(item,<br>
a.series(<br>
a.fadeIn(),<br>
a.parallel(<br>
a.blur(amount, time),<br>
a.series(<br>
a.bounce(timesToBounce),<br>
a.flip()<br>
)<br>
),<br>
a.fadeOut()<br>
)<br>
);<br>
<br>
Although the a. in the beginning of all of those is a bit annoying. Thoughts?<br>
<div><div></div><div class="h5">_______________________________________________<br>
Plasma-devel mailing list<br>
<a href="mailto:Plasma-devel@kde.org">Plasma-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/plasma-devel" target="_blank">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br>
</div></div></blockquote></div><br>