#include <runanimationhandler.h>
Public Slots | |
void | toggleRunning () |
void | runAnimation () |
void | stopAnimation () |
void | pauseAnimation () |
void | selectPreviousFrame () |
void | selectNextFrame () |
void | selectPreviousScene () |
void | selectNextScene () |
void | setSpeed (int fps) |
void | toggleLooping () |
Public Member Functions | |
RunAnimationHandler (QObject *parent=0, QStatusBar *sb=0, const char *name=0) | |
void | setPlayButton (QPushButton *playButton) |
void | setRemoveFramesButton (QPushButton *removeFramesButton) |
void | setLoopButton (QPushButton *loopButton) |
void | setPauseButton (QPushButton *pauseButton) |
|
Creates the RunAnimationHandler and initializes the member fields.
|
|
Freezes the running of the animation. |
|
Runs the animation as a sequence of pictures triggered by a timer |
|
Selects the next frame. |
|
Selects the next scene. |
|
Selects the previous frame. |
|
Selects the previous scene. |
|
Sets the loop button.
|
|
Sets the pause button.
|
|
Stores the playButton so that it can be toggled
|
|
Stores the removeFramesButton so that it can be deactivated as needed.
|
|
Sets the speed of the animation in frames per seccond
|
|
Stops the running of the animation. |
|
Toggles between looping the animation when it is running and closing it when it reaches the end. |
|
Starts the animation if it isn't playing and stops it if it is. This function is provided for ease of use with keyaccelerators. |