Sophie

Sophie

distrib > Mandriva > current > i586 > media > main-updates > by-pkgid > 8e6051afcdb111a0317a58fb64c2abf5 > files > 4804

qt4-doc-4.6.3-0.2mdv2010.2.i586.rpm

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- qsequentialanimationgroup.cpp -->
<head>
  <title>Qt 4.6: QSequentialAnimationGroup Class Reference</title>
  <link href="classic.css" rel="stylesheet" type="text/css" />
</head>
<body>
<a name="//apple_ref/cpp/cl//QSequentialAnimationGroup"></a>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td align="left" valign="top" width="32"><a href="http://qt.nokia.com/"><img src="images/qt-logo.png" align="left" border="0" /></a></td>
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">All&nbsp;Functions</font></a>&nbsp;&middot; <a href="overviews.html"><font color="#004faf">Overviews</font></a></td></tr></table><h1 class="title">QSequentialAnimationGroup Class Reference<br /><span class="small-subtitle">[<a href="qtcore.html">QtCore</a> module]</span>
</h1>
<p>The QSequentialAnimationGroup class provides a sequential group of animations. <a href="#details">More...</a></p>
<pre> #include &lt;QSequentialAnimationGroup&gt;</pre><p>Inherits <a href="qanimationgroup.html">QAnimationGroup</a>.</p>
<p>This class was introduced in Qt 4.6.</p>
<ul>
<li><a href="qsequentialanimationgroup-members.html">List of all members, including inherited members</a></li>
</ul>
<hr />
<a name="properties"></a>
<h2>Properties</h2>
<ul>
<li><div class="fn"><b><a href="qsequentialanimationgroup.html#currentAnimation-prop">currentAnimation</a></b> : QAbstractAnimation * const</div></li>
</ul>
<ul>
<li><div bar="2" class="fn"></div>6 properties inherited from <a href="qabstractanimation.html#properties">QAbstractAnimation</a></li>
<li><div bar="2" class="fn"></div>1 property inherited from <a href="qobject.html#properties">QObject</a></li>
</ul>
<hr />
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qsequentialanimationgroup.html#QSequentialAnimationGroup">QSequentialAnimationGroup</a></b> ( QObject * <i>parent</i> = 0 )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"></td><td class="memItemRight" valign="bottom"><b><a href="qsequentialanimationgroup.html#dtor.QSequentialAnimationGroup">~QSequentialAnimationGroup</a></b> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QPauseAnimation * </td><td class="memItemRight" valign="bottom"><b><a href="qsequentialanimationgroup.html#addPause">addPause</a></b> ( int <i>msecs</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QAbstractAnimation * </td><td class="memItemRight" valign="bottom"><b><a href="qsequentialanimationgroup.html#currentAnimation-prop">currentAnimation</a></b> () const</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QPauseAnimation * </td><td class="memItemRight" valign="bottom"><b><a href="qsequentialanimationgroup.html#insertPause">insertPause</a></b> ( int <i>index</i>, int <i>msecs</i> )</td></tr>
</table>
<hr />
<a name="reimplemented-public-functions"></a>
<h2>Reimplemented Public Functions</h2>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><b><a href="qsequentialanimationgroup.html#duration">duration</a></b> () const</td></tr>
</table>
<ul>
<li><div bar="2" class="fn"></div>8 public functions inherited from <a href="qanimationgroup.html#public-functions">QAnimationGroup</a></li>
<li><div bar="2" class="fn"></div>11 public functions inherited from <a href="qabstractanimation.html#public-functions">QAbstractAnimation</a></li>
<li><div bar="2" class="fn"></div>29 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
</ul>
<hr />
<a name="signals"></a>
<h2>Signals</h2>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qsequentialanimationgroup.html#currentAnimationChanged">currentAnimationChanged</a></b> ( QAbstractAnimation * <i>current</i> )</td></tr>
</table>
<ul>
<li><div bar="2" class="fn"></div>4 signals inherited from <a href="qabstractanimation.html#signals">QAbstractAnimation</a></li>
<li><div bar="2" class="fn"></div>1 signal inherited from <a href="qobject.html#signals">QObject</a></li>
</ul>
<hr />
<a name="reimplemented-protected-functions"></a>
<h2>Reimplemented Protected Functions</h2>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">virtual bool </td><td class="memItemRight" valign="bottom"><b><a href="qsequentialanimationgroup.html#event">event</a></b> ( QEvent * <i>event</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="qsequentialanimationgroup.html#updateCurrentTime">updateCurrentTime</a></b> ( int <i>currentTime</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="qsequentialanimationgroup.html#updateDirection">updateDirection</a></b> ( QAbstractAnimation::Direction <i>direction</i> )</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><b><a href="qsequentialanimationgroup.html#updateState">updateState</a></b> ( QAbstractAnimation::State <i>newState</i>, QAbstractAnimation::State <i>oldState</i> )</td></tr>
</table>
<ul>
<li><div bar="2" class="fn"></div>1 protected function inherited from <a href="qanimationgroup.html#protected-functions">QAnimationGroup</a></li>
<li><div bar="2" class="fn"></div>4 protected functions inherited from <a href="qabstractanimation.html#protected-functions">QAbstractAnimation</a></li>
<li><div bar="2" class="fn"></div>7 protected functions inherited from <a href="qobject.html#protected-functions">QObject</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li><div class="fn"></div>6 public slots inherited from <a href="qabstractanimation.html#public-slots">QAbstractAnimation</a></li>
<li><div class="fn"></div>1 public slot inherited from <a href="qobject.html#public-slots">QObject</a></li>
<li><div class="fn"></div>5 static public members inherited from <a href="qobject.html#static-public-members">QObject</a></li>
<li><div class="fn"></div>1 protected function inherited from <a href="qanimationgroup.html#protected-functions">QAnimationGroup</a></li>
<li><div class="fn"></div>4 protected functions inherited from <a href="qabstractanimation.html#protected-functions">QAbstractAnimation</a></li>
<li><div class="fn"></div>7 protected functions inherited from <a href="qobject.html#protected-functions">QObject</a></li>
</ul>
<a name="details"></a>
<hr />
<h2>Detailed Description</h2>
<p>The QSequentialAnimationGroup class provides a sequential group of animations.</p>
<p>QSequentialAnimationGroup is a <a href="qanimationgroup.html">QAnimationGroup</a> that runs its animations in sequence, i.e&#x2e;, it starts one animation after another has finished playing. The animations are played in the order they are added to the group (using <a href="qanimationgroup.html#addAnimation">addAnimation()</a> or <a href="qanimationgroup.html#insertAnimation">insertAnimation()</a>). The animation group finishes when its last animation has finished.</p>
<p>At each moment there is at most one animation that is active in the group; it is returned by <a href="qsequentialanimationgroup.html#currentAnimation-prop">currentAnimation</a>(). An empty group has no current animation.</p>
<p>A sequential animation group can be treated as any other animation, i.e&#x2e;, it can be started, stopped, and added to other groups. You can also call <a href="qsequentialanimationgroup.html#addPause">addPause</a>() or <a href="qsequentialanimationgroup.html#insertPause">insertPause</a>() to add a pause to a sequential animation group.</p>
<pre> QSequentialAnimationGroup *group = new QSequentialAnimationGroup;

 group-&gt;addAnimation(anim1);
 group-&gt;addAnimation(anim2);

 group-&gt;start();</pre>
