[mythtv-commits] Ticket #10256: Animation support
MythTV
noreply at mythtv.org
Wed Jan 11 22:08:28 UTC 2012
#10256: Animation support
-------------------------------------------------+-------------------------
Reporter: Jonatan <mythtv@…> | Owner: stuartm
Type: Patch - Feature | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - User Interface Library | Version: Unspecified
Severity: medium | Keywords:
Ticket locked: 0 |
-------------------------------------------------+-------------------------
The attached patch adds the possibility to animate the showing and hiding
of windows.
Supported parameters are position, alpha, zoom, and angle, plus duration
and easing curve.
It's partially based on the patch in #8975 that adds an Effects struct.
Extending this to support other events should be possible by using signals
(i.e. TakingFocus, LosingFocus, etc.) and slots.
Here's an example of how to add a position and alpha animation to the
popup dialog in Arclight:
{{{
<window name="MythPopupBox">
<area>1320,0,600,1080</area>
<animation type="position" when="AboutToShow" start="1920,-1"
end="-1,-1" easingcurve="OutQuart" duration="500"/>
<animation type="alpha" when="AboutToShow" start="0" end="255"
easingcurve="OutQuart" duration="500"/>
<animation type="position" when="AboutToHide" end="1920,-1"
start="-1,-1" easingcurve="InQuart" duration="500"/>
<animation type="alpha" when="AboutToHide" end="0" start="255"
easingcurve="InQuart" duration="500"/>
...
</window>
}}}
--
Ticket URL: <http://code.mythtv.org/trac/ticket/10256>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
More information about the mythtv-commits
mailing list