Crossfire Server, Trunk
AnimationWidget Class Reference

#include <AnimationWidget.h>

+ Inheritance diagram for AnimationWidget:
+ Collaboration diagram for AnimationWidget:

Public Member Functions

 AnimationWidget (QWidget *parent)
 
void setAnimation (QList< int > faces)
 
void step ()
 

Protected Member Functions

virtual void paintEvent (QPaintEvent *event)
 

Protected Attributes

QList< int > myFaces
 
int myStep
 

Detailed Description

Display and play an animation in a single direction.

Definition at line 22 of file AnimationWidget.h.

Constructor & Destructor Documentation

◆ AnimationWidget()

AnimationWidget::AnimationWidget ( QWidget *  parent)

Definition at line 18 of file AnimationWidget.cpp.

References myStep.

Member Function Documentation

◆ paintEvent()

void AnimationWidget::paintEvent ( QPaintEvent *  event)
protectedvirtual

Definition at line 43 of file AnimationWidget.cpp.

References CREPixmap::getIcon(), myFaces, and myStep.

+ Here is the call graph for this function:

◆ setAnimation()

void AnimationWidget::setAnimation ( QList< int >  faces)

Definition at line 25 of file AnimationWidget.cpp.

References dragon_attune::faces, myFaces, and myStep.

Referenced by ArtifactPanel::artifactChanged().

+ Here is the caller graph for this function:

◆ step()

void AnimationWidget::step ( )

Definition at line 31 of file AnimationWidget.cpp.

References myFaces, and myStep.

Referenced by ArtifactPanel::artifactChanged().

+ Here is the caller graph for this function:

Field Documentation

◆ myFaces

QList<int> AnimationWidget::myFaces
protected

Definition at line 34 of file AnimationWidget.h.

Referenced by paintEvent(), setAnimation(), and step().

◆ myStep

int AnimationWidget::myStep
protected

Definition at line 33 of file AnimationWidget.h.

Referenced by AnimationWidget(), paintEvent(), setAnimation(), and step().


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