Home · All Namespaces · All Classes
Signals | Public Member Functions | Protected Member Functions | Protected Attributes

TransformLayoutAnimation Class Reference

#include <transformlayoutanimation.h>

List of all members.

Signals

void willFinish ()

Public Member Functions

 TransformLayoutAnimation (MLayout *layout)
virtual ~TransformLayoutAnimation ()
 Destructor.
virtual int duration () const
virtual void itemAddedToLayout (int index)
virtual void itemRemovedFromLayout (int index)
virtual void animatedDeleteItem (int index)
virtual void setItemGeometry (int index, const QRectF &geometry)
virtual void hideItem (int index)
void setManualControl (bool enabled)
bool manualControl () const
void cancelAnimation ()
bool isCanceled ()
void setProgress (float t)
float progress () const
float currentCurveValue () const
float speed () const

Protected Member Functions

virtual void updateCurrentTime (int currentTime)
virtual void updateState (QAbstractAnimation::State newState, QAbstractAnimation::State oldState)
virtual TransformAnimationcreateAnimation (QGraphicsWidget *widget)
void resetAnimationAttributes ()
 Resets the internal animation state variables.

Protected Attributes

QList< TransformAnimation * > animations

Detailed Description

A layout animation for animating the widget's position, scaling and the position of the widget's container.


Constructor & Destructor Documentation

TransformLayoutAnimation::TransformLayoutAnimation ( MLayout *  layout  ) 

Constructor

Parameters:
layout the layout to animate
TransformLayoutAnimation::~TransformLayoutAnimation (  )  [virtual]

Destructor.


Member Function Documentation

void TransformLayoutAnimation::animatedDeleteItem ( int  index  )  [virtual]
void TransformLayoutAnimation::cancelAnimation (  ) 

Cancels the animation. The layout items animate back to the original positions

TransformAnimation * TransformLayoutAnimation::createAnimation ( QGraphicsWidget *  widget  )  [protected, virtual]

Called by the layout animation to create animation objects for each widget in the layout

Parameters:
widget the widget to animate
Returns:
new instance of the animation object
float TransformLayoutAnimation::currentCurveValue (  )  const

Returns the current value of the animation curve

int TransformLayoutAnimation::duration (  )  const [virtual]

REIMPLEMENTATION

void TransformLayoutAnimation::hideItem ( int  index  )  [virtual]
bool TransformLayoutAnimation::isCanceled (  ) 

Returns true if the animation was canceled

void TransformLayoutAnimation::itemAddedToLayout ( int  index  )  [virtual]
void TransformLayoutAnimation::itemRemovedFromLayout ( int  index  )  [virtual]
bool TransformLayoutAnimation::manualControl (  )  const

Returns the current manual control status

float TransformLayoutAnimation::progress (  )  const

Returns the current progress of the animation

void TransformLayoutAnimation::resetAnimationAttributes (  )  [protected]

Resets the internal animation state variables.

void TransformLayoutAnimation::setItemGeometry ( int  index,
const QRectF &  geometry 
) [virtual]
void TransformLayoutAnimation::setManualControl ( bool  enabled  ) 

Sets the animation manual control mode

Parameters:
enabled If true, animation stays at current progress. Otherwise, animation runs automatically to the end
void TransformLayoutAnimation::setProgress ( float  t  ) 

Sets the current progress of the animation

Parameters:
t the new progress, with range 0 to 1
float TransformLayoutAnimation::speed (  )  const

Returns the current animation speed

void TransformLayoutAnimation::updateCurrentTime ( int  currentTime  )  [protected, virtual]

REIMPLEMENTATION

virtual void TransformLayoutAnimation::updateState ( QAbstractAnimation::State  newState,
QAbstractAnimation::State  oldState 
) [protected, virtual]
void TransformLayoutAnimation::willFinish (  )  [signal]

Sent when the animation is finishing. The animation must be stopped separately after receiving this signal. This makes it possible to cancel the geometry changes of the layout items without making them jump at the end of the animation.


Member Data Documentation

Transform animations for the widgets in the layout


The documentation for this class was generated from the following files:

Copyright © 2011 Nokia Corporation Generated on Thu Jul 7 2011 22:14:51
Doxygen 1.7.1
MeeGo Touch