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

StatusIndicatorAnimationView Class Reference

a view class for the status indicator widgets. More...

#include <statusindicatoranimationview.h>

Inheritance diagram for StatusIndicatorAnimationView:
Inheritance graph
[legend]
Collaboration diagram for StatusIndicatorAnimationView:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 StatusIndicatorAnimationView (StatusIndicator *controller)
 Constructs a new StatusIndicatorAnimationView.
virtual ~StatusIndicatorAnimationView ()
 Destroys the StatusIndicatorAnimationView.
QSizeF sizeHint (Qt::SizeHint which, const QSizeF &constraint) const
 REIMPLEMENTATION

Protected Slots

virtual void updateData (const QList< const char * > &modifications)
 
virtual void startAnimation ()
 
virtual void stopAnimation ()
 A slot for stopping the animation.
void setAnimationFrame (int frame)
 A slot for setting the animation frame.

Protected Member Functions

virtual void drawContents (QPainter *painter, const QStyleOptionGraphicsItem *option) const
 REIMPLEMENTATION
virtual void setupModel ()
virtual void applyStyle ()
void setupAnimationTimeline ()
 
void setFirstAnimationFrame (int frame)
void clearImageList ()
void setupImageList (const QString &iconIDs)

Protected Attributes

StatusIndicatorcontroller
 The controller for this view.
QStringList imageList
 The list of names of the images to be shown.
QVector< const QPixmap * > images
 A vector of images to be shown.
int animationFrame
 The current animation frame.
int firstAnimationFrame
 The animation frame from which the animation starts.
QTimeLine * animationTimeline
 Timeline for the animation.

Detailed Description

a view class for the status indicator widgets.


Constructor & Destructor Documentation

StatusIndicatorAnimationView::StatusIndicatorAnimationView ( StatusIndicator controller  ) 

Constructs a new StatusIndicatorAnimationView.

Parameters:
controller The view's controller
StatusIndicatorAnimationView::~StatusIndicatorAnimationView (  )  [virtual]

Member Function Documentation

void StatusIndicatorAnimationView::applyStyle (  )  [protected, virtual]

Reimplemented in StatusIndicatorIconView.

void StatusIndicatorAnimationView::clearImageList (  )  [protected]

Clears the images list

void StatusIndicatorAnimationView::drawContents ( QPainter *  painter,
const QStyleOptionGraphicsItem *  option 
) const [protected, virtual]

REIMPLEMENTATION

void StatusIndicatorAnimationView::setAnimationFrame ( int  frame  )  [protected, slot]

A slot for setting the animation frame.

Parameters:
frame the animation frame to show
void StatusIndicatorAnimationView::setFirstAnimationFrame ( int  frame  )  [protected]

Sets the first frame for the animation

Parameters:
frame the animation frame from which the animation starts
void StatusIndicatorAnimationView::setupAnimationTimeline (  )  [protected]

Sets up the animation timeline

void StatusIndicatorAnimationView::setupImageList ( const QString &  iconIDs  )  [protected]

Sets up the images list from an icon ID string

Parameters:
iconIDs a list of icon IDs to create the image list from
void StatusIndicatorAnimationView::setupModel (  )  [protected, virtual]
QSizeF StatusIndicatorAnimationView::sizeHint ( Qt::SizeHint  which,
const QSizeF &  constraint 
) const

REIMPLEMENTATION

void StatusIndicatorAnimationView::startAnimation (  )  [protected, virtual, slot]

A slot for starting the animation

void StatusIndicatorAnimationView::stopAnimation (  )  [protected, virtual, slot]

A slot for stopping the animation.

void StatusIndicatorAnimationView::updateData ( const QList< const char * > &  modifications  )  [protected, virtual, slot]

REIMPLEMENTATION

Reimplemented in StatusIndicatorIconView.


Member Data Documentation

The current animation frame.

Timeline for the animation.

The controller for this view.

The animation frame from which the animation starts.

QStringList StatusIndicatorAnimationView::imageList [protected]

The list of names of the images to be shown.

QVector<const QPixmap *> StatusIndicatorAnimationView::images [mutable, protected]

A vector of images to be shown.


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

Copyright © 2011 Nokia Corporation Generated on Tue Aug 30 2011 16:38:13
Doxygen 1.7.1
MeeGo Touch