<p>In this example, <tt>anim1</tt> and <tt>anim2</tt> are two already set up <a href="qpropertyanimation.html">QPropertyAnimation</a>s.</p>
<p>See also <a href="qanimationgroup.html">QAnimationGroup</a>, <a href="qabstractanimation.html">QAbstractAnimation</a>, and <a href="animation-overview.html">The Animation Framework</a>.</p>
<hr />
<h2>Property Documentation</h2>
<a name="//apple_ref/cpp/instm/QSequentialAnimationGroup/currentAnimation"></a>
<a name="//apple_ref/cpp/instm/QSequentialAnimationGroup/currentAnimationChanged"></a>
<h3 class="fn"><a name="currentAnimation-prop"></a>currentAnimation : <a href="qabstractanimation.html">QAbstractAnimation</a> * const</h3>
<p>Returns the animation in the current time.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">QAbstractAnimation * </td><td class="memItemRight" valign="bottom"><b>currentAnimation</b> () const</td></tr>
</table>
<p><b>Notifier signal:</b></p>
<table class="alignedsummary" border="0" cellpadding="0" cellspacing="0" width="100%">
<tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><b><a href="qsequentialanimationgroup.html#currentAnimationChanged">currentAnimationChanged</a></b> ( QAbstractAnimation * <i>current</i> )</td></tr>
</table>
<p>See also <a href="qsequentialanimationgroup.html#currentAnimationChanged">currentAnimationChanged</a>().</p>
<hr />
<h2>Member Function Documentation</h2>
<a name="//apple_ref/cpp/instm/QSequentialAnimationGroup/QSequentialAnimationGroup"></a>
<h3 class="fn"><a name="QSequentialAnimationGroup"></a>QSequentialAnimationGroup::QSequentialAnimationGroup ( <a href="qobject.html">QObject</a> * <i>parent</i> = 0 )</h3>
<p>Constructs a <a href="qsequentialanimationgroup.html">QSequentialAnimationGroup</a>. <i>parent</i> is passed to <a href="qobject.html">QObject</a>'s constructor.</p>
<a name="//apple_ref/cpp/instm/QSequentialAnimationGroup/~QSequentialAnimationGroup"></a>
<h3 class="fn"><a name="dtor.QSequentialAnimationGroup"></a>QSequentialAnimationGroup::~QSequentialAnimationGroup ()</h3>
<p>Destroys the animation group. It will also destroy all its animations.</p>
<a name="//apple_ref/cpp/instm/QSequentialAnimationGroup/addPause"></a>
<h3 class="fn"><a name="addPause"></a><a href="qpauseanimation.html">QPauseAnimation</a> * QSequentialAnimationGroup::addPause ( int <i>msecs</i> )</h3>
<p>Adds a pause of <i>msecs</i> to this animation group. The pause is considered as a special type of animation, thus <a href="qanimationgroup.html#animationCount">animationCount</a> will be increased by one.</p>
<p>See also <a href="qsequentialanimationgroup.html#insertPause">insertPause</a>() and <a href="qanimationgroup.html#addAnimation">QAnimationGroup::addAnimation</a>().</p>
<a name="//apple_ref/cpp/instm/QSequentialAnimationGroup/currentAnimationChanged"></a>
<h3 class="fn"><a name="currentAnimationChanged"></a>void QSequentialAnimationGroup::currentAnimationChanged ( <a href="qabstractanimation.html">QAbstractAnimation</a> * <i>current</i> )&nbsp;&nbsp;<tt> [signal]</tt></h3>
<p><a href="qsequentialanimationgroup.html">QSequentialAnimationGroup</a> emits this signal when <a href="qsequentialanimationgroup.html#currentAnimation-prop">currentAnimation</a> has been changed. <i>current</i> is the current animation.</p>
<p>See also <a href="qsequentialanimationgroup.html#currentAnimation-prop">currentAnimation</a>().</p>
<a name="//apple_ref/cpp/instm/QSequentialAnimationGroup/duration"></a>
<h3 class="fn"><a name="duration"></a>int QSequentialAnimationGroup::duration () const&nbsp;&nbsp;<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qabstractanimation.html#duration-prop">QAbstractAnimation::duration</a>().</p>
<a name="//apple_ref/cpp/instm/QSequentialAnimationGroup/event"></a>
<h3 class="fn"><a name="event"></a>bool QSequentialAnimationGroup::event ( <a href="qevent.html">QEvent</a> * <i>event</i> )&nbsp;&nbsp;<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qobject.html#event">QObject::event</a>().</p>
<a name="//apple_ref/cpp/instm/QSequentialAnimationGroup/insertPause"></a>
<h3 class="fn"><a name="insertPause"></a><a href="qpauseanimation.html">QPauseAnimation</a> * QSequentialAnimationGroup::insertPause ( int <i>index</i>, int <i>msecs</i> )</h3>
<p>Inserts a pause of <i>msecs</i> milliseconds at <i>index</i> in this animation group.</p>
<p>See also <a href="qsequentialanimationgroup.html#addPause">addPause</a>() and <a href="qanimationgroup.html#insertAnimation">QAnimationGroup::insertAnimation</a>().</p>
<a name="//apple_ref/cpp/instm/QSequentialAnimationGroup/updateCurrentTime"></a>
<h3 class="fn"><a name="updateCurrentTime"></a>void QSequentialAnimationGroup::updateCurrentTime ( int <i>currentTime</i> )&nbsp;&nbsp;<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qabstractanimation.html#updateCurrentTime">QAbstractAnimation::updateCurrentTime</a>().</p>
<a name="//apple_ref/cpp/instm/QSequentialAnimationGroup/updateDirection"></a>
<h3 class="fn"><a name="updateDirection"></a>void QSequentialAnimationGroup::updateDirection ( <a href="qabstractanimation.html#Direction-enum">QAbstractAnimation::Direction</a> <i>direction</i> )&nbsp;&nbsp;<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qabstractanimation.html#updateDirection">QAbstractAnimation::updateDirection</a>().</p>
<a name="//apple_ref/cpp/instm/QSequentialAnimationGroup/updateState"></a>
<h3 class="fn"><a name="updateState"></a>void QSequentialAnimationGroup::updateState ( <a href="qabstractanimation.html#State-enum">QAbstractAnimation::State</a> <i>newState</i>, <a href="qabstractanimation.html#State-enum">QAbstractAnimation::State</a> <i>oldState</i> )&nbsp;&nbsp;<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qabstractanimation.html#updateState">QAbstractAnimation::updateState</a>().</p>
<p /><address><hr /><div align="center">
<table width="100%" cellspacing="0" border="0"><tr class="address">
<td width="40%" align="left">Copyright &copy; 2010 Nokia Corporation and/or its subsidiary(-ies)</td>
<td width="20%" align="center"><a href="trademarks.html">Trademarks</a></td>
<td width="40%" align="right"><div align="right">Qt 4.6.3</div></td>
</tr></table></div></address></body>
</html>